source: Daodan/MSYS2/mingw32/include/isl/schedule_node.h@ 1181

Last change on this file since 1181 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 11.5 KB
Line 
1#ifndef ISL_SCHEDULE_NODE_H
2#define ISL_SCHEDULE_NODE_H
3
4#include <isl/schedule_type.h>
5#include <isl/union_set_type.h>
6#include <isl/aff_type.h>
7#include <isl/ast_type.h>
8#include <isl/val_type.h>
9#include <isl/space_type.h>
10#include <isl/id_type.h>
11
12#if defined(__cplusplus)
13extern "C" {
14#endif
15
16__isl_export
17__isl_give isl_schedule_node *isl_schedule_node_from_domain(
18 __isl_take isl_union_set *domain);
19__isl_export
20__isl_give isl_schedule_node *isl_schedule_node_from_extension(
21 __isl_take isl_union_map *extension);
22__isl_give isl_schedule_node *isl_schedule_node_copy(
23 __isl_keep isl_schedule_node *node);
24__isl_null isl_schedule_node *isl_schedule_node_free(
25 __isl_take isl_schedule_node *node);
26
27__isl_export
28isl_bool isl_schedule_node_is_equal(__isl_keep isl_schedule_node *node1,
29 __isl_keep isl_schedule_node *node2);
30
31isl_ctx *isl_schedule_node_get_ctx(__isl_keep isl_schedule_node *node);
32__isl_subclass(isl_schedule_node)
33enum isl_schedule_node_type isl_schedule_node_get_type(
34 __isl_keep isl_schedule_node *node);
35enum isl_schedule_node_type isl_schedule_node_get_parent_type(
36 __isl_keep isl_schedule_node *node);
37__isl_export
38__isl_give isl_schedule *isl_schedule_node_get_schedule(
39 __isl_keep isl_schedule_node *node);
40
41__isl_export
42isl_stat isl_schedule_node_foreach_descendant_top_down(
43 __isl_keep isl_schedule_node *node,
44 isl_bool (*fn)(__isl_keep isl_schedule_node *node, void *user),
45 void *user);
46__isl_export
47isl_bool isl_schedule_node_every_descendant(__isl_keep isl_schedule_node *node,
48 isl_bool (*test)(__isl_keep isl_schedule_node *node, void *user),
49 void *user);
50__isl_export
51isl_stat isl_schedule_node_foreach_ancestor_top_down(
52 __isl_keep isl_schedule_node *node,
53 isl_stat (*fn)(__isl_keep isl_schedule_node *node, void *user),
54 void *user);
55__isl_export
56__isl_give isl_schedule_node *isl_schedule_node_map_descendant_bottom_up(
57 __isl_take isl_schedule_node *node,
58 __isl_give isl_schedule_node *(*fn)(__isl_take isl_schedule_node *node,
59 void *user), void *user);
60
61__isl_export
62isl_size isl_schedule_node_get_tree_depth(__isl_keep isl_schedule_node *node);
63__isl_export
64isl_bool isl_schedule_node_has_parent(__isl_keep isl_schedule_node *node);
65__isl_export
66isl_bool isl_schedule_node_has_children(__isl_keep isl_schedule_node *node);
67__isl_export
68isl_bool isl_schedule_node_has_previous_sibling(
69 __isl_keep isl_schedule_node *node);
70__isl_export
71isl_bool isl_schedule_node_has_next_sibling(__isl_keep isl_schedule_node *node);
72__isl_export
73isl_size isl_schedule_node_n_children(__isl_keep isl_schedule_node *node);
74__isl_export
75isl_size isl_schedule_node_get_child_position(
76 __isl_keep isl_schedule_node *node);
77__isl_export
78isl_size isl_schedule_node_get_ancestor_child_position(
79 __isl_keep isl_schedule_node *node,
80 __isl_keep isl_schedule_node *ancestor);
81__isl_give isl_schedule_node *isl_schedule_node_get_child(
82 __isl_keep isl_schedule_node *node, int pos);
83__isl_export
84__isl_give isl_schedule_node *isl_schedule_node_get_shared_ancestor(
85 __isl_keep isl_schedule_node *node1,
86 __isl_keep isl_schedule_node *node2);
87
88__isl_export
89__isl_give isl_schedule_node *isl_schedule_node_root(
90 __isl_take isl_schedule_node *node);
91__isl_export
92__isl_give isl_schedule_node *isl_schedule_node_parent(
93 __isl_take isl_schedule_node *node);
94__isl_export
95__isl_give isl_schedule_node *isl_schedule_node_ancestor(
96 __isl_take isl_schedule_node *node, int generation);
97__isl_export
98__isl_give isl_schedule_node *isl_schedule_node_child(
99 __isl_take isl_schedule_node *node, int pos);
100__isl_export
101__isl_give isl_schedule_node *isl_schedule_node_first_child(
102 __isl_take isl_schedule_node *node);
103__isl_export
104__isl_give isl_schedule_node *isl_schedule_node_previous_sibling(
105 __isl_take isl_schedule_node *node);
106__isl_export
107__isl_give isl_schedule_node *isl_schedule_node_next_sibling(
108 __isl_take isl_schedule_node *node);
109
110__isl_export
111isl_bool isl_schedule_node_is_subtree_anchored(
112 __isl_keep isl_schedule_node *node);
113
114__isl_give isl_schedule_node *isl_schedule_node_group(
115 __isl_take isl_schedule_node *node, __isl_take isl_id *group_id);
116
117__isl_give isl_schedule_node *isl_schedule_node_sequence_splice_child(
118 __isl_take isl_schedule_node *node, int pos);
119
120__isl_give isl_space *isl_schedule_node_band_get_space(
121 __isl_keep isl_schedule_node *node);
122__isl_export
123__isl_give isl_multi_union_pw_aff *isl_schedule_node_band_get_partial_schedule(
124 __isl_keep isl_schedule_node *node);
125__isl_give isl_union_map *isl_schedule_node_band_get_partial_schedule_union_map(
126 __isl_keep isl_schedule_node *node);
127enum isl_ast_loop_type isl_schedule_node_band_member_get_ast_loop_type(
128 __isl_keep isl_schedule_node *node, int pos);
129__isl_export
130__isl_give isl_schedule_node *isl_schedule_node_band_member_set_ast_loop_type(
131 __isl_take isl_schedule_node *node, int pos,
132 enum isl_ast_loop_type type);
133enum isl_ast_loop_type isl_schedule_node_band_member_get_isolate_ast_loop_type(
134 __isl_keep isl_schedule_node *node, int pos);
135__isl_give isl_schedule_node *
136isl_schedule_node_band_member_set_isolate_ast_loop_type(
137 __isl_take isl_schedule_node *node, int pos,
138 enum isl_ast_loop_type type);
139__isl_export
140__isl_give isl_union_set *isl_schedule_node_band_get_ast_build_options(
141 __isl_keep isl_schedule_node *node);
142__isl_export
143__isl_give isl_schedule_node *isl_schedule_node_band_set_ast_build_options(
144 __isl_take isl_schedule_node *node, __isl_take isl_union_set *options);
145__isl_export
146__isl_give isl_set *isl_schedule_node_band_get_ast_isolate_option(
147 __isl_keep isl_schedule_node *node);
148__isl_export
149isl_size isl_schedule_node_band_n_member(__isl_keep isl_schedule_node *node);
150__isl_export
151isl_bool isl_schedule_node_band_member_get_coincident(
152 __isl_keep isl_schedule_node *node, int pos);
153__isl_export
154__isl_give isl_schedule_node *isl_schedule_node_band_member_set_coincident(
155 __isl_take isl_schedule_node *node, int pos, int coincident);
156__isl_export
157isl_bool isl_schedule_node_band_get_permutable(
158 __isl_keep isl_schedule_node *node);
159__isl_export
160__isl_give isl_schedule_node *isl_schedule_node_band_set_permutable(
161 __isl_take isl_schedule_node *node, int permutable);
162
163isl_stat isl_options_set_tile_scale_tile_loops(isl_ctx *ctx, int val);
164int isl_options_get_tile_scale_tile_loops(isl_ctx *ctx);
165isl_stat isl_options_set_tile_shift_point_loops(isl_ctx *ctx, int val);
166int isl_options_get_tile_shift_point_loops(isl_ctx *ctx);
167
168__isl_export
169__isl_give isl_schedule_node *isl_schedule_node_band_scale(
170 __isl_take isl_schedule_node *node, __isl_take isl_multi_val *mv);
171__isl_export
172__isl_give isl_schedule_node *isl_schedule_node_band_scale_down(
173 __isl_take isl_schedule_node *node, __isl_take isl_multi_val *mv);
174__isl_export
175__isl_give isl_schedule_node *isl_schedule_node_band_mod(
176 __isl_take isl_schedule_node *node, __isl_take isl_multi_val *mv);
177__isl_export
178__isl_give isl_schedule_node *isl_schedule_node_band_shift(
179 __isl_take isl_schedule_node *node,
180 __isl_take isl_multi_union_pw_aff *shift);
181__isl_export
182__isl_give isl_schedule_node *isl_schedule_node_band_tile(
183 __isl_take isl_schedule_node *node, __isl_take isl_multi_val *sizes);
184__isl_give isl_schedule_node *isl_schedule_node_band_sink(
185 __isl_take isl_schedule_node *node);
186__isl_export
187__isl_give isl_schedule_node *isl_schedule_node_band_split(
188 __isl_take isl_schedule_node *node, int pos);
189
190__isl_export
191__isl_give isl_set *isl_schedule_node_context_get_context(
192 __isl_keep isl_schedule_node *node);
193__isl_export
194__isl_give isl_union_set *isl_schedule_node_domain_get_domain(
195 __isl_keep isl_schedule_node *node);
196__isl_export
197__isl_give isl_union_map *isl_schedule_node_expansion_get_expansion(
198 __isl_keep isl_schedule_node *node);
199__isl_export
200__isl_give isl_union_pw_multi_aff *isl_schedule_node_expansion_get_contraction(
201 __isl_keep isl_schedule_node *node);
202__isl_export
203__isl_give isl_union_map *isl_schedule_node_extension_get_extension(
204 __isl_keep isl_schedule_node *node);
205__isl_export
206__isl_give isl_union_set *isl_schedule_node_filter_get_filter(
207 __isl_keep isl_schedule_node *node);
208__isl_export
209__isl_give isl_set *isl_schedule_node_guard_get_guard(
210 __isl_keep isl_schedule_node *node);
211__isl_give isl_id *isl_schedule_node_mark_get_id(
212 __isl_keep isl_schedule_node *node);
213
214isl_size isl_schedule_node_get_schedule_depth(
215 __isl_keep isl_schedule_node *node);
216__isl_give isl_union_set *isl_schedule_node_get_domain(
217 __isl_keep isl_schedule_node *node);
218__isl_give isl_union_set *isl_schedule_node_get_universe_domain(
219 __isl_keep isl_schedule_node *node);
220__isl_export
221__isl_give isl_multi_union_pw_aff *
222isl_schedule_node_get_prefix_schedule_multi_union_pw_aff(
223 __isl_keep isl_schedule_node *node);
224__isl_export
225__isl_give isl_union_pw_multi_aff *
226isl_schedule_node_get_prefix_schedule_union_pw_multi_aff(
227 __isl_keep isl_schedule_node *node);
228__isl_export
229__isl_give isl_union_map *isl_schedule_node_get_prefix_schedule_union_map(
230 __isl_keep isl_schedule_node *node);
231__isl_give isl_union_map *isl_schedule_node_get_prefix_schedule_relation(
232 __isl_keep isl_schedule_node *node);
233__isl_give isl_union_map *isl_schedule_node_get_subtree_schedule_union_map(
234 __isl_keep isl_schedule_node *node);
235__isl_give isl_union_map *isl_schedule_node_get_subtree_expansion(
236 __isl_keep isl_schedule_node *node);
237__isl_give isl_union_pw_multi_aff *isl_schedule_node_get_subtree_contraction(
238 __isl_keep isl_schedule_node *node);
239
240__isl_export
241__isl_give isl_schedule_node *isl_schedule_node_insert_context(
242 __isl_take isl_schedule_node *node, __isl_take isl_set *context);
243__isl_export
244__isl_give isl_schedule_node *isl_schedule_node_insert_partial_schedule(
245 __isl_take isl_schedule_node *node,
246 __isl_take isl_multi_union_pw_aff *schedule);
247__isl_export
248__isl_give isl_schedule_node *isl_schedule_node_insert_filter(
249 __isl_take isl_schedule_node *node, __isl_take isl_union_set *filter);
250__isl_export
251__isl_give isl_schedule_node *isl_schedule_node_insert_guard(
252 __isl_take isl_schedule_node *node, __isl_take isl_set *context);
253__isl_export
254__isl_give isl_schedule_node *isl_schedule_node_insert_mark(
255 __isl_take isl_schedule_node *node, __isl_take isl_id *mark);
256__isl_export
257__isl_give isl_schedule_node *isl_schedule_node_insert_sequence(
258 __isl_take isl_schedule_node *node,
259 __isl_take isl_union_set_list *filters);
260__isl_export
261__isl_give isl_schedule_node *isl_schedule_node_insert_set(
262 __isl_take isl_schedule_node *node,
263 __isl_take isl_union_set_list *filters);
264
265__isl_give isl_schedule_node *isl_schedule_node_cut(
266 __isl_take isl_schedule_node *node);
267__isl_give isl_schedule_node *isl_schedule_node_delete(
268 __isl_take isl_schedule_node *node);
269
270__isl_export
271__isl_give isl_schedule_node *isl_schedule_node_order_before(
272 __isl_take isl_schedule_node *node, __isl_take isl_union_set *filter);
273__isl_export
274__isl_give isl_schedule_node *isl_schedule_node_order_after(
275 __isl_take isl_schedule_node *node, __isl_take isl_union_set *filter);
276
277__isl_export
278__isl_give isl_schedule_node *isl_schedule_node_graft_before(
279 __isl_take isl_schedule_node *node,
280 __isl_take isl_schedule_node *graft);
281__isl_export
282__isl_give isl_schedule_node *isl_schedule_node_graft_after(
283 __isl_take isl_schedule_node *node,
284 __isl_take isl_schedule_node *graft);
285
286__isl_give isl_schedule_node *isl_schedule_node_reset_user(
287 __isl_take isl_schedule_node *node);
288__isl_give isl_schedule_node *isl_schedule_node_align_params(
289 __isl_take isl_schedule_node *node, __isl_take isl_space *space);
290
291__isl_give isl_printer *isl_printer_print_schedule_node(
292 __isl_take isl_printer *p, __isl_keep isl_schedule_node *node);
293void isl_schedule_node_dump(__isl_keep isl_schedule_node *node);
294__isl_give char *isl_schedule_node_to_str(__isl_keep isl_schedule_node *node);
295
296#if defined(__cplusplus)
297}
298#endif
299
300#endif
Note: See TracBrowser for help on using the repository browser.