add isl_set_flatten
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 12 Oct 2010 09:18:27 +0000 (11:18 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 17 Oct 2010 09:14:08 +0000 (11:14 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
doc/user.pod
include/isl_map.h
isl_map.c

index 3386010..b81b316 100644 (file)
@@ -1334,6 +1334,17 @@ the overapproximation), then you will get an error message.
        __isl_give isl_union_map *isl_union_set_unwrap(
                __isl_take isl_union_set *uset);
 
+=item * Flattening
+
+Remove any internal structure of domain (and range) of the given
+set or relation.  If there is any such internal structure in the input,
+then the name of the space is also removed.
+
+       __isl_give isl_set *isl_set_flatten(
+               __isl_take isl_set *set);
+       __isl_give isl_map *isl_map_flatten(
+               __isl_take isl_map *map);
+
 =item * Dimension manipulation
 
        __isl_give isl_set *isl_set_add_dims(
index 88f5770..de18c87 100644 (file)
@@ -380,6 +380,7 @@ __isl_give isl_set *isl_map_wrap(__isl_take isl_map *map);
 __isl_give isl_basic_map *isl_basic_set_unwrap(__isl_take isl_basic_set *bset);
 __isl_give isl_map *isl_set_unwrap(__isl_take isl_set *set);
 __isl_give isl_map *isl_map_flatten(__isl_take isl_map *map);
+__isl_give isl_set *isl_set_flatten(__isl_take isl_set *set);
 __isl_give isl_set *isl_map_domain(__isl_take isl_map *bmap);
 __isl_give isl_set *isl_map_range(__isl_take isl_map *map);
 __isl_give isl_map *isl_map_domain_map(__isl_take isl_map *map);
index 82af888..e1b7c05 100644 (file)
--- a/isl_map.c
+++ b/isl_map.c
@@ -7576,6 +7576,11 @@ error:
        return NULL;
 }
 
+__isl_give isl_set *isl_set_flatten(__isl_take isl_set *set)
+{
+       return (isl_set *)isl_map_flatten((isl_map *)set);
+}
+
 /* Extend the given dim_map with mappings for the divs in bmap.
  */
 static __isl_give struct isl_dim_map *extend_dim_map(