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>
12 #if defined(__cplusplus)
16 __isl_give isl_aff *isl_aff_zero_on_domain(__isl_take isl_local_space *ls);
18 __isl_give isl_aff *isl_aff_copy(__isl_keep isl_aff *aff);
19 void *isl_aff_free(__isl_take isl_aff *aff);
21 isl_ctx *isl_aff_get_ctx(__isl_keep isl_aff *aff);
23 int isl_aff_dim(__isl_keep isl_aff *aff, enum isl_dim_type type);
24 int isl_aff_involves_dims(__isl_keep isl_aff *aff,
25 enum isl_dim_type type, unsigned first, unsigned n);
27 __isl_give isl_space *isl_aff_get_domain_space(__isl_keep isl_aff *aff);
28 __isl_give isl_space *isl_aff_get_space(__isl_keep isl_aff *aff);
29 __isl_give isl_local_space *isl_aff_get_domain_local_space(
30 __isl_keep isl_aff *aff);
31 __isl_give isl_local_space *isl_aff_get_local_space(__isl_keep isl_aff *aff);
33 const char *isl_aff_get_dim_name(__isl_keep isl_aff *aff,
34 enum isl_dim_type type, unsigned pos);
35 int isl_aff_get_constant(__isl_keep isl_aff *aff, isl_int *v);
36 int isl_aff_get_coefficient(__isl_keep isl_aff *aff,
37 enum isl_dim_type type, int pos, isl_int *v);
38 int isl_aff_get_denominator(__isl_keep isl_aff *aff, isl_int *v);
39 __isl_give isl_aff *isl_aff_set_constant(__isl_take isl_aff *aff, isl_int v);
40 __isl_give isl_aff *isl_aff_set_constant_si(__isl_take isl_aff *aff, int v);
41 __isl_give isl_aff *isl_aff_set_coefficient(__isl_take isl_aff *aff,
42 enum isl_dim_type type, int pos, isl_int v);
43 __isl_give isl_aff *isl_aff_set_coefficient_si(__isl_take isl_aff *aff,
44 enum isl_dim_type type, int pos, int v);
45 __isl_give isl_aff *isl_aff_set_denominator(__isl_take isl_aff *aff, isl_int v);
46 __isl_give isl_aff *isl_aff_add_constant(__isl_take isl_aff *aff, isl_int v);
47 __isl_give isl_aff *isl_aff_add_constant_si(__isl_take isl_aff *aff, int v);
48 __isl_give isl_aff *isl_aff_add_constant_num(__isl_take isl_aff *aff,
50 __isl_give isl_aff *isl_aff_add_constant_num_si(__isl_take isl_aff *aff, int v);
51 __isl_give isl_aff *isl_aff_add_coefficient(__isl_take isl_aff *aff,
52 enum isl_dim_type type, int pos, isl_int v);
53 __isl_give isl_aff *isl_aff_add_coefficient_si(__isl_take isl_aff *aff,
54 enum isl_dim_type type, int pos, int v);
56 int isl_aff_is_cst(__isl_keep isl_aff *aff);
58 __isl_give isl_aff *isl_aff_set_dim_name(__isl_take isl_aff *aff,
59 enum isl_dim_type type, unsigned pos, const char *s);
60 __isl_give isl_aff *isl_aff_set_dim_id(__isl_take isl_aff *aff,
61 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
63 int isl_aff_plain_is_equal(__isl_keep isl_aff *aff1, __isl_keep isl_aff *aff2);
64 int isl_aff_plain_is_zero(__isl_keep isl_aff *aff);
66 __isl_give isl_aff *isl_aff_get_div(__isl_keep isl_aff *aff, int pos);
68 __isl_give isl_aff *isl_aff_neg(__isl_take isl_aff *aff);
69 __isl_give isl_aff *isl_aff_ceil(__isl_take isl_aff *aff);
70 __isl_give isl_aff *isl_aff_floor(__isl_take isl_aff *aff);
71 __isl_give isl_aff *isl_aff_mod(__isl_take isl_aff *aff, isl_int mod);
73 __isl_give isl_aff *isl_aff_mul(__isl_take isl_aff *aff1,
74 __isl_take isl_aff *aff2);
75 __isl_give isl_aff *isl_aff_div(__isl_take isl_aff *aff1,
76 __isl_take isl_aff *aff2);
77 __isl_give isl_aff *isl_aff_add(__isl_take isl_aff *aff1,
78 __isl_take isl_aff *aff2);
79 __isl_give isl_aff *isl_aff_sub(__isl_take isl_aff *aff1,
80 __isl_take isl_aff *aff2);
82 __isl_give isl_aff *isl_aff_scale(__isl_take isl_aff *aff, isl_int f);
83 __isl_give isl_aff *isl_aff_scale_down(__isl_take isl_aff *aff, isl_int f);
84 __isl_give isl_aff *isl_aff_scale_down_ui(__isl_take isl_aff *aff, unsigned f);
86 __isl_give isl_aff *isl_aff_insert_dims(__isl_take isl_aff *aff,
87 enum isl_dim_type type, unsigned first, unsigned n);
88 __isl_give isl_aff *isl_aff_add_dims(__isl_take isl_aff *aff,
89 enum isl_dim_type type, unsigned n);
90 __isl_give isl_aff *isl_aff_drop_dims(__isl_take isl_aff *aff,
91 enum isl_dim_type type, unsigned first, unsigned n);
92 __isl_give isl_aff *isl_aff_project_domain_on_params(__isl_take isl_aff *aff);
94 __isl_give isl_aff *isl_aff_align_params(__isl_take isl_aff *aff,
95 __isl_take isl_space *model);
97 __isl_give isl_aff *isl_aff_gist(__isl_take isl_aff *aff,
98 __isl_take isl_set *context);
99 __isl_give isl_aff *isl_aff_gist_params(__isl_take isl_aff *aff,
100 __isl_take isl_set *context);
102 __isl_give isl_basic_set *isl_aff_zero_basic_set(__isl_take isl_aff *aff);
103 __isl_give isl_basic_set *isl_aff_neg_basic_set(__isl_take isl_aff *aff);
105 __isl_give isl_basic_set *isl_aff_le_basic_set(__isl_take isl_aff *aff1,
106 __isl_take isl_aff *aff2);
107 __isl_give isl_basic_set *isl_aff_ge_basic_set(__isl_take isl_aff *aff1,
108 __isl_take isl_aff *aff2);
110 __isl_give isl_aff *isl_aff_read_from_str(isl_ctx *ctx, const char *str);
111 __isl_give isl_printer *isl_printer_print_aff(__isl_take isl_printer *p,
112 __isl_keep isl_aff *aff);
113 void isl_aff_dump(__isl_keep isl_aff *aff);
115 isl_ctx *isl_pw_aff_get_ctx(__isl_keep isl_pw_aff *pwaff);
116 __isl_give isl_space *isl_pw_aff_get_domain_space(__isl_keep isl_pw_aff *pwaff);
117 __isl_give isl_space *isl_pw_aff_get_space(__isl_keep isl_pw_aff *pwaff);
119 __isl_give isl_pw_aff *isl_pw_aff_from_aff(__isl_take isl_aff *aff);
120 __isl_give isl_pw_aff *isl_pw_aff_empty(__isl_take isl_space *dim);
121 __isl_give isl_pw_aff *isl_pw_aff_alloc(__isl_take isl_set *set,
122 __isl_take isl_aff *aff);
124 __isl_give isl_pw_aff *isl_set_indicator_function(__isl_take isl_set *set);
126 const char *isl_pw_aff_get_dim_name(__isl_keep isl_pw_aff *pa,
127 enum isl_dim_type type, unsigned pos);
128 int isl_pw_aff_has_dim_id(__isl_keep isl_pw_aff *pa,
129 enum isl_dim_type type, unsigned pos);
130 __isl_give isl_id *isl_pw_aff_get_dim_id(__isl_keep isl_pw_aff *pa,
131 enum isl_dim_type type, unsigned pos);
132 __isl_give isl_pw_aff *isl_pw_aff_set_dim_id(__isl_take isl_pw_aff *pma,
133 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
135 int isl_pw_aff_is_empty(__isl_keep isl_pw_aff *pwaff);
136 int isl_pw_aff_plain_is_equal(__isl_keep isl_pw_aff *pwaff1,
137 __isl_keep isl_pw_aff *pwaff2);
139 __isl_give isl_pw_aff *isl_pw_aff_union_min(__isl_take isl_pw_aff *pwaff1,
140 __isl_take isl_pw_aff *pwaff2);
141 __isl_give isl_pw_aff *isl_pw_aff_union_max(__isl_take isl_pw_aff *pwaff1,
142 __isl_take isl_pw_aff *pwaff2);
143 __isl_give isl_pw_aff *isl_pw_aff_union_add(__isl_take isl_pw_aff *pwaff1,
144 __isl_take isl_pw_aff *pwaff2);
146 __isl_give isl_pw_aff *isl_pw_aff_copy(__isl_keep isl_pw_aff *pwaff);
147 void *isl_pw_aff_free(__isl_take isl_pw_aff *pwaff);
149 unsigned isl_pw_aff_dim(__isl_keep isl_pw_aff *pwaff, enum isl_dim_type type);
150 int isl_pw_aff_involves_dims(__isl_keep isl_pw_aff *pwaff,
151 enum isl_dim_type type, unsigned first, unsigned n);
153 int isl_pw_aff_is_cst(__isl_keep isl_pw_aff *pwaff);
155 __isl_give isl_pw_aff *isl_pw_aff_align_params(__isl_take isl_pw_aff *pwaff,
156 __isl_take isl_space *model);
158 __isl_give isl_id *isl_pw_aff_get_tuple_id(__isl_keep isl_pw_aff *pa,
159 enum isl_dim_type type);
160 __isl_give isl_pw_aff *isl_pw_aff_set_tuple_id(__isl_take isl_pw_aff *pwaff,
161 enum isl_dim_type type, __isl_take isl_id *id);
163 __isl_give isl_set *isl_pw_aff_domain(__isl_take isl_pw_aff *pwaff);
165 __isl_give isl_pw_aff *isl_pw_aff_min(__isl_take isl_pw_aff *pwaff1,
166 __isl_take isl_pw_aff *pwaff2);
167 __isl_give isl_pw_aff *isl_pw_aff_max(__isl_take isl_pw_aff *pwaff1,
168 __isl_take isl_pw_aff *pwaff2);
169 __isl_give isl_pw_aff *isl_pw_aff_mul(__isl_take isl_pw_aff *pwaff1,
170 __isl_take isl_pw_aff *pwaff2);
171 __isl_give isl_pw_aff *isl_pw_aff_div(__isl_take isl_pw_aff *pa1,
172 __isl_take isl_pw_aff *pa2);
173 __isl_give isl_pw_aff *isl_pw_aff_add(__isl_take isl_pw_aff *pwaff1,
174 __isl_take isl_pw_aff *pwaff2);
175 __isl_give isl_pw_aff *isl_pw_aff_sub(__isl_take isl_pw_aff *pwaff1,
176 __isl_take isl_pw_aff *pwaff2);
177 __isl_give isl_pw_aff *isl_pw_aff_neg(__isl_take isl_pw_aff *pwaff);
178 __isl_give isl_pw_aff *isl_pw_aff_ceil(__isl_take isl_pw_aff *pwaff);
179 __isl_give isl_pw_aff *isl_pw_aff_floor(__isl_take isl_pw_aff *pwaff);
180 __isl_give isl_pw_aff *isl_pw_aff_mod(__isl_take isl_pw_aff *pwaff,
182 __isl_give isl_pw_aff *isl_pw_aff_tdiv_q(__isl_take isl_pw_aff *pa1,
183 __isl_take isl_pw_aff *pa2);
184 __isl_give isl_pw_aff *isl_pw_aff_tdiv_r(__isl_take isl_pw_aff *pa1,
185 __isl_take isl_pw_aff *pa2);
187 __isl_give isl_pw_aff *isl_pw_aff_intersect_params(__isl_take isl_pw_aff *pa,
188 __isl_take isl_set *set);
189 __isl_give isl_pw_aff *isl_pw_aff_intersect_domain(__isl_take isl_pw_aff *pa,
190 __isl_take isl_set *set);
192 __isl_give isl_pw_aff *isl_pw_aff_cond(__isl_take isl_pw_aff *cond,
193 __isl_take isl_pw_aff *pwaff_true, __isl_take isl_pw_aff *pwaff_false);
195 __isl_give isl_pw_aff *isl_pw_aff_scale(__isl_take isl_pw_aff *pwaff,
197 __isl_give isl_pw_aff *isl_pw_aff_scale_down(__isl_take isl_pw_aff *pwaff,
200 __isl_give isl_pw_aff *isl_pw_aff_insert_dims(__isl_take isl_pw_aff *pwaff,
201 enum isl_dim_type type, unsigned first, unsigned n);
202 __isl_give isl_pw_aff *isl_pw_aff_add_dims(__isl_take isl_pw_aff *pwaff,
203 enum isl_dim_type type, unsigned n);
204 __isl_give isl_pw_aff *isl_pw_aff_drop_dims(__isl_take isl_pw_aff *pwaff,
205 enum isl_dim_type type, unsigned first, unsigned n);
207 __isl_give isl_pw_aff *isl_pw_aff_coalesce(__isl_take isl_pw_aff *pwqp);
208 __isl_give isl_pw_aff *isl_pw_aff_gist(__isl_take isl_pw_aff *pwaff,
209 __isl_take isl_set *context);
210 __isl_give isl_pw_aff *isl_pw_aff_gist_params(__isl_take isl_pw_aff *pwaff,
211 __isl_take isl_set *context);
213 int isl_pw_aff_n_piece(__isl_keep isl_pw_aff *pwaff);
214 int isl_pw_aff_foreach_piece(__isl_keep isl_pw_aff *pwaff,
215 int (*fn)(__isl_take isl_set *set, __isl_take isl_aff *aff,
216 void *user), void *user);
218 __isl_give isl_set *isl_set_from_pw_aff(__isl_take isl_pw_aff *pwaff);
219 __isl_give isl_map *isl_map_from_pw_aff(__isl_take isl_pw_aff *pwaff);
221 __isl_give isl_set *isl_pw_aff_nonneg_set(__isl_take isl_pw_aff *pwaff);
222 __isl_give isl_set *isl_pw_aff_zero_set(__isl_take isl_pw_aff *pwaff);
223 __isl_give isl_set *isl_pw_aff_non_zero_set(__isl_take isl_pw_aff *pwaff);
225 __isl_give isl_set *isl_pw_aff_eq_set(__isl_take isl_pw_aff *pwaff1,
226 __isl_take isl_pw_aff *pwaff2);
227 __isl_give isl_set *isl_pw_aff_ne_set(__isl_take isl_pw_aff *pwaff1,
228 __isl_take isl_pw_aff *pwaff2);
229 __isl_give isl_set *isl_pw_aff_le_set(__isl_take isl_pw_aff *pwaff1,
230 __isl_take isl_pw_aff *pwaff2);
231 __isl_give isl_set *isl_pw_aff_lt_set(__isl_take isl_pw_aff *pwaff1,
232 __isl_take isl_pw_aff *pwaff2);
233 __isl_give isl_set *isl_pw_aff_ge_set(__isl_take isl_pw_aff *pwaff1,
234 __isl_take isl_pw_aff *pwaff2);
235 __isl_give isl_set *isl_pw_aff_gt_set(__isl_take isl_pw_aff *pwaff1,
236 __isl_take isl_pw_aff *pwaff2);
238 __isl_give isl_pw_aff *isl_pw_aff_read_from_str(isl_ctx *ctx, const char *str);
239 __isl_give isl_printer *isl_printer_print_pw_aff(__isl_take isl_printer *p,
240 __isl_keep isl_pw_aff *pwaff);
241 void isl_pw_aff_dump(__isl_keep isl_pw_aff *pwaff);
243 __isl_give isl_pw_aff *isl_pw_aff_list_min(__isl_take isl_pw_aff_list *list);
244 __isl_give isl_pw_aff *isl_pw_aff_list_max(__isl_take isl_pw_aff_list *list);
246 __isl_give isl_set *isl_pw_aff_list_eq_set(__isl_take isl_pw_aff_list *list1,
247 __isl_take isl_pw_aff_list *list2);
248 __isl_give isl_set *isl_pw_aff_list_ne_set(__isl_take isl_pw_aff_list *list1,
249 __isl_take isl_pw_aff_list *list2);
250 __isl_give isl_set *isl_pw_aff_list_le_set(__isl_take isl_pw_aff_list *list1,
251 __isl_take isl_pw_aff_list *list2);
252 __isl_give isl_set *isl_pw_aff_list_lt_set(__isl_take isl_pw_aff_list *list1,
253 __isl_take isl_pw_aff_list *list2);
254 __isl_give isl_set *isl_pw_aff_list_ge_set(__isl_take isl_pw_aff_list *list1,
255 __isl_take isl_pw_aff_list *list2);
256 __isl_give isl_set *isl_pw_aff_list_gt_set(__isl_take isl_pw_aff_list *list1,
257 __isl_take isl_pw_aff_list *list2);
259 __isl_give isl_multi_aff *isl_multi_aff_zero(__isl_take isl_space *space);
260 __isl_give isl_multi_aff *isl_multi_aff_identity(__isl_take isl_space *space);
262 isl_ctx *isl_multi_aff_get_ctx(__isl_keep isl_multi_aff *maff);
263 __isl_give isl_space *isl_multi_aff_get_space(__isl_keep isl_multi_aff *maff);
264 __isl_give isl_space *isl_multi_aff_get_domain_space(
265 __isl_keep isl_multi_aff *maff);
266 __isl_give isl_multi_aff *isl_multi_aff_set_tuple_id(
267 __isl_take isl_multi_aff *maff,
268 enum isl_dim_type type, __isl_take isl_id *id);
269 __isl_give isl_multi_aff *isl_multi_aff_copy(__isl_keep isl_multi_aff *maff);
270 void *isl_multi_aff_free(__isl_take isl_multi_aff *maff);
272 unsigned isl_multi_aff_dim(__isl_keep isl_multi_aff *maff,
273 enum isl_dim_type type);
274 __isl_give isl_aff *isl_multi_aff_get_aff(__isl_keep isl_multi_aff *multi,
277 __isl_give isl_multi_aff *isl_multi_aff_drop_dims(
278 __isl_take isl_multi_aff *maff,
279 enum isl_dim_type type, unsigned first, unsigned n);
281 __isl_give isl_multi_aff *isl_multi_aff_set_dim_name(
282 __isl_take isl_multi_aff *maff,
283 enum isl_dim_type type, unsigned pos, const char *s);
285 int isl_multi_aff_plain_is_equal(__isl_keep isl_multi_aff *maff1,
286 __isl_keep isl_multi_aff *maff2);
288 __isl_give isl_multi_aff *isl_multi_aff_add(__isl_take isl_multi_aff *maff1,
289 __isl_take isl_multi_aff *maff2);
291 __isl_give isl_multi_aff *isl_multi_aff_scale(__isl_take isl_multi_aff *maff,
294 __isl_give isl_multi_aff *isl_multi_aff_flat_range_product(
295 __isl_take isl_multi_aff *ma1, __isl_take isl_multi_aff *ma2);
296 __isl_give isl_multi_aff *isl_multi_aff_product(
297 __isl_take isl_multi_aff *ma1, __isl_take isl_multi_aff *ma2);
299 __isl_give isl_multi_aff *isl_multi_aff_align_params(
300 __isl_take isl_multi_aff *multi, __isl_take isl_space *model);
302 __isl_give isl_multi_aff *isl_multi_aff_gist_params(
303 __isl_take isl_multi_aff *maff, __isl_take isl_set *context);
304 __isl_give isl_multi_aff *isl_multi_aff_gist(__isl_take isl_multi_aff *maff,
305 __isl_take isl_set *context);
307 __isl_give isl_multi_aff *isl_multi_aff_lift(__isl_take isl_multi_aff *maff,
308 __isl_give isl_local_space **ls);
310 __isl_give isl_set *isl_multi_aff_lex_le_set(__isl_take isl_multi_aff *ma1,
311 __isl_take isl_multi_aff *ma2);
312 __isl_give isl_set *isl_multi_aff_lex_ge_set(__isl_take isl_multi_aff *ma1,
313 __isl_take isl_multi_aff *ma2);
315 __isl_give isl_printer *isl_printer_print_multi_aff(__isl_take isl_printer *p,
316 __isl_keep isl_multi_aff *maff);
318 __isl_give isl_multi_aff *isl_multi_aff_read_from_str(isl_ctx *ctx,
320 void isl_multi_aff_dump(__isl_keep isl_multi_aff *maff);
322 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_identity(
323 __isl_take isl_space *space);
324 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_multi_aff(
325 __isl_take isl_multi_aff *ma);
326 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_alloc(__isl_take isl_set *set,
327 __isl_take isl_multi_aff *maff);
328 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_copy(
329 __isl_keep isl_pw_multi_aff *pma);
330 void *isl_pw_multi_aff_free(__isl_take isl_pw_multi_aff *pma);
332 unsigned isl_pw_multi_aff_dim(__isl_keep isl_pw_multi_aff *pma,
333 enum isl_dim_type type);
334 __isl_give isl_pw_aff *isl_pw_multi_aff_get_pw_aff(
335 __isl_keep isl_pw_multi_aff *pma, int pos);
336 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_pw_aff(
337 __isl_take isl_pw_multi_aff *pma, unsigned pos,
338 __isl_take isl_pw_aff *pa);
340 isl_ctx *isl_pw_multi_aff_get_ctx(__isl_keep isl_pw_multi_aff *pma);
341 __isl_give isl_space *isl_pw_multi_aff_get_domain_space(
342 __isl_keep isl_pw_multi_aff *pma);
343 __isl_give isl_space *isl_pw_multi_aff_get_space(
344 __isl_keep isl_pw_multi_aff *pma);
345 int isl_pw_multi_aff_has_tuple_name(__isl_keep isl_pw_multi_aff *pma,
346 enum isl_dim_type type);
347 const char *isl_pw_multi_aff_get_tuple_name(__isl_keep isl_pw_multi_aff *pma,
348 enum isl_dim_type type);
349 __isl_give isl_id *isl_pw_multi_aff_get_tuple_id(
350 __isl_keep isl_pw_multi_aff *pma, enum isl_dim_type type);
351 int isl_pw_multi_aff_has_tuple_id(__isl_keep isl_pw_multi_aff *pma,
352 enum isl_dim_type type);
353 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_tuple_id(
354 __isl_take isl_pw_multi_aff *pma,
355 enum isl_dim_type type, __isl_take isl_id *id);
357 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_drop_dims(
358 __isl_take isl_pw_multi_aff *pma,
359 enum isl_dim_type type, unsigned first, unsigned n);
361 __isl_give isl_set *isl_pw_multi_aff_domain(__isl_take isl_pw_multi_aff *pma);
363 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_empty(__isl_take isl_space *space);
364 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_domain(
365 __isl_take isl_set *set);
367 const char *isl_pw_multi_aff_get_dim_name(__isl_keep isl_pw_multi_aff *pma,
368 enum isl_dim_type type, unsigned pos);
369 __isl_give isl_id *isl_pw_multi_aff_get_dim_id(
370 __isl_keep isl_pw_multi_aff *pma, enum isl_dim_type type,
372 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_dim_id(
373 __isl_take isl_pw_multi_aff *pma,
374 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
376 int isl_pw_multi_aff_plain_is_equal(__isl_keep isl_pw_multi_aff *pma1,
377 __isl_keep isl_pw_multi_aff *pma2);
379 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_add(
380 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
382 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_add(
383 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
385 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_lexmin(
386 __isl_take isl_pw_multi_aff *pma1,
387 __isl_take isl_pw_multi_aff *pma2);
388 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_lexmax(
389 __isl_take isl_pw_multi_aff *pma1,
390 __isl_take isl_pw_multi_aff *pma2);
392 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_flat_range_product(
393 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
394 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_product(
395 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
397 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_params(
398 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
399 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_domain(
400 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
402 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_project_domain_on_params(
403 __isl_take isl_pw_multi_aff *pma);
405 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_align_params(
406 __isl_take isl_pw_multi_aff *pma, __isl_take isl_space *model);
408 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_coalesce(
409 __isl_take isl_pw_multi_aff *pma);
410 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_gist_params(
411 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
412 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_gist(
413 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
415 int isl_pw_multi_aff_foreach_piece(__isl_keep isl_pw_multi_aff *pma,
416 int (*fn)(__isl_take isl_set *set, __isl_take isl_multi_aff *maff,
417 void *user), void *user);
419 __isl_give isl_map *isl_map_from_pw_multi_aff(__isl_take isl_pw_multi_aff *pma);
420 __isl_give isl_set *isl_set_from_pw_multi_aff(__isl_take isl_pw_multi_aff *pma);
422 __isl_give isl_printer *isl_printer_print_pw_multi_aff(__isl_take isl_printer *p,
423 __isl_keep isl_pw_multi_aff *pma);
425 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_set(__isl_take isl_set *set);
426 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_map(__isl_take isl_map *map);
428 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_read_from_str(isl_ctx *ctx,
430 void isl_pw_multi_aff_dump(__isl_keep isl_pw_multi_aff *pma);
433 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_empty(
434 __isl_take isl_space *space);
435 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_domain(
436 __isl_take isl_union_set *uset);
437 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_copy(
438 __isl_keep isl_union_pw_multi_aff *upma);
439 void *isl_union_pw_multi_aff_free(__isl_take isl_union_pw_multi_aff *upma);
441 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_add_pw_multi_aff(
442 __isl_take isl_union_pw_multi_aff *upma,
443 __isl_take isl_pw_multi_aff *pma);
445 isl_ctx *isl_union_pw_multi_aff_get_ctx(
446 __isl_keep isl_union_pw_multi_aff *upma);
447 __isl_give isl_space *isl_union_pw_multi_aff_get_space(
448 __isl_keep isl_union_pw_multi_aff *upma);
450 int isl_union_pw_multi_aff_foreach_pw_multi_aff(
451 __isl_keep isl_union_pw_multi_aff *upma,
452 int (*fn)(__isl_take isl_pw_multi_aff *pma, void *user), void *user);
454 __isl_give isl_union_set *isl_union_pw_multi_aff_domain(
455 __isl_take isl_union_pw_multi_aff *upma);
457 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_add(
458 __isl_take isl_union_pw_multi_aff *upma1,
459 __isl_take isl_union_pw_multi_aff *upma2);
461 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_flat_range_product(
462 __isl_take isl_union_pw_multi_aff *upma1,
463 __isl_take isl_union_pw_multi_aff *upma2);
465 __isl_give isl_union_map *isl_union_map_from_union_pw_multi_aff(
466 __isl_take isl_union_pw_multi_aff *upma);
468 __isl_give isl_printer *isl_printer_print_union_pw_multi_aff(
469 __isl_take isl_printer *p, __isl_keep isl_union_pw_multi_aff *upma);
471 #if defined(__cplusplus)