77 r->src_len, r->dst_len);
84 for (i = 0; i <
dup->src_len; ++i)
85 dup->pos[i] = r->pos[i];
155 if (dim < 0 || n_alignee < 0 || n_aligner < 0)
165 for (i = 0; i < n_alignee; ++i) {
170 "cannot align unnamed parameters",
goto error);
171 for (j = 0; j < n_aligner; ++j) {
199 for (i = n_alignee; i < dim; ++i)
229 if (dim < 0 || !
tuple)
243 for (i = 0; i <
n; ++i) {
256 n = isl_multi_id_size(
tuple);
257 for (i = 0; i <
n; ++i) {
261 id = isl_multi_id_get_id(
tuple, i);
274 for (i = 0; i <
n; ++i)
294 offset = exp->dst_len - exp->src_len;
296 exp->dst_len + extra);
300 for (i = 0; i < exp->src_len; ++i)
301 res->pos[i] = exp->pos[i];
302 for (i = exp->src_len; i < res->src_len; ++i)
350 for (i = 0; i < exp->src_len; ++i)
351 fprintf(stderr,
"%d -> %d; ", i, exp->pos[i]);
352 fprintf(stderr,
"\n");
for(int c0=1;c0< 3 *M - 1;c0+=3)
#define isl_die(ctx, errno, msg, code)
#define isl_alloc(ctx, type, size)
__isl_null isl_id * isl_id_free(__isl_take isl_id *id)
struct isl_multi_id isl_multi_id
__isl_give dup(__isl_keep LIST(EL) *list)
static unsigned pos(__isl_keep isl_space *space, enum isl_dim_type type)
__isl_null isl_reordering * isl_reordering_free(__isl_take isl_reordering *exp)
void isl_reordering_dump(__isl_keep isl_reordering *exp)
__isl_give isl_reordering * isl_reordering_extend(__isl_take isl_reordering *exp, unsigned extra)
isl_ctx * isl_reordering_get_ctx(__isl_keep isl_reordering *r)
__isl_give isl_reordering * isl_parameter_alignment_reordering(__isl_keep isl_space *alignee, __isl_keep isl_space *aligner)
__isl_give isl_reordering * isl_reordering_unbind_params_insert_domain(__isl_keep isl_space *space, __isl_keep isl_multi_id *tuple)
__isl_give isl_space * isl_reordering_get_space(__isl_keep isl_reordering *r)
__isl_give isl_reordering * isl_reordering_alloc(isl_ctx *ctx, int src_len, int dst_len)
__isl_give isl_reordering * isl_reordering_cow(__isl_take isl_reordering *r)
__isl_give isl_reordering * isl_reordering_extend_space(__isl_take isl_reordering *exp, __isl_take isl_space *space)
__isl_keep isl_space * isl_reordering_peek_space(__isl_keep isl_reordering *r)
__isl_give isl_reordering * isl_reordering_copy(__isl_keep isl_reordering *exp)
static __isl_give isl_reordering * isl_reordering_set_dst_len_from_space(__isl_take isl_reordering *r)
__isl_give isl_reordering * isl_reordering_dup(__isl_keep isl_reordering *r)
__isl_give isl_space * isl_space_unbind_params_insert_domain(__isl_take isl_space *space, __isl_keep isl_multi_id *tuple)
__isl_give isl_space * isl_space_replace_params(__isl_take isl_space *dst, __isl_keep isl_space *src)
__isl_null isl_space * isl_space_free(__isl_take isl_space *space)
void isl_space_dump(__isl_keep isl_space *space)
isl_ctx * isl_space_get_ctx(__isl_keep isl_space *space)
__isl_give isl_space * isl_space_copy(__isl_keep isl_space *space)
__isl_give isl_space * isl_space_set_dim_id(__isl_take isl_space *space, enum isl_dim_type type, unsigned pos, __isl_take isl_id *id)
int isl_space_find_dim_by_id(__isl_keep isl_space *space, enum isl_dim_type type, __isl_keep isl_id *id)
__isl_give isl_id * isl_space_get_dim_id(__isl_keep isl_space *space, enum isl_dim_type type, unsigned pos)
isl_size isl_space_dim(__isl_keep isl_space *space, enum isl_dim_type type)
__isl_give isl_space * isl_space_add_dims(__isl_take isl_space *space, enum isl_dim_type type, unsigned n)