add isl_map_from_range
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 16 Feb 2009 12:54:01 +0000 (13:54 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 22 Feb 2009 17:01:12 +0000 (18:01 +0100)
include/isl_map.h
isl_map.c

index 92963da..9f8a588 100644 (file)
@@ -234,6 +234,7 @@ struct isl_map *isl_map_remove_inputs(struct isl_map *map,
 
 struct isl_set *isl_map_domain(struct isl_map *bmap);
 struct isl_map *isl_map_from_basic_map(struct isl_basic_map *bmap);
+struct isl_map *isl_map_from_range(struct isl_set *set);
 struct isl_map *isl_map_from_set(struct isl_set *set, struct isl_dim *dim);
 struct isl_set *isl_set_from_map(struct isl_map *map);
 
index 96f0b45..05b5b7e 100644 (file)
--- a/isl_map.c
+++ b/isl_map.c
@@ -2348,6 +2348,11 @@ error:
        return NULL;
 }
 
+struct isl_map *isl_map_from_range(struct isl_set *set)
+{
+       return (struct isl_map *)set;
+}
+
 struct isl_set *isl_set_from_map(struct isl_map *map)
 {
        int i;