4 #include <isl/local_space.h>
5 #include <isl/printer.h>
6 #include <isl/set_type.h>
7 #include <isl/aff_type.h>
10 #include <isl/union_set_type.h>
14 #if defined(__cplusplus)
18 __isl_give isl_aff *isl_aff_zero_on_domain(__isl_take isl_local_space *ls);
19 __isl_give isl_aff *isl_aff_var_on_domain(__isl_take isl_local_space *ls,
20 enum isl_dim_type type, unsigned pos);
22 __isl_give isl_aff *isl_aff_copy(__isl_keep isl_aff *aff);
23 void *isl_aff_free(__isl_take isl_aff *aff);
25 isl_ctx *isl_aff_get_ctx(__isl_keep isl_aff *aff);
27 int isl_aff_dim(__isl_keep isl_aff *aff, enum isl_dim_type type);
28 int isl_aff_involves_dims(__isl_keep isl_aff *aff,
29 enum isl_dim_type type, unsigned first, unsigned n);
31 __isl_give isl_space *isl_aff_get_domain_space(__isl_keep isl_aff *aff);
32 __isl_give isl_space *isl_aff_get_space(__isl_keep isl_aff *aff);
33 __isl_give isl_local_space *isl_aff_get_domain_local_space(
34 __isl_keep isl_aff *aff);
35 __isl_give isl_local_space *isl_aff_get_local_space(__isl_keep isl_aff *aff);
37 const char *isl_aff_get_dim_name(__isl_keep isl_aff *aff,
38 enum isl_dim_type type, unsigned pos);
39 int isl_aff_get_constant(__isl_keep isl_aff *aff, isl_int *v);
40 __isl_give isl_val *isl_aff_get_constant_val(__isl_keep isl_aff *aff);
41 int isl_aff_get_coefficient(__isl_keep isl_aff *aff,
42 enum isl_dim_type type, int pos, isl_int *v);
43 __isl_give isl_val *isl_aff_get_coefficient_val(__isl_keep isl_aff *aff,
44 enum isl_dim_type type, int pos);
45 int isl_aff_get_denominator(__isl_keep isl_aff *aff, isl_int *v);
46 __isl_give isl_val *isl_aff_get_denominator_val(__isl_keep isl_aff *aff);
47 __isl_give isl_aff *isl_aff_set_constant(__isl_take isl_aff *aff, isl_int v);
48 __isl_give isl_aff *isl_aff_set_constant_si(__isl_take isl_aff *aff, int v);
49 __isl_give isl_aff *isl_aff_set_constant_val(__isl_take isl_aff *aff,
50 __isl_take isl_val *v);
51 __isl_give isl_aff *isl_aff_set_coefficient(__isl_take isl_aff *aff,
52 enum isl_dim_type type, int pos, isl_int v);
53 __isl_give isl_aff *isl_aff_set_coefficient_si(__isl_take isl_aff *aff,
54 enum isl_dim_type type, int pos, int v);
55 __isl_give isl_aff *isl_aff_set_coefficient_val(__isl_take isl_aff *aff,
56 enum isl_dim_type type, int pos, __isl_take isl_val *v);
57 __isl_give isl_aff *isl_aff_set_denominator(__isl_take isl_aff *aff, isl_int v);
58 __isl_give isl_aff *isl_aff_add_constant(__isl_take isl_aff *aff, isl_int v);
59 __isl_give isl_aff *isl_aff_add_constant_si(__isl_take isl_aff *aff, int v);
60 __isl_give isl_aff *isl_aff_add_constant_val(__isl_take isl_aff *aff,
61 __isl_take isl_val *v);
62 __isl_give isl_aff *isl_aff_add_constant_num(__isl_take isl_aff *aff,
64 __isl_give isl_aff *isl_aff_add_constant_num_si(__isl_take isl_aff *aff, int v);
65 __isl_give isl_aff *isl_aff_add_coefficient(__isl_take isl_aff *aff,
66 enum isl_dim_type type, int pos, isl_int v);
67 __isl_give isl_aff *isl_aff_add_coefficient_si(__isl_take isl_aff *aff,
68 enum isl_dim_type type, int pos, int v);
69 __isl_give isl_aff *isl_aff_add_coefficient_val(__isl_take isl_aff *aff,
70 enum isl_dim_type type, int pos, __isl_take isl_val *v);
72 int isl_aff_is_cst(__isl_keep isl_aff *aff);
74 __isl_give isl_aff *isl_aff_set_dim_name(__isl_take isl_aff *aff,
75 enum isl_dim_type type, unsigned pos, const char *s);
76 __isl_give isl_aff *isl_aff_set_dim_id(__isl_take isl_aff *aff,
77 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
79 int isl_aff_plain_is_equal(__isl_keep isl_aff *aff1, __isl_keep isl_aff *aff2);
80 int isl_aff_plain_is_zero(__isl_keep isl_aff *aff);
82 __isl_give isl_aff *isl_aff_get_div(__isl_keep isl_aff *aff, int pos);
84 __isl_give isl_aff *isl_aff_neg(__isl_take isl_aff *aff);
85 __isl_give isl_aff *isl_aff_ceil(__isl_take isl_aff *aff);
86 __isl_give isl_aff *isl_aff_floor(__isl_take isl_aff *aff);
87 __isl_give isl_aff *isl_aff_mod(__isl_take isl_aff *aff, isl_int mod);
89 __isl_give isl_aff *isl_aff_mul(__isl_take isl_aff *aff1,
90 __isl_take isl_aff *aff2);
91 __isl_give isl_aff *isl_aff_div(__isl_take isl_aff *aff1,
92 __isl_take isl_aff *aff2);
93 __isl_give isl_aff *isl_aff_add(__isl_take isl_aff *aff1,
94 __isl_take isl_aff *aff2);
95 __isl_give isl_aff *isl_aff_sub(__isl_take isl_aff *aff1,
96 __isl_take isl_aff *aff2);
98 __isl_give isl_aff *isl_aff_scale(__isl_take isl_aff *aff, isl_int f);
99 __isl_give isl_aff *isl_aff_scale_down(__isl_take isl_aff *aff, isl_int f);
100 __isl_give isl_aff *isl_aff_scale_down_ui(__isl_take isl_aff *aff, unsigned f);
102 __isl_give isl_aff *isl_aff_insert_dims(__isl_take isl_aff *aff,
103 enum isl_dim_type type, unsigned first, unsigned n);
104 __isl_give isl_aff *isl_aff_add_dims(__isl_take isl_aff *aff,
105 enum isl_dim_type type, unsigned n);
106 __isl_give isl_aff *isl_aff_drop_dims(__isl_take isl_aff *aff,
107 enum isl_dim_type type, unsigned first, unsigned n);
108 __isl_give isl_aff *isl_aff_project_domain_on_params(__isl_take isl_aff *aff);
110 __isl_give isl_aff *isl_aff_align_params(__isl_take isl_aff *aff,
111 __isl_take isl_space *model);
113 __isl_give isl_aff *isl_aff_gist(__isl_take isl_aff *aff,
114 __isl_take isl_set *context);
115 __isl_give isl_aff *isl_aff_gist_params(__isl_take isl_aff *aff,
116 __isl_take isl_set *context);
118 __isl_give isl_aff *isl_aff_pullback_multi_aff(__isl_take isl_aff *aff,
119 __isl_take isl_multi_aff *ma);
121 __isl_give isl_basic_set *isl_aff_zero_basic_set(__isl_take isl_aff *aff);
122 __isl_give isl_basic_set *isl_aff_neg_basic_set(__isl_take isl_aff *aff);
124 __isl_give isl_basic_set *isl_aff_le_basic_set(__isl_take isl_aff *aff1,
125 __isl_take isl_aff *aff2);
126 __isl_give isl_basic_set *isl_aff_ge_basic_set(__isl_take isl_aff *aff1,
127 __isl_take isl_aff *aff2);
129 __isl_give isl_aff *isl_aff_read_from_str(isl_ctx *ctx, const char *str);
130 __isl_give isl_printer *isl_printer_print_aff(__isl_take isl_printer *p,
131 __isl_keep isl_aff *aff);
132 void isl_aff_dump(__isl_keep isl_aff *aff);
134 isl_ctx *isl_pw_aff_get_ctx(__isl_keep isl_pw_aff *pwaff);
135 __isl_give isl_space *isl_pw_aff_get_domain_space(__isl_keep isl_pw_aff *pwaff);
136 __isl_give isl_space *isl_pw_aff_get_space(__isl_keep isl_pw_aff *pwaff);
138 __isl_give isl_pw_aff *isl_pw_aff_from_aff(__isl_take isl_aff *aff);
139 __isl_give isl_pw_aff *isl_pw_aff_empty(__isl_take isl_space *dim);
140 __isl_give isl_pw_aff *isl_pw_aff_alloc(__isl_take isl_set *set,
141 __isl_take isl_aff *aff);
142 __isl_give isl_pw_aff *isl_pw_aff_zero_on_domain(
143 __isl_take isl_local_space *ls);
144 __isl_give isl_pw_aff *isl_pw_aff_var_on_domain(__isl_take isl_local_space *ls,
145 enum isl_dim_type type, unsigned pos);
147 __isl_give isl_pw_aff *isl_set_indicator_function(__isl_take isl_set *set);
149 const char *isl_pw_aff_get_dim_name(__isl_keep isl_pw_aff *pa,
150 enum isl_dim_type type, unsigned pos);
151 int isl_pw_aff_has_dim_id(__isl_keep isl_pw_aff *pa,
152 enum isl_dim_type type, unsigned pos);
153 __isl_give isl_id *isl_pw_aff_get_dim_id(__isl_keep isl_pw_aff *pa,
154 enum isl_dim_type type, unsigned pos);
155 __isl_give isl_pw_aff *isl_pw_aff_set_dim_id(__isl_take isl_pw_aff *pma,
156 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
158 int isl_pw_aff_is_empty(__isl_keep isl_pw_aff *pwaff);
159 int isl_pw_aff_plain_is_equal(__isl_keep isl_pw_aff *pwaff1,
160 __isl_keep isl_pw_aff *pwaff2);
162 __isl_give isl_pw_aff *isl_pw_aff_union_min(__isl_take isl_pw_aff *pwaff1,
163 __isl_take isl_pw_aff *pwaff2);
164 __isl_give isl_pw_aff *isl_pw_aff_union_max(__isl_take isl_pw_aff *pwaff1,
165 __isl_take isl_pw_aff *pwaff2);
166 __isl_give isl_pw_aff *isl_pw_aff_union_add(__isl_take isl_pw_aff *pwaff1,
167 __isl_take isl_pw_aff *pwaff2);
169 __isl_give isl_pw_aff *isl_pw_aff_copy(__isl_keep isl_pw_aff *pwaff);
170 void *isl_pw_aff_free(__isl_take isl_pw_aff *pwaff);
172 unsigned isl_pw_aff_dim(__isl_keep isl_pw_aff *pwaff, enum isl_dim_type type);
173 int isl_pw_aff_involves_dims(__isl_keep isl_pw_aff *pwaff,
174 enum isl_dim_type type, unsigned first, unsigned n);
176 int isl_pw_aff_is_cst(__isl_keep isl_pw_aff *pwaff);
178 __isl_give isl_pw_aff *isl_pw_aff_align_params(__isl_take isl_pw_aff *pwaff,
179 __isl_take isl_space *model);
181 __isl_give isl_id *isl_pw_aff_get_tuple_id(__isl_keep isl_pw_aff *pa,
182 enum isl_dim_type type);
183 __isl_give isl_pw_aff *isl_pw_aff_set_tuple_id(__isl_take isl_pw_aff *pwaff,
184 enum isl_dim_type type, __isl_take isl_id *id);
186 __isl_give isl_set *isl_pw_aff_domain(__isl_take isl_pw_aff *pwaff);
188 __isl_give isl_pw_aff *isl_pw_aff_min(__isl_take isl_pw_aff *pwaff1,
189 __isl_take isl_pw_aff *pwaff2);
190 __isl_give isl_pw_aff *isl_pw_aff_max(__isl_take isl_pw_aff *pwaff1,
191 __isl_take isl_pw_aff *pwaff2);
192 __isl_give isl_pw_aff *isl_pw_aff_mul(__isl_take isl_pw_aff *pwaff1,
193 __isl_take isl_pw_aff *pwaff2);
194 __isl_give isl_pw_aff *isl_pw_aff_div(__isl_take isl_pw_aff *pa1,
195 __isl_take isl_pw_aff *pa2);
196 __isl_give isl_pw_aff *isl_pw_aff_add(__isl_take isl_pw_aff *pwaff1,
197 __isl_take isl_pw_aff *pwaff2);
198 __isl_give isl_pw_aff *isl_pw_aff_sub(__isl_take isl_pw_aff *pwaff1,
199 __isl_take isl_pw_aff *pwaff2);
200 __isl_give isl_pw_aff *isl_pw_aff_neg(__isl_take isl_pw_aff *pwaff);
201 __isl_give isl_pw_aff *isl_pw_aff_ceil(__isl_take isl_pw_aff *pwaff);
202 __isl_give isl_pw_aff *isl_pw_aff_floor(__isl_take isl_pw_aff *pwaff);
203 __isl_give isl_pw_aff *isl_pw_aff_mod(__isl_take isl_pw_aff *pwaff,
205 __isl_give isl_pw_aff *isl_pw_aff_tdiv_q(__isl_take isl_pw_aff *pa1,
206 __isl_take isl_pw_aff *pa2);
207 __isl_give isl_pw_aff *isl_pw_aff_tdiv_r(__isl_take isl_pw_aff *pa1,
208 __isl_take isl_pw_aff *pa2);
210 __isl_give isl_pw_aff *isl_pw_aff_intersect_params(__isl_take isl_pw_aff *pa,
211 __isl_take isl_set *set);
212 __isl_give isl_pw_aff *isl_pw_aff_intersect_domain(__isl_take isl_pw_aff *pa,
213 __isl_take isl_set *set);
215 __isl_give isl_pw_aff *isl_pw_aff_cond(__isl_take isl_pw_aff *cond,
216 __isl_take isl_pw_aff *pwaff_true, __isl_take isl_pw_aff *pwaff_false);
218 __isl_give isl_pw_aff *isl_pw_aff_scale(__isl_take isl_pw_aff *pwaff,
220 __isl_give isl_pw_aff *isl_pw_aff_scale_down(__isl_take isl_pw_aff *pwaff,
223 __isl_give isl_pw_aff *isl_pw_aff_insert_dims(__isl_take isl_pw_aff *pwaff,
224 enum isl_dim_type type, unsigned first, unsigned n);
225 __isl_give isl_pw_aff *isl_pw_aff_add_dims(__isl_take isl_pw_aff *pwaff,
226 enum isl_dim_type type, unsigned n);
227 __isl_give isl_pw_aff *isl_pw_aff_drop_dims(__isl_take isl_pw_aff *pwaff,
228 enum isl_dim_type type, unsigned first, unsigned n);
230 __isl_give isl_pw_aff *isl_pw_aff_coalesce(__isl_take isl_pw_aff *pwqp);
231 __isl_give isl_pw_aff *isl_pw_aff_gist(__isl_take isl_pw_aff *pwaff,
232 __isl_take isl_set *context);
233 __isl_give isl_pw_aff *isl_pw_aff_gist_params(__isl_take isl_pw_aff *pwaff,
234 __isl_take isl_set *context);
236 __isl_give isl_pw_aff *isl_pw_aff_pullback_multi_aff(
237 __isl_take isl_pw_aff *pa, __isl_take isl_multi_aff *ma);
238 __isl_give isl_pw_aff *isl_pw_aff_pullback_pw_multi_aff(
239 __isl_take isl_pw_aff *pa, __isl_take isl_pw_multi_aff *pma);
241 int isl_pw_aff_n_piece(__isl_keep isl_pw_aff *pwaff);
242 int isl_pw_aff_foreach_piece(__isl_keep isl_pw_aff *pwaff,
243 int (*fn)(__isl_take isl_set *set, __isl_take isl_aff *aff,
244 void *user), void *user);
246 __isl_give isl_set *isl_set_from_pw_aff(__isl_take isl_pw_aff *pwaff);
247 __isl_give isl_map *isl_map_from_pw_aff(__isl_take isl_pw_aff *pwaff);
249 __isl_give isl_set *isl_pw_aff_nonneg_set(__isl_take isl_pw_aff *pwaff);
250 __isl_give isl_set *isl_pw_aff_zero_set(__isl_take isl_pw_aff *pwaff);
251 __isl_give isl_set *isl_pw_aff_non_zero_set(__isl_take isl_pw_aff *pwaff);
253 __isl_give isl_set *isl_pw_aff_eq_set(__isl_take isl_pw_aff *pwaff1,
254 __isl_take isl_pw_aff *pwaff2);
255 __isl_give isl_set *isl_pw_aff_ne_set(__isl_take isl_pw_aff *pwaff1,
256 __isl_take isl_pw_aff *pwaff2);
257 __isl_give isl_set *isl_pw_aff_le_set(__isl_take isl_pw_aff *pwaff1,
258 __isl_take isl_pw_aff *pwaff2);
259 __isl_give isl_set *isl_pw_aff_lt_set(__isl_take isl_pw_aff *pwaff1,
260 __isl_take isl_pw_aff *pwaff2);
261 __isl_give isl_set *isl_pw_aff_ge_set(__isl_take isl_pw_aff *pwaff1,
262 __isl_take isl_pw_aff *pwaff2);
263 __isl_give isl_set *isl_pw_aff_gt_set(__isl_take isl_pw_aff *pwaff1,
264 __isl_take isl_pw_aff *pwaff2);
266 __isl_give isl_pw_aff *isl_pw_aff_read_from_str(isl_ctx *ctx, const char *str);
267 __isl_give isl_printer *isl_printer_print_pw_aff(__isl_take isl_printer *p,
268 __isl_keep isl_pw_aff *pwaff);
269 void isl_pw_aff_dump(__isl_keep isl_pw_aff *pwaff);
271 __isl_give isl_pw_aff *isl_pw_aff_list_min(__isl_take isl_pw_aff_list *list);
272 __isl_give isl_pw_aff *isl_pw_aff_list_max(__isl_take isl_pw_aff_list *list);
274 __isl_give isl_set *isl_pw_aff_list_eq_set(__isl_take isl_pw_aff_list *list1,
275 __isl_take isl_pw_aff_list *list2);
276 __isl_give isl_set *isl_pw_aff_list_ne_set(__isl_take isl_pw_aff_list *list1,
277 __isl_take isl_pw_aff_list *list2);
278 __isl_give isl_set *isl_pw_aff_list_le_set(__isl_take isl_pw_aff_list *list1,
279 __isl_take isl_pw_aff_list *list2);
280 __isl_give isl_set *isl_pw_aff_list_lt_set(__isl_take isl_pw_aff_list *list1,
281 __isl_take isl_pw_aff_list *list2);
282 __isl_give isl_set *isl_pw_aff_list_ge_set(__isl_take isl_pw_aff_list *list1,
283 __isl_take isl_pw_aff_list *list2);
284 __isl_give isl_set *isl_pw_aff_list_gt_set(__isl_take isl_pw_aff_list *list1,
285 __isl_take isl_pw_aff_list *list2);
287 ISL_DECLARE_MULTI(aff)
289 __isl_give isl_multi_aff *isl_multi_aff_from_aff(__isl_take isl_aff *aff);
290 __isl_give isl_multi_aff *isl_multi_aff_identity(__isl_take isl_space *space);
292 int isl_multi_aff_plain_is_equal(__isl_keep isl_multi_aff *maff1,
293 __isl_keep isl_multi_aff *maff2);
295 __isl_give isl_multi_aff *isl_multi_aff_add(__isl_take isl_multi_aff *maff1,
296 __isl_take isl_multi_aff *maff2);
297 __isl_give isl_multi_aff *isl_multi_aff_sub(__isl_take isl_multi_aff *ma1,
298 __isl_take isl_multi_aff *ma2);
300 __isl_give isl_multi_aff *isl_multi_aff_scale(__isl_take isl_multi_aff *maff,
302 __isl_give isl_multi_aff *isl_multi_aff_scale_vec(__isl_take isl_multi_aff *ma,
303 __isl_take isl_vec *v);
305 __isl_give isl_multi_aff *isl_multi_aff_product(
306 __isl_take isl_multi_aff *ma1, __isl_take isl_multi_aff *ma2);
308 __isl_give isl_multi_aff *isl_multi_aff_align_params(
309 __isl_take isl_multi_aff *multi, __isl_take isl_space *model);
311 __isl_give isl_multi_aff *isl_multi_aff_gist_params(
312 __isl_take isl_multi_aff *maff, __isl_take isl_set *context);
313 __isl_give isl_multi_aff *isl_multi_aff_gist(__isl_take isl_multi_aff *maff,
314 __isl_take isl_set *context);
316 __isl_give isl_multi_aff *isl_multi_aff_lift(__isl_take isl_multi_aff *maff,
317 __isl_give isl_local_space **ls);
319 __isl_give isl_multi_aff *isl_multi_aff_pullback_multi_aff(
320 __isl_take isl_multi_aff *ma1, __isl_take isl_multi_aff *ma2);
322 __isl_give isl_set *isl_multi_aff_lex_le_set(__isl_take isl_multi_aff *ma1,
323 __isl_take isl_multi_aff *ma2);
324 __isl_give isl_set *isl_multi_aff_lex_ge_set(__isl_take isl_multi_aff *ma1,
325 __isl_take isl_multi_aff *ma2);
327 __isl_give isl_printer *isl_printer_print_multi_aff(__isl_take isl_printer *p,
328 __isl_keep isl_multi_aff *maff);
330 __isl_give isl_multi_aff *isl_multi_aff_read_from_str(isl_ctx *ctx,
332 void isl_multi_aff_dump(__isl_keep isl_multi_aff *maff);
334 ISL_DECLARE_MULTI(pw_aff)
336 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_identity(
337 __isl_take isl_space *space);
338 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_multi_aff(
339 __isl_take isl_multi_aff *ma);
340 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_alloc(__isl_take isl_set *set,
341 __isl_take isl_multi_aff *maff);
342 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_copy(
343 __isl_keep isl_pw_multi_aff *pma);
344 void *isl_pw_multi_aff_free(__isl_take isl_pw_multi_aff *pma);
346 unsigned isl_pw_multi_aff_dim(__isl_keep isl_pw_multi_aff *pma,
347 enum isl_dim_type type);
348 __isl_give isl_pw_aff *isl_pw_multi_aff_get_pw_aff(
349 __isl_keep isl_pw_multi_aff *pma, int pos);
350 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_pw_aff(
351 __isl_take isl_pw_multi_aff *pma, unsigned pos,
352 __isl_take isl_pw_aff *pa);
354 isl_ctx *isl_pw_multi_aff_get_ctx(__isl_keep isl_pw_multi_aff *pma);
355 __isl_give isl_space *isl_pw_multi_aff_get_domain_space(
356 __isl_keep isl_pw_multi_aff *pma);
357 __isl_give isl_space *isl_pw_multi_aff_get_space(
358 __isl_keep isl_pw_multi_aff *pma);
359 int isl_pw_multi_aff_has_tuple_name(__isl_keep isl_pw_multi_aff *pma,
360 enum isl_dim_type type);
361 const char *isl_pw_multi_aff_get_tuple_name(__isl_keep isl_pw_multi_aff *pma,
362 enum isl_dim_type type);
363 __isl_give isl_id *isl_pw_multi_aff_get_tuple_id(
364 __isl_keep isl_pw_multi_aff *pma, enum isl_dim_type type);
365 int isl_pw_multi_aff_has_tuple_id(__isl_keep isl_pw_multi_aff *pma,
366 enum isl_dim_type type);
367 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_tuple_id(
368 __isl_take isl_pw_multi_aff *pma,
369 enum isl_dim_type type, __isl_take isl_id *id);
371 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_drop_dims(
372 __isl_take isl_pw_multi_aff *pma,
373 enum isl_dim_type type, unsigned first, unsigned n);
375 __isl_give isl_set *isl_pw_multi_aff_domain(__isl_take isl_pw_multi_aff *pma);
377 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_empty(__isl_take isl_space *space);
378 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_domain(
379 __isl_take isl_set *set);
381 const char *isl_pw_multi_aff_get_dim_name(__isl_keep isl_pw_multi_aff *pma,
382 enum isl_dim_type type, unsigned pos);
383 __isl_give isl_id *isl_pw_multi_aff_get_dim_id(
384 __isl_keep isl_pw_multi_aff *pma, enum isl_dim_type type,
386 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_dim_id(
387 __isl_take isl_pw_multi_aff *pma,
388 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
390 int isl_pw_multi_aff_plain_is_equal(__isl_keep isl_pw_multi_aff *pma1,
391 __isl_keep isl_pw_multi_aff *pma2);
393 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_add(
394 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
396 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_add(
397 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
398 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_sub(
399 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
401 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_scale_vec(
402 __isl_take isl_pw_multi_aff *pma, __isl_take isl_vec *v);
404 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_lexmin(
405 __isl_take isl_pw_multi_aff *pma1,
406 __isl_take isl_pw_multi_aff *pma2);
407 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_lexmax(
408 __isl_take isl_pw_multi_aff *pma1,
409 __isl_take isl_pw_multi_aff *pma2);
411 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_range_product(
412 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
413 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_flat_range_product(
414 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
415 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_product(
416 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
418 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_params(
419 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
420 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_domain(
421 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
423 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_project_domain_on_params(
424 __isl_take isl_pw_multi_aff *pma);
426 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_align_params(
427 __isl_take isl_pw_multi_aff *pma, __isl_take isl_space *model);
429 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_coalesce(
430 __isl_take isl_pw_multi_aff *pma);
431 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_gist_params(
432 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
433 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_gist(
434 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
436 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_pullback_multi_aff(
437 __isl_take isl_pw_multi_aff *pma, __isl_take isl_multi_aff *ma);
438 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_pullback_pw_multi_aff(
439 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
441 int isl_pw_multi_aff_foreach_piece(__isl_keep isl_pw_multi_aff *pma,
442 int (*fn)(__isl_take isl_set *set, __isl_take isl_multi_aff *maff,
443 void *user), void *user);
445 __isl_give isl_map *isl_map_from_pw_multi_aff(__isl_take isl_pw_multi_aff *pma);
446 __isl_give isl_set *isl_set_from_pw_multi_aff(__isl_take isl_pw_multi_aff *pma);
448 __isl_give isl_printer *isl_printer_print_pw_multi_aff(__isl_take isl_printer *p,
449 __isl_keep isl_pw_multi_aff *pma);
451 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_set(__isl_take isl_set *set);
452 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_map(__isl_take isl_map *map);
454 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_read_from_str(isl_ctx *ctx,
456 void isl_pw_multi_aff_dump(__isl_keep isl_pw_multi_aff *pma);
459 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_empty(
460 __isl_take isl_space *space);
461 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_domain(
462 __isl_take isl_union_set *uset);
463 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_copy(
464 __isl_keep isl_union_pw_multi_aff *upma);
465 void *isl_union_pw_multi_aff_free(__isl_take isl_union_pw_multi_aff *upma);
467 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_add_pw_multi_aff(
468 __isl_take isl_union_pw_multi_aff *upma,
469 __isl_take isl_pw_multi_aff *pma);
471 isl_ctx *isl_union_pw_multi_aff_get_ctx(
472 __isl_keep isl_union_pw_multi_aff *upma);
473 __isl_give isl_space *isl_union_pw_multi_aff_get_space(
474 __isl_keep isl_union_pw_multi_aff *upma);
476 int isl_union_pw_multi_aff_foreach_pw_multi_aff(
477 __isl_keep isl_union_pw_multi_aff *upma,
478 int (*fn)(__isl_take isl_pw_multi_aff *pma, void *user), void *user);
480 __isl_give isl_union_set *isl_union_pw_multi_aff_domain(
481 __isl_take isl_union_pw_multi_aff *upma);
483 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_add(
484 __isl_take isl_union_pw_multi_aff *upma1,
485 __isl_take isl_union_pw_multi_aff *upma2);
486 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_sub(
487 __isl_take isl_union_pw_multi_aff *upma1,
488 __isl_take isl_union_pw_multi_aff *upma2);
490 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_scale_vec(
491 __isl_take isl_union_pw_multi_aff *upma, __isl_take isl_vec *v);
493 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_flat_range_product(
494 __isl_take isl_union_pw_multi_aff *upma1,
495 __isl_take isl_union_pw_multi_aff *upma2);
497 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_intersect_domain(
498 __isl_take isl_union_pw_multi_aff *upma,
499 __isl_take isl_union_set *uset);
501 __isl_give isl_union_map *isl_union_map_from_union_pw_multi_aff(
502 __isl_take isl_union_pw_multi_aff *upma);
504 __isl_give isl_printer *isl_printer_print_union_pw_multi_aff(
505 __isl_take isl_printer *p, __isl_keep isl_union_pw_multi_aff *upma);
507 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_union_set(
508 __isl_take isl_union_set *uset);
509 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_union_map(
510 __isl_take isl_union_map *umap);
512 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_read_from_str(
513 isl_ctx *ctx, const char *str);
514 void isl_union_pw_multi_aff_dump(__isl_keep isl_union_pw_multi_aff *upma);
515 __isl_give char *isl_union_pw_multi_aff_to_str(
516 __isl_keep isl_union_pw_multi_aff *upma);
518 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_identity(
519 __isl_take isl_space *space);
520 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_from_pw_aff(
521 __isl_take isl_pw_aff *pa);
523 __isl_give isl_printer *isl_printer_print_multi_pw_aff(
524 __isl_take isl_printer *p, __isl_keep isl_multi_pw_aff *mpa);
525 void isl_multi_pw_aff_dump(__isl_keep isl_multi_pw_aff *mpa);
527 #if defined(__cplusplus)