add isl_set_extend
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 16 Sep 2008 22:43:37 +0000 (00:43 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 11 Oct 2008 21:39:20 +0000 (23:39 +0200)
include/isl_set.h
isl_map.c

index eb3cfa3..1b6e07c 100644 (file)
@@ -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);
index 025d248..de92523 100644 (file)
--- 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)
 {