source: Daodan/MSYS2/mingw32/include/isl/space.h@ 1167

Last change on this file since 1167 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 8.9 KB
Line 
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)
19extern "C" {
20#endif
21
22isl_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
33isl_bool isl_space_is_params(__isl_keep isl_space *space);
34isl_bool isl_space_is_set(__isl_keep isl_space *space);
35isl_bool isl_space_is_map(__isl_keep isl_space *space);
36
37__isl_give isl_space *isl_space_add_param_id(__isl_take isl_space *space,
38 __isl_take isl_id *id);
39
40__isl_give isl_space *isl_space_set_tuple_name(__isl_take isl_space *space,
41 enum isl_dim_type type, const char *s);
42isl_bool isl_space_has_tuple_name(__isl_keep isl_space *space,
43 enum isl_dim_type type);
44__isl_keep const char *isl_space_get_tuple_name(__isl_keep isl_space *space,
45 enum isl_dim_type type);
46__isl_overload
47__isl_give isl_space *isl_space_set_domain_tuple_id(
48 __isl_take isl_space *space, __isl_take isl_id *id);
49__isl_overload
50__isl_give isl_space *isl_space_set_range_tuple_id(
51 __isl_take isl_space *space, __isl_take isl_id *id);
52__isl_give isl_space *isl_space_set_tuple_id(__isl_take isl_space *space,
53 enum isl_dim_type type, __isl_take isl_id *id);
54__isl_give isl_space *isl_space_reset_tuple_id(__isl_take isl_space *space,
55 enum isl_dim_type type);
56__isl_export
57isl_bool isl_space_has_domain_tuple_id(__isl_keep isl_space *space);
58__isl_export
59isl_bool isl_space_has_range_tuple_id(__isl_keep isl_space *space);
60isl_bool isl_space_has_tuple_id(__isl_keep isl_space *space,
61 enum isl_dim_type type);
62__isl_export
63__isl_give isl_id *isl_space_get_domain_tuple_id(
64 __isl_keep isl_space *space);
65__isl_export
66__isl_give isl_id *isl_space_get_range_tuple_id(
67 __isl_keep isl_space *space);
68__isl_give isl_id *isl_space_get_tuple_id(__isl_keep isl_space *space,
69 enum isl_dim_type type);
70__isl_give isl_space *isl_space_reset_user(__isl_take isl_space *space);
71
72__isl_give isl_space *isl_space_set_dim_id(__isl_take isl_space *space,
73 enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
74isl_bool isl_space_has_dim_id(__isl_keep isl_space *space,
75 enum isl_dim_type type, unsigned pos);
76__isl_give isl_id *isl_space_get_dim_id(__isl_keep isl_space *space,
77 enum isl_dim_type type, unsigned pos);
78
79int isl_space_find_dim_by_id(__isl_keep isl_space *space,
80 enum isl_dim_type type, __isl_keep isl_id *id);
81int isl_space_find_dim_by_name(__isl_keep isl_space *space,
82 enum isl_dim_type type, const char *name);
83
84isl_bool isl_space_has_dim_name(__isl_keep isl_space *space,
85 enum isl_dim_type type, unsigned pos);
86__isl_give isl_space *isl_space_set_dim_name(__isl_take isl_space *space,
87 enum isl_dim_type type, unsigned pos,
88 __isl_keep const char *name);
89__isl_keep const char *isl_space_get_dim_name(__isl_keep isl_space *space,
90 enum isl_dim_type type, unsigned pos);
91
92ISL_DEPRECATED
93__isl_give isl_space *isl_space_extend(__isl_take isl_space *space,
94 unsigned nparam, unsigned n_in, unsigned n_out);
95__isl_give isl_space *isl_space_add_dims(__isl_take isl_space *space,
96 enum isl_dim_type type, unsigned n);
97__isl_give isl_space *isl_space_move_dims(__isl_take isl_space *space,
98 enum isl_dim_type dst_type, unsigned dst_pos,
99 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
100__isl_give isl_space *isl_space_insert_dims(__isl_take isl_space *space,
101 enum isl_dim_type type, unsigned pos, unsigned n);
102__isl_give isl_space *isl_space_join(__isl_take isl_space *left,
103 __isl_take isl_space *right);
104__isl_export
105__isl_give isl_space *isl_space_product(__isl_take isl_space *left,
106 __isl_take isl_space *right);
107__isl_give isl_space *isl_space_domain_product(__isl_take isl_space *left,
108 __isl_take isl_space *right);
109__isl_give isl_space *isl_space_range_product(__isl_take isl_space *left,
110 __isl_take isl_space *right);
111__isl_give isl_space *isl_space_factor_domain(__isl_take isl_space *space);
112__isl_give isl_space *isl_space_factor_range(__isl_take isl_space *space);
113__isl_give isl_space *isl_space_domain_factor_domain(
114 __isl_take isl_space *space);
115__isl_give isl_space *isl_space_domain_factor_range(
116 __isl_take isl_space *space);
117__isl_give isl_space *isl_space_range_factor_domain(
118 __isl_take isl_space *space);
119__isl_give isl_space *isl_space_range_factor_range(
120 __isl_take isl_space *space);
121__isl_export
122__isl_give isl_space *isl_space_map_from_set(__isl_take isl_space *space);
123__isl_give isl_space *isl_space_map_from_domain_and_range(
124 __isl_take isl_space *domain, __isl_take isl_space *range);
125__isl_export
126__isl_give isl_space *isl_space_reverse(__isl_take isl_space *space);
127__isl_export
128__isl_give isl_space *isl_space_range_reverse(__isl_take isl_space *space);
129__isl_give isl_space *isl_space_drop_dims(__isl_take isl_space *space,
130 enum isl_dim_type type, unsigned first, unsigned num);
131ISL_DEPRECATED
132__isl_give isl_space *isl_space_drop_inputs(__isl_take isl_space *space,
133 unsigned first, unsigned n);
134ISL_DEPRECATED
135__isl_give isl_space *isl_space_drop_outputs(__isl_take isl_space *space,
136 unsigned first, unsigned n);
137__isl_give isl_space *isl_space_drop_all_params(__isl_take isl_space *space);
138__isl_export
139__isl_give isl_space *isl_space_domain(__isl_take isl_space *space);
140__isl_give isl_space *isl_space_from_domain(__isl_take isl_space *space);
141__isl_export
142__isl_give isl_space *isl_space_range(__isl_take isl_space *space);
143__isl_give isl_space *isl_space_from_range(__isl_take isl_space *space);
144__isl_give isl_space *isl_space_domain_map(__isl_take isl_space *space);
145__isl_give isl_space *isl_space_range_map(__isl_take isl_space *space);
146__isl_export
147__isl_give isl_space *isl_space_params(__isl_take isl_space *space);
148__isl_overload
149__isl_give isl_space *isl_space_add_unnamed_tuple_ui(
150 __isl_take isl_space *space, unsigned dim);
151__isl_overload
152__isl_give isl_space *isl_space_add_named_tuple_id_ui(
153 __isl_take isl_space *space, __isl_take isl_id *tuple_id, unsigned dim);
154__isl_give isl_space *isl_space_set_from_params(__isl_take isl_space *space);
155
156__isl_give isl_space *isl_space_align_params(__isl_take isl_space *space1,
157 __isl_take isl_space *space2);
158
159__isl_export
160isl_bool isl_space_is_wrapping(__isl_keep isl_space *space);
161isl_bool isl_space_domain_is_wrapping(__isl_keep isl_space *space);
162isl_bool isl_space_range_is_wrapping(__isl_keep isl_space *space);
163isl_bool isl_space_is_product(__isl_keep isl_space *space);
164__isl_export
165__isl_give isl_space *isl_space_wrap(__isl_take isl_space *space);
166__isl_export
167__isl_give isl_space *isl_space_unwrap(__isl_take isl_space *space);
168
169isl_bool isl_space_can_zip(__isl_keep isl_space *space);
170__isl_give isl_space *isl_space_zip(__isl_take isl_space *space);
171
172isl_bool isl_space_can_curry(__isl_keep isl_space *space);
173__isl_export
174__isl_give isl_space *isl_space_curry(__isl_take isl_space *space);
175
176isl_bool isl_space_can_range_curry(__isl_keep isl_space *space);
177__isl_give isl_space *isl_space_range_curry(__isl_take isl_space *space);
178
179isl_bool isl_space_can_uncurry(__isl_keep isl_space *space);
180__isl_export
181__isl_give isl_space *isl_space_uncurry(__isl_take isl_space *space);
182
183isl_bool isl_space_is_domain(__isl_keep isl_space *space1,
184 __isl_keep isl_space *space2);
185isl_bool isl_space_is_range(__isl_keep isl_space *space1,
186 __isl_keep isl_space *space2);
187__isl_export
188isl_bool isl_space_is_equal(__isl_keep isl_space *space1,
189 __isl_keep isl_space *space2);
190isl_bool isl_space_has_equal_params(__isl_keep isl_space *space1,
191 __isl_keep isl_space *space2);
192isl_bool isl_space_has_equal_tuples(__isl_keep isl_space *space1,
193 __isl_keep isl_space *space2);
194isl_bool isl_space_tuple_is_equal(__isl_keep isl_space *space1,
195 enum isl_dim_type type1, __isl_keep isl_space *space2,
196 enum isl_dim_type type2);
197ISL_DEPRECATED
198isl_bool isl_space_match(__isl_keep isl_space *space1, enum isl_dim_type type1,
199 __isl_keep isl_space *space2, enum isl_dim_type type2);
200isl_size isl_space_dim(__isl_keep isl_space *space, enum isl_dim_type type);
201
202__isl_export
203__isl_give isl_space *isl_space_flatten_domain(__isl_take isl_space *space);
204__isl_export
205__isl_give isl_space *isl_space_flatten_range(__isl_take isl_space *space);
206
207__isl_give char *isl_space_to_str(__isl_keep isl_space *space);
208__isl_give isl_printer *isl_printer_print_space(__isl_take isl_printer *p,
209 __isl_keep isl_space *space);
210void isl_space_dump(__isl_keep isl_space *space);
211
212#if defined(__cplusplus)
213}
214#endif
215
216#endif
Note: See TracBrowser for help on using the repository browser.