summaryrefslogtreecommitdiff
path: root/isl_dim.c
blob: 914d666b38ee5f0d2c5817bf740dd5c5295b050a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
#include <isl/dim.h>
#include <isl/aff.h>
#include <isl/map.h>
#include <isl/set.h>
#include <isl/polynomial.h>

isl_ctx *isl_dim_get_ctx(__isl_keep isl_space *dim)
{
	return isl_space_get_ctx(dim);
}

__isl_give isl_space *isl_dim_alloc(isl_ctx *ctx,
	unsigned nparam, unsigned n_in, unsigned n_out)
{
	return isl_space_alloc(ctx, nparam, n_in, n_out);
}
__isl_give isl_space *isl_dim_set_alloc(isl_ctx *ctx,
	unsigned nparam, unsigned dim)
{
	return isl_space_set_alloc(ctx, nparam, dim);
}
__isl_give isl_space *isl_dim_copy(__isl_keep isl_space *dim)
{
	return isl_space_copy(dim);
}
void isl_dim_free(__isl_take isl_space *dim)
{
	isl_space_free(dim);
}

unsigned isl_dim_size(__isl_keep isl_space *dim, enum isl_dim_type type)
{
	return isl_space_dim(dim, type);
}

__isl_give isl_space *isl_dim_set_dim_id(__isl_take isl_space *dim,
	enum isl_dim_type type, unsigned pos, __isl_take isl_id *id)
{
	return isl_space_set_dim_id(dim, type, pos, id);
}
int isl_dim_has_dim_id(__isl_keep isl_space *dim,
	enum isl_dim_type type, unsigned pos)
{
	return isl_space_has_dim_id(dim, type, pos);
}
__isl_give isl_id *isl_dim_get_dim_id(__isl_keep isl_space *dim,
	enum isl_dim_type type, unsigned pos)
{
	return isl_space_get_dim_id(dim, type, pos);
}

int isl_dim_find_dim_by_id(__isl_keep isl_space *dim,
	enum isl_dim_type type, __isl_keep isl_id *id)
{
	return isl_space_find_dim_by_id(dim, type, id);
}

__isl_give isl_space *isl_dim_set_tuple_id(__isl_take isl_space *dim,
	enum isl_dim_type type, __isl_take isl_id *id)
{
	return isl_space_set_tuple_id(dim, type, id);
}
__isl_give isl_space *isl_dim_reset_tuple_id(__isl_take isl_space *dim,
	enum isl_dim_type type)
{
	return isl_space_reset_tuple_id(dim, type);
}
int isl_dim_has_tuple_id(__isl_keep isl_space *dim, enum isl_dim_type type)
{
	return isl_space_has_tuple_id(dim, type);
}
__isl_give isl_id *isl_dim_get_tuple_id(__isl_keep isl_space *dim,
	enum isl_dim_type type)
{
	return isl_space_get_tuple_id(dim, type);
}

__isl_give isl_space *isl_dim_set_name(__isl_take isl_space *dim,
	enum isl_dim_type type, unsigned pos, __isl_keep const char *name)
{
	return isl_space_set_dim_name(dim, type, pos, name);
}
__isl_keep const char *isl_dim_get_name(__isl_keep isl_space *dim,
	enum isl_dim_type type, unsigned pos)
{
	return isl_space_get_dim_name(dim, type, pos);
}

__isl_give isl_space *isl_dim_set_tuple_name(__isl_take isl_space *dim,
	enum isl_dim_type type, const char *s)
{
	return isl_space_set_tuple_name(dim, type, s);
}
const char *isl_dim_get_tuple_name(__isl_keep isl_space *dim,
	enum isl_dim_type type)
{
	return isl_space_get_tuple_name(dim, type);
}

int isl_dim_is_wrapping(__isl_keep isl_space *dim)
{
	return isl_space_is_wrapping(dim);
}
__isl_give isl_space *isl_dim_wrap(__isl_take isl_space *dim)
{
	return isl_space_wrap(dim);
}
__isl_give isl_space *isl_dim_unwrap(__isl_take isl_space *dim)
{
	return isl_space_unwrap(dim);
}

