[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.1.7 CloogOptions
struct cloogoptions { int l; /* -l option. */ int f; /* -f option. */ int *ls; /* Statement-wise l option */ int *fs; /* Statement-wise f option */ int fs_ls_size; /* Size of the fs and ls arrays (same size) */ int strides; /* -strides option. */ int sh; /* -sh option. */ int first_unroll; /* -first-unroll option. */ int esp; /* -esp option. */ int fsp; /* -fsp option. */ int otl; /* -otl option. */ int block; /* -block option. */ int compilable; /* -compilable option. */ int language; /* CLOOG_LANGUAGE_C or CLOOG_LANGUAGE_FORTRAN */ int save_domains; /* Save unsimplified copy of domain. */ } ; typedef struct cloogoptions CloogOptions ; CloogOptions *cloog_options_malloc(CloogState *state); void cloog_options_print(FILE *foo, CloogOptions *options); void cloog_options_free(CloogOptions *options);
The CloogOptions
structure contains all the possible options to
rule CLooG’s behaviour (see section Calling CLooG).
As a reminder, the default values are:
- l = -1 (optimize control until the innermost loops),
- f = 1 (optimize control from the outermost loops),
- ls/fs = NULL and fs\_ls\_size = 0 (statement-wise l/f are not set),
- strides = 0 (use only unit strides),
- sh = 0 (do not compute simple convex hulls),
- first\_unroll = -1 (do not perform unrolling),
- esp = 1 (spread complex equalities),
- fsp = 1 (start to spread from the first iterators),
- otl = 1 (simplify loops running only once).
- block = 0 (do not make statement blocks when not necessary).
- compilable = 0 (do not generate a compilable code).
The save_domains
option is only useful for users of the CLooG
library. This option defaults to 0, but when it is set, the domain
field of each clast_user_stmt
will be set to the set of values for the
scattering dimensions for which this instance of the user statement is executed.
The domain
field of each clast_for
contains the set of values for
the scattering dimensions for which an instance of a user statement is executed
inside the clast_for
. It is only available if the clast_for
enumerates a scattering dimension.
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on August 20, 2013 using texi2html 5.0.