isl_tab: optionally keep track of row signs
[isl.git] / isl_map_private.h
blobe149d7a0de8ad70b314b1be7315767c283d13cad
1 #include "isl_set.h"
2 #include "isl_map.h"
3 #include "isl_vec.h"
5 unsigned isl_basic_map_offset(struct isl_basic_map *bmap,
6 enum isl_dim_type type);
8 int isl_map_compatible_domain(struct isl_map *map, struct isl_set *set);
9 int isl_basic_map_compatible_domain(struct isl_basic_map *bmap,
10 struct isl_basic_set *bset);
11 int isl_basic_map_compatible_range(struct isl_basic_map *bmap,
12 struct isl_basic_set *bset);
14 struct isl_basic_map *isl_basic_map_extend_dim(struct isl_basic_map *base,
15 struct isl_dim *dim, unsigned extra,
16 unsigned n_eq, unsigned n_ineq);
17 struct isl_basic_set *isl_basic_set_extend_dim(struct isl_basic_set *base,
18 struct isl_dim *dim, unsigned extra,
19 unsigned n_eq, unsigned n_ineq);
20 struct isl_basic_set *isl_basic_set_add_constraints(struct isl_basic_set *bset1,
21 struct isl_basic_set *bset2, unsigned pos);
23 struct isl_map *isl_map_grow(struct isl_map *map, int n);
24 struct isl_set *isl_set_grow(struct isl_set *set, int n);
26 int isl_basic_set_contains(struct isl_basic_set *bset, struct isl_vec *vec);
28 struct isl_basic_set *isl_basic_set_alloc_dim(struct isl_dim *dim,
29 unsigned extra, unsigned n_eq, unsigned n_ineq);
30 struct isl_set *isl_set_alloc_dim(struct isl_dim *dim, int n, unsigned flags);
31 struct isl_basic_map *isl_basic_map_alloc_dim(struct isl_dim *dim,
32 unsigned extra, unsigned n_eq, unsigned n_ineq);
33 struct isl_map *isl_map_alloc_dim(struct isl_dim *dim, int n, unsigned flags);
35 unsigned isl_basic_map_total_dim(const struct isl_basic_map *bmap);
37 int isl_basic_map_alloc_equality(struct isl_basic_map *bmap);
38 int isl_basic_set_alloc_equality(struct isl_basic_set *bset);
39 int isl_basic_set_free_inequality(struct isl_basic_set *bset, unsigned n);
40 int isl_basic_map_free_equality(struct isl_basic_map *bmap, unsigned n);
41 int isl_basic_set_free_equality(struct isl_basic_set *bset, unsigned n);
42 int isl_basic_set_alloc_inequality(struct isl_basic_set *bset);
43 int isl_basic_map_alloc_inequality(struct isl_basic_map *bmap);
44 int isl_basic_map_free_inequality(struct isl_basic_map *bmap, unsigned n);
45 int isl_basic_map_alloc_div(struct isl_basic_map *bmap);
46 int isl_basic_set_alloc_div(struct isl_basic_set *bset);
47 int isl_basic_map_free_div(struct isl_basic_map *bmap, unsigned n);
48 int isl_basic_set_free_div(struct isl_basic_set *bset, unsigned n);
49 void isl_basic_map_inequality_to_equality(
50 struct isl_basic_map *bmap, unsigned pos);
51 int isl_basic_map_drop_equality(struct isl_basic_map *bmap, unsigned pos);
52 int isl_basic_set_drop_equality(struct isl_basic_set *bset, unsigned pos);
53 int isl_basic_set_drop_inequality(struct isl_basic_set *bset, unsigned pos);
54 int isl_basic_map_drop_inequality(struct isl_basic_map *bmap, unsigned pos);
56 int isl_inequality_negate(struct isl_basic_map *bmap, unsigned pos);
58 struct isl_basic_set *isl_basic_set_cow(struct isl_basic_set *bset);
59 struct isl_basic_map *isl_basic_map_cow(struct isl_basic_map *bmap);
60 struct isl_set *isl_set_cow(struct isl_set *set);
61 struct isl_map *isl_map_cow(struct isl_map *map);
63 struct isl_basic_map *isl_basic_map_set_to_empty(struct isl_basic_map *bmap);
64 struct isl_basic_set *isl_basic_set_set_to_empty(struct isl_basic_set *bset);
65 struct isl_map *isl_basic_map_compute_divs(struct isl_basic_map *bmap);
66 struct isl_map *isl_map_compute_divs(struct isl_map *map);
67 struct isl_basic_set *isl_basic_set_order_divs(struct isl_basic_set *bset);
68 void isl_basic_map_swap_div(struct isl_basic_map *bmap, int a, int b);
69 struct isl_basic_map *isl_basic_map_align_divs(
70 struct isl_basic_map *dst, struct isl_basic_map *src);
71 struct isl_basic_set *isl_basic_set_align_divs(
72 struct isl_basic_set *dst, struct isl_basic_set *src);
73 struct isl_map *isl_map_align_divs(struct isl_map *map);
74 struct isl_set *isl_set_align_divs(struct isl_set *set);
75 struct isl_basic_map *isl_basic_map_gauss(
76 struct isl_basic_map *bmap, int *progress);
77 struct isl_basic_set *isl_basic_set_gauss(
78 struct isl_basic_set *bset, int *progress);
79 struct isl_basic_map *isl_basic_map_normalize_constraints(
80 struct isl_basic_map *bmap);
81 struct isl_basic_set *isl_basic_set_normalize_constraints(
82 struct isl_basic_set *bset);
83 struct isl_basic_map *isl_basic_map_implicit_equalities(
84 struct isl_basic_map *bmap);
85 struct isl_basic_set *isl_basic_map_underlying_set(struct isl_basic_map *bmap);
86 struct isl_set *isl_map_underlying_set(struct isl_map *map);
87 struct isl_basic_map *isl_basic_map_overlying_set(struct isl_basic_set *bset,
88 struct isl_basic_map *like);
89 struct isl_basic_map *isl_basic_map_drop(struct isl_basic_map *bmap,
90 enum isl_dim_type type, unsigned first, unsigned n);
91 struct isl_basic_set *isl_basic_set_drop_dims(
92 struct isl_basic_set *bset, unsigned first, unsigned n);
93 struct isl_set *isl_set_drop_dims(
94 struct isl_set *set, unsigned first, unsigned n);
95 struct isl_map *isl_map_drop_inputs(
96 struct isl_map *map, unsigned first, unsigned n);
97 struct isl_map *isl_map_drop(struct isl_map *map,
98 enum isl_dim_type type, unsigned first, unsigned n);
100 struct isl_map *isl_map_remove_empty_parts(struct isl_map *map);
101 struct isl_set *isl_set_remove_empty_parts(struct isl_set *set);
103 struct isl_set *isl_set_normalize(struct isl_set *set);
105 struct isl_set *isl_set_drop_vars(
106 struct isl_set *set, unsigned first, unsigned n);
108 struct isl_basic_map *isl_basic_map_eliminate_vars(
109 struct isl_basic_map *bmap, unsigned pos, unsigned n);
110 struct isl_basic_set *isl_basic_set_eliminate_vars(
111 struct isl_basic_set *bset, unsigned pos, unsigned n);
113 int isl_basic_set_constraint_is_redundant(struct isl_basic_set **bset,
114 isl_int *c, isl_int *opt_n, isl_int *opt_d);
116 struct isl_basic_map *isl_basic_map_drop_redundant_divs(
117 struct isl_basic_map *bmap);
119 struct isl_basic_set *isl_basic_set_recession_cone(struct isl_basic_set *bset);
120 struct isl_basic_set *isl_basic_set_lineality_space(struct isl_basic_set *bset);
122 struct isl_basic_set *isl_basic_set_set_rational(struct isl_basic_set *bset);