add isl_basic_set_extend_dim
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 3 Mar 2009 14:01:51 +0000 (15:01 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 20 Mar 2009 14:21:04 +0000 (15:21 +0100)
isl_map.c
isl_map_private.h

index afb2ab1..a7a1d5c 100644 (file)
--- a/isl_map.c
+++ b/isl_map.c
@@ -821,6 +821,15 @@ error:
        return NULL;
 }
 
+struct isl_basic_set *isl_basic_set_extend_dim(struct isl_basic_set *base,
+               struct isl_dim *dim, unsigned extra,
+               unsigned n_eq, unsigned n_ineq)
+{
+       return (struct isl_basic_set *)
+               isl_basic_map_extend_dim((struct isl_basic_map *)base, dim,
+                                                       extra, n_eq, n_ineq);
+}
+
 struct isl_basic_map *isl_basic_map_extend_constraints(
                struct isl_basic_map *base, unsigned n_eq, unsigned n_ineq)
 {
index 1c4f68b..5b1afc6 100644 (file)
@@ -13,6 +13,9 @@ int isl_basic_map_compatible_range(struct isl_basic_map *bmap,
 struct isl_basic_map *isl_basic_map_extend_dim(struct isl_basic_map *base,
                struct isl_dim *dim, unsigned extra,
                unsigned n_eq, unsigned n_ineq);
+struct isl_basic_set *isl_basic_set_extend_dim(struct isl_basic_set *base,
+               struct isl_dim *dim, unsigned extra,
+               unsigned n_eq, unsigned n_ineq);
 struct isl_basic_set *isl_basic_set_add_constraints(struct isl_basic_set *bset1,
                struct isl_basic_set *bset2, unsigned pos);