38 dim_map->
m[0].
pos = 0;
39 dim_map->
m[0].
sgn = 1;
40 for (i = 0; i <
len; ++i)
41 dim_map->
m[1 + i].
sgn = 0;
54 unsigned dst_pos,
int dst_stride,
unsigned src_pos,
int src_stride,
62 for (i = 0; i <
n; ++i) {
63 unsigned d = 1 + dst_pos + dst_stride * i;
64 unsigned s = 1 + src_pos + src_stride * i;
65 dim_map->m[d].pos = s;
66 dim_map->m[d].sgn = sign;
72 unsigned first,
unsigned n,
unsigned dst_pos)
77 if (!dim_map || !space)
81 for (i = 0; i <
n; ++i) {
82 dim_map->m[1 + dst_pos + i].pos = src_pos + first + i;
83 dim_map->m[1 + dst_pos + i].sgn = 1;
103 if (!dim_map || !bmap)
107 for (i = 0; i < bmap->n_div; ++i) {
108 dim_map->m[1 + dst_pos + i].pos = src_pos + i;
109 dim_map->m[1 + dst_pos + i].sgn = 1;
117 for (i = 0; i < dim_map->
len; ++i)
118 fprintf(stderr,
"%d -> %d * %d; ", i,
119 dim_map->
m[i].
sgn, dim_map->
m[i].
pos);
120 fprintf(stderr,
"\n");
128 for (i = 0; i < dim_map->
len; ++i) {
129 if (dim_map->
m[i].
sgn == 0)
131 else if (dim_map->
m[i].
sgn > 0)
151 if (!src || !dst || !dim_map)
154 for (i = 0; i < src->n_eq; ++i) {
161 for (i = 0; i < src->n_ineq; ++i) {
168 for (i = 0; i < src->n_div; ++i) {
211 for (i = 0; i < dim_map->len; ++i)
212 res->m[i] = dim_map->m[i];
213 for (i = 0; i < bmap->n_div; ++i) {
214 res->m[dim_map->len + i].pos =
offset + i;
215 res->m[dim_map->len + i].sgn = 1;
246 for (i = 0; i < exp->src_len; ++i) {
247 dim_map->
m[1 + exp->pos[i]].
pos = 1 + i;
248 dim_map->
m[1 + exp->pos[i]].
sgn = 1;
for(int c0=1;c0< 3 *M - 1;c0+=3)
#define isl_alloc(ctx, type, size)
void isl_dim_map_dim_range(__isl_keep isl_dim_map *dim_map, __isl_keep isl_space *space, enum isl_dim_type type, unsigned first, unsigned n, unsigned dst_pos)
__isl_give isl_basic_map * isl_basic_map_add_constraints_dim_map(__isl_take isl_basic_map *dst, __isl_take isl_basic_map *src, __isl_take isl_dim_map *dim_map)
__isl_null isl_dim_map * isl_dim_map_free(__isl_take isl_dim_map *dim_map)
void isl_dim_map_range(__isl_keep isl_dim_map *dim_map, unsigned dst_pos, int dst_stride, unsigned src_pos, int src_stride, unsigned n, int sign)
static void copy_constraint_dim_map(isl_int *dst, isl_int *src, struct isl_dim_map *dim_map)
__isl_give isl_dim_map * isl_dim_map_extend(__isl_keep isl_dim_map *dim_map, __isl_keep isl_basic_map *bmap)
__isl_give isl_basic_set * isl_basic_set_add_constraints_dim_map(__isl_take isl_basic_set *dst, __isl_take isl_basic_set *src, __isl_take isl_dim_map *dim_map)
void isl_dim_map_dump(struct isl_dim_map *dim_map)
__isl_give isl_dim_map * isl_dim_map_from_reordering(__isl_keep isl_reordering *exp)
void isl_dim_map_dim(__isl_keep isl_dim_map *dim_map, __isl_keep isl_space *space, enum isl_dim_type type, unsigned dst_pos)
__isl_give isl_dim_map * isl_dim_map_alloc(isl_ctx *ctx, unsigned len)
void isl_dim_map_div(__isl_keep isl_dim_map *dim_map, __isl_keep isl_basic_map *bmap, unsigned dst_pos)
static void copy_div_dim_map(isl_int *dst, isl_int *src, struct isl_dim_map *dim_map)
#define isl_int_neg(r, i)
#define isl_int_set(r, i)
#define isl_int_set_si(r, i)
unsigned isl_basic_map_offset(__isl_keep isl_basic_map *bmap, enum isl_dim_type type)
int isl_basic_map_alloc_div(__isl_keep isl_basic_map *bmap)
int isl_basic_map_alloc_inequality(__isl_keep isl_basic_map *bmap)
int isl_basic_map_alloc_equality(__isl_keep isl_basic_map *bmap)
isl_ctx * isl_reordering_get_ctx(__isl_keep isl_reordering *r)
__isl_keep isl_space * isl_reordering_peek_space(__isl_keep isl_reordering *r)
unsigned isl_space_offset(__isl_keep isl_space *space, enum isl_dim_type type)
__isl_null isl_basic_map * isl_basic_map_free(__isl_take isl_basic_map *bmap)
struct isl_basic_set isl_basic_set
isl_size isl_space_dim(__isl_keep isl_space *space, enum isl_dim_type type)
struct isl_dim_map_entry m[1]