isl_union_set_compute_schedule: separate components by default
[platform/upstream/isl.git] / include / isl / schedule.h
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/list.h>
7
8 #if defined(__cplusplus)
9 extern "C" {
10 #endif
11
12 struct isl_schedule;
13 typedef struct isl_schedule isl_schedule;
14
15 int isl_options_set_schedule_max_coefficient(isl_ctx *ctx, int val);
16 int isl_options_get_schedule_max_coefficient(isl_ctx *ctx);
17
18 int isl_options_set_schedule_max_constant_term(isl_ctx *ctx, int val);
19 int isl_options_get_schedule_max_constant_term(isl_ctx *ctx);
20
21 int isl_options_set_schedule_maximize_band_depth(isl_ctx *ctx, int val);
22 int isl_options_get_schedule_maximize_band_depth(isl_ctx *ctx);
23
24 int isl_options_set_schedule_outer_zero_distance(isl_ctx *ctx, int val);
25 int isl_options_get_schedule_outer_zero_distance(isl_ctx *ctx);
26
27 int isl_options_set_schedule_split_scaled(isl_ctx *ctx, int val);
28 int isl_options_get_schedule_split_scaled(isl_ctx *ctx);
29
30 int isl_options_set_schedule_separate_components(isl_ctx *ctx, int val);
31 int isl_options_get_schedule_separate_components(isl_ctx *ctx);
32
33 #define         ISL_SCHEDULE_FUSE_MAX                   0
34 #define         ISL_SCHEDULE_FUSE_MIN                   1
35 int isl_options_set_schedule_fuse(isl_ctx *ctx, int val);
36 int isl_options_get_schedule_fuse(isl_ctx *ctx);
37
38 __isl_give isl_schedule *isl_union_set_compute_schedule(
39         __isl_take isl_union_set *domain,
40         __isl_take isl_union_map *validity,
41         __isl_take isl_union_map *proximity);
42 void *isl_schedule_free(__isl_take isl_schedule *sched);
43 __isl_give isl_union_map *isl_schedule_get_map(__isl_keep isl_schedule *sched);
44
45 isl_ctx *isl_schedule_get_ctx(__isl_keep isl_schedule *sched);
46
47 __isl_give isl_band_list *isl_schedule_get_band_forest(
48         __isl_keep isl_schedule *schedule);
49
50 __isl_give isl_printer *isl_printer_print_schedule(__isl_take isl_printer *p,
51         __isl_keep isl_schedule *schedule);
52 void isl_schedule_dump(__isl_keep isl_schedule *schedule);
53
54 #if defined(__cplusplus)
55 }
56 #endif
57
58 #endif