unsigned isl_map_dim(const struct isl_map *map, enum isl_dim_type type);
struct isl_dim *isl_basic_map_get_dim(struct isl_basic_map *bmap);
+struct isl_dim *isl_map_get_dim(struct isl_map *map);
struct isl_basic_map *isl_basic_map_alloc(struct isl_ctx *ctx,
unsigned nparam, unsigned in, unsigned out, unsigned extra,
return isl_dim_copy(bset->dim);
}
+struct isl_dim *isl_map_get_dim(struct isl_map *map)
+{
+ if (!map)
+ return NULL;
+ return isl_dim_copy(map->dim);
+}
+
struct isl_dim *isl_set_get_dim(struct isl_set *set)
{
if (!set)