[PATCH] D20267: [LTO] Add the ability to specify a subset of passes to run
Chandler Carruth via llvm-commits
llvm-commits at lists.llvm.org
Fri May 13 19:48:35 PDT 2016
chandlerc added inline comments.
================
Comment at: ELF/LTO.cpp:91-99
@@ +90,11 @@
+
+ // Cross register the analysis managers through their proxies.
+ MAM.registerPass([&] { return FunctionAnalysisManagerModuleProxy(FAM); });
+ MAM.registerPass([&] { return CGSCCAnalysisManagerModuleProxy(CGAM); });
+ CGAM.registerPass([&] { return FunctionAnalysisManagerCGSCCProxy(FAM); });
+ CGAM.registerPass([&] { return ModuleAnalysisManagerCGSCCProxy(MAM); });
+ FAM.registerPass([&] { return CGSCCAnalysisManagerFunctionProxy(CGAM); });
+ FAM.registerPass([&] { return ModuleAnalysisManagerFunctionProxy(MAM); });
+ FAM.registerPass([&] { return LoopAnalysisManagerFunctionProxy(LAM); });
+ LAM.registerPass([&] { return FunctionAnalysisManagerLoopProxy(FAM); });
+
----------------
We should really refactor this into a helper in PassBuilder.
http://reviews.llvm.org/D20267
More information about the llvm-commits
mailing list