2 * Copyright 2008-2009 Katholieke Universiteit Leuven
4 * Use of this software is governed by the MIT license
6 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
15 #include <isl/printer.h>
17 #if defined(__cplusplus)
22 typedef struct isl_space isl_space
;
29 isl_dim_set
= isl_dim_out
,
34 isl_ctx
*isl_space_get_ctx(__isl_keep isl_space
*dim
);
35 __isl_give isl_space
*isl_space_alloc(isl_ctx
*ctx
,
36 unsigned nparam
, unsigned n_in
, unsigned n_out
);
37 __isl_give isl_space
*isl_space_set_alloc(isl_ctx
*ctx
,
38 unsigned nparam
, unsigned dim
);
39 __isl_give isl_space
*isl_space_params_alloc(isl_ctx
*ctx
, unsigned nparam
);
40 __isl_give isl_space
*isl_space_copy(__isl_keep isl_space
*dim
);
41 __isl_null isl_space
*isl_space_free(__isl_take isl_space
*space
);
43 isl_bool
isl_space_is_params(__isl_keep isl_space
*space
);
44 isl_bool
isl_space_is_set(__isl_keep isl_space
*space
);
45 isl_bool
isl_space_is_map(__isl_keep isl_space
*space
);
47 __isl_give isl_space
*isl_space_set_tuple_name(__isl_take isl_space
*dim
,
48 enum isl_dim_type type
, const char *s
);
49 isl_bool
isl_space_has_tuple_name(__isl_keep isl_space
*space
,
50 enum isl_dim_type type
);
51 const char *isl_space_get_tuple_name(__isl_keep isl_space
*dim
,
52 enum isl_dim_type type
);
53 __isl_give isl_space
*isl_space_set_tuple_id(__isl_take isl_space
*dim
,
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
*dim
,
56 enum isl_dim_type type
);
57 isl_bool
isl_space_has_tuple_id(__isl_keep isl_space
*dim
,
58 enum isl_dim_type type
);
59 __isl_give isl_id
*isl_space_get_tuple_id(__isl_keep isl_space
*dim
,
60 enum isl_dim_type type
);
61 __isl_give isl_space
*isl_space_reset_user(__isl_take isl_space
*space
);
63 __isl_give isl_space
*isl_space_set_dim_id(__isl_take isl_space
*dim
,
64 enum isl_dim_type type
, unsigned pos
, __isl_take isl_id
*id
);
65 isl_bool
isl_space_has_dim_id(__isl_keep isl_space
*dim
,
66 enum isl_dim_type type
, unsigned pos
);
67 __isl_give isl_id
*isl_space_get_dim_id(__isl_keep isl_space
*dim
,
68 enum isl_dim_type type
, unsigned pos
);
70 int isl_space_find_dim_by_id(__isl_keep isl_space
*dim
, enum isl_dim_type type
,
71 __isl_keep isl_id
*id
);
72 int isl_space_find_dim_by_name(__isl_keep isl_space
*space
,
73 enum isl_dim_type type
, const char *name
);
75 isl_bool
isl_space_has_dim_name(__isl_keep isl_space
*space
,
76 enum isl_dim_type type
, unsigned pos
);
77 __isl_give isl_space
*isl_space_set_dim_name(__isl_take isl_space
*dim
,
78 enum isl_dim_type type
, unsigned pos
,
79 __isl_keep
const char *name
);
80 __isl_keep
const char *isl_space_get_dim_name(__isl_keep isl_space
*dim
,
81 enum isl_dim_type type
, unsigned pos
);
83 __isl_give isl_space
*isl_space_extend(__isl_take isl_space
*dim
,
84 unsigned nparam
, unsigned n_in
, unsigned n_out
);
85 __isl_give isl_space
*isl_space_add_dims(__isl_take isl_space
*dim
, enum isl_dim_type type
,
87 __isl_give isl_space
*isl_space_move_dims(__isl_take isl_space
*dim
,
88 enum isl_dim_type dst_type
, unsigned dst_pos
,
89 enum isl_dim_type src_type
, unsigned src_pos
, unsigned n
);
90 __isl_give isl_space
*isl_space_insert_dims(__isl_take isl_space
*dim
,
91 enum isl_dim_type type
, unsigned pos
, unsigned n
);
92 __isl_give isl_space
*isl_space_join(__isl_take isl_space
*left
,
93 __isl_take isl_space
*right
);
94 __isl_give isl_space
*isl_space_product(__isl_take isl_space
*left
,
95 __isl_take isl_space
*right
);
96 __isl_give isl_space
*isl_space_domain_product(__isl_take isl_space
*left
,
97 __isl_take isl_space
*right
);
98 __isl_give isl_space
*isl_space_range_product(__isl_take isl_space
*left
,
99 __isl_take isl_space
*right
);
100 __isl_give isl_space
*isl_space_factor_domain(__isl_take isl_space
*space
);
101 __isl_give isl_space
*isl_space_factor_range(__isl_take isl_space
*space
);
102 __isl_give isl_space
*isl_space_domain_factor_domain(
103 __isl_take isl_space
*space
);
104 __isl_give isl_space
*isl_space_domain_factor_range(
105 __isl_take isl_space
*space
);
106 __isl_give isl_space
*isl_space_range_factor_domain(
107 __isl_take isl_space
*space
);
108 __isl_give isl_space
*isl_space_range_factor_range(
109 __isl_take isl_space
*space
);
110 __isl_give isl_space
*isl_space_map_from_set(__isl_take isl_space
*dim
);
111 __isl_give isl_space
*isl_space_map_from_domain_and_range(
112 __isl_take isl_space
*domain
, __isl_take isl_space
*range
);
113 __isl_give isl_space
*isl_space_reverse(__isl_take isl_space
*dim
);
114 __isl_give isl_space
*isl_space_drop_dims(__isl_take isl_space
*dim
,
115 enum isl_dim_type type
, unsigned first
, unsigned num
);
116 __isl_give isl_space
*isl_space_drop_inputs(__isl_take isl_space
*dim
,
117 unsigned first
, unsigned n
);
118 __isl_give isl_space
*isl_space_drop_outputs(__isl_take isl_space
*dim
,
119 unsigned first
, unsigned n
);
120 __isl_give isl_space
*isl_space_domain(__isl_take isl_space
*dim
);
121 __isl_give isl_space
*isl_space_from_domain(__isl_take isl_space
*dim
);
122 __isl_give isl_space
*isl_space_range(__isl_take isl_space
*dim
);
123 __isl_give isl_space
*isl_space_from_range(__isl_take isl_space
*dim
);
124 __isl_give isl_space
*isl_space_domain_map(__isl_take isl_space
*space
);
125 __isl_give isl_space
*isl_space_range_map(__isl_take isl_space
*space
);
126 __isl_give isl_space
*isl_space_params(__isl_take isl_space
*space
);
127 __isl_give isl_space
*isl_space_set_from_params(__isl_take isl_space
*space
);
129 __isl_give isl_space
*isl_space_align_params(__isl_take isl_space
*dim1
,
130 __isl_take isl_space
*dim2
);
132 isl_bool
isl_space_is_wrapping(__isl_keep isl_space
*dim
);
133 isl_bool
isl_space_domain_is_wrapping(__isl_keep isl_space
*space
);
134 isl_bool
isl_space_range_is_wrapping(__isl_keep isl_space
*space
);
135 __isl_give isl_space
*isl_space_wrap(__isl_take isl_space
*dim
);
136 __isl_give isl_space
*isl_space_unwrap(__isl_take isl_space
*dim
);
138 isl_bool
isl_space_can_zip(__isl_keep isl_space
*dim
);
139 __isl_give isl_space
*isl_space_zip(__isl_take isl_space
*dim
);
141 isl_bool
isl_space_can_curry(__isl_keep isl_space
*space
);
142 __isl_give isl_space
*isl_space_curry(__isl_take isl_space
*space
);
144 isl_bool
isl_space_can_range_curry(__isl_keep isl_space
*space
);
145 __isl_give isl_space
*isl_space_range_curry(__isl_take isl_space
*space
);
147 isl_bool
isl_space_can_uncurry(__isl_keep isl_space
*space
);
148 __isl_give isl_space
*isl_space_uncurry(__isl_take isl_space
*space
);
150 isl_bool
isl_space_is_domain(__isl_keep isl_space
*space1
,
151 __isl_keep isl_space
*space2
);
152 isl_bool
isl_space_is_range(__isl_keep isl_space
*space1
,
153 __isl_keep isl_space
*space2
);
154 isl_bool
isl_space_is_equal(__isl_keep isl_space
*space1
,
155 __isl_keep isl_space
*space2
);
156 isl_bool
isl_space_has_equal_tuples(__isl_keep isl_space
*space1
,
157 __isl_keep isl_space
*space2
);
158 isl_bool
isl_space_tuple_is_equal(__isl_keep isl_space
*space1
,
159 enum isl_dim_type type1
, __isl_keep isl_space
*space2
,
160 enum isl_dim_type type2
);
161 isl_bool
isl_space_match(__isl_keep isl_space
*space1
, enum isl_dim_type type1
,
162 __isl_keep isl_space
*space2
, enum isl_dim_type type2
);
164 int isl_space_tuple_match(__isl_keep isl_space
*space1
, enum isl_dim_type type1
,
165 __isl_keep isl_space
*space2
, enum isl_dim_type type2
);
166 int isl_space_compatible(__isl_keep isl_space
*dim1
,
167 __isl_keep isl_space
*dim2
);
168 unsigned isl_space_dim(__isl_keep isl_space
*dim
, enum isl_dim_type type
);
170 __isl_give
char *isl_space_to_str(__isl_keep isl_space
*space
);
171 __isl_give isl_printer
*isl_printer_print_space(__isl_take isl_printer
*p
,
172 __isl_keep isl_space
*dim
);
173 void isl_space_dump(__isl_keep isl_space
*dim
);
175 #if defined(__cplusplus)