1#ifndef ISL_REORDERING_H 2#define ISL_REORDERING_H 3 4#include <isl/space.h> 5 6/* pos maps original dimensions to new dimensions. 7 * The final dimension is given by dim. 8 * The number of dimensions (i.e., the range of values) in the result 9 * may be larger than the number of dimensions in the input. 10 * In particular, the possible values of the entries in pos ranges from 0 to 11 * the total dimension of dim - 1, unless isl_reordering_extend 12 * has been called. 13 */ 14struct isl_reordering { 15 int ref; 16 isl_space *dim; 17 unsigned len; 18 int pos[1]; 19}; 20typedef struct isl_reordering isl_reordering; 21 22__isl_give isl_reordering *isl_parameter_alignment_reordering( 23 __isl_keep isl_space *alignee, __isl_keep isl_space *aligner); 24__isl_give isl_reordering *isl_reordering_copy(__isl_keep isl_reordering *exp); 25void *isl_reordering_free(__isl_take isl_reordering *exp); 26__isl_give isl_reordering *isl_reordering_extend_space( 27 __isl_take isl_reordering *exp, __isl_take isl_space *dim); 28__isl_give isl_reordering *isl_reordering_extend(__isl_take isl_reordering *exp, 29 unsigned extra); 30 31#endif 32