isl_basic_map_remove_redundancies: sort constraints
[isl.git] / isl_local_space_private.h
blob50626d568d1f2568d365e676f199fbd849a539ad
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 uint32_t isl_local_space_get_hash(__isl_keep isl_local_space *ls);
17 __isl_give isl_local_space *isl_local_space_alloc(__isl_take isl_space *dim,
18 unsigned n_div);
19 __isl_give isl_local_space *isl_local_space_alloc_div(__isl_take isl_space *dim,
20 __isl_take isl_mat *div);
22 __isl_give isl_local_space *isl_local_space_swap_div(
23 __isl_take isl_local_space *ls, int a, int b);
24 __isl_give isl_local_space *isl_local_space_add_div(
25 __isl_take isl_local_space *ls, __isl_take isl_vec *div);
27 int isl_mat_cmp_div(__isl_keep isl_mat *div, int i, int j);
28 __isl_give isl_mat *isl_merge_divs(__isl_keep isl_mat *div1,
29 __isl_keep isl_mat *div2, int *exp1, int *exp2);
31 unsigned isl_local_space_offset(__isl_keep isl_local_space *ls,
32 enum isl_dim_type type);
34 __isl_give isl_local_space *isl_local_space_replace_divs(
35 __isl_take isl_local_space *ls, __isl_take isl_mat *div);
36 isl_bool isl_local_space_div_is_known(__isl_keep isl_local_space *ls, int div);
37 isl_bool isl_local_space_divs_known(__isl_keep isl_local_space *ls);
39 __isl_give isl_local_space *isl_local_space_substitute_equalities(
40 __isl_take isl_local_space *ls, __isl_take isl_basic_set *eq);
42 int isl_local_space_is_named_or_nested(__isl_keep isl_local_space *ls,
43 enum isl_dim_type type);
45 isl_bool isl_local_space_has_equal_space(__isl_keep isl_local_space *ls1,
46 __isl_keep isl_local_space *ls2);
48 __isl_give isl_local_space *isl_local_space_reset_space(
49 __isl_take isl_local_space *ls, __isl_take isl_space *dim);
50 __isl_give isl_local_space *isl_local_space_realign(
51 __isl_take isl_local_space *ls, __isl_take isl_reordering *r);
53 int isl_local_space_is_div_constraint(__isl_keep isl_local_space *ls,
54 isl_int *constraint, unsigned div);
56 int *isl_local_space_get_active(__isl_keep isl_local_space *ls, isl_int *l);
58 __isl_give isl_local_space *isl_local_space_substitute_seq(
59 __isl_take isl_local_space *ls,
60 enum isl_dim_type type, unsigned pos, isl_int *subs, int subs_len,
61 int first, int n);
62 __isl_give isl_local_space *isl_local_space_substitute(
63 __isl_take isl_local_space *ls,
64 enum isl_dim_type type, unsigned pos, __isl_keep isl_aff *subs);
66 __isl_give isl_local_space *isl_local_space_lift(
67 __isl_take isl_local_space *ls);
69 __isl_give isl_local_space *isl_local_space_preimage_multi_aff(
70 __isl_take isl_local_space *ls, __isl_take isl_multi_aff *ma);
72 __isl_give isl_local_space *isl_local_space_move_dims(
73 __isl_take isl_local_space *ls,
74 enum isl_dim_type dst_type, unsigned dst_pos,
75 enum isl_dim_type src_type, unsigned src_pos, unsigned n);
77 int isl_local_space_cmp(__isl_keep isl_local_space *ls1,
78 __isl_keep isl_local_space *ls2);
80 #endif