[PATCH] D36273: [Polly][PM] Register polly passes with the opt tool for the new-pm path

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 4 02:29:08 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL310043: [Polly][PM] Register polly passes with the opt tool for the new-pm path (authored by pfaffe).

Repository:
  rL LLVM

https://reviews.llvm.org/D36273

Files:
  llvm/trunk/tools/opt/NewPMDriver.cpp


Index: llvm/trunk/tools/opt/NewPMDriver.cpp
===================================================================
--- llvm/trunk/tools/opt/NewPMDriver.cpp
+++ llvm/trunk/tools/opt/NewPMDriver.cpp
@@ -18,6 +18,7 @@
 #include "llvm/Analysis/AliasAnalysis.h"
 #include "llvm/Analysis/CGSCCPassManager.h"
 #include "llvm/Bitcode/BitcodeWriterPass.h"
+#include "llvm/Config/config.h"
 #include "llvm/IR/Dominators.h"
 #include "llvm/IR/IRPrintingPasses.h"
 #include "llvm/IR/LLVMContext.h"
@@ -160,6 +161,12 @@
     });
 }
 
+#ifdef LINK_POLLY_INTO_TOOLS
+namespace polly {
+void RegisterPollyPasses(PassBuilder &);
+}
+#endif
+
 bool llvm::runPassPipeline(StringRef Arg0, Module &M, TargetMachine *TM,
                            tool_output_file *Out,
                            tool_output_file *ThinLTOLinkOut,
@@ -190,6 +197,10 @@
   PassBuilder PB(TM, P);
   registerEPCallbacks(PB, VerifyEachPass, DebugPM);
 
+#ifdef LINK_POLLY_INTO_TOOLS
+  polly::RegisterPollyPasses(PB);
+#endif
+
   // Specially handle the alias analysis manager so that we can register
   // a custom pipeline of AA passes with it.
   AAManager AA;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36273.109696.patch
Type: text/x-patch
Size: 1123 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170804/a9c4b84c/attachment.bin>


More information about the llvm-commits mailing list