add isl_schedule_foreach_band
[platform/upstream/isl.git] / isl_map_subtract.c
index e34a369..d43cf3d 100644 (file)
@@ -843,14 +843,19 @@ __isl_give isl_set *isl_set_make_disjoint(__isl_take isl_set *set)
        return (struct isl_set *)isl_map_make_disjoint((struct isl_map *)set);
 }
 
-__isl_give isl_set *isl_set_complement(__isl_take isl_set *set)
+__isl_give isl_map *isl_map_complement(__isl_take isl_map *map)
 {
-       isl_set *universe;
+       isl_map *universe;
 
-       if (!set)
+       if (!map)
                return NULL;
 
-       universe = isl_set_universe(isl_set_get_space(set));
+       universe = isl_map_universe(isl_map_get_space(map));
+
+       return isl_map_subtract(universe, map);
+}
 
-       return isl_set_subtract(universe, set);
+__isl_give isl_set *isl_set_complement(__isl_take isl_set *set)
+{
+       return isl_map_complement(set);
 }