/external/llvm-project/llvm/lib/Transforms/IPO/ |
D | PassManagerBuilder.cpp | 324 void PassManagerBuilder::addPGOInstrPasses(legacy::PassManagerBase &MPM, in addPGOInstrPasses() argument 347 MPM.add(createFunctionInliningPass(IP)); in addPGOInstrPasses() 348 MPM.add(createSROAPass()); in addPGOInstrPasses() 349 MPM.add(createEarlyCSEPass()); // Catch trivial redundancies in addPGOInstrPasses() 350 MPM.add(createCFGSimplificationPass()); // Merge & remove BBs in addPGOInstrPasses() 351 MPM.add(createInstructionCombiningPass()); // Combine silly seq's in addPGOInstrPasses() 352 addExtensionsToPM(EP_Peephole, MPM); in addPGOInstrPasses() 355 MPM.add(createPGOInstrumentationGenLegacyPass(IsCS)); in addPGOInstrPasses() 362 MPM.add(createLoopRotatePass()); in addPGOInstrPasses() 363 MPM.add(createInstrProfilingLegacyPass(Options, IsCS)); in addPGOInstrPasses() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | PassManagerBuilder.cpp | 298 void PassManagerBuilder::addPGOInstrPasses(legacy::PassManagerBase &MPM, in addPGOInstrPasses() argument 321 MPM.add(createFunctionInliningPass(IP)); in addPGOInstrPasses() 322 MPM.add(createSROAPass()); in addPGOInstrPasses() 323 MPM.add(createEarlyCSEPass()); // Catch trivial redundancies in addPGOInstrPasses() 324 MPM.add(createCFGSimplificationPass()); // Merge & remove BBs in addPGOInstrPasses() 325 MPM.add(createInstructionCombiningPass()); // Combine silly seq's in addPGOInstrPasses() 326 addExtensionsToPM(EP_Peephole, MPM); in addPGOInstrPasses() 329 MPM.add(createPGOInstrumentationGenLegacyPass(IsCS)); in addPGOInstrPasses() 336 MPM.add(createLoopRotatePass()); in addPGOInstrPasses() 337 MPM.add(createInstrProfilingLegacyPass(Options, IsCS)); in addPGOInstrPasses() [all …]
|
/external/llvm/lib/Transforms/IPO/ |
D | PassManagerBuilder.cpp | 230 void PassManagerBuilder::addPGOInstrPasses(legacy::PassManagerBase &MPM) { in addPGOInstrPasses() argument 232 MPM.add(createPGOInstrumentationGenLegacyPass()); in addPGOInstrPasses() 236 MPM.add(createInstrProfilingLegacyPass(Options)); in addPGOInstrPasses() 239 MPM.add(createPGOInstrumentationUseLegacyPass(PGOInstrUse)); in addPGOInstrPasses() 242 legacy::PassManagerBase &MPM) { in addFunctionSimplificationPasses() argument 245 MPM.add(createSROAPass()); in addFunctionSimplificationPasses() 246 MPM.add(createEarlyCSEPass()); // Catch trivial redundancies in addFunctionSimplificationPasses() 248 MPM.add(createSpeculativeExecutionIfHasBranchDivergencePass()); in addFunctionSimplificationPasses() 249 MPM.add(createJumpThreadingPass()); // Thread jumps. in addFunctionSimplificationPasses() 250 MPM.add(createCorrelatedValuePropagationPass()); // Propagate conditionals in addFunctionSimplificationPasses() [all …]
|
/external/llvm-project/llvm/lib/Passes/ |
D | PassBuilder.cpp | 511 static void addAnnotationRemarksPass(ModulePassManager &MPM) { in addAnnotationRemarksPass() argument 514 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in addAnnotationRemarksPass() 829 void PassBuilder::addRequiredLTOPreLinkPasses(ModulePassManager &MPM) { in addRequiredLTOPreLinkPasses() argument 830 MPM.addPass(CanonicalizeAliasesPass()); in addRequiredLTOPreLinkPasses() 831 MPM.addPass(NameAnonGlobalPass()); in addRequiredLTOPreLinkPasses() 834 void PassBuilder::addPGOInstrPasses(ModulePassManager &MPM, in addPGOInstrPasses() argument 866 MPM.addPass(std::move(MIWP)); in addPGOInstrPasses() 871 MPM.addPass(GlobalDCEPass()); in addPGOInstrPasses() 876 MPM.addPass(PGOInstrumentationUse(ProfileFile, ProfileRemappingFile, IsCS)); in addPGOInstrPasses() 879 MPM.addPass(RequireAnalysisPass<ProfileSummaryAnalysis, Module>()); in addPGOInstrPasses() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Passes/ |
D | PassBuilder.cpp | 570 void PassBuilder::addPGOInstrPasses(ModulePassManager &MPM, bool DebugLogging, in addPGOInstrPasses() argument 604 MPM.addPass(createModuleToPostOrderCGSCCPassAdaptor(std::move(CGPipeline))); in addPGOInstrPasses() 609 MPM.addPass(GlobalDCEPass()); in addPGOInstrPasses() 614 MPM.addPass(PGOInstrumentationUse(ProfileFile, ProfileRemappingFile, IsCS)); in addPGOInstrPasses() 617 MPM.addPass(RequireAnalysisPass<ProfileSummaryAnalysis, Module>()); in addPGOInstrPasses() 622 MPM.addPass(PGOInstrumentationGen(IsCS)); in addPGOInstrPasses() 627 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in addPGOInstrPasses() 636 MPM.addPass(InstrProfiling(Options, IsCS)); in addPGOInstrPasses() 639 void PassBuilder::addPGOInstrPassesForO0(ModulePassManager &MPM, in addPGOInstrPassesForO0() argument 645 MPM.addPass(PGOInstrumentationUse(ProfileFile, ProfileRemappingFile, IsCS)); in addPGOInstrPassesForO0() [all …]
|
/external/llvm-project/llvm/unittests/Analysis/ |
D | CGSCCPassManagerTest.cpp | 286 ModulePassManager MPM(/*DebugLogging*/ true); in TEST_F() local 287 MPM.addPass(RequireAnalysisPass<TestModuleAnalysis, Module>()); in TEST_F() 351 MPM.addPass(createModuleToPostOrderCGSCCPassAdaptor(std::move(CGPM1))); in TEST_F() 359 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM3))); in TEST_F() 361 MPM.run(*M, MAM); in TEST_F() 384 ModulePassManager MPM(/*DebugLogging*/ true); in TEST_F() local 385 MPM.addPass(RequireAnalysisPass<TestModuleAnalysis, Module>()); in TEST_F() 402 MPM.addPass(createModuleToPostOrderCGSCCPassAdaptor(std::move(CGPM1))); in TEST_F() 422 MPM.addPass(createModuleToPostOrderCGSCCPassAdaptor(std::move(CGPM2))); in TEST_F() 438 MPM.addPass(createModuleToPostOrderCGSCCPassAdaptor(std::move(CGPM3))); in TEST_F() [all …]
|
/external/llvm-project/llvm/tools/opt/ |
D | NewPMDriver.cpp | 301 [](StringRef Name, ModulePassManager &MPM, in runPassPipeline() 304 MPM.addPass(NewPMDebugifyPass()); in runPassPipeline() 307 MPM.addPass(NewPMCheckDebugifyPass()); in runPassPipeline() 313 [](StringRef Name, ModulePassManager &MPM, in runPassPipeline() argument 316 MPM.addPass( in runPassPipeline() 318 MPM.addPass( in runPassPipeline() 320 MPM.addPass(ModuleAddressSanitizerPass()); in runPassPipeline() 323 MPM.addPass( in runPassPipeline() 325 MPM.addPass( in runPassPipeline() 388 ModulePassManager MPM(DebugPM); in runPassPipeline() local [all …]
|
/external/llvm/lib/Passes/ |
D | PassBuilder.cpp | 234 void PassBuilder::addPerModuleDefaultPipeline(ModulePassManager &MPM, in addPerModuleDefaultPipeline() argument 244 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(EarlyFPM))); in addPerModuleDefaultPipeline() 247 void PassBuilder::addLTOPreLinkDefaultPipeline(ModulePassManager &MPM, in addLTOPreLinkDefaultPipeline() argument 251 addPerModuleDefaultPipeline(MPM, Level, DebugLogging); in addLTOPreLinkDefaultPipeline() 254 void PassBuilder::addLTODefaultPipeline(ModulePassManager &MPM, in addLTODefaultPipeline() argument 262 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(LateFPM))); in addLTODefaultPipeline() 319 bool PassBuilder::parseModulePassName(ModulePassManager &MPM, StringRef Name, in parseModulePassName() argument 337 addPerModuleDefaultPipeline(MPM, L, DebugLogging); in parseModulePassName() 339 addLTOPreLinkDefaultPipeline(MPM, L, DebugLogging); in parseModulePassName() 342 addLTODefaultPipeline(MPM, L, DebugLogging); in parseModulePassName() [all …]
|
/external/llvm/tools/opt/ |
D | NewPMDriver.cpp | 81 ModulePassManager MPM(DebugPM); in runPassPipeline() local 83 MPM.addPass(VerifierPass()); in runPassPipeline() 85 if (!PB.parsePassPipeline(MPM, PassPipeline, VK == VK_VerifyEachPass, in runPassPipeline() 92 MPM.addPass(VerifierPass()); in runPassPipeline() 99 MPM.addPass( in runPassPipeline() 103 MPM.addPass( in runPassPipeline() 112 MPM.run(M, MAM); in runPassPipeline()
|
/external/llvm/include/llvm/Passes/ |
D | PassBuilder.h | 172 void addPerModuleDefaultPipeline(ModulePassManager &MPM, 183 void addLTOPreLinkDefaultPipeline(ModulePassManager &MPM, 193 void addLTODefaultPipeline(ModulePassManager &MPM, OptimizationLevel Level, 224 bool parsePassPipeline(ModulePassManager &MPM, StringRef PipelineText, 245 bool parseModulePassName(ModulePassManager &MPM, StringRef Name, 258 bool parseModulePassPipeline(ModulePassManager &MPM, StringRef &PipelineText,
|
/external/llvm-project/clang/lib/CodeGen/ |
D | BackendUtil.cpp | 118 void CreatePasses(legacy::PassManager &MPM, legacy::FunctionPassManager &FPM); 398 legacy::PassManager *MPM) { in addSymbolRewriterPass() argument 405 MPM->add(createRewriteSymbolsPass(DL)); in addSymbolRewriterPass() 617 void EmitAssemblyHelper::CreatePasses(legacy::PassManager &MPM, in CreatePasses() argument 638 MPM.add(createLowerTypeTestsPass(/*ExportSummary=*/nullptr, in CreatePasses() 678 MPM.add(new TargetLibraryInfoWrapperPass(*TLII)); in CreatePasses() 787 addSymbolRewriterPass(CodeGenOpts, &MPM); in CreatePasses() 792 MPM.add(createUniqueInternalLinkageNamesPass()); in CreatePasses() 796 MPM.add(createGCOVProfilerPass(*Options)); in CreatePasses() 798 MPM.add(createStripSymbolsPass(true)); in CreatePasses() [all …]
|
/external/llvm/unittests/IR/ |
D | PassManagerTest.cpp | 228 ModulePassManager MPM; in TEST_F() local 246 MPM = std::move(NestedMPM); in TEST_F() 251 MPM.addPass(TestModulePass(ModulePassRunCount)); in TEST_F() 261 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F() 266 MPM.addPass(TestPreservingModulePass()); in TEST_F() 275 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F() 279 MPM.addPass(TestMinPreservingModulePass()); in TEST_F() 287 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F() 300 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F() 303 MPM.run(*M, MAM); in TEST_F()
|
/external/llvm/include/llvm/Transforms/IPO/ |
D | PassManagerBuilder.h | 165 void addPGOInstrPasses(legacy::PassManagerBase &MPM); 166 void addFunctionSimplificationPasses(legacy::PassManagerBase &MPM); 167 void addInstructionCombiningPass(legacy::PassManagerBase &MPM) const; 176 void populateModulePassManager(legacy::PassManagerBase &MPM);
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/IPO/ |
D | PassManagerBuilder.h | 217 void addPGOInstrPasses(legacy::PassManagerBase &MPM, bool IsCS); 218 void addFunctionSimplificationPasses(legacy::PassManagerBase &MPM); 219 void addInstructionCombiningPass(legacy::PassManagerBase &MPM) const; 228 void populateModulePassManager(legacy::PassManagerBase &MPM);
|
/external/llvm-project/llvm/unittests/Transforms/Scalar/ |
D | LoopPassManagerTest.cpp | 322 ModulePassManager MPM(true); in TEST_F() local 346 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F() 373 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F() 377 MPM.run(*M, MAM); in TEST_F() 381 ModulePassManager MPM(true); in TEST_F() local 454 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F() 458 MPM.addPass(createModuleToFunctionPassAdaptor(createFunctionToLoopPassAdaptor( in TEST_F() 461 MPM.run(*M, MAM); in TEST_F() 465 ModulePassManager MPM(true); in TEST_F() local 473 MPM.addPass(createModuleToFunctionPassAdaptor(createFunctionToLoopPassAdaptor( in TEST_F() [all …]
|
D | LICMTest.cpp | 22 ModulePassManager MPM; in TEST() local 36 ASSERT_THAT_ERROR(PB.parsePassPipeline(MPM, PipelineStr), Succeeded()); in TEST() 73 MPM.run(*M, MAM); in TEST()
|
/external/llvm-project/llvm/tools/llvm-opt-fuzzer/ |
D | llvm-opt-fuzzer.cpp | 141 ModulePassManager MPM; in LLVMFuzzerTestOneInput() local 151 auto Err = PB.parsePassPipeline(MPM, PassPipeline); in LLVMFuzzerTestOneInput() 159 MPM.run(*M, MAM); in LLVMFuzzerTestOneInput() 244 ModulePassManager MPM; in LLVMFuzzerInitialize() local 245 if (auto Err = PB.parsePassPipeline(MPM, PassPipeline)) { in LLVMFuzzerInitialize()
|
/external/llvm-project/polly/lib/Transform/ |
D | ScopInliner.cpp | 87 ModulePassManager MPM; in runOnSCC() local 88 MPM.addPass(AlwaysInlinerPass()); in runOnSCC() 91 MPM.run(*M, MAM); in runOnSCC()
|
/external/llvm-project/llvm/unittests/IR/ |
D | PassManagerTest.cpp | 434 ModulePassManager MPM; in TEST_F() local 453 MPM = std::move(NestedMPM); in TEST_F() 458 MPM.addPass(TestModulePass(ModulePassRunCount)); in TEST_F() 468 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F() 473 MPM.addPass(TestPreservingModulePass()); in TEST_F() 482 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F() 487 MPM.addPass(RequireAnalysisPass<TestModuleAnalysis, Module>()); in TEST_F() 495 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F() 509 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F() 512 MPM.run(*M, MAM); in TEST_F() [all …]
|
/external/llvm-project/llvm/lib/Target/BPF/ |
D | BPFTargetMachine.cpp | 129 [=](ModulePassManager &MPM, PassBuilder::OptimizationLevel) { in registerPassBuilderCallbacks() argument 133 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in registerPassBuilderCallbacks() 140 [=](ModulePassManager &MPM, PassBuilder::OptimizationLevel) { in registerPassBuilderCallbacks() argument 141 MPM.addPass(BPFAdjustOptPass()); in registerPassBuilderCallbacks()
|
/external/llvm-project/llvm/include/llvm/Transforms/IPO/ |
D | PassManagerBuilder.h | 219 void addPGOInstrPasses(legacy::PassManagerBase &MPM, bool IsCS); 220 void addFunctionSimplificationPasses(legacy::PassManagerBase &MPM); 229 void populateModulePassManager(legacy::PassManagerBase &MPM);
|
/external/llvm-project/llvm/lib/LTO/ |
D | LTOBackend.cpp | 251 ModulePassManager MPM(Conf.DebugPassManager); in runNewPMPasses() local 254 MPM.addPass(VerifierPass()); in runNewPMPasses() 276 MPM.addPass(PB.buildThinLTODefaultPipeline(OL, ImportSummary)); in runNewPMPasses() 278 MPM.addPass(PB.buildLTODefaultPipeline(OL, ExportSummary)); in runNewPMPasses() 281 MPM.addPass(VerifierPass()); in runNewPMPasses() 283 MPM.run(Mod, MAM); in runNewPMPasses() 316 ModulePassManager MPM; in runNewPMCustomPasses() local 319 MPM.addPass(VerifierPass()); in runNewPMCustomPasses() 322 if (auto Err = PB.parsePassPipeline(MPM, PipelineDesc)) in runNewPMCustomPasses() 327 MPM.addPass(VerifierPass()); in runNewPMCustomPasses() [all …]
|
/external/llvm/unittests/Analysis/ |
D | CGSCCPassManagerTest.cpp | 277 ModulePassManager MPM(/*DebugLogging*/ true); in TEST() local 279 MPM.addPass(TestModulePass(ModulePassRunCount1)); in TEST() 294 MPM.addPass(createModuleToPostOrderCGSCCPassAdaptor(std::move(CGPM1))); in TEST() 296 MPM.run(*M, MAM); in TEST()
|
D | LoopPassManagerTest.cpp | 162 ModulePassManager MPM(true); in TEST_F() local 187 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F() 188 MPM.run(*M, MAM); in TEST_F()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/ |
D | LTOBackend.cpp | 197 ModulePassManager MPM(Conf.DebugPassManager); in runNewPMPasses() local 220 MPM = PB.buildThinLTODefaultPipeline(OL, Conf.DebugPassManager, in runNewPMPasses() 223 MPM = PB.buildLTODefaultPipeline(OL, Conf.DebugPassManager, ExportSummary); in runNewPMPasses() 224 MPM.run(Mod, MAM); in runNewPMPasses() 257 ModulePassManager MPM; in runNewPMCustomPasses() local 260 MPM.addPass(VerifierPass()); in runNewPMCustomPasses() 263 if (auto Err = PB.parsePassPipeline(MPM, PipelineDesc)) in runNewPMCustomPasses() 268 MPM.addPass(VerifierPass()); in runNewPMCustomPasses() 269 MPM.run(Mod, MAM); in runNewPMCustomPasses()
|