From: Sven Verdoolaege Date: Sun, 2 Aug 2009 17:05:36 +0000 (+0200) Subject: add isl_basic_map_get_dim X-Git-Tag: isl-0.01~119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71ae79403db5f771b24372d0296b1ea07f946525;p=platform%2Fupstream%2Fisl.git add isl_basic_map_get_dim --- diff --git a/include/isl_map.h b/include/isl_map.h index 000e417..b86efad 100644 --- a/include/isl_map.h +++ b/include/isl_map.h @@ -107,6 +107,8 @@ unsigned isl_map_n_out(const struct isl_map *map); unsigned isl_map_n_param(const struct isl_map *map); 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_basic_map *isl_basic_map_alloc(struct isl_ctx *ctx, unsigned nparam, unsigned in, unsigned out, unsigned extra, unsigned n_eq, unsigned n_ineq); diff --git a/isl_map.c b/isl_map.c index 84ee42e..0306875 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_map_get_dim(struct isl_basic_map *bmap) +{ + if (!bmap) + return NULL; + return isl_dim_copy(bmap->dim); +} + struct isl_dim *isl_basic_set_get_dim(struct isl_basic_set *bset) { if (!bset)