Make registerPollyPasses public
authorTobias Grosser <tobias@grosser.es>
Tue, 6 Jan 2015 20:40:33 +0000 (20:40 +0000)
committerTobias Grosser <tobias@grosser.es>
Tue, 6 Jan 2015 20:40:33 +0000 (20:40 +0000)
This function is needed for the integration of Polly into Julia.

llvm-svn: 225295

polly/include/polly/RegisterPasses.h
polly/lib/Support/RegisterPasses.cpp

index e53b45f..91e1e9c 100644 (file)
@@ -24,5 +24,6 @@ class PassManagerBase;
 
 namespace polly {
 void initializePollyPasses(llvm::PassRegistry &Registry);
+void registerPollyPasses(llvm::PassManagerBase &PM);
 }
 #endif
index 98ff424..47b6b61 100644 (file)
@@ -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());