/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | TailRecursionElimination.cpp | 92 bool EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret, 98 ReturnInst *Ret, BasicBlock *&OldEntry, 102 bool ProcessReturningBlock(ReturnInst *RI, BasicBlock *&OldEntry, 185 if (ReturnInst *Ret = dyn_cast<ReturnInst>(BB->getTerminator())) { in runOnFunction() 270 static bool isDynamicConstant(Value *V, CallInst *CI, ReturnInst *RI) { in isDynamicConstant() 305 static Value *getCommonReturnValue(ReturnInst *IgnoreRI, CallInst *CI) { in getCommonReturnValue() 310 ReturnInst *RI = dyn_cast<ReturnInst>(BBI->getTerminator()); in getCommonReturnValue() 344 if (!I->hasOneUse() || !isa<ReturnInst>(I->use_back())) in CanTransformAccumulatorRecursion() 350 return getCommonReturnValue(cast<ReturnInst>(I->use_back()), CI); in CanTransformAccumulatorRecursion() 410 bool TailCallElim::EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret, in EliminateRecursiveTailCall() [all …]
|
D | SimplifyCFGPass.cpp | 220 ReturnInst *Ret = dyn_cast<ReturnInst>(BB.getTerminator()); in MergeEmptyReturnBlocks() 253 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in MergeEmptyReturnBlocks() 262 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in MergeEmptyReturnBlocks()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | TailRecursionElimination.cpp | 354 static bool isDynamicConstant(Value *V, CallInst *CI, ReturnInst *RI) { in isDynamicConstant() 388 static Value *getCommonReturnValue(ReturnInst *IgnoreRI, CallInst *CI) { in getCommonReturnValue() 393 ReturnInst *RI = dyn_cast<ReturnInst>(BBI.getTerminator()); in getCommonReturnValue() 425 if (!I->hasOneUse() || !isa<ReturnInst>(I->user_back())) in canTransformAccumulatorRecursion() 431 return getCommonReturnValue(cast<ReturnInst>(I->user_back()), CI); in canTransformAccumulatorRecursion() 491 static bool eliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret, in eliminateRecursiveTailCall() 658 if (ReturnInst *RI = dyn_cast<ReturnInst>(BBI.getTerminator())) in eliminateRecursiveTailCall() 675 BasicBlock *BB, ReturnInst *Ret, BasicBlock *&OldEntry, in foldReturnAndProcessPred() 704 ReturnInst *RI = FoldReturnIntoUncondBranch(Ret, BB, Pred); in foldReturnAndProcessPred() 723 static bool processReturningBlock(ReturnInst *Ret, BasicBlock *&OldEntry, in processReturningBlock() [all …]
|
D | SimplifyCFGPass.cpp | 83 ReturnInst *Ret = dyn_cast<ReturnInst>(BB.getTerminator()); in mergeEmptyReturnBlocks() 115 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in mergeEmptyReturnBlocks() 124 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks()
|
/external/llvm/lib/Transforms/Scalar/ |
D | TailRecursionElimination.cpp | 358 static bool isDynamicConstant(Value *V, CallInst *CI, ReturnInst *RI) { in isDynamicConstant() 392 static Value *getCommonReturnValue(ReturnInst *IgnoreRI, CallInst *CI) { in getCommonReturnValue() 397 ReturnInst *RI = dyn_cast<ReturnInst>(BBI.getTerminator()); in getCommonReturnValue() 429 if (!I->hasOneUse() || !isa<ReturnInst>(I->user_back())) in canTransformAccumulatorRecursion() 435 return getCommonReturnValue(cast<ReturnInst>(I->user_back()), CI); in canTransformAccumulatorRecursion() 495 static bool eliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret, in eliminateRecursiveTailCall() 657 if (ReturnInst *RI = dyn_cast<ReturnInst>(BBI.getTerminator())) in eliminateRecursiveTailCall() 673 static bool foldReturnAndProcessPred(BasicBlock *BB, ReturnInst *Ret, in foldReturnAndProcessPred() 700 ReturnInst *RI = FoldReturnIntoUncondBranch(Ret, BB, Pred); in foldReturnAndProcessPred() 720 static bool processReturningBlock(ReturnInst *Ret, BasicBlock *&OldEntry, in processReturningBlock() [all …]
|
D | SimplifyCFGPass.cpp | 66 ReturnInst *Ret = dyn_cast<ReturnInst>(BB.getTerminator()); in mergeEmptyReturnBlocks() 98 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in mergeEmptyReturnBlocks() 107 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPURewriteOutArguments.cpp | 263 DenseMap<ReturnInst *, ReplacementVec> Replacements; in runOnFunction() 265 SmallVector<ReturnInst *, 4> Returns; in runOnFunction() 267 if (ReturnInst *RI = dyn_cast<ReturnInst>(&BB.back())) in runOnFunction() 288 SmallVector<std::pair<ReturnInst *, StoreInst *>, 4> ReplaceableStores; in runOnFunction() 303 for (ReturnInst *RI : Returns) { in runOnFunction() 324 for (std::pair<ReturnInst *, StoreInst *> Store : ReplaceableStores) { in runOnFunction() 385 for (std::pair<ReturnInst *, ReplacementVec> &Replacement : Replacements) { in runOnFunction() 386 ReturnInst *RI = Replacement.first; in runOnFunction()
|
D | AMDGPUUnifyDivergentExitNodes.cpp | 131 ReturnInst::Create(F.getContext(), nullptr, NewRetBlock); in unifyReturnBlockSet() 137 ReturnInst::Create(F.getContext(), PN, NewRetBlock); in unifyReturnBlockSet() 177 if (isa<ReturnInst>(BB->getTerminator())) { in runOnFunction() 191 ReturnInst::Create(F.getContext(), RetVal, DummyReturnBB); in runOnFunction() 251 ReturnInst::Create(F.getContext(), RetVal, UnreachableBlock); in runOnFunction()
|
/external/swiftshader/third_party/LLVM/unittests/VMCore/ |
D | InstructionsTest.cpp | 21 TEST(InstructionsTest, ReturnInst) { in TEST() argument 25 const ReturnInst* r0 = ReturnInst::Create(C); in TEST() 31 const ReturnInst* r1 = ReturnInst::Create(C, One); in TEST()
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | Cloning.h | 40 class ReturnInst; variable 143 SmallVectorImpl<ReturnInst*> &Returns, 152 SmallVectorImpl<ReturnInst *> &Returns, 169 SmallVectorImpl<ReturnInst*> &Returns,
|
D | BasicBlockUtils.h | 30 class ReturnInst; variable 227 ReturnInst *FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB,
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/ |
D | Cloning.h | 48 class ReturnInst; variable 143 SmallVectorImpl<ReturnInst*> &Returns, 152 SmallVectorImpl<ReturnInst *> &Returns, 169 SmallVectorImpl<ReturnInst*> &Returns,
|
D | BasicBlockUtils.h | 37 class ReturnInst; variable 231 ReturnInst *FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB,
|
/external/llvm/lib/Transforms/Utils/ |
D | UnifyFunctionExitNodes.cpp | 54 if (isa<ReturnInst>(I.getTerminator())) in runOnFunction() 93 ReturnInst::Create(F.getContext(), nullptr, NewRetBlock); in runOnFunction() 99 ReturnInst::Create(F.getContext(), PN, NewRetBlock); in runOnFunction()
|
D | CloneFunction.cpp | 81 SmallVectorImpl<ReturnInst*> &Returns, in CloneFunctionInto() 158 if (ReturnInst *RI = dyn_cast<ReturnInst>(CBB->getTerminator())) in CloneFunctionInto() 209 SmallVector<ReturnInst*, 8> Returns; // Ignore returns cloned. in CloneFunction() 396 SmallVectorImpl<ReturnInst *> &Returns, in CloneAndPruneIntoFromInst() 617 if (ReturnInst *RI = dyn_cast<ReturnInst>(I->getTerminator())) in CloneAndPruneIntoFromInst() 632 SmallVectorImpl<ReturnInst*> &Returns, in CloneAndPruneFunctionInto()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | UnifyFunctionExitNodes.cpp | 53 if (isa<ReturnInst>(I.getTerminator())) in runOnFunction() 92 ReturnInst::Create(F.getContext(), nullptr, NewRetBlock); in runOnFunction() 98 ReturnInst::Create(F.getContext(), PN, NewRetBlock); in runOnFunction()
|
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/ |
D | Cloning.h | 38 class ReturnInst; variable 146 SmallVectorImpl<ReturnInst*> &Returns, 164 SmallVectorImpl<ReturnInst*> &Returns,
|
D | BasicBlockUtils.h | 29 class ReturnInst; variable 202 ReturnInst *FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB,
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | CloneFunction.cpp | 77 SmallVectorImpl<ReturnInst*> &Returns, in CloneFunctionInto() 118 if (ReturnInst *RI = dyn_cast<ReturnInst>(CBB->getTerminator())) in CloneFunctionInto() 169 SmallVector<ReturnInst*, 8> Returns; // Ignore returns cloned. in CloneFunction() 184 SmallVectorImpl<ReturnInst*> &Returns; 192 SmallVectorImpl<ReturnInst*> &returns, in PruningFunctionCloner() 312 if (ReturnInst *RI = dyn_cast<ReturnInst>(NewBB->getTerminator())) in CloneBlock() 350 SmallVectorImpl<ReturnInst*> &Returns, in CloneAndPruneFunctionInto()
|
D | UnifyFunctionExitNodes.cpp | 56 if (isa<ReturnInst>(I->getTerminator())) in runOnFunction() 116 ReturnInst::Create(F.getContext(), NULL, NewRetBlock); in runOnFunction() 122 ReturnInst::Create(F.getContext(), PN, NewRetBlock); in runOnFunction()
|
/external/llvm/lib/CodeGen/ |
D | SafeStack.cpp | 134 void checkStackGuard(IRBuilder<> &IRB, Function &F, ReturnInst &RI, 143 SmallVectorImpl<ReturnInst *> &Returns, 159 ArrayRef<ReturnInst *> Returns, 409 SmallVectorImpl<ReturnInst *> &Returns, in findInsts() 426 } else if (auto RI = dyn_cast<ReturnInst>(&I)) { in findInsts() 490 void SafeStack::checkStackGuard(IRBuilder<> &IRB, Function &F, ReturnInst &RI, in checkStackGuard() 515 ArrayRef<Argument *> ByValArguments, ArrayRef<ReturnInst *> Returns, in moveStaticAllocasToUnsafeStack() 763 SmallVector<ReturnInst *, 4> Returns; in runOnFunction() 806 for (ReturnInst *RI : Returns) { in runOnFunction() 832 for (ReturnInst *RI : Returns) { in runOnFunction()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCBoolRetToInt.cpp | 125 return isa<ReturnInst>(V) || isa<CallInst>(V) || isa<PHINode>(V) || in getPromotablePHINodes() 179 if (ReturnInst *R = dyn_cast<ReturnInst>(&I)) in runOnFunction() 214 if (isa<ReturnInst>(U.getUser())) in runOnUse()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | SafeStack.cpp | 150 void checkStackGuard(IRBuilder<> &IRB, Function &F, ReturnInst &RI, 159 SmallVectorImpl<ReturnInst *> &Returns, 175 ArrayRef<ReturnInst *> Returns, 379 SmallVectorImpl<ReturnInst *> &Returns, in findInsts() 396 } else if (auto RI = dyn_cast<ReturnInst>(&I)) { in findInsts() 460 void SafeStack::checkStackGuard(IRBuilder<> &IRB, Function &F, ReturnInst &RI, in checkStackGuard() 485 ArrayRef<Argument *> ByValArguments, ArrayRef<ReturnInst *> Returns, in moveStaticAllocasToUnsafeStack() 752 SmallVector<ReturnInst *, 4> Returns; in run() 801 for (ReturnInst *RI : Returns) { in run() 827 for (ReturnInst *RI : Returns) { in run()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/ |
D | Analysis.h | 115 const ReturnInst *Ret, 123 const ReturnInst *Ret,
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | ValueTrackingTest.cpp | 259 cast<ReturnInst>(F->getEntryBlock().getTerminator())->getOperand(0); in TEST() 284 cast<ReturnInst>(F->getEntryBlock().getTerminator())->getOperand(0); in TEST() 310 cast<ReturnInst>(F->getEntryBlock().getTerminator())->getOperand(0); in TEST()
|