From 2d8dfaf54dcf0f9a2f681caf3b43768fbc8c9b28 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Wed, 17 Sep 2008 00:43:37 +0200 Subject: [PATCH] add isl_set_extend --- 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 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) { -- 2.7.4