isl_tab_detect_equalities: plug memory leak on error path
[isl.git] / isl_space_private.h
blobcc4a89eba09b98a01f3488b454284d312e7fa1a4
1 #include <isl/space.h>
2 #include <isl/hash.h>
3 #include <isl/id.h>
5 struct isl_name;
6 struct isl_space {
7 int ref;
9 struct isl_ctx *ctx;
11 unsigned nparam;
12 unsigned n_in; /* zero for sets */
13 unsigned n_out; /* dim for sets */
15 isl_id *tuple_id[2];
16 isl_space *nested[2];
18 unsigned n_id;
19 isl_id **ids;
22 __isl_give isl_space *isl_space_cow(__isl_take isl_space *dim);
24 __isl_give isl_space *isl_space_underlying(__isl_take isl_space *dim,
25 unsigned n_div);
27 uint32_t isl_space_get_hash(__isl_keep isl_space *dim);
29 int isl_space_is_domain_internal(__isl_keep isl_space *space1,
30 __isl_keep isl_space *space2);
31 int isl_space_is_range_internal(__isl_keep isl_space *space1,
32 __isl_keep isl_space *space2);
34 __isl_give isl_space *isl_space_as_set_space(__isl_take isl_space *dim);
36 unsigned isl_space_offset(__isl_keep isl_space *dim, enum isl_dim_type type);
38 int isl_space_may_be_set(__isl_keep isl_space *dim);
39 int isl_space_is_named_or_nested(__isl_keep isl_space *dim, enum isl_dim_type type);
40 int isl_space_has_named_params(__isl_keep isl_space *dim);
41 __isl_give isl_space *isl_space_reset(__isl_take isl_space *dim,
42 enum isl_dim_type type);
43 __isl_give isl_space *isl_space_flatten(__isl_take isl_space *dim);
44 __isl_give isl_space *isl_space_flatten_domain(__isl_take isl_space *dim);
45 __isl_give isl_space *isl_space_flatten_range(__isl_take isl_space *dim);
47 __isl_give isl_space *isl_space_replace(__isl_take isl_space *dst,
48 enum isl_dim_type type, __isl_keep isl_space *src);
50 __isl_give isl_space *isl_space_lift(__isl_take isl_space *dim, unsigned n_local);
52 __isl_give isl_space *isl_space_extend_domain_with_range(
53 __isl_take isl_space *domain, __isl_take isl_space *model);