From 87e231ed57215c3b060364e2a67e75c45b87348f Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 22 Mar 2009 22:00:14 +0100 Subject: [PATCH] add isl_basic_set_get_dim --- include/isl_set.h | 2 ++ isl_map.c | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/include/isl_set.h b/include/isl_set.h index 69c5307..7d63299 100644 --- a/include/isl_set.h +++ b/include/isl_set.h @@ -75,6 +75,8 @@ 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_dim *isl_basic_set_get_dim(struct isl_basic_set *bset); + struct isl_basic_set *isl_basic_set_alloc(struct isl_ctx *ctx, unsigned nparam, unsigned dim, unsigned extra, unsigned n_eq, unsigned n_ineq); diff --git a/isl_map.c b/isl_map.c index 2920fdf..5fed91f 100644 --- a/isl_map.c +++ b/isl_map.c @@ -220,6 +220,13 @@ int isl_basic_map_compatible_range(struct isl_basic_map *bmap, bmap->dim->nparam == bset->dim->nparam; } +struct isl_dim *isl_basic_set_get_dim(struct isl_basic_set *bset) +{ + if (!bset) + return NULL; + return isl_dim_copy(bset->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