isl_map_union_disjoint: check spaces before handling special cases
[isl.git] / isl_local_space_private.h
blob4d7e69ff2b56e4c94e940ffc21d4adcc694dad1a
1 #ifndef ISL_LOCAL_SPACE_PRIVATE_H
2 #define ISL_LOCAL_SPACE_PRIVATE_H
4 #include <isl/mat.h>
5 #include <isl/set.h>
6 #include <isl/local_space.h>
8 struct isl_local_space {
9 int ref;
11 isl_space *dim;
12 isl_mat *div;
15 __isl_give isl_local_space *isl_local_space_alloc(__isl_take isl_space *dim,
16 unsigned n_div);
17 __isl_give isl_local_space *isl_local_space_alloc_div(__isl_take isl_space *dim,
18 __isl_take isl_mat *div);
20 __isl_give isl_local_space *isl_local_space_swap_div(
21 __isl_take isl_local_space *ls, int a, int b);
22 __isl_give isl_local_space *isl_local_space_add_div(
23 __isl_take isl_local_space *ls, __isl_take isl_vec *div);
25 int isl_mat_cmp_div(__isl_keep isl_mat *div, int i, int j);
26 __isl_give isl_mat *isl_merge_divs(__isl_keep isl_mat *div1,
27 __isl_keep isl_mat *div2, int *exp1, int *exp2);
29 unsigned isl_local_space_offset(__isl_keep isl_local_space *ls,
30 enum isl_dim_type type);
32 __isl_give isl_local_space *isl_local_space_replace_divs(
33 __isl_take isl_local_space *ls, __isl_take isl_mat *div);
34 int isl_local_space_div_is_known(__isl_keep isl_local_space *ls, int div);
35 int isl_local_space_divs_known(__isl_keep isl_local_space *ls);
37 __isl_give isl_local_space *isl_local_space_substitute_equalities(
38 __isl_take isl_local_space *ls, __isl_take isl_basic_set *eq);
40 int isl_local_space_is_named_or_nested(__isl_keep isl_local_space *ls,
41 enum isl_dim_type type);
43 __isl_give isl_local_space *isl_local_space_reset_space(
44 __isl_take isl_local_space *ls, __isl_take isl_space *dim);
45 __isl_give isl_local_space *isl_local_space_realign(
46 __isl_take isl_local_space *ls, __isl_take isl_reordering *r);
48 int isl_local_space_is_div_constraint(__isl_keep isl_local_space *ls,
49 isl_int *constraint, unsigned div);
51 int *isl_local_space_get_active(__isl_keep isl_local_space *ls, isl_int *l);
53 __isl_give isl_local_space *isl_local_space_substitute_seq(
54 __isl_take isl_local_space *ls,
55 enum isl_dim_type type, unsigned pos, isl_int *subs, int subs_len,
56 int first, int n);
57 __isl_give isl_local_space *isl_local_space_substitute(
58 __isl_take isl_local_space *ls,
59 enum isl_dim_type type, unsigned pos, __isl_keep isl_aff *subs);
61 __isl_give isl_local_space *isl_local_space_lift(
62 __isl_take isl_local_space *ls);
64 __isl_give isl_local_space *isl_local_space_preimage_multi_aff(
65 __isl_take isl_local_space *ls, __isl_take isl_multi_aff *ma);
67 __isl_give isl_local_space *isl_local_space_move_dims(
68 __isl_take isl_local_space *ls,
69 enum isl_dim_type dst_type, unsigned dst_pos,
70 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
72 int isl_local_space_cmp(__isl_keep isl_local_space *ls1,
73 __isl_keep isl_local_space *ls2);
75 #endif