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

source code of polly/lib/External/isl/include/isl/schedule.h