Merge branch 'maint'
[platform/upstream/isl.git] / isl_local_space_private.h
1 #ifndef ISL_LOCAL_SPACE_PRIVATE_H
2 #define ISL_LOCAL_SPACE_PRIVATE_H
3
4 #include <isl/div.h>
5 #include <isl/mat.h>
6 #include <isl/local_space.h>
7
8 struct isl_local_space {
9         int ref;
10
11         isl_dim *dim;
12         isl_mat *div;
13 };
14
15 __isl_give isl_local_space *isl_local_space_alloc(__isl_take isl_dim *dim,
16         unsigned n_div);
17
18 __isl_give isl_local_space *isl_local_space_add_div(
19         __isl_take isl_local_space *ls, __isl_take isl_vec *div);
20
21 __isl_give isl_mat *isl_merge_divs(__isl_keep isl_mat *div1,
22         __isl_keep isl_mat *div2, int *exp1, int *exp2);
23
24 unsigned isl_local_space_offset(__isl_keep isl_local_space *ls,
25         enum isl_dim_type type);
26
27 __isl_give isl_local_space *isl_local_space_replace_divs(
28         __isl_take isl_local_space *ls, __isl_take isl_mat *div);
29 int isl_local_space_divs_known(__isl_keep isl_local_space *ls);
30
31 #endif