From: Sven Verdoolaege Date: Tue, 16 Sep 2008 22:43:37 +0000 (+0200) Subject: add isl_set_extend X-Git-Tag: isl-0.01~402 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d8dfaf54dcf0f9a2f681caf3b43768fbc8c9b28;p=platform%2Fupstream%2Fisl.git add isl_set_extend --- diff --git a/include/isl_set.h b/include/isl_set.h index eb3cfa3..1b6e07c 100644 --- a/include/isl_set.h +++ b/include/isl_set.h @@ -105,6 +105,8 @@ struct isl_set *isl_basic_set_union( struct isl_set *isl_set_alloc(struct isl_ctx *ctx, unsigned nparam, unsigned dim, int n, unsigned flags); +struct isl_set *isl_set_extend(struct isl_set *base, + unsigned nparam, unsigned dim); struct isl_set *isl_set_empty(struct isl_ctx *ctx, unsigned nparam, unsigned dim); struct isl_set *isl_set_add(struct isl_set *set, struct isl_basic_set *bset); diff --git a/isl_map.c b/isl_map.c index 025d248..de92523 100644 --- a/isl_map.c +++ b/isl_map.c @@ -2352,6 +2352,13 @@ error: return NULL; } +struct isl_set *isl_set_extend(struct isl_set *base, + unsigned nparam, unsigned dim) +{ + return (struct isl_set *)isl_map_extend((struct isl_map *)base, + nparam, 0, dim); +} + static struct isl_basic_map *isl_basic_map_fix_var(struct isl_basic_map *bmap, unsigned var, int value) {