Lines Matching refs:options

53 void cloog_vmsg(CloogOptions *options, enum cloog_msg_type type,  in cloog_vmsg()  argument
58 if (options && options->quiet && in cloog_vmsg()
82 void cloog_msg(CloogOptions *options, enum cloog_msg_type type, in cloog_msg() argument
88 cloog_vmsg(options, type, msg, args); in cloog_msg()
117 void cloog_options_print(FILE * foo, CloogOptions * options) in cloog_options_print() argument
123 fprintf(foo,"l = %3d,\n",options->l) ; in cloog_options_print()
124 fprintf(foo,"f = %3d,\n",options->f) ; in cloog_options_print()
125 fprintf(foo,"fs = %3d,\n",options->f) ; in cloog_options_print()
126 if (options->fs_ls_size>=1) { in cloog_options_print()
128 for (i=0; i<options->fs_ls_size; i++) { in cloog_options_print()
129 fprintf(foo,"%3d,\n",options->fs[i]) ; in cloog_options_print()
133 for (i=0; i<options->fs_ls_size; i++) { in cloog_options_print()
134 fprintf(foo,"%3d,\n",options->ls[i]) ; in cloog_options_print()
138 fprintf(foo,"stop = %3d,\n",options->stop) ; in cloog_options_print()
139 fprintf(foo,"strides = %3d,\n",options->strides) ; in cloog_options_print()
140 fprintf(foo,"sh = %3d,\n",options->sh); in cloog_options_print()
142 fprintf(foo,"esp = %3d,\n",options->esp) ; in cloog_options_print()
143 fprintf(foo,"fsp = %3d,\n",options->fsp) ; in cloog_options_print()
144 fprintf(foo,"otl = %3d.\n",options->otl) ; in cloog_options_print()
145 fprintf(foo,"block = %3d.\n",options->block) ; in cloog_options_print()
146 fprintf(foo,"compilable = %3d.\n",options->compilable) ; in cloog_options_print()
147 fprintf(foo,"callable = %3d.\n",options->callable) ; in cloog_options_print()
149 fprintf(foo,"name = %3s.\n", options->name); in cloog_options_print()
150 fprintf(foo,"openscop = %3d.\n", options->openscop); in cloog_options_print()
151 if (options->scop != NULL) in cloog_options_print()
156 fprintf(foo,"leaks = %3d.\n",options->leaks) ; in cloog_options_print()
157 fprintf(foo,"backtrack = %3d.\n",options->backtrack); in cloog_options_print()
158 fprintf(foo,"override = %3d.\n",options->override) ; in cloog_options_print()
159 fprintf(foo,"structure = %3d.\n",options->structure) ; in cloog_options_print()
160 fprintf(foo,"noscalars = %3d.\n",options->noscalars) ; in cloog_options_print()
161 fprintf(foo,"noblocks = %3d.\n",options->noblocks) ; in cloog_options_print()
162 fprintf(foo,"nosimplify = %3d.\n",options->nosimplify) ; in cloog_options_print()
176 void cloog_options_free(CloogOptions *options) in cloog_options_free() argument
179 if (options->scop != NULL) { in cloog_options_free()
180 osl_scop_free(options->scop); in cloog_options_free()
183 free(options->fs); in cloog_options_free()
184 free(options->ls); in cloog_options_free()
185 free(options); in cloog_options_free()
324 { CloogOptions * options ; in cloog_options_malloc() local
327 options = (CloogOptions *)malloc(sizeof(CloogOptions)) ; in cloog_options_malloc()
328 if (options == NULL) in cloog_options_malloc()
331 options->state = state; in cloog_options_malloc()
335 options->l = -1 ; /* Last level to optimize: infinity. */ in cloog_options_malloc()
336 options->f = 1 ; /* First level to optimize: the first. */ in cloog_options_malloc()
337 options->ls = NULL ; /* Statement-wise l option is not set */ in cloog_options_malloc()
338 options->fs = NULL ; /* Statement-wise f option is not set */ in cloog_options_malloc()
339 options->fs_ls_size = 0; /* No statement-wise f/s control */ in cloog_options_malloc()
340 options->stop = -1 ; /* Generate all the code. */ in cloog_options_malloc()
341 options->strides = 0 ; /* Generate a code with unit strides. */ in cloog_options_malloc()
342 options->sh = 0; /* Compute actual convex hull. */ in cloog_options_malloc()
343 options->first_unroll = -1; /* First level to unroll: none. */ in cloog_options_malloc()
344 options->name = ""; in cloog_options_malloc()
346 options->esp = 1 ; /* We want Equality SPreading.*/ in cloog_options_malloc()
347 options->fsp = 1 ; /* The First level to SPread is the first. */ in cloog_options_malloc()
348 options->otl = 1 ; /* We want to fire One Time Loops. */ in cloog_options_malloc()
349 options->block = 0 ; /* We don't want to force statement blocks. */ in cloog_options_malloc()
350 options->compilable = 0 ; /* No compilable code. */ in cloog_options_malloc()
351 options->callable = 0 ; /* No callable code. */ in cloog_options_malloc()
352 options->quiet = 0; /* Do print informational messages. */ in cloog_options_malloc()
353 options->save_domains = 0; /* Don't save domains. */ in cloog_options_malloc()
355 options->language = CLOOG_LANGUAGE_C; /* The default output language is C. */ in cloog_options_malloc()
356 options->openscop = 0 ; /* The input file has not the OpenScop format.*/ in cloog_options_malloc()
357 options->scop = NULL;/* No default SCoP.*/ in cloog_options_malloc()
359 options->leaks = 0 ; /* I don't want to print allocation statistics.*/ in cloog_options_malloc()
360 options->backtrack = 0; /* Perform backtrack in Quillere's algorithm.*/ in cloog_options_malloc()
361 options->override = 0 ; /* I don't want to override CLooG decisions.*/ in cloog_options_malloc()
362 options->structure = 0 ; /* I don't want to print internal structure.*/ in cloog_options_malloc()
363 options->noblocks = 0 ; /* I do want to make statement blocks.*/ in cloog_options_malloc()
364 options->noscalars = 0 ; /* I do want to use scalar dimensions.*/ in cloog_options_malloc()
365 options->nosimplify = 0 ; /* I do want to simplify polyhedra.*/ in cloog_options_malloc()
367 return options ; in cloog_options_malloc()
381 FILE **input, FILE **output, CloogOptions **options) in cloog_options_read() argument
385 *options = cloog_options_malloc(state); in cloog_options_read()
393 cloog_options_set(&(*options)->l,argc,argv,&i) ; in cloog_options_read()
396 cloog_options_set(&(*options)->f,argc,argv,&i) ; in cloog_options_read()
399 cloog_options_set(&(*options)->stop,argc,argv,&i) ; in cloog_options_read()
402 cloog_options_set(&(*options)->strides,argc,argv,&i) ; in cloog_options_read()
404 cloog_options_set(&(*options)->sh,argc,argv,&i) ; in cloog_options_read()
406 cloog_options_set(&(*options)->first_unroll, argc, argv, &i); in cloog_options_read()
409 cloog_options_set(&(*options)->otl,argc,argv,&i) ; in cloog_options_read()
413 (*options)->openscop = 1 ; in cloog_options_read()
420 cloog_options_set(&(*options)->esp,argc,argv,&i) ; in cloog_options_read()
423 cloog_options_set(&(*options)->fsp,argc,argv,&i) ; in cloog_options_read()
426 cloog_options_set(&(*options)->block,argc,argv,&i) ; in cloog_options_read()
429 cloog_options_set(&(*options)->compilable, argc, argv, &i); in cloog_options_read()
431 cloog_options_set(&(*options)->callable, argc, argv, &i); in cloog_options_read()
434 { (*options)->esp = 0 ; in cloog_options_read()
435 (*options)->block = 1 ; in cloog_options_read()
439 (*options)->backtrack = 0; in cloog_options_read()
442 (*options)->leaks = 1 ; in cloog_options_read()
445 (*options)->backtrack = 0; in cloog_options_read()
447 (*options)->backtrack = 1; in cloog_options_read()
450 (*options)->override = 1 ; in cloog_options_read()
453 (*options)->noblocks = 1 ; in cloog_options_read()
456 (*options)->noscalars = 1 ; in cloog_options_read()
459 (*options)->nosimplify = 1 ; in cloog_options_read()
462 (*options)->structure = 1 ; in cloog_options_read()
473 (*options)->quiet = 1; in cloog_options_read()
492 cloog_msg(*options, CLOOG_WARNING, "unknown %s option.\n", argv[i]); in cloog_options_read()
497 (*options)->name = argv[i] ; in cloog_options_read()
526 CloogOptions *options) { in cloog_options_copy_from_osl_scop() argument
527 if (!options) in cloog_options_copy_from_osl_scop()
533 options->language = CLOOG_LANGUAGE_FORTRAN; in cloog_options_copy_from_osl_scop()
535 options->language = CLOOG_LANGUAGE_C; in cloog_options_copy_from_osl_scop()
538 options->scop = scop; in cloog_options_copy_from_osl_scop()