isl_map_is_disjoint: maps with non-matching tuples may still intersect
[isl.git] / include / isl / schedule.h
blob385c6c4ef7f29182d4da5a1c3409f2f3c81bc641
1 #ifndef ISL_SCHEDULE_H
2 #define ISL_SCHEDULE_H
4 #include <isl/union_set_type.h>
5 #include <isl/union_map_type.h>
6 #include <isl/band.h>
7 #include <isl/list.h>
9 #if defined(__cplusplus)
10 extern "C" {
11 #endif
13 struct isl_schedule;
14 typedef struct isl_schedule isl_schedule;
16 int isl_options_set_schedule_max_coefficient(isl_ctx *ctx, int val);
17 int isl_options_get_schedule_max_coefficient(isl_ctx *ctx);
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);
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);
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);
28 int isl_options_set_schedule_split_scaled(isl_ctx *ctx, int val);
29 int isl_options_get_schedule_split_scaled(isl_ctx *ctx);
31 int isl_options_set_schedule_separate_components(isl_ctx *ctx, int val);
32 int isl_options_get_schedule_separate_components(isl_ctx *ctx);
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);
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);
46 isl_ctx *isl_schedule_get_ctx(__isl_keep isl_schedule *sched);
48 __isl_give isl_band_list *isl_schedule_get_band_forest(
49 __isl_keep isl_schedule *schedule);
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);
55 int isl_schedule_foreach_band(__isl_keep isl_schedule *sched,
56 int (*fn)(__isl_keep isl_band *band, void *user), void *user);
58 #if defined(__cplusplus)
60 #endif
62 #endif