Home
last modified time | relevance | path

Searched refs:Passes (Results 1 – 25 of 48) sorted by relevance

12

/external/swiftshader/third_party/LLVM/tools/llvm-ld/
DOptimize.cpp83 PassManager Passes; in Optimize() local
87 Passes.add(createVerifierPass()); in Optimize()
90 addPass(Passes, new TargetData(M)); in Optimize()
93 PassManagerBuilder().populateLTOPassManager(Passes, !DisableInternalize, in Optimize()
100 addPass(Passes, createStripSymbolsPass(StripDebug && !Strip)); in Optimize()
107 addPass(Passes, Opt->getNormalCtor()()); in Optimize()
116 addPass(Passes, createInstructionCombiningPass()); in Optimize()
117 addPass(Passes, createCFGSimplificationPass()); in Optimize()
118 addPass(Passes, createAggressiveDCEPass()); in Optimize()
119 addPass(Passes, createGlobalDCEPass()); in Optimize()
[all …]
/external/swiftshader/third_party/LLVM/unittests/VMCore/
DPassManagerTest.cpp294 PassManager Passes; in TEST() local
295 Passes.add(new TargetData(&M)); in TEST()
296 Passes.add(mNDM2); in TEST()
297 Passes.add(mNDM); in TEST()
298 Passes.add(mNDNM); in TEST()
299 Passes.add(mDNM); in TEST()
301 Passes.run(M); in TEST()
318 PassManager Passes; in TEST() local
319 Passes.add(new TargetData(&M)); in TEST()
320 Passes.add(mNDM); in TEST()
[all …]
/external/llvm/tools/opt/
Dopt.cpp479 legacy::PassManager Passes; in main() local
487 Passes.add(new TargetLibraryInfoWrapperPass(TLII)); in main()
496 Passes.add(createTargetTransformInfoWrapperPass(TM ? TM->getTargetIRAnalysis() in main()
520 Passes.add(createBreakpointPrinter(Out->os())); in main()
528 AddStandardLinkPasses(Passes); in main()
533 AddOptimizationPasses(Passes, *FPasses, TM.get(), 1, 0); in main()
538 AddOptimizationPasses(Passes, *FPasses, TM.get(), 2, 0); in main()
543 AddOptimizationPasses(Passes, *FPasses, TM.get(), 2, 1); in main()
548 AddOptimizationPasses(Passes, *FPasses, TM.get(), 2, 2); in main()
553 AddOptimizationPasses(Passes, *FPasses, TM.get(), 3, 0); in main()
[all …]
/external/swiftshader/third_party/LLVM/tools/opt/
Dopt.cpp542 PassManager Passes; in main() local
550 Passes.add(TLI); in main()
561 Passes.add(TD); in main()
584 Passes.add(new BreakpointPrinter(Out->os())); in main()
591 addPass(Passes, createStripSymbolsPass(true)); in main()
599 AddStandardCompilePasses(Passes); in main()
605 AddStandardLinkPasses(Passes); in main()
610 AddOptimizationPasses(Passes, *FPasses, 1); in main()
615 AddOptimizationPasses(Passes, *FPasses, 2); in main()
620 AddOptimizationPasses(Passes, *FPasses, 3); in main()
[all …]
/external/llvm/unittests/IR/
DLegacyPassManagerTest.cpp299 legacy::PassManager Passes; in TEST() local
300 Passes.add(mNDM2); in TEST()
301 Passes.add(mNDM); in TEST()
302 Passes.add(mNDNM); in TEST()
303 Passes.add(mDNM); in TEST()
305 Passes.run(M); in TEST()
323 legacy::PassManager Passes; in TEST() local
324 Passes.add(mNDM); in TEST()
325 Passes.add(mNDNM); in TEST()
326 Passes.add(mNDM2);// invalidates mNDM needed by mDNM in TEST()
[all …]
DVerifierTest.cpp217 legacy::PassManager Passes; in TEST() local
218 Passes.add(createVerifierPass(false)); in TEST()
219 Passes.run(M); in TEST()
DDominatorTreeTest.cpp250 legacy::PassManager Passes; in TEST() local
251 Passes.add(P); in TEST()
252 Passes.run(*M); in TEST()
/external/llvm/unittests/Analysis/
DUnrollAnalyzer.cpp91 legacy::PassManager Passes; in TEST() local
92 Passes.add(P); in TEST()
93 Passes.run(*M); in TEST()
154 legacy::PassManager Passes; in TEST() local
155 Passes.add(P); in TEST()
156 Passes.run(*M); in TEST()
199 legacy::PassManager Passes; in TEST() local
200 Passes.add(P); in TEST()
201 Passes.run(*M); in TEST()
246 legacy::PassManager Passes; in TEST() local
[all …]
/external/swiftshader/third_party/LLVM/tools/llvm-extract/
Dllvm-extract.cpp208 PassManager Passes; in main() local
209 Passes.add(new TargetData(M.get())); // Use correct TargetData in main()
213 Passes.add(createGVExtractionPass(Gvs, DeleteFn)); in main()
215 Passes.add(createGlobalDCEPass()); // Delete unreachable globals in main()
216 Passes.add(createStripDeadDebugInfoPass()); // Remove dead debug info in main()
217 Passes.add(createStripDeadPrototypesPass()); // Remove dead func decls in main()
228 Passes.add(createPrintModulePass(&Out.os())); in main()
230 Passes.add(createBitcodeWriterPass(Out.os())); in main()
232 Passes.run(*M.get()); in main()
/external/llvm/tools/llvm-extract/
Dllvm-extract.cpp259 legacy::PassManager Passes; in main() local
262 Passes.add(createGlobalDCEPass()); // Delete unreachable globals in main()
263 Passes.add(createStripDeadDebugInfoPass()); // Remove dead debug info in main()
264 Passes.add(createStripDeadPrototypesPass()); // Remove dead func decls in main()
274 Passes.add( in main()
277 Passes.add(createBitcodeWriterPass(Out.os(), PreserveBitcodeUseListOrder)); in main()
279 Passes.run(*M.get()); in main()
/external/swiftshader/third_party/LLVM/tools/bugpoint/
DOptimizerDriver.cpp108 const std::vector<std::string> &Passes, in runPasses() argument
178 for (std::vector<std::string>::const_iterator I = Passes.begin(), in runPasses()
179 E = Passes.end(); I != E; ++I ) in runPasses()
241 const std::vector<std::string> &Passes, in runPassesOn() argument
245 if (runPasses(M, Passes, BitcodeResult, false/*delete*/, true/*quiet*/, in runPassesOn()
DBugDriver.cpp59 std::string llvm::getPassesString(const std::vector<std::string> &Passes) { in getPassesString() argument
61 for (unsigned i = 0, e = Passes.size(); i != e; ++i) { in getPassesString()
64 Result += Passes[i]; in getPassesString()
DExtractFunction.cpp84 std::vector<std::string> Passes; in deleteInstructionFromProgram() local
88 Passes.push_back("dce"); in deleteInstructionFromProgram()
90 Passes.push_back("simplifycfg"); // Delete dead control flow in deleteInstructionFromProgram()
92 Passes.push_back("verify"); in deleteInstructionFromProgram()
93 Module *New = runPassesOn(Clone, Passes); in deleteInstructionFromProgram()
DCrashDebugger.cpp323 std::vector<std::string> Passes; in TestBlocks() local
324 Passes.push_back("simplifycfg"); in TestBlocks()
325 Passes.push_back("verify"); in TestBlocks()
326 Module *New = BD.runPassesOn(M, Passes); in TestBlocks()
412 PassManager Passes; in TestInsts() local
413 Passes.add(createVerifierPass()); in TestInsts()
414 Passes.run(*M); in TestInsts()
DBugDriver.h245 Module *runPassesOn(Module *M, const std::vector<std::string> &Passes,
307 std::string getPassesString(const std::vector<std::string> &Passes);
/external/llvm/tools/bugpoint/
DOptimizerDriver.cpp130 const std::vector<std::string> &Passes, in runPasses() argument
214 for (std::vector<std::string>::const_iterator I = Passes.begin(), in runPasses()
215 E = Passes.end(); I != E; ++I ) in runPasses()
269 BugDriver::runPassesOn(Module *M, const std::vector<std::string> &Passes, in runPassesOn() argument
273 if (runPasses(M, Passes, BitcodeResult, false/*delete*/, true/*quiet*/, in runPassesOn()
DCrashDebugger.cpp398 std::vector<std::string> Passes; in TestBlocks() local
399 Passes.push_back("simplifycfg"); in TestBlocks()
400 Passes.push_back("verify"); in TestBlocks()
401 std::unique_ptr<Module> New = BD.runPassesOn(M, Passes); in TestBlocks()
488 legacy::PassManager Passes; in TestInsts() local
489 Passes.add(createVerifierPass()); in TestInsts()
490 Passes.run(*M); in TestInsts()
565 legacy::PassManager Passes; in TestNamedMDs() local
566 Passes.add(createVerifierPass()); in TestNamedMDs()
567 Passes.run(*M); in TestNamedMDs()
[all …]
DBugDriver.cpp60 std::string llvm::getPassesString(const std::vector<std::string> &Passes) { in getPassesString() argument
62 for (unsigned i = 0, e = Passes.size(); i != e; ++i) { in getPassesString()
65 Result += Passes[i]; in getPassesString()
DExtractFunction.cpp113 std::vector<std::string> Passes; in deleteInstructionFromProgram() local
117 Passes.push_back("dce"); in deleteInstructionFromProgram()
119 Passes.push_back("simplifycfg"); // Delete dead control flow in deleteInstructionFromProgram()
121 Passes.push_back("verify"); in deleteInstructionFromProgram()
122 std::unique_ptr<Module> New = runPassesOn(Clone, Passes); in deleteInstructionFromProgram()
DBugDriver.h241 const std::vector<std::string> &Passes,
303 std::string getPassesString(const std::vector<std::string> &Passes);
/external/llvm/include/llvm/IR/
DPassManager.h235 : Passes(std::move(Arg.Passes)), in PassManager()
238 Passes = std::move(RHS.Passes);
250 for (unsigned Idx = 0, Size = Passes.size(); Idx != Size; ++Idx) { in run()
252 dbgs() << "Running pass: " << Passes[Idx]->name() << " on " in run()
255 PreservedAnalyses PassPA = Passes[Idx]->run(IR, AM); in run()
282 Passes.emplace_back(new PassModelT(std::move(Pass))); in addPass()
291 std::vector<std::unique_ptr<PassConceptT>> Passes; variable
/external/llvm/lib/Passes/
DLLVMBuild.txt1 ;===- ./lib/Passes/LLVMBuild.txt -------------------------------*- Conf -*--===;
20 name = Passes
DCMakeLists.txt5 ${LLVM_MAIN_INCLUDE_DIR}/llvm/Passes
/external/swiftshader/third_party/LLVM/utils/
DNewNightlyTest.pl589 my ($Passes, $Fails, $XFails) = "";
593 $Passes .= "$TestSuiteResultLines[$x]\n";
603 return ($SSProgs, $MSProgs, $ExtProgs, $All, $Passes, $Fails, $XFails);
/external/llvm/lib/
DCMakeLists.txt22 add_subdirectory(Passes)

12