isl_basic_map_plain_cmp: use isl_space_cmp to compare spaces
[isl.git] / isl_space_private.h
blob8f546535f3fb0c4a5651df7068b1538debf91b54
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);
38 unsigned isl_space_offset(__isl_keep isl_space *dim, enum isl_dim_type type);
40 isl_bool isl_space_may_be_set(__isl_keep isl_space *space);
41 isl_bool isl_space_is_named_or_nested(__isl_keep isl_space *space,
42 enum isl_dim_type type);
43 isl_bool isl_space_has_equal_ids(__isl_keep isl_space *space1,
44 __isl_keep isl_space *space2);
45 isl_bool isl_space_has_named_params(__isl_keep isl_space *space);
46 isl_stat isl_space_check_named_params(__isl_keep isl_space *space);
47 isl_stat isl_space_check_equal_params(__isl_keep isl_space *space1,
48 __isl_keep isl_space *space2);
49 __isl_give isl_space *isl_space_reset(__isl_take isl_space *dim,
50 enum isl_dim_type type);
51 __isl_give isl_space *isl_space_flatten(__isl_take isl_space *dim);
52 __isl_give isl_space *isl_space_flatten_domain(__isl_take isl_space *dim);
53 __isl_give isl_space *isl_space_flatten_range(__isl_take isl_space *dim);
55 __isl_give isl_space *isl_space_replace(__isl_take isl_space *dst,
56 enum isl_dim_type type, __isl_keep isl_space *src);
58 __isl_give isl_space *isl_space_lift(__isl_take isl_space *dim, unsigned n_local);
60 __isl_give isl_space *isl_space_extend_domain_with_range(
61 __isl_take isl_space *domain, __isl_take isl_space *model);
63 int isl_space_cmp(__isl_keep isl_space *space1, __isl_keep isl_space *space2);
65 #endif