Home
last modified time | relevance | path

Searched refs:CleanupReturnInst (Results 1 – 25 of 33) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DContext.cpp178 auto *LLVMCRI = cast<llvm::CleanupReturnInst>(LLVMV); in getOrCreateValueInternal()
179 It->second = std::unique_ptr<CleanupReturnInst>( in getOrCreateValueInternal()
180 new CleanupReturnInst(LLVMCRI, *this)); in getOrCreateValueInternal()
566 CleanupReturnInst *
567 Context::createCleanupReturnInst(llvm::CleanupReturnInst *I) { in createCleanupReturnInst()
569 std::unique_ptr<CleanupReturnInst>(new CleanupReturnInst(I, *this)); in createCleanupReturnInst()
570 return cast<CleanupReturnInst>(registerValue(std::move(NewPtr))); in createCleanupReturnInst()
H A DInstruction.cpp748 CleanupReturnInst *CleanupReturnInst::create(CleanupPadInst *CleanupPad, in create()
754 llvm::CleanupReturnInst *LLVMI = Builder.CreateCleanupRet( in create()
759 CleanupPadInst *CleanupReturnInst::getCleanupPad() const { in getCleanupPad()
761 Ctx.getValue(cast<llvm::CleanupReturnInst>(Val)->getCleanupPad())); in getCleanupPad()
764 void CleanupReturnInst::setCleanupPad(CleanupPadInst *CleanupPad) { in setCleanupPad()
766 .emplaceIfTracking<GenericSetter<&CleanupReturnInst::getCleanupPad, in setCleanupPad()
767 &CleanupReturnInst::setCleanupPad>>( in setCleanupPad()
769 cast<llvm::CleanupReturnInst>(Val)->setCleanupPad( in setCleanupPad()
773 BasicBlock *CleanupReturnInst::getUnwindDest() const { in getUnwindDest()
775 Ctx.getValue(cast<llvm::CleanupReturnInst>(Val)->getUnwindDest())); in getUnwindDest()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DContext.h203 LLVM_ABI CleanupReturnInst *
204 createCleanupReturnInst(llvm::CleanupReturnInst *I);
205 friend CleanupReturnInst; // For createCleanupReturnInst()
H A DInstruction.h82 friend class CleanupReturnInst; // For getTopmostLLVMInstruction(). variable
1647 class CleanupReturnInst
1648 : public SingleLLVMInstructionImpl<llvm::CleanupReturnInst> {
1649 CleanupReturnInst(llvm::CleanupReturnInst *CRI, Context &Ctx) in CleanupReturnInst() function
1655 LLVM_ABI static CleanupReturnInst *create(CleanupPadInst *CleanupPad,
1659 return cast<llvm::CleanupReturnInst>(Val)->hasUnwindDest(); in hasUnwindDest()
1662 return cast<llvm::CleanupReturnInst>(Val)->unwindsToCaller(); in unwindsToCaller()
1667 return cast<llvm::CleanupReturnInst>(Val)->getNumSuccessors(); in getNumSuccessors()
H A DValues.def84 DEF_INSTR(CleanupRet, OP(CleanupRet), CleanupReturnInst)
H A DValue.h136 friend class CleanupReturnInst; // For getting `Val`. variable
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp184 if (const auto *CRI = dyn_cast<CleanupReturnInst>(U)) in getCleanupRetUnwindDest()
264 if ((isa<CleanupReturnInst>(TI) || isa<CatchReturnInst>(TI)) && State > 0) { in calculateCXXStateForAsynchEH()
332 } else if ((isa<CleanupReturnInst>(TI) || isa<CatchReturnInst>(TI)) && in calculateSEHStateForAsynchEH()
369 auto *CleanupPad = cast<CleanupReturnInst>(TI)->getCleanupPad(); in getEHPadFromPredecessor()
776 if (auto *CleanupRet = dyn_cast<CleanupReturnInst>(U)) { in calculateClrEHStateNumbers()
1185 if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) in removeImplausibleInstructions()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstructions.h4411 class CleanupReturnInst : public Instruction {
4415 CleanupReturnInst(const CleanupReturnInst &RI, AllocInfo AllocInfo);
4416 LLVM_ABI CleanupReturnInst(Value *CleanupPad, BasicBlock *UnwindBB,
4426 LLVM_ABI CleanupReturnInst *cloneImpl() const;
4429 static CleanupReturnInst *Create(Value *CleanupPad,
4438 CleanupReturnInst(CleanupPad, UnwindBB, AllocMarker, InsertBefore);
4495 struct OperandTraits<CleanupReturnInst>
4496 : public VariadicOperandTraits<CleanupReturnInst> {};
4498 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(CleanupReturnInst, Value)
H A DInstVisitor.h238 RetTy visitCleanupReturnInst(CleanupReturnInst &I) { in visitCleanupReturnInst()
H A DInstruction.def134 HANDLE_TERM_INST ( 8, CleanupRet , CleanupReturnInst)
H A DIRBuilder.h1317 CleanupReturnInst *CreateCleanupRet(CleanupPadInst *CleanupPad,
1319 return Insert(CleanupReturnInst::Create(CleanupPad, UnwindBB));
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h56 class CleanupReturnInst; variable
508 void visitCleanupRet(const CleanupReturnInst &I);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMemoryTaggingSupport.cpp108 if (isa<ResumeInst, CleanupReturnInst>(Inst)) { in getUntagLocationIfFunctionExit()
H A DInlineFunction.cpp329 if (auto *CleanupRet = dyn_cast<CleanupReturnInst>(U)) { in getUnwindDestTokenHelper()
541 assert(!isa<CleanupReturnInst>(U) && "Expected useless pad"); in getUnwindDestToken()
711 if (auto *CRI = dyn_cast<CleanupReturnInst>(BB->getTerminator())) { in HandleInlinedEHPad()
714 CleanupReturnInst::Create(CleanupPad, UnwindDest, CRI->getIterator()); in HandleInlinedEHPad()
3070 if (auto *CleanupRet = dyn_cast<CleanupReturnInst>(BB->getTerminator())) in InlineFunction()
H A DBasicBlockUtils.cpp664 else if (auto *CR = dyn_cast<CleanupReturnInst>(TI)) in setUnwindEdgeTo()
764 CleanupReturnInst::Create(NewCleanupPad, Succ, NewBB); in ehAwareSplitEdge()
H A DCodeExtractor.cpp157 if (const auto *CRI = dyn_cast<CleanupReturnInst>(U)) in isBlockValidForExtraction()
162 if (const auto *CRI = dyn_cast<CleanupReturnInst>(I)) { in isBlockValidForExtraction()
H A DSimplifyCFG.cpp281 bool simplifyCleanupReturn(CleanupReturnInst *RI);
5282 static bool removeEmptyCleanup(CleanupReturnInst *RI, DomTreeUpdater *DTU) { in removeEmptyCleanup()
5399 static bool mergeCleanupPad(CleanupReturnInst *RI) { in mergeCleanupPad()
5431 bool SimplifyCFGOpt::simplifyCleanupReturn(CleanupReturnInst *RI) { in simplifyCleanupReturn()
5607 } else if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) { in simplifyUnreachable()
8332 Changed |= simplifyCleanupReturn(cast<CleanupReturnInst>(Terminator)); in simplifyOnce()
H A DLocal.cpp3220 if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) { in removeUnwindEdge()
3221 NewTI = CleanupReturnInst::Create(CRI->getCleanupPad(), nullptr, CRI->getIterator()); in removeUnwindEdge()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp1028 CleanupReturnInst::CleanupReturnInst(const CleanupReturnInst &CRI, in CleanupReturnInst() function in CleanupReturnInst
1040 void CleanupReturnInst::init(Value *CleanupPad, BasicBlock *UnwindBB) { in init()
1049 CleanupReturnInst::CleanupReturnInst(Value *CleanupPad, BasicBlock *UnwindBB, in CleanupReturnInst() function in CleanupReturnInst
4521 CleanupReturnInst *CleanupReturnInst::cloneImpl() const { in cloneImpl()
4523 return new (AllocMarker) CleanupReturnInst(*this, AllocMarker); in cloneImpl()
H A DInstruction.cpp1176 return cast<CleanupReturnInst>(this)->unwindsToCaller(); in mayThrow()
H A DCore.cpp3130 if (CleanupReturnInst *CRI = dyn_cast<CleanupReturnInst>(unwrap(Invoke))) { in LLVMGetUnwindDest()
3143 if (CleanupReturnInst *CRI = dyn_cast<CleanupReturnInst>(unwrap(Invoke))) { in LLVMSetUnwindDest()
H A DVerifier.cpp616 void visitCleanupReturnInst(CleanupReturnInst &CRI);
2827 UnwindDest = cast<CleanupReturnInst>(Terminator)->getUnwindDest(); in getSuccPad()
4595 } else if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) { in visitEHPadPredecessors()
4742 if (auto *CRI = dyn_cast<CleanupReturnInst>(U)) { in visitFuncletPadInst()
4931 void Verifier::visitCleanupReturnInst(CleanupReturnInst &CRI) { in visitCleanupReturnInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DSpillUtils.cpp114 CleanupReturnInst::Create(CleanupPad, NewBlock, CurrentBlock); in splitBeforeCatchSwitch()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp1547 if (const auto *CRI = dyn_cast<CleanupReturnInst>(U)) in getCleanupRetUnwindDest()
1755 if (auto *CRI = dyn_cast<CleanupReturnInst>(BB.getTerminator())) { in handleLongjmpableCallsForWasmSjLj()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineCost.cpp518 bool visitCleanupReturnInst(CleanupReturnInst &RI);
2689 bool CallAnalyzer::visitCleanupReturnInst(CleanupReturnInst &CRI) { in visitCleanupReturnInst()

12