add isl_map_gist_range
[isl.git] / isl_space_private.h
blob73762de4251d75fbeb1ecc36e8f5257f965d2237
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(__isl_keep isl_space *space1,
30 __isl_keep isl_space *space2);
32 __isl_give isl_space *isl_space_as_set_space(__isl_take isl_space *dim);
34 unsigned isl_space_offset(__isl_keep isl_space *dim, enum isl_dim_type type);
36 int isl_space_may_be_set(__isl_keep isl_space *dim);
37 int isl_space_is_named_or_nested(__isl_keep isl_space *dim, enum isl_dim_type type);
38 int isl_space_has_named_params(__isl_keep isl_space *dim);
39 __isl_give isl_space *isl_space_reset(__isl_take isl_space *dim,
40 enum isl_dim_type type);
41 __isl_give isl_space *isl_space_flatten(__isl_take isl_space *dim);
42 __isl_give isl_space *isl_space_flatten_domain(__isl_take isl_space *dim);
43 __isl_give isl_space *isl_space_flatten_range(__isl_take isl_space *dim);
45 __isl_give isl_space *isl_space_replace(__isl_take isl_space *dst,
46 enum isl_dim_type type, __isl_keep isl_space *src);
48 __isl_give isl_space *isl_space_lift(__isl_take isl_space *dim, unsigned n_local);
50 __isl_give isl_space *isl_space_extend_domain_with_range(
51 __isl_take isl_space *domain, __isl_take isl_space *model);