Home
last modified time | relevance | path

Searched refs:CleanupPadInst (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp182 static BasicBlock *getCleanupRetUnwindDest(const CleanupPadInst *CleanupPad) { in getCleanupRetUnwindDest()
210 else if (auto *CleanupPad = dyn_cast<CleanupPadInst>(FuncletPad)) in calculateStateNumbersForInvokes()
424 if (auto *InnerCleanupPad = dyn_cast<CleanupPadInst>(UserI)) { in calculateCXXStateNumbers()
447 auto *CleanupPad = cast<CleanupPadInst>(FirstNonPHI); in calculateCXXStateNumbers()
544 if (auto *InnerCleanupPad = dyn_cast<CleanupPadInst>(UserI)) { in calculateSEHStateNumbers()
554 auto *CleanupPad = cast<CleanupPadInst>(FirstNonPHI); in calculateSEHStateNumbers()
584 if (auto *CleanupPad = dyn_cast<CleanupPadInst>(EHPad)) in isTopLevelPadForMSVC()
687 if (const auto *CPI = dyn_cast<CleanupPadInst>(FirstNonPHI)) in calculateClrEHStateNumbers()
708 if (const auto *Cleanup = dyn_cast<CleanupPadInst>(Pad)) { in calculateClrEHStateNumbers()
773 const auto *Cleanup = cast<CleanupPadInst>(Pad); in calculateClrEHStateNumbers()
[all …]
H A DWasmEHPrepare.cpp231 else if (isa<CleanupPadInst>(Pad)) in prepareEHPads()
H A DMachineFunction.cpp873 assert(isa<CleanupPadInst>(FirstI) && "Invalid landingpad!"); in addLandingPad()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DContext.cpp166 auto *LLVMCPI = cast<llvm::CleanupPadInst>(LLVMV); in getOrCreateValueInternal()
168 std::unique_ptr<CleanupPadInst>(new CleanupPadInst(LLVMCPI, *this)); in getOrCreateValueInternal()
558 CleanupPadInst *Context::createCleanupPadInst(llvm::CleanupPadInst *I) { in createCleanupPadInst()
559 auto NewPtr = std::unique_ptr<CleanupPadInst>(new CleanupPadInst(I, *this)); in createCleanupPadInst()
560 return cast<CleanupPadInst>(registerValue(std::move(NewPtr))); in createCleanupPadInst()
H A DInstruction.cpp696 CleanupPadInst *CleanupPadInst::create(Value *ParentPad, ArrayRef<Value *> Args, in create()
704 llvm::CleanupPadInst *LLVMI = in create()
748 CleanupReturnInst *CleanupReturnInst::create(CleanupPadInst *CleanupPad, in create()
755 cast<llvm::CleanupPadInst>(CleanupPad->Val), LLVMUnwindBB); in create()
759 CleanupPadInst *CleanupReturnInst::getCleanupPad() const { in getCleanupPad()
760 return cast<CleanupPadInst>( in getCleanupPad()
764 void CleanupReturnInst::setCleanupPad(CleanupPadInst *CleanupPad) { in setCleanupPad()
770 cast<llvm::CleanupPadInst>(CleanupPad->Val)); in setCleanupPad()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DContext.h199 LLVM_ABI CleanupPadInst *createCleanupPadInst(llvm::CleanupPadInst *I);
200 friend CleanupPadInst; // For createCleanupPadInst()
H A DInstruction.h80 friend class CleanupPadInst; // For getTopmostLLVMInstruction(). variable
1565 friend class CleanupPadInst; // For constructor. variable
1608 class CleanupPadInst : public FuncletPadInst {
1609 CleanupPadInst(llvm::CleanupPadInst *CPI, Context &Ctx) in CleanupPadInst() function
1614 LLVM_ABI static CleanupPadInst *create(Value *ParentPad,
1655 LLVM_ABI static CleanupReturnInst *create(CleanupPadInst *CleanupPad,
1664 LLVM_ABI CleanupPadInst *getCleanupPad() const;
1665 LLVM_ABI void setCleanupPad(CleanupPadInst *CleanupPad);
H A DValues.def82 DEF_INSTR(CleanupPad, OP(CleanupPad), CleanupPadInst)
H A DValue.h131 friend class CleanupPadInst; // For getting `Val`. variable
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp299 if (!isa<CleanupPadInst>(Child) && !isa<CatchSwitchInst>(Child)) in getUnwindDestTokenHelper()
327 auto *CleanupPad = cast<CleanupPadInst>(CurrentPad); in getUnwindDestTokenHelper()
339 } else if (isa<CleanupPadInst>(U) || isa<CatchSwitchInst>(U)) { in getUnwindDestTokenHelper()
534 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
539 assert(isa<CleanupPadInst>(UselessPad)); in getUnwindDestToken()
548 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
2591 if (isa<CleanupPadInst>(CallSiteEHPad)) { in InlineFunction()
H A DBasicBlockUtils.cpp756 else if (auto *CleanupPad = dyn_cast<CleanupPadInst>(PadInst)) in ehAwareSplitEdge()
763 auto *NewCleanupPad = CleanupPadInst::Create(ParentPad, {}, BBName, NewBB); in ehAwareSplitEdge()
H A DCodeExtractor.cpp155 if (const auto *CPI = dyn_cast<CleanupPadInst>(I)) { in isBlockValidForExtraction()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h55 class CleanupPadInst; variable
512 void visitCleanupPad(const CleanupPadInst &CPI);
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86WinEHState.cpp744 if (isa<CleanupPadInst>(FuncletEntryBB->getFirstNonPHIIt())) in addStateStores()
786 bool InCleanup = isa<CleanupPadInst>(FuncletEntryBB->getFirstNonPHIIt()); in addStateStores()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstVisitor.h198 RetTy visitCleanupPadInst(CleanupPadInst &I) { DELEGATE(FuncletPadInst); } in visitCleanupPadInst()
H A DInstruction.def200 HANDLE_FUNCLETPAD_INST(51, CleanupPad, CleanupPadInst)
H A DInstructions.h4267 class CleanupPadInst : public FuncletPadInst {
4269 explicit CleanupPadInst(Value *ParentPad, ArrayRef<Value *> Args,
4276 static CleanupPadInst *Create(Value *ParentPad, ArrayRef<Value *> Args = {},
4281 CleanupPadInst(ParentPad, Args, AllocMarker, NameStr, InsertBefore);
4448 CleanupPadInst *getCleanupPad() const {
4449 return cast<CleanupPadInst>(Op<0>());
4451 void setCleanupPad(CleanupPadInst *CleanupPad) {
H A DIRBuilder.h1317 CleanupReturnInst *CreateCleanupRet(CleanupPadInst *CleanupPad,
1334 CleanupPadInst *CreateCleanupPad(Value *ParentPad,
1337 return Insert(CleanupPadInst::Create(ParentPad, Args), Name);
H A DInstrTypes.h2373 friend class CleanupPadInst;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DSpillUtils.cpp112 CleanupPadInst::Create(CatchSwitch->getParentPad(), {}, "", CurrentBlock); in splitBeforeCatchSwitch()
H A DCoroFrame.cpp1319 CleanupPadInst *CleanupPad) { in rewritePHIsForCleanupPad()
1436 dyn_cast_or_null<CleanupPadInst>(BB.getFirstNonPHIIt())) { in rewritePHIs()
H A DCoroSplit.cpp378 auto *FromPad = cast<CleanupPadInst>(Bundle->Inputs[0]); in replaceUnwindCoroEnd()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp1545 static BasicBlock *getCleanupRetUnwindDest(const CleanupPadInst *CPI) { in getCleanupRetUnwindDest()
1717 if (auto *CPI = dyn_cast<CleanupPadInst>(FromPad)) { in handleLongjmpableCallsForWasmSjLj()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCleanup.cpp1044 llvm::CleanupPadInst *CPI = nullptr; in PopCleanupBlock()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp613 void visitCleanupPadInst(CleanupPadInst &CPI);
4709 void Verifier::visitCleanupPadInst(CleanupPadInst &CPI) { in visitCleanupPadInst()
4759 } else if (auto *CPI = dyn_cast<CleanupPadInst>(U)) { in visitFuncletPadInst()
4825 if (isa<CleanupPadInst>(&FPI) && !isa<ConstantTokenNone>(UnwindPad) && in visitFuncletPadInst()
4932 Check(isa<CleanupPadInst>(CRI.getOperand(0)), in visitCleanupReturnInst()

12