Home
last modified time | relevance | path

Searched refs:CleanupPadInst (Results 1 – 25 of 27) 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()
422 if (auto *InnerCleanupPad = dyn_cast<CleanupPadInst>(UserI)) { in calculateCXXStateNumbers()
445 auto *CleanupPad = cast<CleanupPadInst>(FirstNonPHI); in calculateCXXStateNumbers()
541 if (auto *InnerCleanupPad = dyn_cast<CleanupPadInst>(UserI)) { in calculateSEHStateNumbers()
551 auto *CleanupPad = cast<CleanupPadInst>(FirstNonPHI); in calculateSEHStateNumbers()
580 if (auto *CleanupPad = dyn_cast<CleanupPadInst>(EHPad)) in isTopLevelPadForMSVC()
683 if (const auto *CPI = dyn_cast<CleanupPadInst>(FirstNonPHI)) in calculateClrEHStateNumbers()
704 if (const auto *Cleanup = dyn_cast<CleanupPadInst>(Pad)) { in calculateClrEHStateNumbers()
769 const auto *Cleanup = cast<CleanupPadInst>(Pad); in calculateClrEHStateNumbers()
[all …]
H A DWasmEHPrepare.cpp233 else if (isa<CleanupPadInst>(Pad)) in prepareEHPads()
H A DMachineFunction.cpp831 assert(isa<CleanupPadInst>(FirstI) && "Invalid landingpad!"); in addLandingPad()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp280 if (!isa<CleanupPadInst>(Child) && !isa<CatchSwitchInst>(Child)) in getUnwindDestTokenHelper()
308 auto *CleanupPad = cast<CleanupPadInst>(CurrentPad); in getUnwindDestTokenHelper()
320 } else if (isa<CleanupPadInst>(U) || isa<CatchSwitchInst>(U)) { in getUnwindDestTokenHelper()
516 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
521 assert(isa<CleanupPadInst>(UselessPad)); in getUnwindDestToken()
529 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
2265 if (isa<CleanupPadInst>(CallSiteEHPad)) { in InlineFunction()
H A DBasicBlockUtils.cpp896 else if (auto *CleanupPad = dyn_cast<CleanupPadInst>(PadInst)) in ehAwareSplitEdge()
903 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.cpp5142 CleanupPadInst *CPInst = RI->getCleanupPad(); in removeEmptyCleanup()
5263 auto *SuccessorCleanupPad = dyn_cast<CleanupPadInst>(&UnwindDest->front()); in mergeCleanupPad()
5267 CleanupPadInst *PredecessorCleanupPad = RI->getCleanupPad(); in mergeCleanupPad()
/freebsd/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/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h55 class CleanupPadInst; variable
513 void visitCleanupPad(const CleanupPadInst &CPI);
H A DSelectionDAGBuilder.cpp2015 void SelectionDAGBuilder::visitCleanupPad(const CleanupPadInst &CPI) { in visitCleanupPad()
2059 if (isa<CleanupPadInst>(Pad)) { in findWasmUnwindDestinations()
2112 } else if (isa<CleanupPadInst>(Pad)) { in findUnwindDestinations()
/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.h4115 class CleanupPadInst : public FuncletPadInst {
4117 explicit CleanupPadInst(Value *ParentPad, ArrayRef<Value *> Args,
4124 static CleanupPadInst *Create(Value *ParentPad,
4130 CleanupPadInst(ParentPad, Args, Values, NameStr, InsertBefore);
4292 CleanupPadInst *getCleanupPad() const {
4293 return cast<CleanupPadInst>(Op<0>());
4295 void setCleanupPad(CleanupPadInst *CleanupPad) {
H A DIRBuilder.h1241 CleanupReturnInst *CreateCleanupRet(CleanupPadInst *CleanupPad,
1258 CleanupPadInst *CreateCleanupPad(Value *ParentPad,
1261 return Insert(CleanupPadInst::Create(ParentPad, Args), Name);
H A DInstrTypes.h2431 friend class CleanupPadInst;
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp1540 static BasicBlock *getCleanupRetUnwindDest(const CleanupPadInst *CPI) { in getCleanupRetUnwindDest()
1711 if (auto *CPI = dyn_cast<CleanupPadInst>(FromPad)) { in handleLongjmpableCallsForWasmSjLj()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp1727 CleanupPadInst::Create(CatchSwitch->getParentPad(), {}, "", CurrentBlock); in splitBeforeCatchSwitch()
2119 CleanupPadInst *CleanupPad) { in rewritePHIsForCleanupPad()
2235 dyn_cast_or_null<CleanupPadInst>(BB.getFirstNonPHI())) { in rewritePHIs()
H A DCoroSplit.cpp469 auto *FromPad = cast<CleanupPadInst>(Bundle->Inputs[0]); in replaceUnwindCoroEnd()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCleanup.cpp1028 llvm::CleanupPadInst *CPI = nullptr; in PopCleanupBlock()
H A DCodeGenFunction.h843 return CurrentFuncletPad && isa<llvm::CleanupPadInst>(CurrentFuncletPad);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp604 void visitCleanupPadInst(CleanupPadInst &CPI);
4541 void Verifier::visitCleanupPadInst(CleanupPadInst &CPI) { in visitCleanupPadInst()
4591 } else if (auto *CPI = dyn_cast<CleanupPadInst>(U)) { in visitFuncletPadInst()
4657 if (isa<CleanupPadInst>(&FPI) && !isa<ConstantTokenNone>(UnwindPad) && in visitFuncletPadInst()
4764 Check(isa<CleanupPadInst>(CRI.getOperand(0)), in visitCleanupReturnInst()
H A DCore.cpp3463 return wrap(unwrap(B)->CreateCleanupRet(unwrap<CleanupPadInst>(CatchPad), in LLVMBuildCleanupRet()
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h1892 macro(CleanupPadInst) \
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSimpleLoopUnswitch.cpp3306 if (isa<CleanupPadInst>(I) || isa<CatchSwitchInst>(I)) { in isSafeForNoNTrivialUnswitching()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp2844 if (isa<CleanupPadInst>(Pad)) { in findUnwindDestinations()

12