From 227fe61bb08f9433327a5051e8fc87499408c135 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Wed, 18 Mar 2009 17:35:41 +0100 Subject: [PATCH] add isl_map_implicit_equalities --- isl_affine_hull.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/isl_affine_hull.c b/isl_affine_hull.c index 73a5e94..fbdcddf 100644 --- a/isl_affine_hull.c +++ b/isl_affine_hull.c @@ -40,6 +40,25 @@ struct isl_basic_set *isl_basic_set_implicit_equalities( isl_basic_map_implicit_equalities((struct isl_basic_map*)bset); } +struct isl_map *isl_map_implicit_equalities(struct isl_map *map) +{ + int i; + + if (!map) + return map; + + for (i = 0; i < map->n; ++i) { + map->p[i] = isl_basic_map_implicit_equalities(map->p[i]); + if (!map->p[i]) + goto error; + } + + return map; +error: + isl_map_free(map); + return NULL; +} + /* Make eq[row][col] of both bmaps equal so we can add the row * add the column to the common matrix. * Note that because of the echelon form, the columns of row row -- 2.7.4