isl_set_coefficients: rename "dim" variable to "space"
[isl.git] / isl_dim.c
blob914d666b38ee5f0d2c5817bf740dd5c5295b050a
1 #include <isl/dim.h>
2 #include <isl/aff.h>
3 #include <isl/map.h>
4 #include <isl/set.h>
5 #include <isl/polynomial.h>
7 isl_ctx *isl_dim_get_ctx(__isl_keep isl_space *dim)
9 return isl_space_get_ctx(dim);
12 __isl_give isl_space *isl_dim_alloc(isl_ctx *ctx,
13 unsigned nparam, unsigned n_in, unsigned n_out)
15 return isl_space_alloc(ctx, nparam, n_in, n_out);
17 __isl_give isl_space *isl_dim_set_alloc(isl_ctx *ctx,
18 unsigned nparam, unsigned dim)
20 return isl_space_set_alloc(ctx, nparam, dim);
22 __isl_give isl_space *isl_dim_copy(__isl_keep isl_space *dim)
24 return isl_space_copy(dim);
26 void isl_dim_free(__isl_take isl_space *dim)
28 isl_space_free(dim);
31 unsigned isl_dim_size(__isl_keep isl_space *dim, enum isl_dim_type type)
33 return isl_space_dim(dim, type);
36 __isl_give isl_space *isl_dim_set_dim_id(__isl_take isl_space *dim,
37 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id)
39 return isl_space_set_dim_id(dim, type, pos, id);
41 int isl_dim_has_dim_id(__isl_keep isl_space *dim,
42 enum isl_dim_type type, unsigned pos)
44 return isl_space_has_dim_id(dim, type, pos);
46 __isl_give isl_id *isl_dim_get_dim_id(__isl_keep isl_space *dim,
47 enum isl_dim_type type, unsigned pos)
49 return isl_space_get_dim_id(dim, type, pos);
52 int isl_dim_find_dim_by_id(__isl_keep isl_space *dim,
53 enum isl_dim_type type, __isl_keep isl_id *id)
55 return isl_space_find_dim_by_id(dim, type, id);
58 __isl_give isl_space *isl_dim_set_tuple_id(__isl_take isl_space *dim,
59 enum isl_dim_type type, __isl_take isl_id *id)
61 return isl_space_set_tuple_id(dim, type, id);
63 __isl_give isl_space *isl_dim_reset_tuple_id(__isl_take isl_space *dim,
64 enum isl_dim_type type)
66 return isl_space_reset_tuple_id(dim, type);
68 int isl_dim_has_tuple_id(__isl_keep isl_space *dim, enum isl_dim_type type)
70 return isl_space_has_tuple_id(dim, type);
72 __isl_give isl_id *isl_dim_get_tuple_id(__isl_keep isl_space *dim,
73 enum isl_dim_type type)
75 return isl_space_get_tuple_id(dim, type);
78 __isl_give isl_space *isl_dim_set_name(__isl_take isl_space *dim,
79 enum isl_dim_type type, unsigned pos, __isl_keep const char *name)
81 return isl_space_set_dim_name(dim, type, pos, name);
83 __isl_keep const char *isl_dim_get_name(__isl_keep isl_space *dim,
84 enum isl_dim_type type, unsigned pos)
86 return isl_space_get_dim_name(dim, type, pos);
89 __isl_give isl_space *isl_dim_set_tuple_name(__isl_take isl_space *dim,
90 enum isl_dim_type type, const char *s)
92 return isl_space_set_tuple_name(dim, type, s);
94 const char *isl_dim_get_tuple_name(__isl_keep isl_space *dim,
95 enum isl_dim_type type)
97 return isl_space_get_tuple_name(dim, type);
100 int isl_dim_is_wrapping(__isl_keep isl_space *dim)
102 return isl_space_is_wrapping(dim);
104 __isl_give isl_space *isl_dim_wrap(__isl_take isl_space *dim)
106 return isl_space_wrap(dim);
108 __isl_give isl_space *isl_dim_unwrap(__isl_take isl_space *dim)
110 return isl_space_unwrap(dim);
113 __isl_give isl_space *isl_dim_domain(__isl_take isl_space *dim)
115 return isl_space_domain(dim);
117 __isl_give isl_space *isl_dim_from_domain(__isl_take isl_space *dim)
119 return isl_space_from_domain(dim);
121 __isl_give isl_space *isl_dim_range(__isl_take isl_space *dim)
123 return isl_space_range(dim);
125 __isl_give isl_space *isl_dim_from_range(__isl_take isl_space *dim)
127 return isl_space_from_range(dim);
129 __isl_give isl_space *isl_dim_reverse(__isl_take isl_space *dim)
131 return isl_space_reverse(dim);
133 __isl_give isl_space *isl_dim_join(__isl_take isl_space *left,
134 __isl_take isl_space *right)
136 return isl_space_join(left, right);
138 __isl_give isl_space *isl_dim_align_params(__isl_take isl_space *dim1,
139 __isl_take isl_space *dim2)
141 return isl_space_align_params(dim1, dim2);
143 __isl_give isl_space *isl_dim_insert(__isl_take isl_space *dim,
144 enum isl_dim_type type, unsigned pos, unsigned n)
146 return isl_space_insert_dims(dim, type, pos, n);
148 __isl_give isl_space *isl_dim_add(__isl_take isl_space *dim,
149 enum isl_dim_type type, unsigned n)
151 return isl_space_add_dims(dim, type, n);
153 __isl_give isl_space *isl_dim_drop(__isl_take isl_space *dim,
154 enum isl_dim_type type, unsigned first, unsigned n)
156 return isl_space_drop_dims(dim, type, first, n);
158 __isl_give isl_space *isl_dim_move(__isl_take isl_space *dim,
159 enum isl_dim_type dst_type, unsigned dst_pos,
160 enum isl_dim_type src_type, unsigned src_pos, unsigned n)
162 return isl_space_move_dims(dim, dst_type, dst_pos, src_type, src_pos, n);
164 __isl_give isl_space *isl_dim_map_from_set(__isl_take isl_space *dim)
166 return isl_space_map_from_set(dim);
168 __isl_give isl_space *isl_dim_zip(__isl_take isl_space *dim)
170 return isl_space_zip(dim);
173 __isl_give isl_local_space *isl_local_space_from_dim(
174 __isl_take isl_space *dim)
176 return isl_local_space_from_space(dim);
178 __isl_give isl_space *isl_local_space_get_dim(
179 __isl_keep isl_local_space *ls)
181 return isl_local_space_get_space(ls);
184 __isl_give isl_space *isl_aff_get_dim(__isl_keep isl_aff *aff)
186 return isl_aff_get_space(aff);
188 __isl_give isl_space *isl_pw_aff_get_dim(__isl_keep isl_pw_aff *pwaff)
190 return isl_pw_aff_get_space(pwaff);
193 __isl_give isl_space *isl_constraint_get_dim(
194 __isl_keep isl_constraint *constraint)
196 return isl_constraint_get_space(constraint);
199 __isl_give isl_space *isl_basic_map_get_dim(__isl_keep isl_basic_map *bmap)
201 return isl_basic_map_get_space(bmap);
203 __isl_give isl_space *isl_map_get_dim(__isl_keep isl_map *map)
205 return isl_map_get_space(map);
207 __isl_give isl_space *isl_union_map_get_dim(__isl_keep isl_union_map *umap)
209 return isl_union_map_get_space(umap);
212 __isl_give isl_space *isl_basic_set_get_dim(__isl_keep isl_basic_set *bset)
214 return isl_basic_set_get_space(bset);
216 __isl_give isl_space *isl_set_get_dim(__isl_keep isl_set *set)
218 return isl_set_get_space(set);
220 __isl_give isl_space *isl_union_set_get_dim(__isl_keep isl_union_set *uset)
222 return isl_union_set_get_space(uset);
225 __isl_give isl_space *isl_point_get_dim(__isl_keep isl_point *pnt)
227 return isl_point_get_space(pnt);
230 __isl_give isl_space *isl_qpolynomial_get_dim(__isl_keep isl_qpolynomial *qp)
232 return isl_qpolynomial_get_space(qp);
234 __isl_give isl_space *isl_pw_qpolynomial_get_dim(
235 __isl_keep isl_pw_qpolynomial *pwqp)
237 return isl_pw_qpolynomial_get_space(pwqp);
239 __isl_give isl_space *isl_qpolynomial_fold_get_dim(
240 __isl_keep isl_qpolynomial_fold *fold)
242 return isl_qpolynomial_fold_get_space(fold);
244 __isl_give isl_space *isl_pw_qpolynomial_fold_get_dim(
245 __isl_keep isl_pw_qpolynomial_fold *pwf)
247 return isl_pw_qpolynomial_fold_get_space(pwf);
249 __isl_give isl_space *isl_union_pw_qpolynomial_get_dim(
250 __isl_keep isl_union_pw_qpolynomial *upwqp)
252 return isl_union_pw_qpolynomial_get_space(upwqp);
254 __isl_give isl_space *isl_union_pw_qpolynomial_fold_get_dim(
255 __isl_keep isl_union_pw_qpolynomial_fold *upwf)
257 return isl_union_pw_qpolynomial_fold_get_space(upwf);