add isl_local_div_is_marked_unknown
[isl.git] / isl_space_private.h
blob41df885524d8f74a5348baae49d055c51913493d
1 #ifndef ISL_SPACE_PRIVATE
2 #define ISL_SPACE_PRIVATE
4 #include <isl/space.h>
5 #include <isl/hash.h>
6 #include <isl/id.h>
8 struct isl_name;
9 struct isl_space {
10 int ref;
12 struct isl_ctx *ctx;
14 unsigned nparam;
15 unsigned n_in; /* zero for sets */
16 unsigned n_out; /* dim for sets */
18 isl_id *tuple_id[2];
19 isl_space *nested[2];
21 unsigned n_id;
22 isl_id **ids;
25 __isl_give isl_space *isl_space_cow(__isl_take isl_space *dim);
27 __isl_give isl_space *isl_space_underlying(__isl_take isl_space *dim,
28 unsigned n_div);
30 uint32_t isl_space_get_hash(__isl_keep isl_space *dim);
31 uint32_t isl_space_get_domain_hash(__isl_keep isl_space *space);
33 isl_bool isl_space_is_domain_internal(__isl_keep isl_space *space1,
34 __isl_keep isl_space *space2);
35 isl_bool isl_space_is_range_internal(__isl_keep isl_space *space1,
36 __isl_keep isl_space *space2);
37 int isl_space_compatible_internal(__isl_keep isl_space *dim1,
38 __isl_keep isl_space *dim2);
40 __isl_give isl_space *isl_space_as_set_space(__isl_take isl_space *dim);
42 unsigned isl_space_offset(__isl_keep isl_space *dim, enum isl_dim_type type);
44 int isl_space_may_be_set(__isl_keep isl_space *dim);
45 int isl_space_is_named_or_nested(__isl_keep isl_space *dim, enum isl_dim_type type);
46 int isl_space_has_named_params(__isl_keep isl_space *dim);
47 __isl_give isl_space *isl_space_reset(__isl_take isl_space *dim,
48 enum isl_dim_type type);
49 __isl_give isl_space *isl_space_flatten(__isl_take isl_space *dim);
50 __isl_give isl_space *isl_space_flatten_domain(__isl_take isl_space *dim);
51 __isl_give isl_space *isl_space_flatten_range(__isl_take isl_space *dim);
53 __isl_give isl_space *isl_space_replace(__isl_take isl_space *dst,
54 enum isl_dim_type type, __isl_keep isl_space *src);
56 __isl_give isl_space *isl_space_lift(__isl_take isl_space *dim, unsigned n_local);
58 __isl_give isl_space *isl_space_extend_domain_with_range(
59 __isl_take isl_space *domain, __isl_take isl_space *model);
61 int isl_space_cmp(__isl_keep isl_space *space1, __isl_keep isl_space *space2);
63 #endif