From 4ba9ca01a038d0a943ec487264bfb157a2ebb85c Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 21 Jul 2014 16:03:18 +0200 Subject: [PATCH] expose isl_ast_graft_list_extract_shared_enforced We will need this when we move some of the isl_ast_graft_alloc_level functionality to isl_ast_codegen.c. Signed-off-by: Sven Verdoolaege --- isl_ast_graft.c | 5 +++-- isl_ast_graft_private.h | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/isl_ast_graft.c b/isl_ast_graft.c index 8059e307..4a68d5f0 100644 --- a/isl_ast_graft.c +++ b/isl_ast_graft.c @@ -680,7 +680,7 @@ static __isl_give isl_ast_node_list *extract_node_list( * * We assume that the number of children is at least one. */ -static __isl_give isl_basic_set *extract_shared_enforced( +__isl_give isl_basic_set *isl_ast_graft_list_extract_shared_enforced( __isl_keep isl_ast_graft_list *list, __isl_keep isl_ast_build *build) { @@ -844,7 +844,8 @@ static __isl_give isl_ast_graft *ast_graft_list_fuse( ctx = isl_ast_build_get_ctx(build); if (!up || isl_options_get_ast_build_exploit_nested_bounds(ctx)) - enforced = extract_shared_enforced(list, build); + enforced = isl_ast_graft_list_extract_shared_enforced(list, + build); else { isl_space *space = isl_ast_build_get_space(build, 1); enforced = isl_basic_set_universe(space); diff --git a/isl_ast_graft_private.h b/isl_ast_graft_private.h index f26ef598..7195b13f 100644 --- a/isl_ast_graft_private.h +++ b/isl_ast_graft_private.h @@ -87,6 +87,9 @@ __isl_give isl_ast_graft_list *isl_ast_graft_list_preimage_multi_aff( __isl_give isl_ast_node *isl_ast_node_from_graft_list( __isl_take isl_ast_graft_list *list, __isl_keep isl_ast_build *build); +__isl_give isl_basic_set *isl_ast_graft_list_extract_shared_enforced( + __isl_keep isl_ast_graft_list *list, __isl_keep isl_ast_build *build); + __isl_give isl_printer *isl_printer_print_ast_graft(__isl_take isl_printer *p, __isl_keep isl_ast_graft *graft); -- 2.11.4.GIT