Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
14 | pmbaty | 1 | /* |
2 | * Copyright 2008-2009 Katholieke Universiteit Leuven |
||
3 | * |
||
4 | * Use of this software is governed by the MIT license |
||
5 | * |
||
6 | * Written by Sven Verdoolaege, K.U.Leuven, Departement |
||
7 | * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium |
||
8 | */ |
||
9 | |||
10 | #ifndef ISL_SPACE_H |
||
11 | #define ISL_SPACE_H |
||
12 | |||
13 | #include <isl/ctx.h> |
||
14 | #include <isl/space_type.h> |
||
15 | #include <isl/id_type.h> |
||
16 | #include <isl/printer.h> |
||
17 | |||
18 | #if defined(__cplusplus) |
||
19 | extern "C" { |
||
20 | #endif |
||
21 | |||
22 | isl_ctx *isl_space_get_ctx(__isl_keep isl_space *space); |
||
23 | __isl_export |
||
24 | __isl_give isl_space *isl_space_unit(isl_ctx *ctx); |
||
25 | __isl_give isl_space *isl_space_alloc(isl_ctx *ctx, |
||
26 | unsigned nparam, unsigned n_in, unsigned n_out); |
||
27 | __isl_give isl_space *isl_space_set_alloc(isl_ctx *ctx, |
||
28 | unsigned nparam, unsigned dim); |
||
29 | __isl_give isl_space *isl_space_params_alloc(isl_ctx *ctx, unsigned nparam); |
||
30 | __isl_give isl_space *isl_space_copy(__isl_keep isl_space *space); |
||
31 | __isl_null isl_space *isl_space_free(__isl_take isl_space *space); |
||
32 | |||
33 | isl_bool isl_space_is_params(__isl_keep isl_space *space); |
||
34 | isl_bool isl_space_is_set(__isl_keep isl_space *space); |
||
35 | isl_bool isl_space_is_map(__isl_keep isl_space *space); |
||
36 | |||
37 | __isl_overload |
||
38 | __isl_give isl_space *isl_space_add_param_id(__isl_take isl_space *space, |
||
39 | __isl_take isl_id *id); |
||
40 | |||
41 | __isl_give isl_space *isl_space_set_tuple_name(__isl_take isl_space *space, |
||
42 | enum isl_dim_type type, const char *s); |
||
43 | isl_bool isl_space_has_tuple_name(__isl_keep isl_space *space, |
||
44 | enum isl_dim_type type); |
||
45 | __isl_keep const char *isl_space_get_tuple_name(__isl_keep isl_space *space, |
||
46 | enum isl_dim_type type); |
||
47 | __isl_overload |
||
48 | __isl_give isl_space *isl_space_set_domain_tuple_id( |
||
49 | __isl_take isl_space *space, __isl_take isl_id *id); |
||
50 | __isl_overload |
||
51 | __isl_give isl_space *isl_space_set_range_tuple_id( |
||
52 | __isl_take isl_space *space, __isl_take isl_id *id); |
||
53 | __isl_give isl_space *isl_space_set_tuple_id(__isl_take isl_space *space, |
||
54 | enum isl_dim_type type, __isl_take isl_id *id); |
||
55 | __isl_give isl_space *isl_space_reset_tuple_id(__isl_take isl_space *space, |
||
56 | enum isl_dim_type type); |
||
57 | __isl_export |
||
58 | isl_bool isl_space_has_domain_tuple_id(__isl_keep isl_space *space); |
||
59 | __isl_export |
||
60 | isl_bool isl_space_has_range_tuple_id(__isl_keep isl_space *space); |
||
61 | isl_bool isl_space_has_tuple_id(__isl_keep isl_space *space, |
||
62 | enum isl_dim_type type); |
||
63 | __isl_export |
||
64 | __isl_give isl_id *isl_space_get_domain_tuple_id( |
||
65 | __isl_keep isl_space *space); |
||
66 | __isl_export |
||
67 | __isl_give isl_id *isl_space_get_range_tuple_id( |
||
68 | __isl_keep isl_space *space); |
||
69 | __isl_give isl_id *isl_space_get_tuple_id(__isl_keep isl_space *space, |
||
70 | enum isl_dim_type type); |
||
71 | __isl_give isl_space *isl_space_reset_user(__isl_take isl_space *space); |
||
72 | |||
73 | __isl_give isl_space *isl_space_set_dim_id(__isl_take isl_space *space, |
||
74 | enum isl_dim_type type, unsigned pos, __isl_take isl_id *id); |
||
75 | isl_bool isl_space_has_dim_id(__isl_keep isl_space *space, |
||
76 | enum isl_dim_type type, unsigned pos); |
||
77 | __isl_give isl_id *isl_space_get_dim_id(__isl_keep isl_space *space, |
||
78 | enum isl_dim_type type, unsigned pos); |
||
79 | |||
80 | int isl_space_find_dim_by_id(__isl_keep isl_space *space, |
||
81 | enum isl_dim_type type, __isl_keep isl_id *id); |
||
82 | int isl_space_find_dim_by_name(__isl_keep isl_space *space, |
||
83 | enum isl_dim_type type, const char *name); |
||
84 | |||
85 | isl_bool isl_space_has_dim_name(__isl_keep isl_space *space, |
||
86 | enum isl_dim_type type, unsigned pos); |
||
87 | __isl_give isl_space *isl_space_set_dim_name(__isl_take isl_space *space, |
||
88 | enum isl_dim_type type, unsigned pos, |
||
89 | __isl_keep const char *name); |
||
90 | __isl_keep const char *isl_space_get_dim_name(__isl_keep isl_space *space, |
||
91 | enum isl_dim_type type, unsigned pos); |
||
92 | |||
93 | ISL_DEPRECATED |
||
94 | __isl_give isl_space *isl_space_extend(__isl_take isl_space *space, |
||
95 | unsigned nparam, unsigned n_in, unsigned n_out); |
||
96 | __isl_give isl_space *isl_space_add_dims(__isl_take isl_space *space, |
||
97 | enum isl_dim_type type, unsigned n); |
||
98 | __isl_give isl_space *isl_space_move_dims(__isl_take isl_space *space, |
||
99 | enum isl_dim_type dst_type, unsigned dst_pos, |
||
100 | enum isl_dim_type src_type, unsigned src_pos, unsigned n); |
||
101 | __isl_give isl_space *isl_space_insert_dims(__isl_take isl_space *space, |
||
102 | enum isl_dim_type type, unsigned pos, unsigned n); |
||
103 | __isl_give isl_space *isl_space_join(__isl_take isl_space *left, |
||
104 | __isl_take isl_space *right); |
||
105 | __isl_export |
||
106 | __isl_give isl_space *isl_space_product(__isl_take isl_space *left, |
||
107 | __isl_take isl_space *right); |
||
108 | __isl_give isl_space *isl_space_domain_product(__isl_take isl_space *left, |
||
109 | __isl_take isl_space *right); |
||
110 | __isl_give isl_space *isl_space_range_product(__isl_take isl_space *left, |
||
111 | __isl_take isl_space *right); |
||
112 | __isl_give isl_space *isl_space_factor_domain(__isl_take isl_space *space); |
||
113 | __isl_give isl_space *isl_space_factor_range(__isl_take isl_space *space); |
||
114 | __isl_give isl_space *isl_space_domain_factor_domain( |
||
115 | __isl_take isl_space *space); |
||
116 | __isl_give isl_space *isl_space_domain_factor_range( |
||
117 | __isl_take isl_space *space); |
||
118 | __isl_give isl_space *isl_space_range_factor_domain( |
||
119 | __isl_take isl_space *space); |
||
120 | __isl_give isl_space *isl_space_range_factor_range( |
||
121 | __isl_take isl_space *space); |
||
122 | __isl_export |
||
123 | __isl_give isl_space *isl_space_map_from_set(__isl_take isl_space *space); |
||
124 | __isl_give isl_space *isl_space_map_from_domain_and_range( |
||
125 | __isl_take isl_space *domain, __isl_take isl_space *range); |
||
126 | __isl_export |
||
127 | __isl_give isl_space *isl_space_reverse(__isl_take isl_space *space); |
||
128 | __isl_export |
||
129 | __isl_give isl_space *isl_space_range_reverse(__isl_take isl_space *space); |
||
130 | __isl_give isl_space *isl_space_drop_dims(__isl_take isl_space *space, |
||
131 | enum isl_dim_type type, unsigned first, unsigned num); |
||
132 | ISL_DEPRECATED |
||
133 | __isl_give isl_space *isl_space_drop_inputs(__isl_take isl_space *space, |
||
134 | unsigned first, unsigned n); |
||
135 | ISL_DEPRECATED |
||
136 | __isl_give isl_space *isl_space_drop_outputs(__isl_take isl_space *space, |
||
137 | unsigned first, unsigned n); |
||
138 | __isl_give isl_space *isl_space_drop_all_params(__isl_take isl_space *space); |
||
139 | __isl_export |
||
140 | __isl_give isl_space *isl_space_domain(__isl_take isl_space *space); |
||
141 | __isl_give isl_space *isl_space_from_domain(__isl_take isl_space *space); |
||
142 | __isl_export |
||
143 | __isl_give isl_space *isl_space_range(__isl_take isl_space *space); |
||
144 | __isl_give isl_space *isl_space_from_range(__isl_take isl_space *space); |
||
145 | __isl_give isl_space *isl_space_domain_map(__isl_take isl_space *space); |
||
146 | __isl_give isl_space *isl_space_range_map(__isl_take isl_space *space); |
||
147 | __isl_export |
||
148 | __isl_give isl_space *isl_space_params(__isl_take isl_space *space); |
||
149 | __isl_overload |
||
150 | __isl_give isl_space *isl_space_add_unnamed_tuple_ui( |
||
151 | __isl_take isl_space *space, unsigned dim); |
||
152 | __isl_overload |
||
153 | __isl_give isl_space *isl_space_add_named_tuple_id_ui( |
||
154 | __isl_take isl_space *space, __isl_take isl_id *tuple_id, unsigned dim); |
||
155 | __isl_give isl_space *isl_space_set_from_params(__isl_take isl_space *space); |
||
156 | |||
157 | __isl_give isl_space *isl_space_align_params(__isl_take isl_space *space1, |
||
158 | __isl_take isl_space *space2); |
||
159 | |||
160 | __isl_export |
||
161 | isl_bool isl_space_is_wrapping(__isl_keep isl_space *space); |
||
162 | isl_bool isl_space_domain_is_wrapping(__isl_keep isl_space *space); |
||
163 | isl_bool isl_space_range_is_wrapping(__isl_keep isl_space *space); |
||
164 | isl_bool isl_space_is_product(__isl_keep isl_space *space); |
||
165 | __isl_export |
||
166 | __isl_give isl_space *isl_space_wrap(__isl_take isl_space *space); |
||
167 | __isl_export |
||
168 | __isl_give isl_space *isl_space_unwrap(__isl_take isl_space *space); |
||
169 | |||
170 | isl_bool isl_space_can_zip(__isl_keep isl_space *space); |
||
171 | __isl_give isl_space *isl_space_zip(__isl_take isl_space *space); |
||
172 | |||
173 | isl_bool isl_space_can_curry(__isl_keep isl_space *space); |
||
174 | __isl_export |
||
175 | __isl_give isl_space *isl_space_curry(__isl_take isl_space *space); |
||
176 | |||
177 | isl_bool isl_space_can_range_curry(__isl_keep isl_space *space); |
||
178 | __isl_give isl_space *isl_space_range_curry(__isl_take isl_space *space); |
||
179 | |||
180 | isl_bool isl_space_can_uncurry(__isl_keep isl_space *space); |
||
181 | __isl_export |
||
182 | __isl_give isl_space *isl_space_uncurry(__isl_take isl_space *space); |
||
183 | |||
184 | isl_bool isl_space_is_domain(__isl_keep isl_space *space1, |
||
185 | __isl_keep isl_space *space2); |
||
186 | isl_bool isl_space_is_range(__isl_keep isl_space *space1, |
||
187 | __isl_keep isl_space *space2); |
||
188 | __isl_export |
||
189 | isl_bool isl_space_is_equal(__isl_keep isl_space *space1, |
||
190 | __isl_keep isl_space *space2); |
||
191 | isl_bool isl_space_has_equal_params(__isl_keep isl_space *space1, |
||
192 | __isl_keep isl_space *space2); |
||
193 | isl_bool isl_space_has_equal_tuples(__isl_keep isl_space *space1, |
||
194 | __isl_keep isl_space *space2); |
||
195 | isl_bool isl_space_tuple_is_equal(__isl_keep isl_space *space1, |
||
196 | enum isl_dim_type type1, __isl_keep isl_space *space2, |
||
197 | enum isl_dim_type type2); |
||
198 | ISL_DEPRECATED |
||
199 | isl_bool isl_space_match(__isl_keep isl_space *space1, enum isl_dim_type type1, |
||
200 | __isl_keep isl_space *space2, enum isl_dim_type type2); |
||
201 | isl_size isl_space_dim(__isl_keep isl_space *space, enum isl_dim_type type); |
||
202 | |||
203 | __isl_export |
||
204 | __isl_give isl_space *isl_space_flatten_domain(__isl_take isl_space *space); |
||
205 | __isl_export |
||
206 | __isl_give isl_space *isl_space_flatten_range(__isl_take isl_space *space); |
||
207 | |||
208 | __isl_give char *isl_space_to_str(__isl_keep isl_space *space); |
||
209 | __isl_give isl_printer *isl_printer_print_space(__isl_take isl_printer *p, |
||
210 | __isl_keep isl_space *space); |
||
211 | void isl_space_dump(__isl_keep isl_space *space); |
||
212 | |||
213 | #if defined(__cplusplus) |
||
214 | } |
||
215 | #endif |
||
216 | |||
217 | #endif |