unsigned isl_set_dim(const struct isl_set *set, enum isl_dim_type type);
struct isl_dim *isl_basic_set_get_dim(struct isl_basic_set *bset);
+struct isl_dim *isl_set_get_dim(struct isl_set *set);
struct isl_basic_set *isl_basic_set_alloc(struct isl_ctx *ctx,
unsigned nparam, unsigned dim, unsigned extra,
return isl_dim_copy(bset->dim);
}
+struct isl_dim *isl_set_get_dim(struct isl_set *set)
+{
+ if (!set)
+ return NULL;
+ return isl_dim_copy(set->dim);
+}
+
static struct isl_basic_map *basic_map_init(struct isl_ctx *ctx,
struct isl_basic_map *bmap, unsigned extra,
unsigned n_eq, unsigned n_ineq)