From 00e08f7fd72d797bd3ae191dc6eb498fc8bcd095 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 1 Oct 2018 11:40:47 +0200 Subject: [PATCH] add isl_basic_map_has_single_reference This will be used to check whether a basic map should be restored to a valid state when discovering equality constraints during coalescing. Signed-off-by: Sven Verdoolaege --- isl_map.c | 4 ++++ isl_map_private.h | 1 + 2 files changed, 5 insertions(+) diff --git a/isl_map.c b/isl_map.c index 9b0e984e..7b6155be 100644 --- a/isl_map.c +++ b/isl_map.c @@ -50,6 +50,10 @@ #include #include +#undef TYPE +#define TYPE isl_basic_map +#include "has_single_reference_templ.c" + static unsigned n(__isl_keep isl_space *dim, enum isl_dim_type type) { switch (type) { diff --git a/isl_map_private.h b/isl_map_private.h index 1fbb6dcd..3388e082 100644 --- a/isl_map_private.h +++ b/isl_map_private.h @@ -255,6 +255,7 @@ __isl_give isl_basic_set *isl_basic_set_tighten_outward( int isl_inequality_negate(struct isl_basic_map *bmap, unsigned pos); +isl_bool isl_basic_map_has_single_reference(__isl_keep isl_basic_map *bmap); __isl_give isl_basic_set *isl_basic_set_cow(__isl_take isl_basic_set *bset); __isl_give isl_basic_map *isl_basic_map_cow(__isl_take isl_basic_map *bmap); __isl_give isl_set *isl_set_cow(__isl_take isl_set *set); -- 2.11.4.GIT