4 #include <isl/local_space.h>
5 #include <isl/printer.h>
6 #include <isl/set_type.h>
7 #include <isl/aff_type.h>
10 #if defined(__cplusplus)
14 __isl_give isl_aff *isl_aff_zero_on_domain(__isl_take isl_local_space *ls);
16 __isl_give isl_aff *isl_aff_copy(__isl_keep isl_aff *aff);
17 void *isl_aff_free(__isl_take isl_aff *aff);
19 isl_ctx *isl_aff_get_ctx(__isl_keep isl_aff *aff);
21 int isl_aff_dim(__isl_keep isl_aff *aff, enum isl_dim_type type);
22 int isl_aff_involves_dims(__isl_keep isl_aff *aff,
23 enum isl_dim_type type, unsigned first, unsigned n);
25 __isl_give isl_space *isl_aff_get_domain_space(__isl_keep isl_aff *aff);
26 __isl_give isl_space *isl_aff_get_space(__isl_keep isl_aff *aff);
27 __isl_give isl_local_space *isl_aff_get_domain_local_space(
28 __isl_keep isl_aff *aff);
29 __isl_give isl_local_space *isl_aff_get_local_space(__isl_keep isl_aff *aff);
31 const char *isl_aff_get_dim_name(__isl_keep isl_aff *aff,
32 enum isl_dim_type type, unsigned pos);
33 int isl_aff_get_constant(__isl_keep isl_aff *aff, isl_int *v);
34 int isl_aff_get_coefficient(__isl_keep isl_aff *aff,
35 enum isl_dim_type type, int pos, isl_int *v);
36 int isl_aff_get_denominator(__isl_keep isl_aff *aff, isl_int *v);
37 __isl_give isl_aff *isl_aff_set_constant(__isl_take isl_aff *aff, isl_int v);
38 __isl_give isl_aff *isl_aff_set_constant_si(__isl_take isl_aff *aff, int v);
39 __isl_give isl_aff *isl_aff_set_coefficient(__isl_take isl_aff *aff,
40 enum isl_dim_type type, int pos, isl_int v);
41 __isl_give isl_aff *isl_aff_set_coefficient_si(__isl_take isl_aff *aff,
42 enum isl_dim_type type, int pos, int v);
43 __isl_give isl_aff *isl_aff_set_denominator(__isl_take isl_aff *aff, isl_int v);
44 __isl_give isl_aff *isl_aff_add_constant(__isl_take isl_aff *aff, isl_int v);
45 __isl_give isl_aff *isl_aff_add_constant_si(__isl_take isl_aff *aff, int v);
46 __isl_give isl_aff *isl_aff_add_coefficient(__isl_take isl_aff *aff,
47 enum isl_dim_type type, int pos, isl_int v);
48 __isl_give isl_aff *isl_aff_add_coefficient_si(__isl_take isl_aff *aff,
49 enum isl_dim_type type, int pos, int v);
51 int isl_aff_is_cst(__isl_keep isl_aff *aff);
53 __isl_give isl_aff *isl_aff_set_dim_name(__isl_take isl_aff *aff,
54 enum isl_dim_type type, unsigned pos, const char *s);
56 int isl_aff_plain_is_equal(__isl_keep isl_aff *aff1, __isl_keep isl_aff *aff2);
57 int isl_aff_plain_is_zero(__isl_keep isl_aff *aff);
59 __isl_give isl_aff *isl_aff_get_div(__isl_keep isl_aff *aff, int pos);
61 __isl_give isl_aff *isl_aff_neg(__isl_take isl_aff *aff);
62 __isl_give isl_aff *isl_aff_ceil(__isl_take isl_aff *aff);
63 __isl_give isl_aff *isl_aff_floor(__isl_take isl_aff *aff);
64 __isl_give isl_aff *isl_aff_mod(__isl_take isl_aff *aff, isl_int mod);
66 __isl_give isl_aff *isl_aff_mul(__isl_take isl_aff *aff1,
67 __isl_take isl_aff *aff2);
68 __isl_give isl_aff *isl_aff_add(__isl_take isl_aff *aff1,
69 __isl_take isl_aff *aff2);
70 __isl_give isl_aff *isl_aff_sub(__isl_take isl_aff *aff1,
71 __isl_take isl_aff *aff2);
73 __isl_give isl_aff *isl_aff_scale(__isl_take isl_aff *aff, isl_int f);
74 __isl_give isl_aff *isl_aff_scale_down(__isl_take isl_aff *aff, isl_int f);
75 __isl_give isl_aff *isl_aff_scale_down_ui(__isl_take isl_aff *aff, unsigned f);
77 __isl_give isl_aff *isl_aff_insert_dims(__isl_take isl_aff *aff,
78 enum isl_dim_type type, unsigned first, unsigned n);
79 __isl_give isl_aff *isl_aff_add_dims(__isl_take isl_aff *aff,
80 enum isl_dim_type type, unsigned n);
81 __isl_give isl_aff *isl_aff_drop_dims(__isl_take isl_aff *aff,
82 enum isl_dim_type type, unsigned first, unsigned n);
84 __isl_give isl_aff *isl_aff_gist(__isl_take isl_aff *aff,
85 __isl_take isl_set *context);
87 __isl_give isl_basic_set *isl_aff_le_basic_set(__isl_take isl_aff *aff1,
88 __isl_take isl_aff *aff2);
89 __isl_give isl_basic_set *isl_aff_ge_basic_set(__isl_take isl_aff *aff1,
90 __isl_take isl_aff *aff2);
92 __isl_give isl_printer *isl_printer_print_aff(__isl_take isl_printer *p,
93 __isl_keep isl_aff *aff);
94 void isl_aff_dump(__isl_keep isl_aff *aff);
96 isl_ctx *isl_pw_aff_get_ctx(__isl_keep isl_pw_aff *pwaff);
97 __isl_give isl_space *isl_pw_aff_get_domain_space(__isl_keep isl_pw_aff *pwaff);
98 __isl_give isl_space *isl_pw_aff_get_space(__isl_keep isl_pw_aff *pwaff);
100 __isl_give isl_pw_aff *isl_pw_aff_from_aff(__isl_take isl_aff *aff);
101 __isl_give isl_pw_aff *isl_pw_aff_empty(__isl_take isl_space *dim);
102 __isl_give isl_pw_aff *isl_pw_aff_alloc(__isl_take isl_set *set,
103 __isl_take isl_aff *aff);
105 int isl_pw_aff_is_empty(__isl_keep isl_pw_aff *pwaff);
107 __isl_give isl_pw_aff *isl_pw_aff_union_min(__isl_take isl_pw_aff *pwaff1,
108 __isl_take isl_pw_aff *pwaff2);
109 __isl_give isl_pw_aff *isl_pw_aff_union_max(__isl_take isl_pw_aff *pwaff1,
110 __isl_take isl_pw_aff *pwaff2);
112 __isl_give isl_pw_aff *isl_pw_aff_copy(__isl_keep isl_pw_aff *pwaff);
113 void *isl_pw_aff_free(__isl_take isl_pw_aff *pwaff);
115 unsigned isl_pw_aff_dim(__isl_keep isl_pw_aff *pwaff, enum isl_dim_type type);
116 int isl_pw_aff_involves_dims(__isl_keep isl_pw_aff *pwaff,
117 enum isl_dim_type type, unsigned first, unsigned n);
119 int isl_pw_aff_is_cst(__isl_keep isl_pw_aff *pwaff);
121 __isl_give isl_pw_aff *isl_pw_aff_align_params(__isl_take isl_pw_aff *pwaff,
122 __isl_take isl_space *model);
124 __isl_give isl_pw_aff *isl_pw_aff_set_tuple_id(__isl_take isl_pw_aff *pwaff,
125 __isl_take isl_id *id);
127 __isl_give isl_set *isl_pw_aff_domain(__isl_take isl_pw_aff *pwaff);
129 __isl_give isl_pw_aff *isl_pw_aff_min(__isl_take isl_pw_aff *pwaff1,
130 __isl_take isl_pw_aff *pwaff2);
131 __isl_give isl_pw_aff *isl_pw_aff_max(__isl_take isl_pw_aff *pwaff1,
132 __isl_take isl_pw_aff *pwaff2);
133 __isl_give isl_pw_aff *isl_pw_aff_mul(__isl_take isl_pw_aff *pwaff1,
134 __isl_take isl_pw_aff *pwaff2);
135 __isl_give isl_pw_aff *isl_pw_aff_add(__isl_take isl_pw_aff *pwaff1,
136 __isl_take isl_pw_aff *pwaff2);
137 __isl_give isl_pw_aff *isl_pw_aff_sub(__isl_take isl_pw_aff *pwaff1,
138 __isl_take isl_pw_aff *pwaff2);
139 __isl_give isl_pw_aff *isl_pw_aff_neg(__isl_take isl_pw_aff *pwaff);
140 __isl_give isl_pw_aff *isl_pw_aff_ceil(__isl_take isl_pw_aff *pwaff);
141 __isl_give isl_pw_aff *isl_pw_aff_floor(__isl_take isl_pw_aff *pwaff);
142 __isl_give isl_pw_aff *isl_pw_aff_mod(__isl_take isl_pw_aff *pwaff,
145 __isl_give isl_pw_aff *isl_pw_aff_cond(__isl_take isl_set *cond,
146 __isl_take isl_pw_aff *pwaff_true, __isl_take isl_pw_aff *pwaff_false);
148 __isl_give isl_pw_aff *isl_pw_aff_scale(__isl_take isl_pw_aff *pwaff,
150 __isl_give isl_pw_aff *isl_pw_aff_scale_down(__isl_take isl_pw_aff *pwaff,
153 __isl_give isl_pw_aff *isl_pw_aff_insert_dims(__isl_take isl_pw_aff *pwaff,
154 enum isl_dim_type type, unsigned first, unsigned n);
155 __isl_give isl_pw_aff *isl_pw_aff_add_dims(__isl_take isl_pw_aff *pwaff,
156 enum isl_dim_type type, unsigned n);
157 __isl_give isl_pw_aff *isl_pw_aff_drop_dims(__isl_take isl_pw_aff *pwaff,
158 enum isl_dim_type type, unsigned first, unsigned n);
160 __isl_give isl_pw_aff *isl_pw_aff_coalesce(__isl_take isl_pw_aff *pwqp);
161 __isl_give isl_pw_aff *isl_pw_aff_gist(__isl_take isl_pw_aff *pwaff,
162 __isl_take isl_set *context);
164 int isl_pw_aff_foreach_piece(__isl_keep isl_pw_aff *pwaff,
165 int (*fn)(__isl_take isl_set *set, __isl_take isl_aff *aff,
166 void *user), void *user);
168 __isl_give isl_set *isl_set_from_pw_aff(__isl_take isl_pw_aff *pwaff);
169 __isl_give isl_map *isl_map_from_pw_aff(__isl_take isl_pw_aff *pwaff);
171 __isl_give isl_set *isl_pw_aff_nonneg_set(__isl_take isl_pw_aff *pwaff);
172 __isl_give isl_set *isl_pw_aff_zero_set(__isl_take isl_pw_aff *pwaff);
173 __isl_give isl_set *isl_pw_aff_non_zero_set(__isl_take isl_pw_aff *pwaff);
175 __isl_give isl_set *isl_pw_aff_eq_set(__isl_take isl_pw_aff *pwaff1,
176 __isl_take isl_pw_aff *pwaff2);
177 __isl_give isl_set *isl_pw_aff_ne_set(__isl_take isl_pw_aff *pwaff1,
178 __isl_take isl_pw_aff *pwaff2);
179 __isl_give isl_set *isl_pw_aff_le_set(__isl_take isl_pw_aff *pwaff1,
180 __isl_take isl_pw_aff *pwaff2);
181 __isl_give isl_set *isl_pw_aff_lt_set(__isl_take isl_pw_aff *pwaff1,
182 __isl_take isl_pw_aff *pwaff2);
183 __isl_give isl_set *isl_pw_aff_ge_set(__isl_take isl_pw_aff *pwaff1,
184 __isl_take isl_pw_aff *pwaff2);
185 __isl_give isl_set *isl_pw_aff_gt_set(__isl_take isl_pw_aff *pwaff1,
186 __isl_take isl_pw_aff *pwaff2);
188 __isl_give isl_printer *isl_printer_print_pw_aff(__isl_take isl_printer *p,
189 __isl_keep isl_pw_aff *pwaff);
190 void isl_pw_aff_dump(__isl_keep isl_pw_aff *pwaff);
192 __isl_give isl_pw_aff *isl_pw_aff_list_min(__isl_take isl_pw_aff_list *list);
193 __isl_give isl_pw_aff *isl_pw_aff_list_max(__isl_take isl_pw_aff_list *list);
195 __isl_give isl_set *isl_pw_aff_list_eq_set(__isl_take isl_pw_aff_list *list1,
196 __isl_take isl_pw_aff_list *list2);
197 __isl_give isl_set *isl_pw_aff_list_ne_set(__isl_take isl_pw_aff_list *list1,
198 __isl_take isl_pw_aff_list *list2);
199 __isl_give isl_set *isl_pw_aff_list_le_set(__isl_take isl_pw_aff_list *list1,
200 __isl_take isl_pw_aff_list *list2);
201 __isl_give isl_set *isl_pw_aff_list_lt_set(__isl_take isl_pw_aff_list *list1,
202 __isl_take isl_pw_aff_list *list2);
203 __isl_give isl_set *isl_pw_aff_list_ge_set(__isl_take isl_pw_aff_list *list1,
204 __isl_take isl_pw_aff_list *list2);
205 __isl_give isl_set *isl_pw_aff_list_gt_set(__isl_take isl_pw_aff_list *list1,
206 __isl_take isl_pw_aff_list *list2);
208 #if defined(__cplusplus)