__isl_give isl_space *isl_dim_domain(__isl_take isl_space *dim)
{
	return isl_space_domain(dim);
}
__isl_give isl_space *isl_dim_from_domain(__isl_take isl_space *dim)
{
	return isl_space_from_domain(dim);
}
__isl_give isl_space *isl_dim_range(__isl_take isl_space *dim)
{
	return isl_space_range(dim);
}
__isl_give isl_space *isl_dim_from_range(__isl_take isl_space *dim)
{
	return isl_space_from_range(dim);
}
__isl_give isl_space *isl_dim_reverse(__isl_take isl_space *dim)
{
	return isl_space_reverse(dim);
}
__isl_give isl_space *isl_dim_join(__isl_take isl_space *left,
	__isl_take isl_space *right)
{
	return isl_space_join(left, right);
}
__isl_give isl_space *isl_dim_align_params(__isl_take isl_space *dim1,
	__isl_take isl_space *dim2)
{
	return isl_space_align_params(dim1, dim2);
}
__isl_give isl_space *isl_dim_insert(__isl_take isl_space *dim,
	enum isl_dim_type type, unsigned pos, unsigned n)
{
	return isl_space_insert_dims(dim, type, pos, n);
}
__isl_give isl_space *isl_dim_add(__isl_take isl_space *dim,
	enum isl_dim_type type, unsigned n)
{
	return isl_space_add_dims(dim, type, n);
}
__isl_give isl_space *isl_dim_drop(__isl_take isl_space *dim,
	enum isl_dim_type type, unsigned first, unsigned n)
{
	return isl_space_drop_dims(dim, type, first, n);
}
__isl_give isl_space *isl_dim_move(__isl_take isl_space *dim,
	enum isl_dim_type dst_type, unsigned dst_pos,
	enum isl_dim_type src_type, unsigned src_pos, unsigned n)
{
	return isl_space_move_dims(dim, dst_type, dst_pos, src_type, src_pos, n);
}
__isl_give isl_space *isl_dim_map_from_set(__isl_take isl_space *dim)
{
	return isl_space_map_from_set(dim);
}
__isl_give isl_space *isl_dim_zip(__isl_take isl_space *dim)
{
	return isl_space_zip(dim);
}

__isl_give isl_local_space *isl_local_space_from_dim(
	__isl_take isl_space *dim)
{
	return isl_local_space_from_space(dim);
}
__isl_give isl_space *isl_local_space_get_dim(
	__isl_keep isl_local_space *ls)
{
	return isl_local_space_get_space(ls);
}

__isl_give isl_space *isl_aff_get_dim(__isl_keep isl_aff *aff)
{
	return isl_aff_get_space(aff);
}
__isl_give isl_space *isl_pw_aff_get_dim(__isl_keep isl_pw_aff *pwaff)
{
	return isl_pw_aff_get_space(pwaff);
}

__isl_give isl_space *isl_constraint_get_dim(
	__isl_keep isl_constraint *constraint)
{
	return isl_constraint_get_space(constraint);
}

__isl_give isl_space *isl_basic_map_get_dim(__isl_keep isl_basic_map *bmap)
{
	return isl_basic_map_get_space(bmap);
}
__isl_give isl_space *isl_map_get_dim(__isl_keep isl_map *map)
{
	return isl_map_get_space(map);
}
__isl_give isl_space *isl_union_map_get_dim(__isl_keep isl_union_map *umap)
{
	return isl_union_map_get_space(umap);
}

__isl_give isl_space *isl_basic_set_get_dim(__isl_keep isl_basic_set *bset)
{
	return isl_basic_set_get_space(bset);
}
__isl_give isl_space *isl_set_get_dim(__isl_keep isl_set *set)
{
	return isl_set_get_space(set);
}
__isl_give isl_space *isl_union_set_get_dim(__isl_keep isl_union_set *uset)
{
	return isl_union_set_get_space(uset);
}

__isl_give isl_space *isl_point_get_dim(__isl_keep isl_point *pnt)
{
	return isl_point_get_space(pnt);
}

__isl_give isl_space *isl_qpolynomial_get_dim(__isl_keep isl_qpolynomial *qp)
{
	return isl_qpolynomial_get_space(qp);
}
__isl_give isl_space *isl_pw_qpolynomial_get_dim(
	__isl_keep isl_pw_qpolynomial *pwqp)
{
	return isl_pw_qpolynomial_get_space(pwqp);
}
__isl_give isl_space *isl_qpolynomial_fold_get_dim(
	__isl_keep isl_qpolynomial_fold *fold)
{
	return isl_qpolynomial_fold_get_space(fold);
}
__isl_give isl_space *isl_pw_qpolynomial_fold_get_dim(
	__isl_keep isl_pw_qpolynomial_fold *pwf)
{
	return isl_pw_qpolynomial_fold_get_space(pwf);
}
__isl_give isl_space *isl_union_pw_qpolynomial_get_dim(
	__isl_keep isl_union_pw_qpolynomial *upwqp)
{
	return isl_union_pw_qpolynomial_get_space(upwqp);
}
__isl_give isl_space *isl_union_pw_qpolynomial_fold_get_dim(
	__isl_keep isl_union_pw_qpolynomial_fold *upwf)
{
	return isl_union_pw_qpolynomial_fold_get_space(upwf);
}