/external/llvm/lib/Transforms/IPO/ |
D | PassManagerBuilder.cpp | 108 void PassManagerBuilder::populateFunctionPassManager(FunctionPassManager &FPM) { in populateFunctionPassManager() argument 109 addExtensionsToPM(EP_EarlyAsPossible, FPM); in populateFunctionPassManager() 112 if (LibraryInfo) FPM.add(new TargetLibraryInfo(*LibraryInfo)); in populateFunctionPassManager() 116 addInitialAliasAnalysisPasses(FPM); in populateFunctionPassManager() 118 FPM.add(createCFGSimplificationPass()); in populateFunctionPassManager() 120 FPM.add(createSROAPass()); in populateFunctionPassManager() 122 FPM.add(createScalarReplAggregatesPass()); in populateFunctionPassManager() 123 FPM.add(createEarlyCSEPass()); in populateFunctionPassManager() 124 FPM.add(createLowerExpectIntrinsicPass()); in populateFunctionPassManager() 443 FunctionPassManager *FPM = unwrap<FunctionPassManager>(PM); in LLVMPassManagerBuilderPopulateFunctionPassManager() local [all …]
|
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
D | toy.cpp | 819 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/ |
D | toy.cpp | 789 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/ |
D | toy.cpp | 1051 FunctionPassManager *FPM = 0; in compileModule() local 1054 FPM = new FunctionPassManager(M); in compileModule() 1058 FPM->add(new DataLayout(*EE->getDataLayout())); in compileModule() 1060 FPM->add(createBasicAliasAnalysisPass()); in compileModule() 1062 FPM->add(createPromoteMemoryToRegisterPass()); in compileModule() 1064 FPM->add(createInstructionCombiningPass()); in compileModule() 1066 FPM->add(createReassociatePass()); in compileModule() 1068 FPM->add(createGVNPass()); in compileModule() 1070 FPM->add(createCFGSimplificationPass()); in compileModule() 1072 FPM->doInitialization(); in compileModule() [all …]
|
/external/llvm/examples/Kaleidoscope/MCJIT/cached/ |
D | toy.cpp | 916 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/include/llvm/ |
D | PassManager.h | 98 FunctionPassManagerImpl *FPM;
|
/external/llvm/include/llvm/Transforms/IPO/ |
D | PassManagerBuilder.h | 131 void populateFunctionPassManager(FunctionPassManager &FPM);
|
/external/llvm/lib/IR/ |
D | PassManager.cpp | 1368 FPM = new FunctionPassManagerImpl(); in FunctionPassManager() 1370 FPM->setTopLevelManager(FPM); in FunctionPassManager() 1372 AnalysisResolver *AR = new AnalysisResolver(*FPM); in FunctionPassManager() 1373 FPM->setResolver(AR); in FunctionPassManager() 1377 delete FPM; in ~FunctionPassManager() 1386 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()
|
D | Core.cpp | 2538 LLVMBool LLVMInitializeFunctionPassManager(LLVMPassManagerRef FPM) { in LLVMInitializeFunctionPassManager() argument 2539 return unwrap<FunctionPassManager>(FPM)->doInitialization(); in LLVMInitializeFunctionPassManager() 2542 LLVMBool LLVMRunFunctionPassManager(LLVMPassManagerRef FPM, LLVMValueRef F) { in LLVMRunFunctionPassManager() argument 2543 return unwrap<FunctionPassManager>(FPM)->run(*unwrap<Function>(F)); in LLVMRunFunctionPassManager() 2546 LLVMBool LLVMFinalizeFunctionPassManager(LLVMPassManagerRef FPM) { in LLVMFinalizeFunctionPassManager() argument 2547 return unwrap<FunctionPassManager>(FPM)->doFinalization(); in LLVMFinalizeFunctionPassManager()
|
D | Verifier.cpp | 2352 FunctionPassManager FPM(F.getParent()); in verifyFunction() local 2354 FPM.add(V); in verifyFunction() 2355 FPM.run(F); in verifyFunction()
|
/external/clang/lib/CodeGen/ |
D | BackendUtil.cpp | 299 FunctionPassManager *FPM = getPerFunctionPasses(TM); in CreatePasses() local 301 FPM->add(createVerifierPass()); in CreatePasses() 302 PMBuilder.populateFunctionPassManager(*FPM); in CreatePasses()
|
/external/llvm/lib/Analysis/ |
D | Lint.cpp | 679 FunctionPassManager FPM(F.getParent()); in lintFunction() local 681 FPM.add(V); in lintFunction() 682 FPM.run(F); in lintFunction()
|
/external/llvm/tools/opt/ |
D | opt.cpp | 427 static void AddOptimizationPasses(PassManagerBase &MPM,FunctionPassManager &FPM, in AddOptimizationPasses() argument 429 FPM.add(createVerifierPass()); // Verify that input is correct in AddOptimizationPasses() 452 Builder.populateFunctionPassManager(FPM); in AddOptimizationPasses()
|
/external/llvm/bindings/ocaml/llvm/ |
D | llvm_ocaml.c | 2012 CAMLprim value llvm_passmanager_initialize(LLVMPassManagerRef FPM) { in llvm_passmanager_initialize() argument 2013 return Val_bool(LLVMInitializeFunctionPassManager(FPM)); in llvm_passmanager_initialize() 2018 LLVMPassManagerRef FPM) { in llvm_passmanager_run_function() argument 2019 return Val_bool(LLVMRunFunctionPassManager(FPM, F)); in llvm_passmanager_run_function() 2023 CAMLprim value llvm_passmanager_finalize(LLVMPassManagerRef FPM) { in llvm_passmanager_finalize() argument 2024 return Val_bool(LLVMFinalizeFunctionPassManager(FPM)); in llvm_passmanager_finalize()
|
/external/llvm/include/llvm-c/ |
D | Core.h | 2676 LLVMBool LLVMInitializeFunctionPassManager(LLVMPassManagerRef FPM); 2682 LLVMBool LLVMRunFunctionPassManager(LLVMPassManagerRef FPM, LLVMValueRef F); 2687 LLVMBool LLVMFinalizeFunctionPassManager(LLVMPassManagerRef FPM);
|