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);
17 __isl_give isl_aff *isl_aff_var_on_domain(__isl_take isl_local_space *ls,
18 enum isl_dim_type type, unsigned pos);
20 __isl_give isl_aff *isl_aff_copy(__isl_keep isl_aff *aff);
21 void *isl_aff_free(__isl_take isl_aff *aff);
23 isl_ctx *isl_aff_get_ctx(__isl_keep isl_aff *aff);
25 int isl_aff_dim(__isl_keep isl_aff *aff, enum isl_dim_type type);
26 int isl_aff_involves_dims(__isl_keep isl_aff *aff,
27 enum isl_dim_type type, unsigned first, unsigned n);
29 __isl_give isl_space *isl_aff_get_domain_space(__isl_keep isl_aff *aff);
30 __isl_give isl_space *isl_aff_get_space(__isl_keep isl_aff *aff);
31 __isl_give isl_local_space *isl_aff_get_domain_local_space(
32 __isl_keep isl_aff *aff);
33 __isl_give isl_local_space *isl_aff_get_local_space(__isl_keep isl_aff *aff);
35 const char *isl_aff_get_dim_name(__isl_keep isl_aff *aff,
36 enum isl_dim_type type, unsigned pos);
37 int isl_aff_get_constant(__isl_keep isl_aff *aff, isl_int *v);
38 int isl_aff_get_coefficient(__isl_keep isl_aff *aff,
39 enum isl_dim_type type, int pos, isl_int *v);
40 int isl_aff_get_denominator(__isl_keep isl_aff *aff, isl_int *v);
41 __isl_give isl_aff *isl_aff_set_constant(__isl_take isl_aff *aff, isl_int v);
42 __isl_give isl_aff *isl_aff_set_constant_si(__isl_take isl_aff *aff, int v);
43 __isl_give isl_aff *isl_aff_set_coefficient(__isl_take isl_aff *aff,
44 enum isl_dim_type type, int pos, isl_int v);
45 __isl_give isl_aff *isl_aff_set_coefficient_si(__isl_take isl_aff *aff,
46 enum isl_dim_type type, int pos, int v);
47 __isl_give isl_aff *isl_aff_set_denominator(__isl_take isl_aff *aff, isl_int v);
48 __isl_give isl_aff *isl_aff_add_constant(__isl_take isl_aff *aff, isl_int v);
49 __isl_give isl_aff *isl_aff_add_constant_si(__isl_take isl_aff *aff, int v);
50 __isl_give isl_aff *isl_aff_add_constant_num(__isl_take isl_aff *aff,
52 __isl_give isl_aff *isl_aff_add_constant_num_si(__isl_take isl_aff *aff, int v);
53 __isl_give isl_aff *isl_aff_add_coefficient(__isl_take isl_aff *aff,
54 enum isl_dim_type type, int pos, isl_int v);
55 __isl_give isl_aff *isl_aff_add_coefficient_si(__isl_take isl_aff *aff,
56 enum isl_dim_type type, int pos, int v);
58 int isl_aff_is_cst(__isl_keep isl_aff *aff);
60 __isl_give isl_aff *isl_aff_set_dim_name(__isl_take isl_aff *aff,
61 enum isl_dim_type type, unsigned pos, const char *s);
62 __isl_give isl_aff *isl_aff_set_dim_id(__isl_take isl_aff *aff,
63 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
65 int isl_aff_plain_is_equal(__isl_keep isl_aff *aff1, __isl_keep isl_aff *aff2);
66 int isl_aff_plain_is_zero(__isl_keep isl_aff *aff);
68 __isl_give isl_aff *isl_aff_get_div(__isl_keep isl_aff *aff, int pos);
70 __isl_give isl_aff *isl_aff_neg(__isl_take isl_aff *aff);
71 __isl_give isl_aff *isl_aff_ceil(__isl_take isl_aff *aff);
72 __isl_give isl_aff *isl_aff_floor(__isl_take isl_aff *aff);
73 __isl_give isl_aff *isl_aff_mod(__isl_take isl_aff *aff, isl_int mod);
75 __isl_give isl_aff *isl_aff_mul(__isl_take isl_aff *aff1,
76 __isl_take isl_aff *aff2);
77 __isl_give isl_aff *isl_aff_div(__isl_take isl_aff *aff1,
78 __isl_take isl_aff *aff2);
79 __isl_give isl_aff *isl_aff_add(__isl_take isl_aff *aff1,
80 __isl_take isl_aff *aff2);
81 __isl_give isl_aff *isl_aff_sub(__isl_take isl_aff *aff1,
82 __isl_take isl_aff *aff2);
84 __isl_give isl_aff *isl_aff_scale(__isl_take isl_aff *aff, isl_int f);
85 __isl_give isl_aff *isl_aff_scale_down(__isl_take isl_aff *aff, isl_int f);
86 __isl_give isl_aff *isl_aff_scale_down_ui(__isl_take isl_aff *aff, unsigned f);
88 __isl_give isl_aff *isl_aff_insert_dims(__isl_take isl_aff *aff,
89 enum isl_dim_type type, unsigned first, unsigned n);
90 __isl_give isl_aff *isl_aff_add_dims(__isl_take isl_aff *aff,
91 enum isl_dim_type type, unsigned n);
92 __isl_give isl_aff *isl_aff_drop_dims(__isl_take isl_aff *aff,
93 enum isl_dim_type type, unsigned first, unsigned n);
94 __isl_give isl_aff *isl_aff_project_domain_on_params(__isl_take isl_aff *aff);
96 __isl_give isl_aff *isl_aff_align_params(__isl_take isl_aff *aff,
97 __isl_take isl_space *model);
99 __isl_give isl_aff *isl_aff_gist(__isl_take isl_aff *aff,
100 __isl_take isl_set *context);
101 __isl_give isl_aff *isl_aff_gist_params(__isl_take isl_aff *aff,
102 __isl_take isl_set *context);
104 __isl_give isl_basic_set *isl_aff_zero_basic_set(__isl_take isl_aff *aff);
105 __isl_give isl_basic_set *isl_aff_neg_basic_set(__isl_take isl_aff *aff);
107 __isl_give isl_basic_set *isl_aff_le_basic_set(__isl_take isl_aff *aff1,
108 __isl_take isl_aff *aff2);
109 __isl_give isl_basic_set *isl_aff_ge_basic_set(__isl_take isl_aff *aff1,
110 __isl_take isl_aff *aff2);
112 __isl_give isl_aff *isl_aff_read_from_str(isl_ctx *ctx, const char *str);
113 __isl_give isl_printer *isl_printer_print_aff(__isl_take isl_printer *p,
114 __isl_keep isl_aff *aff);
115 void isl_aff_dump(__isl_keep isl_aff *aff);
117 isl_ctx *isl_pw_aff_get_ctx(__isl_keep isl_pw_aff *pwaff);
118 __isl_give isl_space *isl_pw_aff_get_domain_space(__isl_keep isl_pw_aff *pwaff);
119 __isl_give isl_space *isl_pw_aff_get_space(__isl_keep isl_pw_aff *pwaff);
121 __isl_give isl_pw_aff *isl_pw_aff_from_aff(__isl_take isl_aff *aff);
122 __isl_give isl_pw_aff *isl_pw_aff_empty(__isl_take isl_space *dim);
123 __isl_give isl_pw_aff *isl_pw_aff_alloc(__isl_take isl_set *set,
124 __isl_take isl_aff *aff);
125 __isl_give isl_pw_aff *isl_pw_aff_zero_on_domain(
126 __isl_take isl_local_space *ls);
127 __isl_give isl_pw_aff *isl_pw_aff_var_on_domain(__isl_take isl_local_space *ls,
128 enum isl_dim_type type, unsigned pos);
130 __isl_give isl_pw_aff *isl_set_indicator_function(__isl_take isl_set *set);
132 const char *isl_pw_aff_get_dim_name(__isl_keep isl_pw_aff *pa,
133 enum isl_dim_type type, unsigned pos);
134 int isl_pw_aff_has_dim_id(__isl_keep isl_pw_aff *pa,
135 enum isl_dim_type type, unsigned pos);
136 __isl_give isl_id *isl_pw_aff_get_dim_id(__isl_keep isl_pw_aff *pa,
137 enum isl_dim_type type, unsigned pos);
138 __isl_give isl_pw_aff *isl_pw_aff_set_dim_id(__isl_take isl_pw_aff *pma,
139 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
141 int isl_pw_aff_is_empty(__isl_keep isl_pw_aff *pwaff);
142 int isl_pw_aff_plain_is_equal(__isl_keep isl_pw_aff *pwaff1,
143 __isl_keep isl_pw_aff *pwaff2);
145 __isl_give isl_pw_aff *isl_pw_aff_union_min(__isl_take isl_pw_aff *pwaff1,
146 __isl_take isl_pw_aff *pwaff2);
147 __isl_give isl_pw_aff *isl_pw_aff_union_max(__isl_take isl_pw_aff *pwaff1,
148 __isl_take isl_pw_aff *pwaff2);
149 __isl_give isl_pw_aff *isl_pw_aff_union_add(__isl_take isl_pw_aff *pwaff1,
150 __isl_take isl_pw_aff *pwaff2);
152 __isl_give isl_pw_aff *isl_pw_aff_copy(__isl_keep isl_pw_aff *pwaff);
153 void *isl_pw_aff_free(__isl_take isl_pw_aff *pwaff);
155 unsigned isl_pw_aff_dim(__isl_keep isl_pw_aff *pwaff, enum isl_dim_type type);
156 int isl_pw_aff_involves_dims(__isl_keep isl_pw_aff *pwaff,
157 enum isl_dim_type type, unsigned first, unsigned n);
159 int isl_pw_aff_is_cst(__isl_keep isl_pw_aff *pwaff);
161 __isl_give isl_pw_aff *isl_pw_aff_align_params(__isl_take isl_pw_aff *pwaff,
162 __isl_take isl_space *model);
164 __isl_give isl_id *isl_pw_aff_get_tuple_id(__isl_keep isl_pw_aff *pa,
165 enum isl_dim_type type);
166 __isl_give isl_pw_aff *isl_pw_aff_set_tuple_id(__isl_take isl_pw_aff *pwaff,
167 enum isl_dim_type type, __isl_take isl_id *id);
169 __isl_give isl_set *isl_pw_aff_domain(__isl_take isl_pw_aff *pwaff);
171 __isl_give isl_pw_aff *isl_pw_aff_min(__isl_take isl_pw_aff *pwaff1,
172 __isl_take isl_pw_aff *pwaff2);
173 __isl_give isl_pw_aff *isl_pw_aff_max(__isl_take isl_pw_aff *pwaff1,
174 __isl_take isl_pw_aff *pwaff2);
175 __isl_give isl_pw_aff *isl_pw_aff_mul(__isl_take isl_pw_aff *pwaff1,
176 __isl_take isl_pw_aff *pwaff2);
177 __isl_give isl_pw_aff *isl_pw_aff_div(__isl_take isl_pw_aff *pa1,
178 __isl_take isl_pw_aff *pa2);
179 __isl_give isl_pw_aff *isl_pw_aff_add(__isl_take isl_pw_aff *pwaff1,
180 __isl_take isl_pw_aff *pwaff2);
181 __isl_give isl_pw_aff *isl_pw_aff_sub(__isl_take isl_pw_aff *pwaff1,
182 __isl_take isl_pw_aff *pwaff2);
183 __isl_give isl_pw_aff *isl_pw_aff_neg(__isl_take isl_pw_aff *pwaff);
184 __isl_give isl_pw_aff *isl_pw_aff_ceil(__isl_take isl_pw_aff *pwaff);
185 __isl_give isl_pw_aff *isl_pw_aff_floor(__isl_take isl_pw_aff *pwaff);
186 __isl_give isl_pw_aff *isl_pw_aff_mod(__isl_take isl_pw_aff *pwaff,
188 __isl_give isl_pw_aff *isl_pw_aff_tdiv_q(__isl_take isl_pw_aff *pa1,
189 __isl_take isl_pw_aff *pa2);
190 __isl_give isl_pw_aff *isl_pw_aff_tdiv_r(__isl_take isl_pw_aff *pa1,
191 __isl_take isl_pw_aff *pa2);
193 __isl_give isl_pw_aff *isl_pw_aff_intersect_params(__isl_take isl_pw_aff *pa,
194 __isl_take isl_set *set);
195 __isl_give isl_pw_aff *isl_pw_aff_intersect_domain(__isl_take isl_pw_aff *pa,
196 __isl_take isl_set *set);
198 __isl_give isl_pw_aff *isl_pw_aff_cond(__isl_take isl_pw_aff *cond,
199 __isl_take isl_pw_aff *pwaff_true, __isl_take isl_pw_aff *pwaff_false);
201 __isl_give isl_pw_aff *isl_pw_aff_scale(__isl_take isl_pw_aff *pwaff,
203 __isl_give isl_pw_aff *isl_pw_aff_scale_down(__isl_take isl_pw_aff *pwaff,
206 __isl_give isl_pw_aff *isl_pw_aff_insert_dims(__isl_take isl_pw_aff *pwaff,
207 enum isl_dim_type type, unsigned first, unsigned n);
208 __isl_give isl_pw_aff *isl_pw_aff_add_dims(__isl_take isl_pw_aff *pwaff,
209 enum isl_dim_type type, unsigned n);
210 __isl_give isl_pw_aff *isl_pw_aff_drop_dims(__isl_take isl_pw_aff *pwaff,
211 enum isl_dim_type type, unsigned first, unsigned n);
213 __isl_give isl_pw_aff *isl_pw_aff_coalesce(__isl_take isl_pw_aff *pwqp);
214 __isl_give isl_pw_aff *isl_pw_aff_gist(__isl_take isl_pw_aff *pwaff,
215 __isl_take isl_set *context);
216 __isl_give isl_pw_aff *isl_pw_aff_gist_params(__isl_take isl_pw_aff *pwaff,
217 __isl_take isl_set *context);
219 int isl_pw_aff_n_piece(__isl_keep isl_pw_aff *pwaff);
220 int isl_pw_aff_foreach_piece(__isl_keep isl_pw_aff *pwaff,
221 int (*fn)(__isl_take isl_set *set, __isl_take isl_aff *aff,
222 void *user), void *user);
224 __isl_give isl_set *isl_set_from_pw_aff(__isl_take isl_pw_aff *pwaff);
225 __isl_give isl_map *isl_map_from_pw_aff(__isl_take isl_pw_aff *pwaff);
227 __isl_give isl_set *isl_pw_aff_nonneg_set(__isl_take isl_pw_aff *pwaff);
228 __isl_give isl_set *isl_pw_aff_zero_set(__isl_take isl_pw_aff *pwaff);
229 __isl_give isl_set *isl_pw_aff_non_zero_set(__isl_take isl_pw_aff *pwaff);
231 __isl_give isl_set *isl_pw_aff_eq_set(__isl_take isl_pw_aff *pwaff1,
232 __isl_take isl_pw_aff *pwaff2);
233 __isl_give isl_set *isl_pw_aff_ne_set(__isl_take isl_pw_aff *pwaff1,
234 __isl_take isl_pw_aff *pwaff2);
235 __isl_give isl_set *isl_pw_aff_le_set(__isl_take isl_pw_aff *pwaff1,
236 __isl_take isl_pw_aff *pwaff2);
237 __isl_give isl_set *isl_pw_aff_lt_set(__isl_take isl_pw_aff *pwaff1,
238 __isl_take isl_pw_aff *pwaff2);
239 __isl_give isl_set *isl_pw_aff_ge_set(__isl_take isl_pw_aff *pwaff1,
240 __isl_take isl_pw_aff *pwaff2);
241 __isl_give isl_set *isl_pw_aff_gt_set(__isl_take isl_pw_aff *pwaff1,
242 __isl_take isl_pw_aff *pwaff2);
244 __isl_give isl_pw_aff *isl_pw_aff_read_from_str(isl_ctx *ctx, const char *str);
245 __isl_give isl_printer *isl_printer_print_pw_aff(__isl_take isl_printer *p,
246 __isl_keep isl_pw_aff *pwaff);
247 void isl_pw_aff_dump(__isl_keep isl_pw_aff *pwaff);
249 __isl_give isl_pw_aff *isl_pw_aff_list_min(__isl_take isl_pw_aff_list *list);
250 __isl_give isl_pw_aff *isl_pw_aff_list_max(__isl_take isl_pw_aff_list *list);
252 __isl_give isl_set *isl_pw_aff_list_eq_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_ne_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_le_set(__isl_take isl_pw_aff_list *list1,
257 __isl_take isl_pw_aff_list *list2);
258 __isl_give isl_set *isl_pw_aff_list_lt_set(__isl_take isl_pw_aff_list *list1,
259 __isl_take isl_pw_aff_list *list2);
260 __isl_give isl_set *isl_pw_aff_list_ge_set(__isl_take isl_pw_aff_list *list1,
261 __isl_take isl_pw_aff_list *list2);
262 __isl_give isl_set *isl_pw_aff_list_gt_set(__isl_take isl_pw_aff_list *list1,
263 __isl_take isl_pw_aff_list *list2);
265 __isl_give isl_multi_aff *isl_multi_aff_from_aff(__isl_take isl_aff *aff);
266 __isl_give isl_multi_aff *isl_multi_aff_zero(__isl_take isl_space *space);
267 __isl_give isl_multi_aff *isl_multi_aff_identity(__isl_take isl_space *space);
269 isl_ctx *isl_multi_aff_get_ctx(__isl_keep isl_multi_aff *maff);
270 __isl_give isl_space *isl_multi_aff_get_space(__isl_keep isl_multi_aff *maff);
271 __isl_give isl_space *isl_multi_aff_get_domain_space(
272 __isl_keep isl_multi_aff *maff);
273 __isl_give isl_multi_aff *isl_multi_aff_set_tuple_id(
274 __isl_take isl_multi_aff *maff,
275 enum isl_dim_type type, __isl_take isl_id *id);
276 __isl_give isl_multi_aff *isl_multi_aff_copy(__isl_keep isl_multi_aff *maff);
277 void *isl_multi_aff_free(__isl_take isl_multi_aff *maff);
279 unsigned isl_multi_aff_dim(__isl_keep isl_multi_aff *maff,
280 enum isl_dim_type type);
281 __isl_give isl_aff *isl_multi_aff_get_aff(__isl_keep isl_multi_aff *multi,
284 __isl_give isl_multi_aff *isl_multi_aff_insert_dims(
285 __isl_take isl_multi_aff *ma,
286 enum isl_dim_type type, unsigned first, unsigned n);
287 __isl_give isl_multi_aff *isl_multi_aff_add_dims(__isl_take isl_multi_aff *ma,
288 enum isl_dim_type type, unsigned n);
289 __isl_give isl_multi_aff *isl_multi_aff_drop_dims(
290 __isl_take isl_multi_aff *maff,
291 enum isl_dim_type type, unsigned first, unsigned n);
293 __isl_give isl_multi_aff *isl_multi_aff_set_dim_name(
294 __isl_take isl_multi_aff *maff,
295 enum isl_dim_type type, unsigned pos, const char *s);
297 int isl_multi_aff_plain_is_equal(__isl_keep isl_multi_aff *maff1,
298 __isl_keep isl_multi_aff *maff2);
300 __isl_give isl_multi_aff *isl_multi_aff_add(__isl_take isl_multi_aff *maff1,
301 __isl_take isl_multi_aff *maff2);
303 __isl_give isl_multi_aff *isl_multi_aff_scale(__isl_take isl_multi_aff *maff,
306 __isl_give isl_multi_aff *isl_multi_aff_flat_range_product(
307 __isl_take isl_multi_aff *ma1, __isl_take isl_multi_aff *ma2);
308 __isl_give isl_multi_aff *isl_multi_aff_product(
309 __isl_take isl_multi_aff *ma1, __isl_take isl_multi_aff *ma2);
311 __isl_give isl_multi_aff *isl_multi_aff_align_params(
312 __isl_take isl_multi_aff *multi, __isl_take isl_space *model);
314 __isl_give isl_multi_aff *isl_multi_aff_gist_params(
315 __isl_take isl_multi_aff *maff, __isl_take isl_set *context);
316 __isl_give isl_multi_aff *isl_multi_aff_gist(__isl_take isl_multi_aff *maff,
317 __isl_take isl_set *context);
319 __isl_give isl_multi_aff *isl_multi_aff_lift(__isl_take isl_multi_aff *maff,
320 __isl_give isl_local_space **ls);
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_give isl_pw_multi_aff *isl_pw_multi_aff_identity(
335 __isl_take isl_space *space);
336 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_multi_aff(
337 __isl_take isl_multi_aff *ma);
338 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_alloc(__isl_take isl_set *set,
339 __isl_take isl_multi_aff *maff);
340 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_copy(
341 __isl_keep isl_pw_multi_aff *pma);
342 void *isl_pw_multi_aff_free(__isl_take isl_pw_multi_aff *pma);
344 unsigned isl_pw_multi_aff_dim(__isl_keep isl_pw_multi_aff *pma,
345 enum isl_dim_type type);
346 __isl_give isl_pw_aff *isl_pw_multi_aff_get_pw_aff(
347 __isl_keep isl_pw_multi_aff *pma, int pos);
348 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_pw_aff(
349 __isl_take isl_pw_multi_aff *pma, unsigned pos,
350 __isl_take isl_pw_aff *pa);
352 isl_ctx *isl_pw_multi_aff_get_ctx(__isl_keep isl_pw_multi_aff *pma);
353 __isl_give isl_space *isl_pw_multi_aff_get_domain_space(
354 __isl_keep isl_pw_multi_aff *pma);
355 __isl_give isl_space *isl_pw_multi_aff_get_space(
356 __isl_keep isl_pw_multi_aff *pma);
357 int isl_pw_multi_aff_has_tuple_name(__isl_keep isl_pw_multi_aff *pma,
358 enum isl_dim_type type);
359 const char *isl_pw_multi_aff_get_tuple_name(__isl_keep isl_pw_multi_aff *pma,
360 enum isl_dim_type type);
361 __isl_give isl_id *isl_pw_multi_aff_get_tuple_id(
362 __isl_keep isl_pw_multi_aff *pma, enum isl_dim_type type);
363 int isl_pw_multi_aff_has_tuple_id(__isl_keep isl_pw_multi_aff *pma,
364 enum isl_dim_type type);
365 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_tuple_id(
366 __isl_take isl_pw_multi_aff *pma,
367 enum isl_dim_type type, __isl_take isl_id *id);
369 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_drop_dims(
370 __isl_take isl_pw_multi_aff *pma,
371 enum isl_dim_type type, unsigned first, unsigned n);
373 __isl_give isl_set *isl_pw_multi_aff_domain(__isl_take isl_pw_multi_aff *pma);
375 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_empty(__isl_take isl_space *space);
376 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_domain(
377 __isl_take isl_set *set);
379 const char *isl_pw_multi_aff_get_dim_name(__isl_keep isl_pw_multi_aff *pma,
380 enum isl_dim_type type, unsigned pos);
381 __isl_give isl_id *isl_pw_multi_aff_get_dim_id(
382 __isl_keep isl_pw_multi_aff *pma, enum isl_dim_type type,
384 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_dim_id(
385 __isl_take isl_pw_multi_aff *pma,
386 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
388 int isl_pw_multi_aff_plain_is_equal(__isl_keep isl_pw_multi_aff *pma1,
389 __isl_keep isl_pw_multi_aff *pma2);
391 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_add(
392 __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_add(
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_union_lexmin(
398 __isl_take isl_pw_multi_aff *pma1,
399 __isl_take isl_pw_multi_aff *pma2);
400 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_lexmax(
401 __isl_take isl_pw_multi_aff *pma1,
402 __isl_take isl_pw_multi_aff *pma2);
404 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_flat_range_product(
405 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
406 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_product(
407 __isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
409 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_params(
410 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
411 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_domain(
412 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
414 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_project_domain_on_params(
415 __isl_take isl_pw_multi_aff *pma);
417 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_align_params(
418 __isl_take isl_pw_multi_aff *pma, __isl_take isl_space *model);
420 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_coalesce(
421 __isl_take isl_pw_multi_aff *pma);
422 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_gist_params(
423 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
424 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_gist(
425 __isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
427 int isl_pw_multi_aff_foreach_piece(__isl_keep isl_pw_multi_aff *pma,
428 int (*fn)(__isl_take isl_set *set, __isl_take isl_multi_aff *maff,
429 void *user), void *user);
431 __isl_give isl_map *isl_map_from_pw_multi_aff(__isl_take isl_pw_multi_aff *pma);
432 __isl_give isl_set *isl_set_from_pw_multi_aff(__isl_take isl_pw_multi_aff *pma);
434 __isl_give isl_printer *isl_printer_print_pw_multi_aff(__isl_take isl_printer *p,
435 __isl_keep isl_pw_multi_aff *pma);
437 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_set(__isl_take isl_set *set);
438 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_map(__isl_take isl_map *map);
440 __isl_give isl_pw_multi_aff *isl_pw_multi_aff_read_from_str(isl_ctx *ctx,
442 void isl_pw_multi_aff_dump(__isl_keep isl_pw_multi_aff *pma);
445 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_empty(
446 __isl_take isl_space *space);
447 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_domain(
448 __isl_take isl_union_set *uset);
449 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_copy(
450 __isl_keep isl_union_pw_multi_aff *upma);
451 void *isl_union_pw_multi_aff_free(__isl_take isl_union_pw_multi_aff *upma);
453 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_add_pw_multi_aff(
454 __isl_take isl_union_pw_multi_aff *upma,
455 __isl_take isl_pw_multi_aff *pma);
457 isl_ctx *isl_union_pw_multi_aff_get_ctx(
458 __isl_keep isl_union_pw_multi_aff *upma);
459 __isl_give isl_space *isl_union_pw_multi_aff_get_space(
460 __isl_keep isl_union_pw_multi_aff *upma);
462 int isl_union_pw_multi_aff_foreach_pw_multi_aff(
463 __isl_keep isl_union_pw_multi_aff *upma,
464 int (*fn)(__isl_take isl_pw_multi_aff *pma, void *user), void *user);
466 __isl_give isl_union_set *isl_union_pw_multi_aff_domain(
467 __isl_take isl_union_pw_multi_aff *upma);
469 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_add(
470 __isl_take isl_union_pw_multi_aff *upma1,
471 __isl_take isl_union_pw_multi_aff *upma2);
473 __isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_flat_range_product(
474 __isl_take isl_union_pw_multi_aff *upma1,
475 __isl_take isl_union_pw_multi_aff *upma2);
477 __isl_give isl_union_map *isl_union_map_from_union_pw_multi_aff(
478 __isl_take isl_union_pw_multi_aff *upma);
480 __isl_give isl_printer *isl_printer_print_union_pw_multi_aff(
481 __isl_take isl_printer *p, __isl_keep isl_union_pw_multi_aff *upma);
483 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_zero(__isl_take isl_space *space);
484 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_identity(
485 __isl_take isl_space *space);
486 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_from_pw_aff(
487 __isl_take isl_pw_aff *pa);
489 isl_ctx *isl_multi_pw_aff_get_ctx(__isl_keep isl_multi_pw_aff *mpa);
490 __isl_give isl_space *isl_multi_pw_aff_get_space(
491 __isl_keep isl_multi_pw_aff *mpa);
492 __isl_give isl_space *isl_multi_pw_aff_get_domain_space(
493 __isl_keep isl_multi_pw_aff *mpa);
494 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_copy(
495 __isl_keep isl_multi_pw_aff *mpa);
496 void *isl_multi_pw_aff_free(__isl_take isl_multi_pw_aff *mpa);
498 unsigned isl_multi_pw_aff_dim(__isl_keep isl_multi_pw_aff *mpa,
499 enum isl_dim_type type);
500 __isl_give isl_pw_aff *isl_multi_pw_aff_get_pw_aff(
501 __isl_keep isl_multi_pw_aff *mpa, int pos);
503 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_insert_dims(
504 __isl_take isl_multi_pw_aff *mpa,
505 enum isl_dim_type type, unsigned first, unsigned n);
506 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_add_dims(
507 __isl_take isl_multi_pw_aff *mpa, enum isl_dim_type type, unsigned n);
509 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_set_dim_name(
510 __isl_take isl_multi_pw_aff *mpa,
511 enum isl_dim_type type, unsigned pos, const char *s);
513 __isl_give isl_multi_pw_aff *isl_multi_pw_aff_flat_range_product(
514 __isl_take isl_multi_pw_aff *mpa1, __isl_take isl_multi_pw_aff *mpa2);
516 __isl_give isl_printer *isl_printer_print_multi_pw_aff(
517 __isl_take isl_printer *p, __isl_keep isl_multi_pw_aff *mpa);
518 void isl_multi_pw_aff_dump(__isl_keep isl_multi_pw_aff *mpa);
520 #if defined(__cplusplus)