Home
last modified time | relevance | path

Searched refs:CatchSwitchInst (Results 1 – 25 of 52) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DDemoteRegToStack.cpp108 if (isa<CatchSwitchInst>(InsertPt)) in DemoteRegToStack()
110 if (isa<CatchSwitchInst>(InsertPt)) { in DemoteRegToStack()
166 if (isa<CatchSwitchInst>(InsertPt)) in DemotePHIToStack()
168 if (isa<CatchSwitchInst>(InsertPt)) { in DemotePHIToStack()
H A DInlineFunction.cpp259 return cast<CatchSwitchInst>(EHPad)->getParentPad(); in getParentPad()
278 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(CurrentPad)) { in getUnwindDestTokenHelper()
299 if (!isa<CleanupPadInst>(Child) && !isa<CatchSwitchInst>(Child)) in getUnwindDestTokenHelper()
339 } else if (isa<CleanupPadInst>(U) || isa<CatchSwitchInst>(U)) { in getUnwindDestTokenHelper()
524 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UselessPad)) { in getUnwindDestToken()
534 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
548 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
733 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) { in HandleInlinedEHPad()
759 auto *NewCatchSwitch = CatchSwitchInst::Create( in HandleInlinedEHPad()
2595 if (isa<CatchSwitchInst>(CalledBB.getFirstNonPHIIt())) in InlineFunction()
[all …]
H A DMoveAutoInit.cpp182 while (isa<CatchSwitchInst>(UsersDominator->getFirstNonPHIIt())) { in runMoveAutoInit()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DInstruction.cpp678 CatchSwitchInst *CatchPadInst::getCatchSwitch() const { in getCatchSwitch()
679 return cast<CatchSwitchInst>( in getCatchSwitch()
1042 CatchSwitchInst *CatchSwitchInst::create(Value *ParentPad, BasicBlock *UnwindBB, in create()
1047 llvm::CatchSwitchInst *LLVMCSI = Builder.CreateCatchSwitch( in create()
1052 Value *CatchSwitchInst::getParentPad() const { in getParentPad()
1053 return Ctx.getValue(cast<llvm::CatchSwitchInst>(Val)->getParentPad()); in getParentPad()
1056 void CatchSwitchInst::setParentPad(Value *ParentPad) { in setParentPad()
1058 .emplaceIfTracking<GenericSetter<&CatchSwitchInst::getParentPad, in setParentPad()
1059 &CatchSwitchInst::setParentPad>>(this); in setParentPad()
1060 cast<llvm::CatchSwitchInst>(Val)->setParentPad(ParentPad->Val); in setParentPad()
[all …]
H A DContext.cpp190 auto *LLVMCatchSwitchInst = cast<llvm::CatchSwitchInst>(LLVMV); in getOrCreateValueInternal()
191 It->second = std::unique_ptr<CatchSwitchInst>( in getOrCreateValueInternal()
192 new CatchSwitchInst(LLVMCatchSwitchInst, *this)); in getOrCreateValueInternal()
578 CatchSwitchInst *Context::createCatchSwitchInst(llvm::CatchSwitchInst *I) { in createCatchSwitchInst()
579 auto NewPtr = std::unique_ptr<CatchSwitchInst>(new CatchSwitchInst(I, *this)); in createCatchSwitchInst()
580 return cast<CatchSwitchInst>(registerValue(std::move(NewPtr))); in createCatchSwitchInst()
H A DTracker.cpp224 CatchSwitchAddHandler::CatchSwitchAddHandler(CatchSwitchInst *CSI) in CatchSwitchAddHandler()
230 auto *LLVMCSI = cast<llvm::CatchSwitchInst>(CSI->Val); in revert()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp363 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in getEHPadFromPredecessor()
384 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateCXXStateNumbers()
419 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateCXXStateNumbers()
506 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateSEHStateNumbers()
539 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateSEHStateNumbers()
581 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(EHPad)) in isTopLevelPadForMSVC()
689 else if (const auto *CSI = dyn_cast<CatchSwitchInst>(FirstNonPHI)) in calculateClrEHStateNumbers()
726 const auto *CatchSwitch = cast<CatchSwitchInst>(Pad); in calculateClrEHStateNumbers()
787 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(U)) { in calculateClrEHStateNumbers()
809 if (auto *CSI = dyn_cast<CatchSwitchInst>(UserUnwindPad)) in calculateClrEHStateNumbers()
[all …]
H A DWasmEHPrepare.cpp395 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UnwindPad)) in calculateWasmEHInfo()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DContext.h209 LLVM_ABI CatchSwitchInst *createCatchSwitchInst(llvm::CatchSwitchInst *I);
210 friend CatchSwitchInst; // For createCatchSwitchInst()
H A DTracker.h63 class CatchSwitchInst; variable
333 CatchSwitchInst *CSI;
337 CatchSwitchAddHandler(CatchSwitchInst *CSI);
H A DInstruction.h85 friend class CatchSwitchInst; // For getTopmostLLVMInstruction(). variable
1596 LLVM_ABI CatchSwitchInst *getCatchSwitch() const;
1755 class CatchSwitchInst
1756 : public SingleLLVMInstructionImpl<llvm::CatchSwitchInst> {
1757 CatchSwitchInst(llvm::CatchSwitchInst *CSI, Context &Ctx) in CatchSwitchInst() function
1763 LLVM_ABI static CatchSwitchInst *
1771 return cast<llvm::CatchSwitchInst>(Val)->hasUnwindDest(); in hasUnwindDest()
1774 return cast<llvm::CatchSwitchInst>(Val)->unwindsToCaller(); in unwindsToCaller()
1780 return cast<llvm::CatchSwitchInst>(Val)->getNumHandlers(); in getNumHandlers()
H A DValues.def87 DEF_INSTR(CatchSwitch, OP(CatchSwitch), CatchSwitchInst)
H A DValue.h135 friend class CatchSwitchInst; // For getting `Val`. variable
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DSpillUtils.cpp106 static Instruction *splitBeforeCatchSwitch(CatchSwitchInst *CatchSwitch) { in splitBeforeCatchSwitch()
613 if (auto *CSI = dyn_cast<CatchSwitchInst>(DefBlock->getTerminator())) in getSpillInsertionPt()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp1083 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() function in CatchSwitchInst
1095 CatchSwitchInst::CatchSwitchInst(const CatchSwitchInst &CSI) in CatchSwitchInst() function in CatchSwitchInst
1106 void CatchSwitchInst::init(Value *ParentPad, BasicBlock *UnwindDest, in init()
1123 void CatchSwitchInst::growOperands(unsigned Size) { in growOperands()
1132 void CatchSwitchInst::addHandler(BasicBlock *Handler) { in addHandler()
1140 void CatchSwitchInst::removeHandler(handler_iterator HI) { in removeHandler()
4530 CatchSwitchInst *CatchSwitchInst::cloneImpl() const { in cloneImpl()
4531 return new CatchSwitchInst(*this); in cloneImpl()
H A DCore.cpp3132 } else if (CatchSwitchInst *CSI = dyn_cast<CatchSwitchInst>(unwrap(Invoke))) { in LLVMGetUnwindDest()
3145 } else if (CatchSwitchInst *CSI = dyn_cast<CatchSwitchInst>(unwrap(Invoke))) { in LLVMSetUnwindDest()
3556 unwrap<CatchSwitchInst>(CatchSwitch)->addHandler(unwrap(Dest)); in LLVMAddHandler()
3560 return unwrap<CatchSwitchInst>(CatchSwitch)->getNumHandlers(); in LLVMGetNumHandlers()
3564 CatchSwitchInst *CSI = unwrap<CatchSwitchInst>(CatchSwitch); in LLVMGetHandlers()
3575 ->setCatchSwitch(unwrap<CatchSwitchInst>(CatchSwitch)); in LLVMSetParentCatchSwitch()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstructions.h4102 class CatchSwitchInst : public Instruction {
4114 CatchSwitchInst(const CatchSwitchInst &CSI);
4120 LLVM_ABI CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest,
4134 LLVM_ABI CatchSwitchInst *cloneImpl() const;
4139 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest,
4143 return new CatchSwitchInst(ParentPad, UnwindDest, NumHandlers, NameStr,
4260 struct OperandTraits<CatchSwitchInst> : public HungoffOperandTraits {};
4262 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(CatchSwitchInst, Value)
4314 CatchSwitchInst *getCatchSwitch() const {
4315 return cast<CatchSwitchInst>(Op<-1>());
H A DInstVisitor.h244 RetTy visitCatchSwitchInst(CatchSwitchInst &I) { in visitCatchSwitchInst()
H A DInstruction.def136 HANDLE_TERM_INST (10, CatchSwitch , CatchSwitchInst)
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DPtrState.cpp267 if (isa<CatchSwitchInst>(InsertAfter)) in HandlePotentialUse()
H A DObjCARCContract.cpp674 while (isa<CatchSwitchInst>(InsertBB->getFirstNonPHIIt())) { in run()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DDivRemPairs.cpp291 if (PredBB && !isa<CatchSwitchInst>(PredBB->getTerminator()) && in optimizeDivRem()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h54 class CatchSwitchInst; variable
509 void visitCatchSwitch(const CatchSwitchInst &I);
H A DFunctionLoweringInfo.cpp263 if (isa<CatchSwitchInst>(PadInst)) { in set()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp1602 CatchSwitchInst *CatchSwitchLongjmp = in handleLongjmpableCallsForWasmSjLj()
1743 if (auto *CSI = dyn_cast<CatchSwitchInst>(BB.getFirstNonPHIIt())) { in handleLongjmpableCallsForWasmSjLj()

123