Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp209 else if (auto *CleanupPad = dyn_cast<CleanupPadInst>(FuncletPad)) in calculateStateNumbersForInvokes()
421 if (auto *InnerCleanupPad = dyn_cast<CleanupPadInst>(UserI)) { in calculateCXXStateNumbers()
444 auto *CleanupPad = cast<CleanupPadInst>(FirstNonPHI); in calculateCXXStateNumbers()
540 if (auto *InnerCleanupPad = dyn_cast<CleanupPadInst>(UserI)) { in calculateSEHStateNumbers()
550 auto *CleanupPad = cast<CleanupPadInst>(FirstNonPHI); in calculateSEHStateNumbers()
579 if (auto *CleanupPad = dyn_cast<CleanupPadInst>(EHPad)) in isTopLevelPadForMSVC()
682 if (const auto *CPI = dyn_cast<CleanupPadInst>(FirstNonPHI)) in calculateClrEHStateNumbers()
703 if (const auto *Cleanup = dyn_cast<CleanupPadInst>(Pad)) { in calculateClrEHStateNumbers()
768 const auto *Cleanup = cast<CleanupPadInst>(Pad); in calculateClrEHStateNumbers()
808 cast<CleanupPadInst>(UserUnwindPad)->getParentPad(); in calculateClrEHStateNumbers()
[all …]
H A DWasmEHPrepare.cpp232 else if (isa<CleanupPadInst>(Pad)) in prepareEHPads()
H A DMachineFunction.cpp819 assert(isa<CleanupPadInst>(FirstI) && "Invalid landingpad!"); in addLandingPad()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp277 if (!isa<CleanupPadInst>(Child) && !isa<CatchSwitchInst>(Child)) in getUnwindDestTokenHelper()
305 auto *CleanupPad = cast<CleanupPadInst>(CurrentPad); in getUnwindDestTokenHelper()
317 } else if (isa<CleanupPadInst>(U) || isa<CatchSwitchInst>(U)) { in getUnwindDestTokenHelper()
513 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
518 assert(isa<CleanupPadInst>(UselessPad)); in getUnwindDestToken()
526 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
2165 if (isa<CleanupPadInst>(CallSiteEHPad)) { in InlineFunction()
H A DBasicBlockUtils.cpp885 else if (auto *CleanupPad = dyn_cast<CleanupPadInst>(PadInst)) in ehAwareSplitEdge()
892 auto *NewCleanupPad = CleanupPadInst::Create(ParentPad, {}, BBName, NewBB); in ehAwareSplitEdge()
H A DCodeExtractor.cpp159 if (const auto *CPI = dyn_cast<CleanupPadInst>(I)) { in isBlockValidForExtraction()
H A DSimplifyCFG.cpp5073 CleanupPadInst *CPInst = RI->getCleanupPad(); in removeEmptyCleanup()
5194 auto *SuccessorCleanupPad = dyn_cast<CleanupPadInst>(&UnwindDest->front()); in mergeCleanupPad()
5198 CleanupPadInst *PredecessorCleanupPad = RI->getCleanupPad(); in mergeCleanupPad()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86WinEHState.cpp723 if (isa<CleanupPadInst>(FuncletEntryBB->getFirstNonPHI())) in addStateStores()
765 bool InCleanup = isa<CleanupPadInst>(FuncletEntryBB->getFirstNonPHI()); in addStateStores()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h55 class CleanupPadInst; variable
504 void visitCleanupPad(const CleanupPadInst &CPI);
H A DSelectionDAGBuilder.cpp1976 void SelectionDAGBuilder::visitCleanupPad(const CleanupPadInst &CPI) { in visitCleanupPad()
2020 if (isa<CleanupPadInst>(Pad)) { in findWasmUnwindDestinations()
2073 } else if (isa<CleanupPadInst>(Pad)) { in findUnwindDestinations()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstructions.h4505 class CleanupPadInst : public FuncletPadInst {
4507 explicit CleanupPadInst(Value *ParentPad, ArrayRef<Value *> Args,
4512 explicit CleanupPadInst(Value *ParentPad, ArrayRef<Value *> Args,
4519 static CleanupPadInst *Create(Value *ParentPad,
4525 CleanupPadInst(ParentPad, Args, Values, NameStr, InsertBefore);
4528 static CleanupPadInst *Create(Value *ParentPad, ArrayRef<Value *> Args,
4532 CleanupPadInst(ParentPad, Args, Values, NameStr, InsertAtEnd);
4726 CleanupPadInst *getCleanupPad() const {
4727 return cast<CleanupPadInst>(Op<0>());
4729 void setCleanupPad(CleanupPadInst *CleanupPad) {
H A DInstVisitor.h198 RetTy visitCleanupPadInst(CleanupPadInst &I) { DELEGATE(FuncletPadInst); } in visitCleanupPadInst()
H A DInstruction.def200 HANDLE_FUNCLETPAD_INST(51, CleanupPad, CleanupPadInst)
H A DIRBuilder.h1230 CleanupReturnInst *CreateCleanupRet(CleanupPadInst *CleanupPad,
1247 CleanupPadInst *CreateCleanupPad(Value *ParentPad,
1250 return Insert(CleanupPadInst::Create(ParentPad, Args), Name);
H A DInstrTypes.h2407 friend class CleanupPadInst;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp1648 static BasicBlock *getCleanupRetUnwindDest(const CleanupPadInst *CPI) { in getCleanupRetUnwindDest()
1826 if (auto *CPI = dyn_cast<CleanupPadInst>(FromPad)) { in handleLongjmpableCallsForWasmSjLj()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp1697 CleanupPadInst::Create(CatchSwitch->getParentPad(), {}, "", CurrentBlock); in splitBeforeCatchSwitch()
2089 CleanupPadInst *CleanupPad) { in rewritePHIsForCleanupPad()
2205 dyn_cast_or_null<CleanupPadInst>(BB.getFirstNonPHI())) { in rewritePHIs()
H A DCoroSplit.cpp390 auto *FromPad = cast<CleanupPadInst>(Bundle->Inputs[0]); in replaceUnwindCoroEnd()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCleanup.cpp1030 llvm::CleanupPadInst *CPI = nullptr; in PopCleanupBlock()
H A DCodeGenFunction.h772 return CurrentFuncletPad && isa<llvm::CleanupPadInst>(CurrentFuncletPad);
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp584 void visitCleanupPadInst(CleanupPadInst &CPI);
4401 void Verifier::visitCleanupPadInst(CleanupPadInst &CPI) { in visitCleanupPadInst()
4451 } else if (auto *CPI = dyn_cast<CleanupPadInst>(U)) { in visitFuncletPadInst()
4517 if (isa<CleanupPadInst>(&FPI) && !isa<ConstantTokenNone>(UnwindPad) && in visitFuncletPadInst()
4624 Check(isa<CleanupPadInst>(CRI.getOperand(0)), in visitCleanupReturnInst()
H A DCore.cpp3250 return wrap(unwrap(B)->CreateCleanupRet(unwrap<CleanupPadInst>(CatchPad), in LLVMBuildCleanupRet()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h1773 macro(CleanupPadInst) \
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSimpleLoopUnswitch.cpp3284 if (isa<CleanupPadInst>(I) || isa<CatchSwitchInst>(I)) { in isSafeForNoNTrivialUnswitching()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp2678 if (isa<CleanupPadInst>(Pad)) { in findUnwindDestinations()

12