Home
last modified time | relevance | path

Searched refs:FPM (Results 1 – 25 of 36) sorted by relevance

12

/external/llvm/unittests/IR/
DPassManagerTest.cpp237 FunctionPassManager FPM; in TEST_F() local
243 FPM = std::move(NestedFPM); in TEST_F()
245 NestedMPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F()
258 FunctionPassManager FPM; in TEST_F() local
259 FPM.addPass(TestFunctionPass(FunctionPassRunCount2, AnalyzedInstrCount2, in TEST_F()
261 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F()
271 FunctionPassManager FPM; in TEST_F() local
272 FPM.addPass(TestFunctionPass(FunctionPassRunCount3, AnalyzedInstrCount3, in TEST_F()
274 FPM.addPass(TestInvalidationFunctionPass("f")); in TEST_F()
275 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F()
[all …]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
DKaleidoscopeJIT.h111 auto FPM = llvm::make_unique<legacy::FunctionPassManager>(M.get()); in optimizeModule() local
114 FPM->add(createInstructionCombiningPass()); in optimizeModule()
115 FPM->add(createReassociatePass()); in optimizeModule()
116 FPM->add(createGVNPass()); in optimizeModule()
117 FPM->add(createCFGSimplificationPass()); in optimizeModule()
118 FPM->doInitialization(); in optimizeModule()
123 FPM->run(F); in optimizeModule()
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
DKaleidoscopeJIT.h121 auto FPM = llvm::make_unique<legacy::FunctionPassManager>(M.get()); in optimizeModule() local
124 FPM->add(createInstructionCombiningPass()); in optimizeModule()
125 FPM->add(createReassociatePass()); in optimizeModule()
126 FPM->add(createGVNPass()); in optimizeModule()
127 FPM->add(createCFGSimplificationPass()); in optimizeModule()
128 FPM->doInitialization(); in optimizeModule()
133 FPM->run(F); in optimizeModule()
/external/llvm/lib/Passes/
DPassBuilder.cpp390 bool PassBuilder::parseFunctionPassName(FunctionPassManager &FPM, in parseFunctionPassName() argument
394 FPM.addPass(CREATE_PASS); \ in parseFunctionPassName()
399 FPM.addPass(RequireAnalysisPass< \ in parseFunctionPassName()
404 FPM.addPass(InvalidateAnalysisPass< \ in parseFunctionPassName()
413 bool PassBuilder::parseLoopPassName(LoopPassManager &FPM, StringRef Name) { in parseLoopPassName() argument
416 FPM.addPass(CREATE_PASS); \ in parseLoopPassName()
421 FPM.addPass(RequireAnalysisPass< \ in parseLoopPassName()
426 FPM.addPass(InvalidateAnalysisPass< \ in parseLoopPassName()
492 bool PassBuilder::parseFunctionPassPipeline(FunctionPassManager &FPM, in parseFunctionPassPipeline() argument
511 FPM.addPass(std::move(NestedFPM)); in parseFunctionPassPipeline()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DPassManagerBuilder.cpp81 void PassManagerBuilder::populateFunctionPassManager(FunctionPassManager &FPM) { in populateFunctionPassManager() argument
82 addExtensionsToPM(EP_EarlyAsPossible, FPM); in populateFunctionPassManager()
85 if (LibraryInfo) FPM.add(new TargetLibraryInfo(*LibraryInfo)); in populateFunctionPassManager()
89 addInitialAliasAnalysisPasses(FPM); in populateFunctionPassManager()
91 FPM.add(createCFGSimplificationPass()); in populateFunctionPassManager()
92 FPM.add(createScalarReplAggregatesPass()); in populateFunctionPassManager()
93 FPM.add(createEarlyCSEPass()); in populateFunctionPassManager()
94 FPM.add(createLowerExpectIntrinsicPass()); in populateFunctionPassManager()
323 FunctionPassManager *FPM = unwrap<FunctionPassManager>(PM); in LLVMPassManagerBuilderPopulateFunctionPassManager() local
324 Builder->populateFunctionPassManager(*FPM); in LLVMPassManagerBuilderPopulateFunctionPassManager()
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
DKaleidoscopeJIT.h209 auto FPM = llvm::make_unique<legacy::FunctionPassManager>(M.get()); in optimizeModule() local
212 FPM->add(createInstructionCombiningPass()); in optimizeModule()
213 FPM->add(createReassociatePass()); in optimizeModule()
214 FPM->add(createGVNPass()); in optimizeModule()
215 FPM->add(createCFGSimplificationPass()); in optimizeModule()
216 FPM->doInitialization(); in optimizeModule()
221 FPM->run(F); in optimizeModule()
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/
DKaleidoscopeJIT.h241 auto FPM = llvm::make_unique<legacy::FunctionPassManager>(M.get()); in optimizeModule() local
244 FPM->add(createInstructionCombiningPass()); in optimizeModule()
245 FPM->add(createReassociatePass()); in optimizeModule()
246 FPM->add(createGVNPass()); in optimizeModule()
247 FPM->add(createCFGSimplificationPass()); in optimizeModule()
248 FPM->doInitialization(); in optimizeModule()
253 FPM->run(F); in optimizeModule()
/external/llvm/lib/Analysis/
DRegionPrinter.cpp249 llvm::legacy::FunctionPassManager FPM(NonConstF->getParent()); in invokeFunctionPass() local
250 FPM.add(ViewerPass); in invokeFunctionPass()
251 FPM.doInitialization(); in invokeFunctionPass()
252 FPM.run(*NonConstF); in invokeFunctionPass()
253 FPM.doFinalization(); in invokeFunctionPass()
/external/llvm/unittests/Analysis/
DLoopPassManagerTest.cpp163 FunctionPassManager FPM(true); in TEST_F() local
172 FPM.addPass(createFunctionToLoopPassAdaptor(std::move(LPM))); in TEST_F()
184 FPM.addPass(createFunctionToLoopPassAdaptor(std::move(LPM))); in TEST_F()
187 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F()
/external/llvm/lib/Transforms/IPO/
DPassManagerBuilder.cpp212 legacy::FunctionPassManager &FPM) { in populateFunctionPassManager() argument
213 addExtensionsToPM(EP_EarlyAsPossible, FPM); in populateFunctionPassManager()
217 FPM.add(new TargetLibraryInfoWrapperPass(*LibraryInfo)); in populateFunctionPassManager()
221 addInitialAliasAnalysisPasses(FPM); in populateFunctionPassManager()
223 FPM.add(createCFGSimplificationPass()); in populateFunctionPassManager()
224 FPM.add(createSROAPass()); in populateFunctionPassManager()
225 FPM.add(createEarlyCSEPass()); in populateFunctionPassManager()
226 FPM.add(createLowerExpectIntrinsicPass()); in populateFunctionPassManager()
850 legacy::FunctionPassManager *FPM = unwrap<legacy::FunctionPassManager>(PM); in LLVMPassManagerBuilderPopulateFunctionPassManager() local
851 Builder->populateFunctionPassManager(*FPM); in LLVMPassManagerBuilderPopulateFunctionPassManager()
/external/llvm/include/llvm/Passes/
DPassBuilder.h248 bool parseFunctionPassName(FunctionPassManager &FPM, StringRef Name);
253 bool parseFunctionPassPipeline(FunctionPassManager &FPM,
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy.cpp819 FunctionPassManager *FPM = new FunctionPassManager(M); in compileModule() local
823 FPM->add(new DataLayout(*NewEngine->getDataLayout())); in compileModule()
825 FPM->add(createBasicAliasAnalysisPass()); in compileModule()
827 FPM->add(createPromoteMemoryToRegisterPass()); in compileModule()
829 FPM->add(createInstructionCombiningPass()); in compileModule()
831 FPM->add(createReassociatePass()); in compileModule()
833 FPM->add(createGVNPass()); in compileModule()
835 FPM->add(createCFGSimplificationPass()); in compileModule()
836 FPM->doInitialization(); in compileModule()
843 FPM->run(*it); in compileModule()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
Dtoy.cpp789 FunctionPassManager *FPM = new FunctionPassManager(OpenModule); in getPointerToFunction() local
793 FPM->add(new DataLayout(*NewEngine->getDataLayout())); in getPointerToFunction()
795 FPM->add(createBasicAliasAnalysisPass()); in getPointerToFunction()
797 FPM->add(createPromoteMemoryToRegisterPass()); in getPointerToFunction()
799 FPM->add(createInstructionCombiningPass()); in getPointerToFunction()
801 FPM->add(createReassociatePass()); in getPointerToFunction()
803 FPM->add(createGVNPass()); in getPointerToFunction()
805 FPM->add(createCFGSimplificationPass()); in getPointerToFunction()
806 FPM->doInitialization(); in getPointerToFunction()
813 FPM->run(*it); in getPointerToFunction()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
Dtoy.cpp956 FunctionPassManager *FPM = 0; in compileModule() local
959 FPM = new FunctionPassManager(M); in compileModule()
963 FPM->add(new DataLayout(*EE->getDataLayout())); in compileModule()
965 FPM->add(createBasicAliasAnalysisPass()); in compileModule()
967 FPM->add(createPromoteMemoryToRegisterPass()); in compileModule()
969 FPM->add(createInstructionCombiningPass()); in compileModule()
971 FPM->add(createReassociatePass()); in compileModule()
973 FPM->add(createGVNPass()); in compileModule()
975 FPM->add(createCFGSimplificationPass()); in compileModule()
977 FPM->doInitialization(); in compileModule()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy.cpp916 FunctionPassManager *FPM = new FunctionPassManager(M); in compileModule() local
920 FPM->add(new DataLayout(*NewEngine->getDataLayout())); in compileModule()
922 FPM->add(createBasicAliasAnalysisPass()); in compileModule()
924 FPM->add(createPromoteMemoryToRegisterPass()); in compileModule()
926 FPM->add(createInstructionCombiningPass()); in compileModule()
928 FPM->add(createReassociatePass()); in compileModule()
930 FPM->add(createGVNPass()); in compileModule()
932 FPM->add(createCFGSimplificationPass()); in compileModule()
933 FPM->doInitialization(); in compileModule()
940 FPM->run(*it); in compileModule()
[all …]
/external/llvm/lib/IR/
DLegacyPassManager.cpp1376 FPM = new FunctionPassManagerImpl(); in FunctionPassManager()
1378 FPM->setTopLevelManager(FPM); in FunctionPassManager()
1380 AnalysisResolver *AR = new AnalysisResolver(*FPM); in FunctionPassManager()
1381 FPM->setResolver(AR); in FunctionPassManager()
1385 delete FPM; in ~FunctionPassManager()
1389 FPM->add(P); in add()
1399 return FPM->run(F); in run()
1406 return FPM->doInitialization(*M); in doInitialization()
1412 return FPM->doFinalization(*M); in doFinalization()
/external/swiftshader/third_party/LLVM/include/llvm/
DPassManager.h105 FunctionPassManagerImpl *FPM; variable
/external/llvm/include/llvm/IR/
DLegacyPassManager.h92 FunctionPassManagerImpl *FPM;
/external/swiftshader/third_party/LLVM/lib/VMCore/
DPassManager.cpp1342 FPM = new FunctionPassManagerImpl(); in FunctionPassManager()
1344 FPM->setTopLevelManager(FPM); in FunctionPassManager()
1346 AnalysisResolver *AR = new AnalysisResolver(*FPM); in FunctionPassManager()
1347 FPM->setResolver(AR); in FunctionPassManager()
1351 delete FPM; in ~FunctionPassManager()
1357 FPM->add(P); in addImpl()
1391 return FPM->run(F); in run()
1398 return FPM->doInitialization(*M); in doInitialization()
1404 return FPM->doFinalization(*M); in doFinalization()
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/IPO/
DPassManagerBuilder.h115 void populateFunctionPassManager(FunctionPassManager &FPM);
/external/llvm/docs/tutorial/
DBuildingAJIT2.rst130 auto FPM = llvm::make_unique<legacy::FunctionPassManager>(M.get());
133 FPM->add(createInstructionCombiningPass());
134 FPM->add(createReassociatePass());
135 FPM->add(createGVNPass());
136 FPM->add(createCFGSimplificationPass());
137 FPM->doInitialization();
142 FPM->run(F);
/external/llvm/lib/Transforms/Scalar/
DPlaceSafepoints.cpp498 legacy::FunctionPassManager FPM(F.getParent()); in runOnFunction() local
501 FPM.add(PBS); in runOnFunction()
502 FPM.run(F); in runOnFunction()
/external/llvm/include/llvm/Transforms/IPO/
DPassManagerBuilder.h173 void populateFunctionPassManager(legacy::FunctionPassManager &FPM);
/external/llvm/tools/opt/
Dopt.cpp232 legacy::FunctionPassManager &FPM, in AddOptimizationPasses() argument
236 FPM.add(createVerifierPass()); // Verify that input is correct in AddOptimizationPasses()
272 Builder.populateFunctionPassManager(FPM); in AddOptimizationPasses()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DLint.cpp642 FunctionPassManager FPM(F.getParent()); in lintFunction() local
644 FPM.add(V); in lintFunction()
645 FPM.run(F); in lintFunction()

12