1 #ifndef ISL_SCHEDULE_H 2 #define ISL_SCHEDULE_H 3 4 #include <isl/union_set_type.h> 5 #include <isl/union_map_type.h> 6 #include <isl/band.h> 7 #include <isl/list.h> 8 9 #if defined(__cplusplus) 10 extern "C" { 11 #endif 12 13 struct isl_schedule; 14 typedef struct isl_schedule isl_schedule; 15 16 int isl_options_set_schedule_max_coefficient(isl_ctx *ctx, int val); 17 int isl_options_get_schedule_max_coefficient(isl_ctx *ctx); 18 19 int isl_options_set_schedule_max_constant_term(isl_ctx *ctx, int val); 20 int isl_options_get_schedule_max_constant_term(isl_ctx *ctx); 21 22 int isl_options_set_schedule_maximize_band_depth(isl_ctx *ctx, int val); 23 int isl_options_get_schedule_maximize_band_depth(isl_ctx *ctx); 24 25 int isl_options_set_schedule_outer_zero_distance(isl_ctx *ctx, int val); 26 int isl_options_get_schedule_outer_zero_distance(isl_ctx *ctx); 27 28 int isl_options_set_schedule_split_scaled(isl_ctx *ctx, int val); 29 int isl_options_get_schedule_split_scaled(isl_ctx *ctx); 30 31 int isl_options_set_schedule_separate_components(isl_ctx *ctx, int val); 32 int isl_options_get_schedule_separate_components(isl_ctx *ctx); 33 34 #define ISL_SCHEDULE_FUSE_MAX 0 35 #define ISL_SCHEDULE_FUSE_MIN 1 36 int isl_options_set_schedule_fuse(isl_ctx *ctx, int val); 37 int isl_options_get_schedule_fuse(isl_ctx *ctx); 38 39 __isl_give isl_schedule *isl_union_set_compute_schedule( 40 __isl_take isl_union_set *domain, 41 __isl_take isl_union_map *validity, 42 __isl_take isl_union_map *proximity); 43 void *isl_schedule_free(__isl_take isl_schedule *sched); 44 __isl_give isl_union_map *isl_schedule_get_map(__isl_keep isl_schedule *sched); 45 46 isl_ctx *isl_schedule_get_ctx(__isl_keep isl_schedule *sched); 47 48 __isl_give isl_band_list *isl_schedule_get_band_forest( 49 __isl_keep isl_schedule *schedule); 50 51 __isl_give isl_printer *isl_printer_print_schedule(__isl_take isl_printer *p, 52 __isl_keep isl_schedule *schedule); 53 void isl_schedule_dump(__isl_keep isl_schedule *schedule); 54 55 int isl_schedule_foreach_band(__isl_keep isl_schedule *sched, 56 int (*fn)(__isl_keep isl_band *band, void *user), void *user); 57 58 #if defined(__cplusplus) 59 } 60 #endif 61 62 #endif 63