From bde6f378598b43e80b69780a4efd4f0d038903cf Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 22 Aug 2013 11:28:54 +0200 Subject: [PATCH] export pet_expr_access_get_may_access Signed-off-by: Sven Verdoolaege --- include/pet.h | 3 +++ scop.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/pet.h b/include/pet.h index 1642763..bd55dec 100644 --- a/include/pet.h +++ b/include/pet.h @@ -140,6 +140,9 @@ struct pet_expr { }; }; +/* Return the potential read access relation of access expression "expr". */ +__isl_give isl_map *pet_expr_access_get_may_access(struct pet_expr *expr); + /* If the statement has arguments, i.e., n_arg != 0, then * "domain" is a wrapped map, mapping the iteration domain * to the values of the arguments for which this statement diff --git a/scop.c b/scop.c index c0ea003..34f4019 100644 --- a/scop.c +++ b/scop.c @@ -3332,7 +3332,7 @@ struct pet_scop *pet_scop_detect_parameter_accesses(struct pet_scop *scop) * In particular, take the access relation and project out the values * of the arguments, if any. */ -static __isl_give isl_map *expr_access_get_may_access(struct pet_expr *expr) +__isl_give isl_map *pet_expr_access_get_may_access(struct pet_expr *expr) { isl_map *access; isl_space *space; @@ -3383,7 +3383,7 @@ static __isl_give isl_union_map *expr_collect_accesses(struct pet_expr *expr, (!must || expr->n_arg == 0)) { isl_map *access; - access = expr_access_get_may_access(expr); + access = pet_expr_access_get_may_access(expr); accesses = isl_union_map_add_map(accesses, access); } -- 2.11.4.GIT