scheduler: allow to bound the coefficients in the calculated schedule
[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_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 #define         ISL_SCHEDULE_FUSE_MAX                   0
31 #define         ISL_SCHEDULE_FUSE_MIN                   1
32 int isl_options_set_schedule_fuse(isl_ctx *ctx, int val);
33 int isl_options_get_schedule_fuse(isl_ctx *ctx);
34
35 __isl_give isl_schedule *isl_union_set_compute_schedule(
36         __isl_take isl_union_set *domain,
37         __isl_take isl_union_map *validity,
38         __isl_take isl_union_map *proximity);
39 void *isl_schedule_free(__isl_take isl_schedule *sched);
40 __isl_give isl_union_map *isl_schedule_get_map(__isl_keep isl_schedule *sched);
41
42 isl_ctx *isl_schedule_get_ctx(__isl_keep isl_schedule *sched);
43
44 __isl_give isl_band_list *isl_schedule_get_band_forest(
45         __isl_keep isl_schedule *schedule);
46
47 __isl_give isl_printer *isl_printer_print_schedule(__isl_take isl_printer *p,
48         __isl_keep isl_schedule *schedule);
49 void isl_schedule_dump(__isl_keep isl_schedule *schedule);
50
51 #if defined(__cplusplus)
52 }
53 #endif
54
55 #endif