add isl_schedule_node_schedule
[isl.git] / include / isl / schedule.h
blobf7873e7113b4fe2bd95217e53ba73c394f6dc9db
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/schedule_type.h>
7 #include <isl/aff_type.h>
8 #include <isl/space_type.h>
9 #include <isl/set_type.h>
10 #include <isl/map_type.h>
11 #include <isl/list.h>
12 #include <isl/printer_type.h>
14 #if defined(__cplusplus)
15 extern "C" {
16 #endif
18 struct __isl_export isl_schedule_constraints;
19 typedef struct isl_schedule_constraints isl_schedule_constraints;
21 isl_stat isl_options_set_schedule_max_coefficient(isl_ctx *ctx, int val);
22 int isl_options_get_schedule_max_coefficient(isl_ctx *ctx);
24 isl_stat isl_options_set_schedule_max_constant_term(isl_ctx *ctx, int val);
25 int isl_options_get_schedule_max_constant_term(isl_ctx *ctx);
27 isl_stat isl_options_set_schedule_maximize_band_depth(isl_ctx *ctx, int val);
28 int isl_options_get_schedule_maximize_band_depth(isl_ctx *ctx);
30 isl_stat isl_options_set_schedule_maximize_coincidence(isl_ctx *ctx, int val);
31 int isl_options_get_schedule_maximize_coincidence(isl_ctx *ctx);
33 isl_stat isl_options_set_schedule_outer_coincidence(isl_ctx *ctx, int val);
34 int isl_options_get_schedule_outer_coincidence(isl_ctx *ctx);
36 isl_stat isl_options_set_schedule_split_scaled(isl_ctx *ctx, int val);
37 int isl_options_get_schedule_split_scaled(isl_ctx *ctx);
39 isl_stat isl_options_set_schedule_treat_coalescing(isl_ctx *ctx, int val);
40 int isl_options_get_schedule_treat_coalescing(isl_ctx *ctx);
42 isl_stat isl_options_set_schedule_separate_components(isl_ctx *ctx, int val);
43 int isl_options_get_schedule_separate_components(isl_ctx *ctx);
45 isl_stat isl_options_set_schedule_serialize_sccs(isl_ctx *ctx, int val);
46 int isl_options_get_schedule_serialize_sccs(isl_ctx *ctx);
48 isl_stat isl_options_set_schedule_whole_component(isl_ctx *ctx, int val);
49 int isl_options_get_schedule_whole_component(isl_ctx *ctx);
51 isl_stat isl_options_set_schedule_carry_self_first(isl_ctx *ctx, int val);
52 int isl_options_get_schedule_carry_self_first(isl_ctx *ctx);
54 __isl_give isl_schedule_constraints *isl_schedule_constraints_copy(
55 __isl_keep isl_schedule_constraints *sc);
56 __isl_export
57 __isl_give isl_schedule_constraints *isl_schedule_constraints_on_domain(
58 __isl_take isl_union_set *domain);
59 __isl_export
60 __isl_give isl_schedule_constraints *isl_schedule_constraints_set_context(
61 __isl_take isl_schedule_constraints *sc, __isl_take isl_set *context);
62 __isl_export
63 __isl_give isl_schedule_constraints *isl_schedule_constraints_set_validity(
64 __isl_take isl_schedule_constraints *sc,
65 __isl_take isl_union_map *validity);
66 __isl_export
67 __isl_give isl_schedule_constraints *isl_schedule_constraints_set_coincidence(
68 __isl_take isl_schedule_constraints *sc,
69 __isl_take isl_union_map *coincidence);
70 __isl_export
71 __isl_give isl_schedule_constraints *isl_schedule_constraints_set_proximity(
72 __isl_take isl_schedule_constraints *sc,
73 __isl_take isl_union_map *proximity);
74 __isl_export
75 __isl_give isl_schedule_constraints *
76 isl_schedule_constraints_set_conditional_validity(
77 __isl_take isl_schedule_constraints *sc,
78 __isl_take isl_union_map *condition,
79 __isl_take isl_union_map *validity);
80 __isl_export
81 __isl_give isl_schedule_constraints *
82 isl_schedule_constraints_set_intra_consecutivity(
83 __isl_take isl_schedule_constraints *sc,
84 __isl_take isl_multi_aff_list *intra);
85 __isl_export
86 __isl_give isl_schedule_constraints *
87 isl_schedule_constraints_set_inter_consecutivity(
88 __isl_take isl_schedule_constraints *sc,
89 __isl_take isl_map_list *inter);
90 __isl_export
91 __isl_give isl_schedule_constraints *isl_schedule_constraints_set_prefix(
92 __isl_take isl_schedule_constraints *sc,
93 __isl_take isl_multi_union_pw_aff *prefix);
94 __isl_null isl_schedule_constraints *isl_schedule_constraints_free(
95 __isl_take isl_schedule_constraints *sc);
97 isl_ctx *isl_schedule_constraints_get_ctx(
98 __isl_keep isl_schedule_constraints *sc);
99 __isl_export
100 __isl_give isl_union_set *isl_schedule_constraints_get_domain(
101 __isl_keep isl_schedule_constraints *sc);
102 __isl_export
103 __isl_give isl_set *isl_schedule_constraints_get_context(
104 __isl_keep isl_schedule_constraints *sc);
105 __isl_export
106 __isl_give isl_union_map *isl_schedule_constraints_get_validity(
107 __isl_keep isl_schedule_constraints *sc);
108 __isl_export
109 __isl_give isl_union_map *isl_schedule_constraints_get_coincidence(
110 __isl_keep isl_schedule_constraints *sc);
111 __isl_export
112 __isl_give isl_union_map *isl_schedule_constraints_get_proximity(
113 __isl_keep isl_schedule_constraints *sc);
114 __isl_export
115 __isl_give isl_union_map *isl_schedule_constraints_get_conditional_validity(
116 __isl_keep isl_schedule_constraints *sc);
117 __isl_export
118 __isl_give isl_union_map *
119 isl_schedule_constraints_get_conditional_validity_condition(
120 __isl_keep isl_schedule_constraints *sc);
121 __isl_export
122 __isl_give isl_multi_aff_list *isl_schedule_constraints_get_intra_consecutivity(
123 __isl_keep isl_schedule_constraints *sc);
124 __isl_export
125 __isl_give isl_map_list *isl_schedule_constraints_get_inter_consecutivity(
126 __isl_keep isl_schedule_constraints *sc);
127 __isl_export
128 __isl_give isl_multi_union_pw_aff *isl_schedule_constraints_get_prefix(
129 __isl_keep isl_schedule_constraints *sc);
131 __isl_give isl_schedule_constraints *isl_schedule_constraints_apply(
132 __isl_take isl_schedule_constraints *sc,
133 __isl_take isl_union_map *umap);
135 __isl_constructor
136 __isl_give isl_schedule_constraints *isl_schedule_constraints_read_from_str(
137 isl_ctx *ctx, const char *str);
138 __isl_give isl_schedule_constraints *isl_schedule_constraints_read_from_file(
139 isl_ctx *ctx, FILE *input);
140 __isl_give isl_printer *isl_printer_print_schedule_constraints(
141 __isl_take isl_printer *p, __isl_keep isl_schedule_constraints *sc);
142 void isl_schedule_constraints_dump(__isl_keep isl_schedule_constraints *sc);
143 __isl_give char *isl_schedule_constraints_to_str(
144 __isl_keep isl_schedule_constraints *sc);
146 __isl_give isl_schedule_node *isl_schedule_node_schedule(
147 __isl_take isl_schedule_node *node,
148 __isl_take isl_schedule_constraints *sc);
149 __isl_export
150 __isl_give isl_schedule *isl_schedule_constraints_compute_schedule(
151 __isl_take isl_schedule_constraints *sc);
153 __isl_give isl_schedule *isl_union_set_compute_schedule(
154 __isl_take isl_union_set *domain,
155 __isl_take isl_union_map *validity,
156 __isl_take isl_union_map *proximity);
158 __isl_give isl_schedule *isl_schedule_empty(__isl_take isl_space *space);
159 __isl_give isl_schedule *isl_schedule_from_domain(
160 __isl_take isl_union_set *domain);
161 __isl_give isl_schedule *isl_schedule_copy(__isl_keep isl_schedule *sched);
162 __isl_null isl_schedule *isl_schedule_free(__isl_take isl_schedule *sched);
163 __isl_export
164 __isl_give isl_union_map *isl_schedule_get_map(__isl_keep isl_schedule *sched);
166 isl_ctx *isl_schedule_get_ctx(__isl_keep isl_schedule *sched);
167 isl_bool isl_schedule_plain_is_equal(__isl_keep isl_schedule *schedule1,
168 __isl_keep isl_schedule *schedule2);
170 __isl_export
171 __isl_give isl_schedule_node *isl_schedule_get_root(
172 __isl_keep isl_schedule *schedule);
173 __isl_give isl_union_set *isl_schedule_get_domain(
174 __isl_keep isl_schedule *schedule);
176 isl_stat isl_schedule_foreach_schedule_node_top_down(
177 __isl_keep isl_schedule *sched,
178 isl_bool (*fn)(__isl_keep isl_schedule_node *node, void *user),
179 void *user);
180 __isl_give isl_schedule *isl_schedule_map_schedule_node_bottom_up(
181 __isl_take isl_schedule *schedule,
182 __isl_give isl_schedule_node *(*fn)(
183 __isl_take isl_schedule_node *node, void *user), void *user);
185 __isl_give isl_schedule *isl_schedule_insert_context(
186 __isl_take isl_schedule *schedule, __isl_take isl_set *context);
187 __isl_give isl_schedule *isl_schedule_insert_partial_schedule(
188 __isl_take isl_schedule *schedule,
189 __isl_take isl_multi_union_pw_aff *partial);
190 __isl_give isl_schedule *isl_schedule_insert_guard(
191 __isl_take isl_schedule *schedule, __isl_take isl_set *guard);
192 __isl_give isl_schedule *isl_schedule_sequence(
193 __isl_take isl_schedule *schedule1, __isl_take isl_schedule *schedule2);
194 __isl_give isl_schedule *isl_schedule_set(
195 __isl_take isl_schedule *schedule1, __isl_take isl_schedule *schedule2);
196 __isl_give isl_schedule *isl_schedule_intersect_domain(
197 __isl_take isl_schedule *schedule, __isl_take isl_union_set *domain);
198 __isl_give isl_schedule *isl_schedule_gist_domain_params(
199 __isl_take isl_schedule *schedule, __isl_take isl_set *context);
201 __isl_give isl_schedule *isl_schedule_reset_user(
202 __isl_take isl_schedule *schedule);
203 __isl_give isl_schedule *isl_schedule_align_params(
204 __isl_take isl_schedule *schedule, __isl_take isl_space *space);
205 __isl_overload
206 __isl_give isl_schedule *isl_schedule_pullback_union_pw_multi_aff(
207 __isl_take isl_schedule *schedule,
208 __isl_take isl_union_pw_multi_aff *upma);
209 __isl_give isl_schedule *isl_schedule_expand(__isl_take isl_schedule *schedule,
210 __isl_take isl_union_pw_multi_aff *contraction,
211 __isl_take isl_schedule *expansion);
213 __isl_give isl_schedule *isl_schedule_read_from_file(isl_ctx *ctx, FILE *input);
214 __isl_constructor
215 __isl_give isl_schedule *isl_schedule_read_from_str(isl_ctx *ctx,
216 const char *str);
217 __isl_give isl_printer *isl_printer_print_schedule(__isl_take isl_printer *p,
218 __isl_keep isl_schedule *schedule);
219 void isl_schedule_dump(__isl_keep isl_schedule *schedule);
220 __isl_give char *isl_schedule_to_str(__isl_keep isl_schedule *schedule);
222 #if defined(__cplusplus)
224 #endif
226 #endif