isl_map_coalesce: don't drop rational flag from result if set in input
[isl.git] / isl_map_private.h
blob6f0325235a2bb6acaa2b1a39c4268f85eed5e881
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 int isl_basic_set_contains(struct isl_basic_set *bset, struct isl_vec *vec);
25 struct isl_basic_set *isl_basic_set_alloc_dim(struct isl_dim *dim,
26 unsigned extra, unsigned n_eq, unsigned n_ineq);
27 struct isl_set *isl_set_alloc_dim(struct isl_dim *dim, int n, unsigned flags);
28 struct isl_basic_map *isl_basic_map_alloc_dim(struct isl_dim *dim,
29 unsigned extra, unsigned n_eq, unsigned n_ineq);
30 struct isl_map *isl_map_alloc_dim(struct isl_dim *dim, int n, unsigned flags);
32 unsigned isl_basic_map_total_dim(const struct isl_basic_map *bmap);
34 int isl_basic_map_alloc_equality(struct isl_basic_map *bmap);
35 int isl_basic_set_alloc_equality(struct isl_basic_set *bset);
36 int isl_basic_set_free_inequality(struct isl_basic_set *bset, unsigned n);
37 int isl_basic_map_free_equality(struct isl_basic_map *bmap, unsigned n);
38 int isl_basic_set_free_equality(struct isl_basic_set *bset, unsigned n);
39 int isl_basic_set_alloc_inequality(struct isl_basic_set *bset);
40 int isl_basic_map_alloc_inequality(struct isl_basic_map *bmap);
41 int isl_basic_map_free_inequality(struct isl_basic_map *bmap, unsigned n);
42 int isl_basic_map_alloc_div(struct isl_basic_map *bmap);
43 int isl_basic_set_alloc_div(struct isl_basic_set *bset);
44 int isl_basic_map_free_div(struct isl_basic_map *bmap, unsigned n);
45 void isl_basic_map_inequality_to_equality(
46 struct isl_basic_map *bmap, unsigned pos);
47 int isl_basic_map_drop_equality(struct isl_basic_map *bmap, unsigned pos);
48 int isl_basic_set_drop_equality(struct isl_basic_set *bset, unsigned pos);
49 int isl_basic_set_drop_inequality(struct isl_basic_set *bset, unsigned pos);
50 int isl_basic_map_drop_inequality(struct isl_basic_map *bmap, unsigned pos);
52 int isl_inequality_negate(struct isl_basic_map *bmap, unsigned pos);
54 struct isl_basic_set *isl_basic_set_cow(struct isl_basic_set *bset);
55 struct isl_basic_map *isl_basic_map_cow(struct isl_basic_map *bmap);
56 struct isl_set *isl_set_cow(struct isl_set *set);
57 struct isl_map *isl_map_cow(struct isl_map *map);
59 struct isl_basic_map *isl_basic_map_set_to_empty(struct isl_basic_map *bmap);
60 struct isl_basic_set *isl_basic_set_set_to_empty(struct isl_basic_set *bset);
61 struct isl_map *isl_basic_map_compute_divs(struct isl_basic_map *bmap);
62 struct isl_map *isl_map_compute_divs(struct isl_map *map);
63 struct isl_basic_map *isl_basic_map_align_divs(
64 struct isl_basic_map *dst, struct isl_basic_map *src);
65 struct isl_basic_set *isl_basic_set_align_divs(
66 struct isl_basic_set *dst, struct isl_basic_set *src);
67 struct isl_map *isl_map_align_divs(struct isl_map *map);
68 struct isl_set *isl_set_align_divs(struct isl_set *set);
69 struct isl_basic_map *isl_basic_map_gauss(
70 struct isl_basic_map *bmap, int *progress);
71 struct isl_basic_set *isl_basic_set_gauss(
72 struct isl_basic_set *bset, int *progress);
73 struct isl_basic_map *isl_basic_map_normalize_constraints(
74 struct isl_basic_map *bmap);
75 struct isl_basic_set *isl_basic_set_normalize_constraints(
76 struct isl_basic_set *bset);
77 struct isl_basic_map *isl_basic_map_implicit_equalities(
78 struct isl_basic_map *bmap);
79 struct isl_basic_set *isl_basic_map_underlying_set(struct isl_basic_map *bmap);
80 struct isl_set *isl_map_underlying_set(struct isl_map *map);
81 struct isl_basic_map *isl_basic_map_overlying_set(struct isl_basic_set *bset,
82 struct isl_basic_map *like);
83 struct isl_basic_map *isl_basic_map_drop(struct isl_basic_map *bmap,
84 enum isl_dim_type type, unsigned first, unsigned n);
85 struct isl_basic_set *isl_basic_set_drop_dims(
86 struct isl_basic_set *bset, unsigned first, unsigned n);
87 struct isl_set *isl_set_drop_dims(
88 struct isl_set *set, unsigned first, unsigned n);
89 struct isl_map *isl_map_drop_inputs(
90 struct isl_map *map, unsigned first, unsigned n);
91 struct isl_map *isl_map_drop(struct isl_map *map,
92 enum isl_dim_type type, unsigned first, unsigned n);
94 struct isl_map *isl_map_remove_empty_parts(struct isl_map *map);
95 struct isl_set *isl_set_remove_empty_parts(struct isl_set *set);
97 struct isl_set *isl_set_normalize(struct isl_set *set);
99 struct isl_set *isl_set_drop_vars(
100 struct isl_set *set, unsigned first, unsigned n);
102 struct isl_basic_map *isl_basic_map_eliminate_vars(
103 struct isl_basic_map *bmap, unsigned pos, unsigned n);
104 struct isl_basic_set *isl_basic_set_eliminate_vars(
105 struct isl_basic_set *bset, unsigned pos, unsigned n);
107 int isl_basic_set_constraint_is_redundant(struct isl_basic_set **bset,
108 isl_int *c, isl_int *opt_n, isl_int *opt_d);
110 struct isl_basic_map *isl_basic_map_drop_redundant_divs(
111 struct isl_basic_map *bmap);
113 struct isl_basic_set *isl_basic_set_recession_cone(struct isl_basic_set *bset);
114 struct isl_basic_set *isl_basic_set_lineality_space(struct isl_basic_set *bset);