isl_multi_union_pw_aff_apply_multi_aff: extract out 0D handling
[isl.git] / isl_dim_map.h
blob0c39b493a76960ee15fb8190ec0ced25dc1e05c8
1 #ifndef ISL_DIM_MAP_H
2 #define ISL_DIM_MAP_H
4 #include <isl/ctx.h>
5 #include <isl/space.h>
6 #include <isl/map.h>
7 #include <isl_reordering.h>
9 struct isl_dim_map;
10 typedef struct isl_dim_map isl_dim_map;
12 __isl_give isl_dim_map *isl_dim_map_alloc(isl_ctx *ctx, unsigned len);
13 void isl_dim_map_range(__isl_keep isl_dim_map *dim_map,
14 unsigned dst_pos, int dst_stride, unsigned src_pos, int src_stride,
15 unsigned n, int sign);
16 void isl_dim_map_dim_range(__isl_keep isl_dim_map *dim_map,
17 isl_space *dim, enum isl_dim_type type,
18 unsigned first, unsigned n, unsigned dst_pos);
19 void isl_dim_map_dim(__isl_keep isl_dim_map *dim_map, __isl_keep isl_space *dim,
20 enum isl_dim_type type, unsigned dst_pos);
21 void isl_dim_map_div(__isl_keep isl_dim_map *dim_map,
22 __isl_keep isl_basic_map *bmap, unsigned dst_pos);
23 __isl_give isl_basic_set *isl_basic_set_add_constraints_dim_map(
24 __isl_take isl_basic_set *dst, __isl_take isl_basic_set *src,
25 __isl_take isl_dim_map *dim_map);
26 __isl_give isl_basic_map *isl_basic_map_add_constraints_dim_map(
27 __isl_take isl_basic_map *dst, __isl_take isl_basic_map *src,
28 __isl_take isl_dim_map *dim_map);
30 __isl_give isl_dim_map *isl_dim_map_extend(__isl_keep isl_dim_map *dim_map,
31 __isl_keep isl_basic_map *bmap);
33 __isl_give isl_dim_map *isl_dim_map_from_reordering(
34 __isl_keep isl_reordering *exp);
36 #endif