Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp168 static BasicBlock *getCleanupRetUnwindDest(const CleanupPadInst *CleanupPad) { in getCleanupRetUnwindDest()
196 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()
[all …]
H A DWasmEHPrepare.cpp206 else if (isa<CleanupPadInst>(Pad)) in prepareEHPads()
H A DMachineFunction.cpp803 assert(isa<CleanupPadInst>(FirstI) && "Invalid landingpad!"); in addLandingPad()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp279 if (!isa<CleanupPadInst>(Child) && !isa<CatchSwitchInst>(Child)) in getUnwindDestTokenHelper()
307 auto *CleanupPad = cast<CleanupPadInst>(CurrentPad); in getUnwindDestTokenHelper()
319 } else if (isa<CleanupPadInst>(U) || isa<CatchSwitchInst>(U)) { in getUnwindDestTokenHelper()
515 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
520 assert(isa<CleanupPadInst>(UselessPad)); in getUnwindDestToken()
528 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
2113 if (isa<CleanupPadInst>(CallSiteEHPad)) { in InlineFunction()
H A DBasicBlockUtils.cpp750 else if (auto *CleanupPad = dyn_cast<CleanupPadInst>(PadInst)) in ehAwareSplitEdge()
757 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.cpp4948 CleanupPadInst *CPInst = RI->getCleanupPad(); in removeEmptyCleanup()
5069 auto *SuccessorCleanupPad = dyn_cast<CleanupPadInst>(&UnwindDest->front()); in mergeCleanupPad()
5073 CleanupPadInst *PredecessorCleanupPad = RI->getCleanupPad(); in mergeCleanupPad()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86WinEHState.cpp727 if (isa<CleanupPadInst>(FuncletEntryBB->getFirstNonPHI())) in addStateStores()
769 bool InCleanup = isa<CleanupPadInst>(FuncletEntryBB->getFirstNonPHI()); in addStateStores()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h55 class CleanupPadInst; variable
510 void visitCleanupPad(const CleanupPadInst &CPI);
H A DSelectionDAGBuilder.cpp1799 void SelectionDAGBuilder::visitCleanupPad(const CleanupPadInst &CPI) { in visitCleanupPad()
1843 if (isa<CleanupPadInst>(Pad)) { in findWasmUnwindDestinations()
1896 } else if (isa<CleanupPadInst>(Pad)) { in findUnwindDestinations()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DInstructions.h4491 class CleanupPadInst : public FuncletPadInst {
4493 explicit CleanupPadInst(Value *ParentPad, ArrayRef<Value *> Args,
4498 explicit CleanupPadInst(Value *ParentPad, ArrayRef<Value *> Args,
4505 static CleanupPadInst *Create(Value *ParentPad,
4511 CleanupPadInst(ParentPad, Args, Values, NameStr, InsertBefore);
4514 static CleanupPadInst *Create(Value *ParentPad, ArrayRef<Value *> Args,
4518 CleanupPadInst(ParentPad, Args, Values, NameStr, InsertAtEnd);
4712 CleanupPadInst *getCleanupPad() const {
4713 return cast<CleanupPadInst>(Op<0>());
4715 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.h1151 CleanupReturnInst *CreateCleanupRet(CleanupPadInst *CleanupPad,
1168 CleanupPadInst *CreateCleanupPad(Value *ParentPad,
1171 return Insert(CleanupPadInst::Create(ParentPad, Args), Name);
H A DInstrTypes.h2311 friend class CleanupPadInst;
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp1549 CleanupPadInst::Create(CatchSwitch->getParentPad(), {}, "", CurrentBlock); in splitBeforeCatchSwitch()
1919 CleanupPadInst *CleanupPad) { in rewritePHIsForCleanupPad()
2035 dyn_cast_or_null<CleanupPadInst>(BB.getFirstNonPHI())) { in rewritePHIs()
H A DCoroSplit.cpp336 auto *FromPad = cast<CleanupPadInst>(Bundle->Inputs[0]); in replaceUnwindCoroEnd()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DVerifier.cpp551 void visitCleanupPadInst(CleanupPadInst &CPI);
4232 void Verifier::visitCleanupPadInst(CleanupPadInst &CPI) { in visitCleanupPadInst()
4282 } else if (auto *CPI = dyn_cast<CleanupPadInst>(U)) { in visitFuncletPadInst()
4348 if (isa<CleanupPadInst>(&FPI) && !isa<ConstantTokenNone>(UnwindPad) && in visitFuncletPadInst()
4455 Check(isa<CleanupPadInst>(CRI.getOperand(0)), in visitCleanupReturnInst()
H A DCore.cpp3206 return wrap(unwrap(B)->CreateCleanupRet(unwrap<CleanupPadInst>(CatchPad), in LLVMBuildCleanupRet()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGCleanup.cpp1020 llvm::CleanupPadInst *CPI = nullptr; in PopCleanupBlock()
H A DCodeGenFunction.h764 return CurrentFuncletPad && isa<llvm::CleanupPadInst>(CurrentFuncletPad);
/openbsd-src/gnu/llvm/llvm/include/llvm-c/
H A DCore.h1679 macro(CleanupPadInst) \
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DSimpleLoopUnswitch.cpp2880 if (isa<CleanupPadInst>(I) || isa<CatchSwitchInst>(I)) { in isSafeForNoNTrivialUnswitching()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp2530 if (isa<CleanupPadInst>(Pad)) { in findUnwindDestinations()

12