Home
last modified time | relevance | path

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

12345

/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURewriteOutArguments.cpp213 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 DAMDGPUUnifyDivergentExitNodes.cpp219 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 DSandboxIR.cpp590 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 DUnifyFunctionExitNodes.cpp50 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 DCloneFunction.cpp95 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 DLowerGlobalDtors.cpp192 ReturnInst::Create(C, BB); in runImpl()
222 ReturnInst::Create(C, RetBB); in runImpl()
H A DInlineFunction.cpp1339 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 DEscapeEnumerator.cpp41 if (!isa<ReturnInst>(TI) && !isa<ResumeInst>(TI)) in Next()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DCloning.h45 class ReturnInst; variable
171 SmallVectorImpl<ReturnInst *> &Returns,
180 SmallVectorImpl<ReturnInst *> &Returns,
197 SmallVectorImpl<ReturnInst*> &Returns,
H A DBasicBlockUtils.h41 class ReturnInst; variable
391 ReturnInst *FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DTailRecursionElimination.cpp387 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 DSandboxIR.h80 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 DSandboxIRValues.def31 DEF_INSTR(Ret, OP(Ret), ReturnInst)
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp174 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 DAnalysis.h139 const ReturnInst *Ret,
147 const ReturnInst *Ret,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSCCP.cpp51 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 DDeadArgumentElimination.cpp389 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 DCalledValuePropagation.cpp181 return visitReturn(*cast<ReturnInst>(&I), ChangedValues, SS); in ComputeInstructionState()
241 void visitReturn(ReturnInst &I, in visitReturn()
H A DFunctionAttrs.cpp773 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 DPPCBoolRetToInt.cpp141 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 DSPIRVMergeRegionExitTargets.cpp68 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 DAnalysis.cpp539 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 DSwiftErrorValueTracking.cpp322 } else if (const ReturnInst *R = dyn_cast<const ReturnInst>(&*It)) {
H A DSjLjEHPrepare.cpp379 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 DCaptureTracking.cpp85 if (isa<ReturnInst>(U->getUser()) && !ReturnCaptures) in captured()
127 if (isa<ReturnInst>(I) && !ReturnCaptures) in captured()
171 if (isa<ReturnInst>(I) && !ReturnCaptures) in captured()

12345