2 * Copyright 2008-2009 Katholieke Universiteit Leuven
4 * Use of this software is governed by the GNU LGPLv2.1 license
6 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
14 unsigned isl_basic_map_offset(struct isl_basic_map
*bmap
,
15 enum isl_dim_type type
);
17 int isl_map_compatible_domain(struct isl_map
*map
, struct isl_set
*set
);
18 int isl_basic_map_compatible_domain(struct isl_basic_map
*bmap
,
19 struct isl_basic_set
*bset
);
20 int isl_basic_map_compatible_range(struct isl_basic_map
*bmap
,
21 struct isl_basic_set
*bset
);
23 struct isl_basic_map
*isl_basic_map_extend_dim(struct isl_basic_map
*base
,
24 struct isl_dim
*dim
, unsigned extra
,
25 unsigned n_eq
, unsigned n_ineq
);
26 struct isl_basic_set
*isl_basic_set_extend_dim(struct isl_basic_set
*base
,
27 struct isl_dim
*dim
, unsigned extra
,
28 unsigned n_eq
, unsigned n_ineq
);
29 struct isl_basic_set
*isl_basic_set_add_constraints(struct isl_basic_set
*bset1
,
30 struct isl_basic_set
*bset2
, unsigned pos
);
32 struct isl_map
*isl_map_grow(struct isl_map
*map
, int n
);
33 struct isl_set
*isl_set_grow(struct isl_set
*set
, int n
);
35 int isl_basic_set_contains(struct isl_basic_set
*bset
, struct isl_vec
*vec
);
36 int isl_basic_map_contains(struct isl_basic_map
*bmap
, struct isl_vec
*vec
);
38 struct isl_basic_set
*isl_basic_set_alloc_dim(struct isl_dim
*dim
,
39 unsigned extra
, unsigned n_eq
, unsigned n_ineq
);
40 struct isl_set
*isl_set_alloc_dim(struct isl_dim
*dim
, int n
, unsigned flags
);
41 struct isl_basic_map
*isl_basic_map_alloc_dim(struct isl_dim
*dim
,
42 unsigned extra
, unsigned n_eq
, unsigned n_ineq
);
43 struct isl_map
*isl_map_alloc_dim(struct isl_dim
*dim
, int n
, unsigned flags
);
45 unsigned isl_basic_map_total_dim(const struct isl_basic_map
*bmap
);
47 int isl_basic_map_alloc_equality(struct isl_basic_map
*bmap
);
48 int isl_basic_set_alloc_equality(struct isl_basic_set
*bset
);
49 int isl_basic_set_free_inequality(struct isl_basic_set
*bset
, unsigned n
);
50 int isl_basic_map_free_equality(struct isl_basic_map
*bmap
, unsigned n
);
51 int isl_basic_set_free_equality(struct isl_basic_set
*bset
, unsigned n
);
52 int isl_basic_set_alloc_inequality(struct isl_basic_set
*bset
);
53 int isl_basic_map_alloc_inequality(struct isl_basic_map
*bmap
);
54 int isl_basic_map_free_inequality(struct isl_basic_map
*bmap
, unsigned n
);
55 int isl_basic_map_alloc_div(struct isl_basic_map
*bmap
);
56 int isl_basic_set_alloc_div(struct isl_basic_set
*bset
);
57 int isl_basic_map_free_div(struct isl_basic_map
*bmap
, unsigned n
);
58 int isl_basic_set_free_div(struct isl_basic_set
*bset
, unsigned n
);
59 void isl_basic_map_inequality_to_equality(
60 struct isl_basic_map
*bmap
, unsigned pos
);
61 int isl_basic_map_drop_equality(struct isl_basic_map
*bmap
, unsigned pos
);
62 int isl_basic_set_drop_equality(struct isl_basic_set
*bset
, unsigned pos
);
63 int isl_basic_set_drop_inequality(struct isl_basic_set
*bset
, unsigned pos
);
64 int isl_basic_map_drop_inequality(struct isl_basic_map
*bmap
, unsigned pos
);
65 __isl_give isl_basic_set
*isl_basic_set_add_eq(__isl_take isl_basic_set
*bset
,
67 __isl_give isl_basic_map
*isl_basic_map_add_eq(__isl_take isl_basic_map
*bmap
,
69 __isl_give isl_basic_set
*isl_basic_set_add_ineq(__isl_take isl_basic_set
*bset
,
71 __isl_give isl_basic_map
*isl_basic_map_add_ineq(__isl_take isl_basic_map
*bmap
,
74 int isl_inequality_negate(struct isl_basic_map
*bmap
, unsigned pos
);
76 struct isl_basic_set
*isl_basic_set_cow(struct isl_basic_set
*bset
);
77 struct isl_basic_map
*isl_basic_map_cow(struct isl_basic_map
*bmap
);
78 struct isl_set
*isl_set_cow(struct isl_set
*set
);
79 struct isl_map
*isl_map_cow(struct isl_map
*map
);
81 struct isl_basic_map
*isl_basic_map_set_to_empty(struct isl_basic_map
*bmap
);
82 struct isl_basic_set
*isl_basic_set_set_to_empty(struct isl_basic_set
*bset
);
83 struct isl_basic_set
*isl_basic_set_order_divs(struct isl_basic_set
*bset
);
84 void isl_basic_map_swap_div(struct isl_basic_map
*bmap
, int a
, int b
);
85 struct isl_basic_map
*isl_basic_map_order_divs(struct isl_basic_map
*bmap
);
86 __isl_give isl_map
*isl_map_order_divs(__isl_take isl_map
*map
);
87 struct isl_basic_map
*isl_basic_map_align_divs(
88 struct isl_basic_map
*dst
, struct isl_basic_map
*src
);
89 struct isl_basic_set
*isl_basic_set_align_divs(
90 struct isl_basic_set
*dst
, struct isl_basic_set
*src
);
91 struct isl_basic_map
*isl_basic_map_gauss(
92 struct isl_basic_map
*bmap
, int *progress
);
93 struct isl_basic_set
*isl_basic_set_gauss(
94 struct isl_basic_set
*bset
, int *progress
);
95 __isl_give isl_basic_set
*isl_basic_set_sort_constraints(
96 __isl_take isl_basic_set
*bset
);
97 int isl_basic_map_fast_cmp(const __isl_keep isl_basic_map
*bmap1
,
98 const __isl_keep isl_basic_map
*bmap2
);
99 int isl_basic_set_fast_is_equal(__isl_keep isl_basic_set
*bset1
,
100 __isl_keep isl_basic_set
*bset2
);
101 int isl_basic_map_fast_is_equal(__isl_keep isl_basic_map
*bmap1
,
102 __isl_keep isl_basic_map
*bmap2
);
103 struct isl_basic_map
*isl_basic_map_normalize_constraints(
104 struct isl_basic_map
*bmap
);
105 struct isl_basic_set
*isl_basic_set_normalize_constraints(
106 struct isl_basic_set
*bset
);
107 struct isl_basic_map
*isl_basic_map_implicit_equalities(
108 struct isl_basic_map
*bmap
);
109 struct isl_basic_set
*isl_basic_map_underlying_set(struct isl_basic_map
*bmap
);
110 __isl_give isl_basic_set
*isl_basic_set_underlying_set(
111 __isl_take isl_basic_set
*bset
);
112 struct isl_set
*isl_map_underlying_set(struct isl_map
*map
);
113 struct isl_basic_map
*isl_basic_map_overlying_set(struct isl_basic_set
*bset
,
114 struct isl_basic_map
*like
);
115 __isl_give isl_basic_set
*isl_basic_set_drop(__isl_take isl_basic_set
*bset
,
116 enum isl_dim_type type
, unsigned first
, unsigned n
);
117 struct isl_basic_map
*isl_basic_map_drop(struct isl_basic_map
*bmap
,
118 enum isl_dim_type type
, unsigned first
, unsigned n
);
119 struct isl_set
*isl_set_drop(struct isl_set
*set
,
120 enum isl_dim_type type
, unsigned first
, unsigned n
);
121 struct isl_basic_set
*isl_basic_set_drop_dims(
122 struct isl_basic_set
*bset
, unsigned first
, unsigned n
);
123 struct isl_set
*isl_set_drop_dims(
124 struct isl_set
*set
, unsigned first
, unsigned n
);
125 struct isl_map
*isl_map_drop_inputs(
126 struct isl_map
*map
, unsigned first
, unsigned n
);
127 struct isl_map
*isl_map_drop(struct isl_map
*map
,
128 enum isl_dim_type type
, unsigned first
, unsigned n
);
130 struct isl_map
*isl_map_remove_empty_parts(struct isl_map
*map
);
131 struct isl_set
*isl_set_remove_empty_parts(struct isl_set
*set
);
133 struct isl_set
*isl_set_normalize(struct isl_set
*set
);
135 struct isl_set
*isl_set_drop_vars(
136 struct isl_set
*set
, unsigned first
, unsigned n
);
138 struct isl_basic_map
*isl_basic_map_eliminate_vars(
139 struct isl_basic_map
*bmap
, unsigned pos
, unsigned n
);
140 struct isl_basic_set
*isl_basic_set_eliminate_vars(
141 struct isl_basic_set
*bset
, unsigned pos
, unsigned n
);
143 __isl_give isl_map
*isl_map_eliminate(__isl_take isl_map
*map
,
144 enum isl_dim_type type
, unsigned first
, unsigned n
);
145 __isl_give isl_set
*isl_set_eliminate(__isl_take isl_set
*set
,
146 enum isl_dim_type type
, unsigned first
, unsigned n
);
148 int isl_basic_set_constraint_is_redundant(struct isl_basic_set
**bset
,
149 isl_int
*c
, isl_int
*opt_n
, isl_int
*opt_d
);
151 int isl_basic_map_add_div_constraints(struct isl_basic_map
*bmap
, unsigned div
);
152 struct isl_basic_map
*isl_basic_map_drop_redundant_divs(
153 struct isl_basic_map
*bmap
);
154 struct isl_basic_set
*isl_basic_set_drop_redundant_divs(
155 struct isl_basic_set
*bset
);
157 struct isl_basic_set
*isl_basic_set_recession_cone(struct isl_basic_set
*bset
);
158 struct isl_basic_set
*isl_basic_set_lineality_space(struct isl_basic_set
*bset
);
160 struct isl_basic_set
*isl_basic_set_set_rational(struct isl_basic_set
*bset
);
164 struct isl_basic_set
*isl_basic_set_preimage(struct isl_basic_set
*bset
,
165 struct isl_mat
*mat
);
166 struct isl_set
*isl_set_preimage(struct isl_set
*set
, struct isl_mat
*mat
);
168 isl_int
*isl_set_wrap_facet(__isl_keep isl_set
*set
,
169 isl_int
*facet
, isl_int
*ridge
);
171 int isl_basic_map_contains_point(__isl_keep isl_basic_map
*bmap
,
172 __isl_keep isl_point
*point
);
173 int isl_set_contains_point(__isl_keep isl_set
*set
, __isl_keep isl_point
*point
);
175 int isl_basic_set_vars_get_sign(__isl_keep isl_basic_set
*bset
,
176 unsigned first
, unsigned n
, int *signs
);
178 int isl_basic_set_add_div_constraints_var(__isl_keep isl_basic_set
*bset
,
179 unsigned pos
, isl_int
*div
);
180 int isl_basic_map_is_div_constraint(__isl_keep isl_basic_map
*bmap
,
181 isl_int
*constraint
, unsigned div
);