isl_union_*_alloc: project space onto parameters
[isl.git] / isl_space_private.h
blob74480d6156761bf093b4a254ca8f57f1d83af014
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 __isl_give isl_space *isl_space_as_set_space(__isl_take isl_space *dim);
31 unsigned isl_space_offset(__isl_keep isl_space *dim, enum isl_dim_type type);
33 int isl_space_may_be_set(__isl_keep isl_space *dim);
34 int isl_space_is_named_or_nested(__isl_keep isl_space *dim, enum isl_dim_type type);
35 int isl_space_has_named_params(__isl_keep isl_space *dim);
36 __isl_give isl_space *isl_space_reset(__isl_take isl_space *dim,
37 enum isl_dim_type type);
38 __isl_give isl_space *isl_space_flatten(__isl_take isl_space *dim);
39 __isl_give isl_space *isl_space_flatten_domain(__isl_take isl_space *dim);
40 __isl_give isl_space *isl_space_flatten_range(__isl_take isl_space *dim);
42 __isl_give isl_space *isl_space_replace(__isl_take isl_space *dst,
43 enum isl_dim_type type, __isl_keep isl_space *src);
45 __isl_give isl_space *isl_space_lift(__isl_take isl_space *dim, unsigned n_local);