Lines Matching refs:MPM

120   void CreatePasses(legacy::PassManager &MPM, legacy::FunctionPassManager &FPM);
416 legacy::PassManager *MPM) { in addSymbolRewriterPass() argument
423 MPM->add(createRewriteSymbolsPass(DL)); in addSymbolRewriterPass()
632 void EmitAssemblyHelper::CreatePasses(legacy::PassManager &MPM, in CreatePasses() argument
653 MPM.add(createLowerTypeTestsPass(/*ExportSummary=*/nullptr, in CreatePasses()
693 MPM.add(new TargetLibraryInfoWrapperPass(*TLII)); in CreatePasses()
816 addSymbolRewriterPass(CodeGenOpts, &MPM); in CreatePasses()
819 MPM.add(createGCOVProfilerPass(*Options)); in CreatePasses()
821 MPM.add(createStripSymbolsPass(true)); in CreatePasses()
826 MPM.add(createInstrProfilingLegacyPass(*Options, false)); in CreatePasses()
858 PMBuilder.populateModulePassManager(MPM); in CreatePasses()
1100 PB.registerOptimizerLastEPCallback([&](ModulePassManager &MPM, in addSanitizers()
1106 MPM.addPass(ModuleSanitizerCoveragePass( in addSanitizers()
1116 MPM.addPass( in addSanitizers()
1133 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in addSanitizers()
1140 MPM.addPass(ThreadSanitizerPass()); in addSanitizers()
1141 MPM.addPass(createModuleToFunctionPassAdaptor(ThreadSanitizerPass())); in addSanitizers()
1152 MPM.addPass(RequireAnalysisPass<ASanGlobalsMetadataAnalysis, Module>()); in addSanitizers()
1153 MPM.addPass(ModuleAddressSanitizerPass( in addSanitizers()
1156 MPM.addPass(createModuleToFunctionPassAdaptor( in addSanitizers()
1166 MPM.addPass(HWAddressSanitizerPass(CompileKernel, Recover)); in addSanitizers()
1173 MPM.addPass(DataFlowSanitizerPass(LangOpts.NoSanitizeFiles)); in addSanitizers()
1316 ModulePassManager MPM; in EmitAssemblyWithNewPassManager() local
1328 [](ModulePassManager &MPM, PassBuilder::OptimizationLevel Level) { in EmitAssemblyWithNewPassManager() argument
1330 MPM.addPass( in EmitAssemblyWithNewPassManager()
1334 [](ModulePassManager &MPM, PassBuilder::OptimizationLevel Level) { in EmitAssemblyWithNewPassManager() argument
1336 MPM.addPass(ObjCARCAPElimPass()); in EmitAssemblyWithNewPassManager()
1353 [](ModulePassManager &MPM, PassBuilder::OptimizationLevel Level) { in EmitAssemblyWithNewPassManager() argument
1354 MPM.addPass(LowerTypeTestsPass(/*ExportSummary=*/nullptr, in EmitAssemblyWithNewPassManager()
1364 [](ModulePassManager &MPM, PassBuilder::OptimizationLevel Level) { in EmitAssemblyWithNewPassManager() argument
1365 MPM.addPass(createModuleToFunctionPassAdaptor( in EmitAssemblyWithNewPassManager()
1369 [](ModulePassManager &MPM, PassBuilder::OptimizationLevel Level) { in EmitAssemblyWithNewPassManager() argument
1370 MPM.addPass(createModuleToFunctionPassAdaptor( in EmitAssemblyWithNewPassManager()
1390 [Options](ModulePassManager &MPM, in EmitAssemblyWithNewPassManager()
1392 MPM.addPass(GCOVProfilerPass(*Options)); in EmitAssemblyWithNewPassManager()
1397 [Options](ModulePassManager &MPM, in EmitAssemblyWithNewPassManager() argument
1399 MPM.addPass(InstrProfiling(*Options, false)); in EmitAssemblyWithNewPassManager()
1403 MPM = PB.buildO0DefaultPipeline(Level, IsLTO || IsThinLTO); in EmitAssemblyWithNewPassManager()
1405 MPM = PB.buildThinLTOPreLinkDefaultPipeline(Level); in EmitAssemblyWithNewPassManager()
1407 MPM = PB.buildLTOPreLinkDefaultPipeline(Level); in EmitAssemblyWithNewPassManager()
1409 MPM = PB.buildPerModuleDefaultPipeline(Level); in EmitAssemblyWithNewPassManager()
1413 MPM.addPass(createModuleToFunctionPassAdaptor(MemProfilerPass())); in EmitAssemblyWithNewPassManager()
1414 MPM.addPass(ModuleMemProfilerPass()); in EmitAssemblyWithNewPassManager()
1438 MPM.addPass(ThinLTOBitcodeWriterPass(*OS, ThinLinkOS ? &ThinLinkOS->os() in EmitAssemblyWithNewPassManager()
1454 MPM.addPass( in EmitAssemblyWithNewPassManager()
1460 MPM.addPass(PrintModulePass(*OS, "", CodeGenOpts.EmitLLVMUseLists)); in EmitAssemblyWithNewPassManager()
1487 MPM.run(*TheModule, MAM); in EmitAssemblyWithNewPassManager()