reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1662 if (!dim) 1664 if (match(dim, isl_dim_in, dim, isl_dim_out)) 1664 if (match(dim, isl_dim_in, dim, isl_dim_out)) 1665 return dim; 1667 dim = isl_space_cow(dim); 1667 dim = isl_space_cow(dim); 1668 if (!dim) 1671 id = dim->tuple_id[0]; 1672 dim->tuple_id[0] = dim->tuple_id[1]; 1672 dim->tuple_id[0] = dim->tuple_id[1]; 1673 dim->tuple_id[1] = id; 1675 nested = dim->nested[0]; 1676 dim->nested[0] = dim->nested[1]; 1676 dim->nested[0] = dim->nested[1]; 1677 dim->nested[1] = nested; 1679 if (dim->ids) { 1680 int n_id = dim->n_in + dim->n_out; 1680 int n_id = dim->n_in + dim->n_out; 1681 ids = isl_alloc_array(dim->ctx, isl_id *, n_id); 1684 get_ids(dim, isl_dim_in, 0, dim->n_in, ids); 1684 get_ids(dim, isl_dim_in, 0, dim->n_in, ids); 1685 get_ids(dim, isl_dim_out, 0, dim->n_out, ids + dim->n_in); 1685 get_ids(dim, isl_dim_out, 0, dim->n_out, ids + dim->n_in); 1685 get_ids(dim, isl_dim_out, 0, dim->n_out, ids + dim->n_in); 1688 t = dim->n_in; 1689 dim->n_in = dim->n_out; 1689 dim->n_in = dim->n_out; 1690 dim->n_out = t; 1692 if (dim->ids) { 1693 dim = set_ids(dim, isl_dim_out, 0, dim->n_out, ids); 1693 dim = set_ids(dim, isl_dim_out, 0, dim->n_out, ids); 1693 dim = set_ids(dim, isl_dim_out, 0, dim->n_out, ids); 1694 dim = set_ids(dim, isl_dim_in, 0, dim->n_in, ids + dim->n_out); 1694 dim = set_ids(dim, isl_dim_in, 0, dim->n_in, ids + dim->n_out); 1694 dim = set_ids(dim, isl_dim_in, 0, dim->n_in, ids + dim->n_out); 1694 dim = set_ids(dim, isl_dim_in, 0, dim->n_in, ids + dim->n_out); 1698 return dim; 1701 isl_space_free(dim);