Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp196 else if (auto *CleanupPad = dyn_cast<CleanupPadInst>(FuncletPad)) in calculateStateNumbersForInvokes()
286 if (auto *InnerCleanupPad = dyn_cast<CleanupPadInst>(UserI)) { in calculateCXXStateNumbers()
309 auto *CleanupPad = cast<CleanupPadInst>(FirstNonPHI); in calculateCXXStateNumbers()
404 if (auto *InnerCleanupPad = dyn_cast<CleanupPadInst>(UserI)) { in calculateSEHStateNumbers()
414 auto *CleanupPad = cast<CleanupPadInst>(FirstNonPHI); in calculateSEHStateNumbers()
443 if (auto *CleanupPad = dyn_cast<CleanupPadInst>(EHPad)) in isTopLevelPadForMSVC()
534 if (const auto *CPI = dyn_cast<CleanupPadInst>(FirstNonPHI)) in calculateClrEHStateNumbers()
555 if (const auto *Cleanup = dyn_cast<CleanupPadInst>(Pad)) { in calculateClrEHStateNumbers()
620 const auto *Cleanup = cast<CleanupPadInst>(Pad); in calculateClrEHStateNumbers()
660 cast<CleanupPadInst>(UserUnwindPad)->getParentPad(); in calculateClrEHStateNumbers()
[all …]
H A DWasmEHPrepare.cpp207 else if (isa<CleanupPadInst>(Pad)) in prepareEHPads()
H A DMachineFunction.cpp786 assert(isa<CleanupPadInst>(FirstI) && "Invalid landingpad!"); in addLandingPad()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp276 if (!isa<CleanupPadInst>(Child) && !isa<CatchSwitchInst>(Child)) in getUnwindDestTokenHelper()
304 auto *CleanupPad = cast<CleanupPadInst>(CurrentPad); in getUnwindDestTokenHelper()
316 } else if (isa<CleanupPadInst>(U) || isa<CatchSwitchInst>(U)) { in getUnwindDestTokenHelper()
512 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
517 assert(isa<CleanupPadInst>(UselessPad)); in getUnwindDestToken()
525 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
1888 if (isa<CleanupPadInst>(CallSiteEHPad)) { in InlineFunction()
H A DBasicBlockUtils.cpp652 else if (auto *CleanupPad = dyn_cast<CleanupPadInst>(PadInst)) in ehAwareSplitEdge()
659 auto *NewCleanupPad = CleanupPadInst::Create(ParentPad, {}, BBName, NewBB); in ehAwareSplitEdge()
H A DCodeExtractor.cpp160 if (const auto *CPI = dyn_cast<CleanupPadInst>(I)) { in isBlockValidForExtraction()
H A DSimplifyCFG.cpp4781 CleanupPadInst *CPInst = RI->getCleanupPad(); in removeEmptyCleanup()
4902 auto *SuccessorCleanupPad = dyn_cast<CleanupPadInst>(&UnwindDest->front()); in mergeCleanupPad()
4906 CleanupPadInst *PredecessorCleanupPad = RI->getCleanupPad(); in mergeCleanupPad()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h52 class CleanupPadInst; variable
458 void visitCleanupPad(const CleanupPadInst &CPI);
H A DSelectionDAGBuilder.cpp1743 void SelectionDAGBuilder::visitCleanupPad(const CleanupPadInst &CPI) { in visitCleanupPad()
1787 if (isa<CleanupPadInst>(Pad)) { in findWasmUnwindDestinations()
1840 } else if (isa<CleanupPadInst>(Pad)) { in findUnwindDestinations()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86WinEHState.cpp727 if (isa<CleanupPadInst>(FuncletEntryBB->getFirstNonPHI())) in addStateStores()
769 bool InCleanup = isa<CleanupPadInst>(FuncletEntryBB->getFirstNonPHI()); in addStateStores()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstructions.h4457 class CleanupPadInst : public FuncletPadInst {
4459 explicit CleanupPadInst(Value *ParentPad, ArrayRef<Value *> Args,
4464 explicit CleanupPadInst(Value *ParentPad, ArrayRef<Value *> Args,
4471 static CleanupPadInst *Create(Value *ParentPad, ArrayRef<Value *> Args = None,
4476 CleanupPadInst(ParentPad, Args, Values, NameStr, InsertBefore);
4479 static CleanupPadInst *Create(Value *ParentPad, ArrayRef<Value *> Args,
4483 CleanupPadInst(ParentPad, Args, Values, NameStr, InsertAtEnd);
4677 CleanupPadInst *getCleanupPad() const {
4678 return cast<CleanupPadInst>(Op<0>());
4680 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.h1106 CleanupReturnInst *CreateCleanupRet(CleanupPadInst *CleanupPad,
1123 CleanupPadInst *CreateCleanupPad(Value *ParentPad,
1126 return Insert(CleanupPadInst::Create(ParentPad, Args), Name);
H A DInstrTypes.h2386 friend class CleanupPadInst;
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp1654 static BasicBlock *getCleanupRetUnwindDest(const CleanupPadInst *CPI) { in getCleanupRetUnwindDest()
1834 if (auto *CPI = dyn_cast<CleanupPadInst>(FromPad)) { in handleLongjmpableCallsForWasmSjLj()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp1514 CleanupPadInst::Create(CatchSwitch->getParentPad(), {}, "", CurrentBlock); in splitBeforeCatchSwitch()
1836 CleanupPadInst *CleanupPad) { in rewritePHIsForCleanupPad()
1952 dyn_cast_or_null<CleanupPadInst>(BB.getFirstNonPHI())) { in rewritePHIs()
H A DCoroSplit.cpp336 auto *FromPad = cast<CleanupPadInst>(Bundle->Inputs[0]); in replaceUnwindCoroEnd()
/llvm-project-15.0.7/llvm/lib/IR/
H A DVerifier.cpp549 void visitCleanupPadInst(CleanupPadInst &CPI);
4167 void Verifier::visitCleanupPadInst(CleanupPadInst &CPI) { in visitCleanupPadInst()
4217 } else if (auto *CPI = dyn_cast<CleanupPadInst>(U)) { in visitFuncletPadInst()
4283 if (isa<CleanupPadInst>(&FPI) && !isa<ConstantTokenNone>(UnwindPad) && in visitFuncletPadInst()
4390 Check(isa<CleanupPadInst>(CRI.getOperand(0)), in visitCleanupReturnInst()
/llvm-project-15.0.7/llvm/test/Verifier/
H A Dinvalid-eh.ll76 ;T5: ; CHECK5: CleanupPadInst has an invalid parent
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGCleanup.cpp1021 llvm::CleanupPadInst *CPI = nullptr; in PopCleanupBlock()
H A DCodeGenFunction.h763 return CurrentFuncletPad && isa<llvm::CleanupPadInst>(CurrentFuncletPad);
/llvm-project-15.0.7/llvm/include/llvm-c/
H A DCore.h1658 macro(CleanupPadInst) \
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSimpleLoopUnswitch.cpp2837 if (isa<CleanupPadInst>(I) || isa<CatchSwitchInst>(I)) { in unswitchBestCondition()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp2510 if (isa<CleanupPadInst>(Pad)) { in findUnwindDestinations()

12