From 80f6f1133051b08d3de4fd3109af829e0ac38a87 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Tue, 6 Jan 2015 20:40:33 +0000 Subject: [PATCH] Make registerPollyPasses public This function is needed for the integration of Polly into Julia. llvm-svn: 225295 --- polly/include/polly/RegisterPasses.h | 1 + polly/lib/Support/RegisterPasses.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/polly/include/polly/RegisterPasses.h b/polly/include/polly/RegisterPasses.h index e53b45f..91e1e9c 100644 --- a/polly/include/polly/RegisterPasses.h +++ b/polly/include/polly/RegisterPasses.h @@ -24,5 +24,6 @@ class PassManagerBase; namespace polly { void initializePollyPasses(llvm::PassRegistry &Registry); +void registerPollyPasses(llvm::PassManagerBase &PM); } #endif diff --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp index 98ff424..47b6b61 100644 --- a/polly/lib/Support/RegisterPasses.cpp +++ b/polly/lib/Support/RegisterPasses.cpp @@ -182,7 +182,7 @@ void initializePollyPasses(PassRegistry &Registry) { /// scheduling optimizer. /// /// Polly supports the isl internal code generator. -static void registerPollyPasses(llvm::PassManagerBase &PM) { +void registerPollyPasses(llvm::PassManagerBase &PM) { registerCanonicalicationPasses(PM); PM.add(polly::createScopInfoPass()); -- 2.7.4