add option to bound the constant scheduling coefficients
[platform/upstream/isl.git] / include / isl / schedule.h
1 #ifndef ISL_SCHEDULE_H
2 #define ISL_SCHEDULE_H
3
4 #include <isl/union_set.h>
5 #include <isl/union_map.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_constant_term(isl_ctx *ctx, int val);
16 int isl_options_get_schedule_max_constant_term(isl_ctx *ctx);
17
18 int isl_options_set_schedule_maximize_band_depth(isl_ctx *ctx, int val);
19 int isl_options_get_schedule_maximize_band_depth(isl_ctx *ctx);
20
21 int isl_options_set_schedule_outer_zero_distance(isl_ctx *ctx, int val);
22 int isl_options_get_schedule_outer_zero_distance(isl_ctx *ctx);
23
24 int isl_options_set_schedule_split_parallel(isl_ctx *ctx, int val);
25 int isl_options_get_schedule_split_parallel(isl_ctx *ctx);
26
27 __isl_give isl_schedule *isl_union_set_compute_schedule(
28         __isl_take isl_union_set *domain,
29         __isl_take isl_union_map *validity,
30         __isl_take isl_union_map *proximity);
31 void *isl_schedule_free(__isl_take isl_schedule *sched);
32 __isl_give isl_union_map *isl_schedule_get_map(__isl_keep isl_schedule *sched);
33
34 isl_ctx *isl_schedule_get_ctx(__isl_keep isl_schedule *sched);
35
36 __isl_give isl_band_list *isl_schedule_get_band_forest(
37         __isl_keep isl_schedule *schedule);
38
39 __isl_give isl_printer *isl_printer_print_schedule(__isl_take isl_printer *p,
40         __isl_keep isl_schedule *schedule);
41 void isl_schedule_dump(__isl_keep isl_schedule *schedule);
42
43 #if defined(__cplusplus)
44 }
45 #endif
46
47 #endif