From 68ccfc1452ffffa90f8e0f84060ef8eac764f152 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 9 Mar 2009 11:44:05 +0100 Subject: [PATCH] add isl_set_dim --- include/isl_set.h | 1 + isl_map.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/isl_set.h b/include/isl_set.h index 5b139325..1f77b1cd 100644 --- a/include/isl_set.h +++ b/include/isl_set.h @@ -68,6 +68,7 @@ unsigned isl_basic_set_dim(const struct isl_basic_set *bset, unsigned isl_set_n_dim(const struct isl_set *set); unsigned isl_set_n_param(const struct isl_set *set); +unsigned isl_set_dim(const struct isl_set *set, enum isl_dim_type type); struct isl_basic_set *isl_basic_set_alloc(struct isl_ctx *ctx, unsigned nparam, unsigned dim, unsigned extra, diff --git a/isl_map.c b/isl_map.c index a7a1d5c5..d5bc8087 100644 --- a/isl_map.c +++ b/isl_map.c @@ -107,6 +107,11 @@ unsigned isl_map_dim(const struct isl_map *map, enum isl_dim_type type) return n(map->dim, type); } +unsigned isl_set_dim(const struct isl_set *set, enum isl_dim_type type) +{ + return n(set->dim, type); +} + unsigned isl_basic_map_offset(struct isl_basic_map *bmap, enum isl_dim_type type) { -- 2.11.4.GIT