Home
last modified time | relevance | path

Searched refs:MPM (Results 1 – 9 of 9) sorted by relevance

/external/llvm/lib/Transforms/IPO/
DPassManagerBuilder.cpp170 legacy::PassManagerBase &MPM) { in populateModulePassManager() argument
175 MPM.add(Inliner); in populateModulePassManager()
185 MPM.add(createMergeFunctionsPass()); in populateModulePassManager()
187 MPM.add(createBarrierNoopPass()); in populateModulePassManager()
189 addExtensionsToPM(EP_EnabledOnOptLevel0, MPM); in populateModulePassManager()
195 MPM.add(new TargetLibraryInfoWrapperPass(*LibraryInfo)); in populateModulePassManager()
197 addInitialAliasAnalysisPasses(MPM); in populateModulePassManager()
200 addExtensionsToPM(EP_ModuleOptimizerEarly, MPM); in populateModulePassManager()
202 MPM.add(createIPSCCPPass()); // IP SCCP in populateModulePassManager()
203 MPM.add(createGlobalOptimizerPass()); // Optimize out global vars in populateModulePassManager()
[all …]
/external/llvm/tools/opt/
DNewPMDriver.cpp64 ModulePassManager MPM(DebugPM); in runPassPipeline() local
66 MPM.addPass(VerifierPass()); in runPassPipeline()
68 if (!PB.parsePassPipeline(MPM, PassPipeline, VK == VK_VerifyEachPass, in runPassPipeline()
75 MPM.addPass(VerifierPass()); in runPassPipeline()
82 MPM.addPass( in runPassPipeline()
86 MPM.addPass( in runPassPipeline()
95 MPM.run(M, &MAM); in runPassPipeline()
Dopt.cpp206 static void AddOptimizationPasses(legacy::PassManagerBase &MPM, in AddOptimizationPasses() argument
238 Builder.populateModulePassManager(MPM); in AddOptimizationPasses()
/external/llvm/lib/Passes/
DPassBuilder.cpp148 bool PassBuilder::parseModulePassName(ModulePassManager &MPM, StringRef Name) { in parseModulePassName() argument
151 MPM.addPass(CREATE_PASS); \ in parseModulePassName()
156 MPM.addPass(RequireAnalysisPass<decltype(CREATE_PASS)>()); \ in parseModulePassName()
160 MPM.addPass(InvalidateAnalysisPass<decltype(CREATE_PASS)>()); \ in parseModulePassName()
300 bool PassBuilder::parseModulePassPipeline(ModulePassManager &MPM, in parseModulePassPipeline() argument
319 MPM.addPass(std::move(NestedMPM)); in parseModulePassPipeline()
333 MPM.addPass( in parseModulePassPipeline()
348 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(NestedFPM))); in parseModulePassPipeline()
352 if (!parseModulePassName(MPM, PipelineText.substr(0, End))) in parseModulePassPipeline()
355 MPM.addPass(VerifierPass()); in parseModulePassPipeline()
[all …]
/external/llvm/unittests/IR/
DPassManagerTest.cpp243 ModulePassManager MPM; in TEST_F() local
261 MPM = std::move(NestedMPM); in TEST_F()
266 MPM.addPass(TestModulePass(ModulePassRunCount)); in TEST_F()
276 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F()
281 MPM.addPass(TestPreservingModulePass()); in TEST_F()
290 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F()
294 MPM.addPass(TestMinPreservingModulePass()); in TEST_F()
302 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F()
315 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F()
318 MPM.run(*M, &MAM); in TEST_F()
/external/llvm/utils/Misc/
Dmergefunctions.clang.svn.patch6 MPM->add(createStripSymbolsPass(true));
10 + MPM->add(createMergeFunctionsPass());
12 PMBuilder.populateModulePassManager(*MPM);
/external/llvm/include/llvm/Passes/
DPassBuilder.h87 bool parsePassPipeline(ModulePassManager &MPM, StringRef PipelineText,
91 bool parseModulePassName(ModulePassManager &MPM, StringRef Name);
99 bool parseModulePassPipeline(ModulePassManager &MPM, StringRef &PipelineText,
/external/clang/lib/CodeGen/
DBackendUtil.cpp251 legacy::PassManager *MPM) { in addSymbolRewriterPass() argument
258 MPM->add(createRewriteSymbolsPass(DL)); in addSymbolRewriterPass()
372 legacy::PassManager *MPM = getPerModulePasses(); in CreatePasses() local
374 addSymbolRewriterPass(CodeGenOpts, MPM); in CreatePasses()
389 MPM->add(createGCOVProfilerPass(Options)); in CreatePasses()
391 MPM->add(createStripSymbolsPass(true)); in CreatePasses()
397 MPM->add(createInstrProfilingPass(Options)); in CreatePasses()
400 PMBuilder.populateModulePassManager(*MPM); in CreatePasses()
/external/llvm/include/llvm/Transforms/IPO/
DPassManagerBuilder.h152 void populateModulePassManager(legacy::PassManagerBase &MPM);