/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPURewriteOutArguments.cpp | 213 DenseMap<ReturnInst *, ReplacementVec> Replacements; in runOnFunction() 215 SmallVector<ReturnInst *, 4> Returns; in runOnFunction() 217 if (ReturnInst *RI = dyn_cast<ReturnInst>(&BB.back())) in runOnFunction() 238 SmallVector<std::pair<ReturnInst *, StoreInst *>, 4> ReplaceableStores; in runOnFunction() 254 for (ReturnInst *RI : Returns) { in runOnFunction() 275 for (std::pair<ReturnInst *, StoreInst *> Store : ReplaceableStores) { in runOnFunction() 339 for (std::pair<ReturnInst *, ReplacementVec> &Replacement : Replacements) { in runOnFunction() 340 ReturnInst *RI = Replacement.first; in runOnFunction()
|
H A D | AMDGPUUnifyDivergentExitNodes.cpp | 219 if (isa<ReturnInst>(BB->getTerminator())) { in run() 233 ReturnInst::Create(F.getContext(), RetVal, DummyReturnBB); in run() 308 ReturnInst::Create(F.getContext(), RetVal, UnreachableBlock); in run()
|
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
H A D | SandboxIR.cpp | 590 ReturnInst *ReturnInst::createCommon(Value *RetVal, IRBuilder<> &Builder, in createCommon() 592 llvm::ReturnInst *NewRI; in createCommon() 600 ReturnInst *ReturnInst::create(Value *RetVal, Instruction *InsertBefore, in create() 608 ReturnInst *ReturnInst::create(Value *RetVal, BasicBlock *InsertAtEnd, in create() 615 Value *ReturnInst::getReturnValue() const { in getReturnValue() 616 auto *LLVMRetVal = cast<llvm::ReturnInst>(Val)->getReturnValue(); in getReturnValue() 621 void ReturnInst::dump(raw_ostream &OS) const { in dump() 626 void ReturnInst::dump() const { in dump() 772 auto *LLVMRet = cast<llvm::ReturnInst>(LLVMV); in getOrCreateValueInternal() 773 It->second = std::unique_ptr<ReturnInst>(new ReturnInst(LLVMRet, *this)); in getOrCreateValueInternal() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | UnifyFunctionExitNodes.cpp | 50 if (isa<ReturnInst>(I.getTerminator())) in unifyUnreachableBlocks() 64 ReturnInst::Create(F.getContext(), nullptr, NewRetBlock); in unifyUnreachableBlocks() 70 ReturnInst::Create(F.getContext(), PN, NewRetBlock); in unifyReturnBlocks()
|
H A D | CloneFunction.cpp | 95 SmallVectorImpl<ReturnInst *> &Returns, in CloneFunctionInto() 216 if (ReturnInst *RI = dyn_cast<ReturnInst>(CBB->getTerminator())) in CloneFunctionInto() 351 SmallVector<ReturnInst *, 8> Returns; // Ignore returns cloned. in CloneFunction() 653 SmallVectorImpl<ReturnInst *> &Returns, in CloneAndPruneIntoFromInst() 940 if (ReturnInst *RI = dyn_cast<ReturnInst>(I->getTerminator())) in CloneAndPruneIntoFromInst() 953 bool ModuleLevelChanges, SmallVectorImpl<ReturnInst *> &Returns, in CloneAndPruneFunctionInto()
|
H A D | LowerGlobalDtors.cpp | 192 ReturnInst::Create(C, BB); in runImpl() 222 ReturnInst::Create(C, RetBB); in runImpl()
|
H A D | InlineFunction.cpp | 1339 ReturnInst *End) { in MayContainThrowingOrExitingCallAfterCB() 1474 auto *RI = dyn_cast<ReturnInst>(BB.getTerminator()); in AddReturnAttributes() 2056 const SmallVectorImpl<ReturnInst *> &Returns) { in inlineRetainOrClaimRVCalls() 2304 SmallVector<ReturnInst*, 8> Returns; in InlineFunction() 2680 for (ReturnInst *RI : Returns) { in InlineFunction() 2703 for (ReturnInst *RI : Returns) { in InlineFunction() 2768 llvm::erase_if(Returns, [](ReturnInst *RI) { in InlineFunction() 2772 SmallVector<ReturnInst *, 8> NormalReturns; in InlineFunction() 2777 for (ReturnInst *RI : Returns) { in InlineFunction() 2832 SmallVector<ReturnInst *, 8> NormalReturns; in InlineFunction() [all …]
|
H A D | EscapeEnumerator.cpp | 41 if (!isa<ReturnInst>(TI) && !isa<ResumeInst>(TI)) in Next()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | Cloning.h | 45 class ReturnInst; variable 171 SmallVectorImpl<ReturnInst *> &Returns, 180 SmallVectorImpl<ReturnInst *> &Returns, 197 SmallVectorImpl<ReturnInst*> &Returns,
|
H A D | BasicBlockUtils.h | 41 class ReturnInst; variable 391 ReturnInst *FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB,
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | TailRecursionElimination.cpp | 387 if (!I->hasOneUse() || !isa<ReturnInst>(I->user_back())) in canTransformAccumulatorRecursion() 640 ReturnInst *Ret = cast<ReturnInst>(CI->getParent()->getTerminator()); in eliminateCall() 773 ReturnInst *RI = dyn_cast<ReturnInst>(BB.getTerminator()); in cleanupAndFinalize() 790 ReturnInst *RI = dyn_cast<ReturnInst>(BB.getTerminator()); in cleanupAndFinalize() 827 ReturnInst *Ret = dyn_cast<ReturnInst>(Succ->getFirstNonPHIOrDbg(true)); in processBlock() 852 } else if (isa<ReturnInst>(TI)) { in processBlock()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
H A D | SandboxIR.h | 80 class ReturnInst; variable 184 friend class ReturnInst; // For getting `Val`. variable 509 friend class ReturnInst; // For getTopmostLLVMInstruction(). variable 696 class ReturnInst final : public Instruction { 698 ReturnInst(llvm::Instruction *I, Context &Ctx) in ReturnInst() function 700 ReturnInst(ClassID SubclassID, llvm::Instruction *I, Context &Ctx) in ReturnInst() function 709 static ReturnInst *createCommon(Value *RetVal, IRBuilder<> &Builder, 713 static ReturnInst *create(Value *RetVal, Instruction *InsertBefore, 715 static ReturnInst *create(Value *RetVal, BasicBlock *InsertAtEnd, 877 ReturnInst *createReturnInst(llvm::ReturnInst *I); [all …]
|
H A D | SandboxIRValues.def | 31 DEF_INSTR(Ret, OP(Ret), ReturnInst)
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyFixFunctionBitcasts.cpp | 174 ReturnInst::Create(M->getContext(), BB); in createWrapper() 177 ReturnInst::Create(M->getContext(), UndefValue::get(RtnType), BB); in createWrapper() 179 ReturnInst::Create(M->getContext(), Call, BB); in createWrapper() 185 ReturnInst::Create(M->getContext(), Cast, BB); in createWrapper()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | Analysis.h | 139 const ReturnInst *Ret, 147 const ReturnInst *Ret,
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | SCCP.cpp | 51 SmallVector<ReturnInst *, 8> &ReturnsToZap, in findReturnsToZap() argument 104 if (auto *RI = dyn_cast<ReturnInst>(BB.getTerminator())) in findReturnsToZap() 278 SmallVector<ReturnInst*, 8> ReturnsToZap; in runIPSCCP() 317 for (ReturnInst *RI : ReturnsToZap) { in runIPSCCP()
|
H A D | DeadArgumentElimination.cpp | 389 if (const ReturnInst *RI = dyn_cast<ReturnInst>(V)) { in surveyUse() 1038 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB.getTerminator())) { in removeDeadStuffFromFunction() 1072 ReturnInst::Create(F->getContext(), RetVal, RI->getIterator()); in removeDeadStuffFromFunction()
|
H A D | CalledValuePropagation.cpp | 181 return visitReturn(*cast<ReturnInst>(&I), ChangedValues, SS); in ComputeInstructionState() 241 void visitReturn(ReturnInst &I, in visitReturn()
|
H A D | FunctionAttrs.cpp | 773 if (auto *Ret = dyn_cast<ReturnInst>(BB.getTerminator())) { in addArgumentReturnedAttrs() 1058 if (ReturnInst *Ret = dyn_cast<ReturnInst>(BB.getTerminator())) in isFunctionMallocLike() 1169 if (auto *Ret = dyn_cast<ReturnInst>(BB.getTerminator())) in isReturnNonNull() 1316 if (auto *Ret = dyn_cast<ReturnInst>(BB.getTerminator())) { in addNoUndefAttrs() 1723 if (!isa<ReturnInst>(BB.getTerminator())) in basicBlockCanReturn()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCBoolRetToInt.cpp | 141 return isa<ReturnInst>(V) || isa<CallInst>(V) || isa<PHINode>(V) || in getPromotablePHINodes() 204 if (auto *R = dyn_cast<ReturnInst>(&I)) in runOnFunction() 240 if (isa<ReturnInst>(U.getUser())) in runOnUse()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVMergeRegionExitTargets.cpp | 68 assert(isa<ReturnInst>(T) && "Unhandled terminator type."); in gatherSuccessors() 78 if (isa<ReturnInst>(T)) in createExitVariable() 111 if (isa<ReturnInst>(T)) in replaceBranchTargets()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | Analysis.cpp | 539 const ReturnInst *Ret = dyn_cast<ReturnInst>(Term); in isInTailCallPosition() 584 const ReturnInst *Ret, in attributesPermitTailCall() 645 const ReturnInst *Ret, in returnTypeIsEligibleForTailCall() 715 const ReturnInst *Ret = dyn_cast<ReturnInst>(CI.getParent()->getTerminator()); in funcReturnsFirstArgOfCall()
|
H A D | SwiftErrorValueTracking.cpp | 322 } else if (const ReturnInst *R = dyn_cast<const ReturnInst>(&*It)) {
|
H A D | SjLjEHPrepare.cpp | 379 SmallVector<ReturnInst *, 16> Returns; in setupEntryBlockAndCallSites() 396 } else if (auto *RI = dyn_cast<ReturnInst>(BB.getTerminator())) { in setupEntryBlockAndCallSites() 490 for (ReturnInst *Return : Returns) { in setupEntryBlockAndCallSites()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | CaptureTracking.cpp | 85 if (isa<ReturnInst>(U->getUser()) && !ReturnCaptures) in captured() 127 if (isa<ReturnInst>(I) && !ReturnCaptures) in captured() 171 if (isa<ReturnInst>(I) && !ReturnCaptures) in captured()
|