Home
last modified time | relevance | path

Searched refs:ReturnInst (Results 1 – 25 of 101) sorted by relevance

12345

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPURewriteOutArguments.cpp263 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()
DAMDGPUUnifyDivergentExitNodes.cpp214 if (isa<ReturnInst>(BB->getTerminator())) { in runOnFunction()
258 ReturnInst::Create(F.getContext(), RetVal, DummyReturnBB); in runOnFunction()
315 ReturnInst::Create(F.getContext(), RetVal, UnreachableBlock); in runOnFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DTailRecursionElimination.cpp363 static bool isDynamicConstant(Value *V, CallInst *CI, ReturnInst *RI) { in isDynamicConstant()
397 static Value *getCommonReturnValue(ReturnInst *IgnoreRI, CallInst *CI) { in getCommonReturnValue()
402 ReturnInst *RI = dyn_cast<ReturnInst>(BBI.getTerminator()); in getCommonReturnValue()
434 if (!I->hasOneUse() || !isa<ReturnInst>(I->user_back())) in canTransformAccumulatorRecursion()
440 return getCommonReturnValue(cast<ReturnInst>(I->user_back()), CI); in canTransformAccumulatorRecursion()
501 CallInst *CI, ReturnInst *Ret, BasicBlock *&OldEntry, in eliminateRecursiveTailCall()
670 if (ReturnInst *RI = dyn_cast<ReturnInst>(BBI.getTerminator())) in eliminateRecursiveTailCall()
688 BasicBlock *BB, ReturnInst *Ret, BasicBlock *&OldEntry, in foldReturnAndProcessPred()
717 ReturnInst *RI = FoldReturnIntoUncondBranch(Ret, BB, Pred, &DTU); in foldReturnAndProcessPred()
737 ReturnInst *Ret, BasicBlock *&OldEntry, bool &TailCallsAreMarkedTail, in processReturningBlock()
[all …]
DSimplifyCFGPass.cpp83 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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DUnifyFunctionExitNodes.cpp58 if (isa<ReturnInst>(I.getTerminator())) in runOnFunction()
97 ReturnInst::Create(F.getContext(), nullptr, NewRetBlock); in runOnFunction()
103 ReturnInst::Create(F.getContext(), PN, NewRetBlock); in runOnFunction()
DCloneFunction.cpp87 SmallVectorImpl<ReturnInst*> &Returns, in CloneFunctionInto()
188 if (ReturnInst *RI = dyn_cast<ReturnInst>(CBB->getTerminator())) in CloneFunctionInto()
264 SmallVector<ReturnInst*, 8> Returns; // Ignore returns cloned. in CloneFunction()
452 SmallVectorImpl<ReturnInst *> &Returns, in CloneAndPruneIntoFromInst()
714 if (ReturnInst *RI = dyn_cast<ReturnInst>(I->getTerminator())) in CloneAndPruneIntoFromInst()
729 SmallVectorImpl<ReturnInst*> &Returns, in CloneAndPruneFunctionInto()
DInlineFunction.cpp1694 SmallVector<ReturnInst*, 8> Returns; in InlineFunction()
2016 for (ReturnInst *RI : Returns) { in InlineFunction()
2044 for (ReturnInst *RI : Returns) { in InlineFunction()
2142 auto NewEnd = llvm::remove_if(Returns, [](ReturnInst *RI) { in InlineFunction()
2147 SmallVector<ReturnInst *, 8> NormalReturns; in InlineFunction()
2152 for (ReturnInst *RI : Returns) { in InlineFunction()
2203 SmallVector<ReturnInst *, 8> NormalReturns; in InlineFunction()
2204 for (ReturnInst *RI : Returns) { in InlineFunction()
2265 ReturnInst *R = Returns[0]; in InlineFunction()
2350 ReturnInst *RI = Returns[i]; in InlineFunction()
[all …]
DEscapeEnumerator.cpp40 if (!isa<ReturnInst>(TI) && !isa<ResumeInst>(TI)) in Next()
DCodeExtractor.cpp746 if (ReturnInst *RI = dyn_cast<ReturnInst>(Block->getTerminator())) { in splitReturnBlocks()
1218 ReturnInst::Create(Context, brVal, NewTarget); in emitCallAndSwitchStatement()
1285 ReturnInst::Create(Context, nullptr, TheSwitch); // Return void in emitCallAndSwitchStatement()
1288 ReturnInst::Create(Context, TheSwitch->getCondition(), TheSwitch); in emitCallAndSwitchStatement()
1292 ReturnInst::Create(Context, in emitCallAndSwitchStatement()
1596 return isa<ReturnInst>(Term) || isa<ResumeInst>(Term); in extractCodeRegion()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DCloning.h48 class ReturnInst; variable
140 SmallVectorImpl<ReturnInst*> &Returns,
149 SmallVectorImpl<ReturnInst *> &Returns,
166 SmallVectorImpl<ReturnInst*> &Returns,
DBasicBlockUtils.h39 class ReturnInst; variable
280 ReturnInst *FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DSafeStack.cpp150 void checkStackGuard(IRBuilder<> &IRB, Function &F, ReturnInst &RI,
159 SmallVectorImpl<ReturnInst *> &Returns,
175 ArrayRef<ReturnInst *> Returns,
382 SmallVectorImpl<ReturnInst *> &Returns, in findInsts()
399 } else if (auto RI = dyn_cast<ReturnInst>(&I)) { in findInsts()
464 void SafeStack::checkStackGuard(IRBuilder<> &IRB, Function &F, ReturnInst &RI, in checkStackGuard()
489 ArrayRef<Argument *> ByValArguments, ArrayRef<ReturnInst *> Returns, in moveStaticAllocasToUnsafeStack()
748 SmallVector<ReturnInst *, 4> Returns; in run()
801 for (ReturnInst *RI : Returns) { in run()
827 for (ReturnInst *RI : Returns) { in run()
DStackProtector.cpp387 static bool CreatePrologue(Function *F, Module *M, ReturnInst *RI, in CreatePrologue()
418 ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator()); in InsertStackProtectors()
550 return HasPrologue && !HasIRCheck && isa<ReturnInst>(BB.getTerminator()); in shouldEmitSDCheck()
DSjLjEHPrepare.cpp355 SmallVector<ReturnInst *, 16> Returns; in setupEntryBlockAndCallSites()
372 } else if (auto *RI = dyn_cast<ReturnInst>(BB.getTerminator())) { in setupEntryBlockAndCallSites()
467 for (ReturnInst *Return : Returns) in setupEntryBlockAndCallSites()
DAnalysis.cpp516 const ReturnInst *Ret = dyn_cast<ReturnInst>(Term); in isInTailCallPosition()
558 const ReturnInst *Ret, in attributesPermitTailCall()
636 const ReturnInst *Ret, in returnTypeIsEligibleForTailCall()
DSwiftErrorValueTracking.cpp305 } else if (const ReturnInst *R = dyn_cast<const ReturnInst>(&*It)) { in preassignVRegs()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DAnalysis.h134 const ReturnInst *Ret,
142 const ReturnInst *Ret,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyFixFunctionBitcasts.cpp183 ReturnInst::Create(M->getContext(), BB); in createWrapper()
186 ReturnInst::Create(M->getContext(), UndefValue::get(RtnType), BB); in createWrapper()
188 ReturnInst::Create(M->getContext(), Call, BB); in createWrapper()
194 ReturnInst::Create(M->getContext(), Cast, BB); in createWrapper()
DWebAssemblyLowerGlobalDtors.cpp151 ReturnInst::Create(C, BB); in runOnModule()
179 ReturnInst::Create(C, RetBB); in runOnModule()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCBoolRetToInt.cpp141 return isa<ReturnInst>(V) || isa<CallInst>(V) || isa<PHINode>(V) || in getPromotablePHINodes()
203 if (auto *R = dyn_cast<ReturnInst>(&I)) in runOnFunction()
239 if (isa<ReturnInst>(U.getUser())) in runOnUse()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DDeadArgumentElimination.cpp382 if (const ReturnInst *RI = dyn_cast<ReturnInst>(V)) { in SurveyUse()
520 if (const ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in SurveyFunction()
1035 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB.getTerminator())) { in RemoveDeadStuffFromFunction()
1069 ReturnInst::Create(F->getContext(), RetVal, RI); in RemoveDeadStuffFromFunction()
DIPConstantPropagation.cpp180 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB.getTerminator())) { in PropagateConstantReturn()
DLoopExtractor.cpp121 if (!isa<ReturnInst>(ExitBlocks[i]->getTerminator())) { in runOnLoop()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DBasicBlock.cpp153 const ReturnInst *RI = dyn_cast<ReturnInst>(&InstList.back()); in getTerminatingMustTailCall()
184 auto *RI = dyn_cast<ReturnInst>(&InstList.back()); in getTerminatingDeoptimizeCall()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DCaptureTracking.cpp60 if (isa<ReturnInst>(U->getUser()) && !ReturnCaptures) in captured()
146 if (isa<ReturnInst>(U->getUser()) && !ReturnCaptures) in captured()

12345