4 #include <isl/union_set_type.h>
5 #include <isl/union_map_type.h>
6 #include <isl/schedule_type.h>
11 #if defined(__cplusplus)
15 struct isl_schedule_constraints
;
16 typedef struct isl_schedule_constraints isl_schedule_constraints
;
18 int isl_options_set_schedule_max_coefficient(isl_ctx
*ctx
, int val
);
19 int isl_options_get_schedule_max_coefficient(isl_ctx
*ctx
);
21 int isl_options_set_schedule_max_constant_term(isl_ctx
*ctx
, int val
);
22 int isl_options_get_schedule_max_constant_term(isl_ctx
*ctx
);
24 int isl_options_set_schedule_maximize_band_depth(isl_ctx
*ctx
, int val
);
25 int isl_options_get_schedule_maximize_band_depth(isl_ctx
*ctx
);
27 int isl_options_set_schedule_outer_coincidence(isl_ctx
*ctx
, int val
);
28 int isl_options_get_schedule_outer_coincidence(isl_ctx
*ctx
);
30 int isl_options_set_schedule_split_scaled(isl_ctx
*ctx
, int val
);
31 int isl_options_get_schedule_split_scaled(isl_ctx
*ctx
);
33 int isl_options_set_schedule_separate_components(isl_ctx
*ctx
, int val
);
34 int isl_options_get_schedule_separate_components(isl_ctx
*ctx
);
36 #define ISL_SCHEDULE_FUSE_MAX 0
37 #define ISL_SCHEDULE_FUSE_MIN 1
38 int isl_options_set_schedule_fuse(isl_ctx
*ctx
, int val
);
39 int isl_options_get_schedule_fuse(isl_ctx
*ctx
);
41 __isl_give isl_schedule_constraints
*isl_schedule_constraints_copy(
42 __isl_keep isl_schedule_constraints
*sc
);
43 __isl_give isl_schedule_constraints
*isl_schedule_constraints_on_domain(
44 __isl_take isl_union_set
*domain
);
45 __isl_give isl_schedule_constraints
*isl_schedule_constraints_set_context(
46 __isl_take isl_schedule_constraints
*sc
, __isl_take isl_set
*context
);
47 __isl_give isl_schedule_constraints
*isl_schedule_constraints_set_validity(
48 __isl_take isl_schedule_constraints
*sc
,
49 __isl_take isl_union_map
*validity
);
50 __isl_give isl_schedule_constraints
*isl_schedule_constraints_set_coincidence(
51 __isl_take isl_schedule_constraints
*sc
,
52 __isl_take isl_union_map
*coincidence
);
53 __isl_give isl_schedule_constraints
*isl_schedule_constraints_set_proximity(
54 __isl_take isl_schedule_constraints
*sc
,
55 __isl_take isl_union_map
*proximity
);
56 __isl_give isl_schedule_constraints
*
57 isl_schedule_constraints_set_conditional_validity(
58 __isl_take isl_schedule_constraints
*sc
,
59 __isl_take isl_union_map
*condition
,
60 __isl_take isl_union_map
*validity
);
61 __isl_null isl_schedule_constraints
*isl_schedule_constraints_free(
62 __isl_take isl_schedule_constraints
*sc
);
64 isl_ctx
*isl_schedule_constraints_get_ctx(
65 __isl_keep isl_schedule_constraints
*sc
);
67 void isl_schedule_constraints_dump(__isl_keep isl_schedule_constraints
*sc
);
69 __isl_give isl_schedule
*isl_schedule_constraints_compute_schedule(
70 __isl_take isl_schedule_constraints
*sc
);
72 __isl_give isl_schedule
*isl_union_set_compute_schedule(
73 __isl_take isl_union_set
*domain
,
74 __isl_take isl_union_map
*validity
,
75 __isl_take isl_union_map
*proximity
);
77 __isl_give isl_schedule
*isl_schedule_empty(__isl_take isl_space
*space
);
78 __isl_give isl_schedule
*isl_schedule_from_domain(
79 __isl_take isl_union_set
*domain
);
80 __isl_give isl_schedule
*isl_schedule_copy(__isl_keep isl_schedule
*sched
);
81 __isl_null isl_schedule
*isl_schedule_free(__isl_take isl_schedule
*sched
);
82 __isl_give isl_union_map
*isl_schedule_get_map(__isl_keep isl_schedule
*sched
);
84 isl_ctx
*isl_schedule_get_ctx(__isl_keep isl_schedule
*sched
);
86 __isl_give isl_schedule_node
*isl_schedule_get_root(
87 __isl_keep isl_schedule
*schedule
);
88 __isl_give isl_union_set
*isl_schedule_get_domain(
89 __isl_keep isl_schedule
*schedule
);
91 __isl_give isl_band_list
*isl_schedule_get_band_forest(
92 __isl_keep isl_schedule
*schedule
);
94 __isl_give isl_printer
*isl_printer_print_schedule(__isl_take isl_printer
*p
,
95 __isl_keep isl_schedule
*schedule
);
96 void isl_schedule_dump(__isl_keep isl_schedule
*schedule
);
98 int isl_schedule_foreach_band(__isl_keep isl_schedule
*sched
,
99 int (*fn
)(__isl_keep isl_band
*band
, void *user
), void *user
);
101 #if defined(__cplusplus)