From f8addcc9c1a791985f46807f9e5c5902877f95c0 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 24 Mar 2009 20:34:16 +0100 Subject: [PATCH] add isl_set_get_dim --- include/isl_set.h | 1 + isl_map.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/include/isl_set.h b/include/isl_set.h index 7d63299..80660e3 100644 --- a/include/isl_set.h +++ b/include/isl_set.h @@ -76,6 +76,7 @@ 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_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, diff --git a/isl_map.c b/isl_map.c index 5fed91f..285e975 100644 --- a/isl_map.c +++ b/isl_map.c @@ -227,6 +227,13 @@ struct isl_dim *isl_basic_set_get_dim(struct isl_basic_set *bset) 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) -- 2.7.4