isl_tab_basic_map_partial_lexopt: add memory management annotations
[isl.git] / isl_space_private.h
blob6ceba0767f161ed7532e18ebf4090580c9455549
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 __isl_give isl_space *isl_space_as_set_space(__isl_take isl_space *dim);
40 unsigned isl_space_offset(__isl_keep isl_space *dim, enum isl_dim_type type);
42 int isl_space_may_be_set(__isl_keep isl_space *dim);
43 int isl_space_is_named_or_nested(__isl_keep isl_space *dim, enum isl_dim_type type);
44 int isl_space_has_named_params(__isl_keep isl_space *dim);
45 __isl_give isl_space *isl_space_reset(__isl_take isl_space *dim,
46 enum isl_dim_type type);
47 __isl_give isl_space *isl_space_flatten(__isl_take isl_space *dim);
48 __isl_give isl_space *isl_space_flatten_domain(__isl_take isl_space *dim);
49 __isl_give isl_space *isl_space_flatten_range(__isl_take isl_space *dim);
51 __isl_give isl_space *isl_space_replace(__isl_take isl_space *dst,
52 enum isl_dim_type type, __isl_keep isl_space *src);
54 __isl_give isl_space *isl_space_lift(__isl_take isl_space *dim, unsigned n_local);
56 __isl_give isl_space *isl_space_extend_domain_with_range(
57 __isl_take isl_space *domain, __isl_take isl_space *model);
59 int isl_space_cmp(__isl_keep isl_space *space1, __isl_keep isl_space *space2);
61 #endif