Home
last modified time | relevance | path

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

12

/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.cpp241 return cast<CatchSwitchInst>(EHPad)->getParentPad(); in getParentPad()
260 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(CurrentPad)) { in getUnwindDestTokenHelper()
280 if (!isa<CleanupPadInst>(Child) && !isa<CatchSwitchInst>(Child)) in getUnwindDestTokenHelper()
320 } else if (isa<CleanupPadInst>(U) || isa<CatchSwitchInst>(U)) { in getUnwindDestTokenHelper()
505 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UselessPad)) { in getUnwindDestToken()
516 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
529 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
714 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) { in HandleInlinedEHPad()
740 auto *NewCatchSwitch = CatchSwitchInst::Create( in HandleInlinedEHPad()
2269 if (isa<CatchSwitchInst>(CalledBB.getFirstNonPHI())) in InlineFunction()
[all …]
H A DMoveAutoInit.cpp182 // CatchSwitchInst blocks can only have one instruction, so they are not in runMoveAutoInit()
184 while (isa<CatchSwitchInst>(UsersDominator->getFirstNonPHI())) { in runMoveAutoInit()
H A DLocal.cpp3101 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Terminator)) { in markAliveBlocks()
3131 for (CatchSwitchInst::handler_iterator I = CatchSwitch->handler_begin(), in markAliveBlocks()
3176 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in removeUnwindEdge()
3177 auto *NewCatchSwitch = CatchSwitchInst::Create( in removeUnwindEdge()
H A DBasicBlockUtils.cpp802 else if (auto *CS = dyn_cast<CatchSwitchInst>(TI)) in setUnwindEdgeTo()
894 else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(PadInst)) in ehAwareSplitEdge()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp361 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in getEHPadFromPredecessor()
382 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateCXXStateNumbers()
417 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateCXXStateNumbers()
503 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateSEHStateNumbers()
536 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateSEHStateNumbers()
577 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(EHPad)) in isTopLevelPadForMSVC()
685 else if (const auto *CSI = dyn_cast<CatchSwitchInst>(FirstNonPHI)) in calculateClrEHStateNumbers()
722 const auto *CatchSwitch = cast<CatchSwitchInst>(Pad); in calculateClrEHStateNumbers()
783 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(U)) { in calculateClrEHStateNumbers()
805 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/lib/IR/
H A DInstructions.cpp1017 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() function in CatchSwitchInst
1029 CatchSwitchInst::CatchSwitchInst(const CatchSwitchInst &CSI) in CatchSwitchInst() function in CatchSwitchInst
1040 void CatchSwitchInst::init(Value *ParentPad, BasicBlock *UnwindDest, in init()
1057 void CatchSwitchInst::growOperands(unsigned Size) { in growOperands()
1066 void CatchSwitchInst::addHandler(BasicBlock *Handler) { in addHandler()
1074 void CatchSwitchInst::removeHandler(handler_iterator HI) { in removeHandler()
4384 CatchSwitchInst *CatchSwitchInst::cloneImpl() const { in cloneImpl()
4385 return new CatchSwitchInst(*this); in cloneImpl()
H A DCore.cpp3081 } else if (CatchSwitchInst *CSI = dyn_cast<CatchSwitchInst>(unwrap(Invoke))) { in LLVMGetUnwindDest()
3094 } else if (CatchSwitchInst *CSI = dyn_cast<CatchSwitchInst>(unwrap(Invoke))) { in LLVMSetUnwindDest()
3501 unwrap<CatchSwitchInst>(CatchSwitch)->addHandler(unwrap(Dest)); in LLVMAddHandler()
3505 return unwrap<CatchSwitchInst>(CatchSwitch)->getNumHandlers(); in LLVMGetNumHandlers()
3509 CatchSwitchInst *CSI = unwrap<CatchSwitchInst>(CatchSwitch); in LLVMGetHandlers()
3520 ->setCatchSwitch(unwrap<CatchSwitchInst>(CatchSwitch)); in LLVMSetParentCatchSwitch()
H A DVerifier.cpp606 void visitCatchSwitchInst(CatchSwitchInst &CatchSwitch);
2686 else if (auto *CSI = dyn_cast<CatchSwitchInst>(Terminator)) in getSuccPad()
4372 return cast<CatchSwitchInst>(EHPad)->getParentPad(); in getParentPad()
4430 } else if (auto *CSI = dyn_cast<CatchSwitchInst>(TI)) { in visitEHPadPredecessors()
4452 Check(isa<FuncletPadInst>(FromPad) || isa<CatchSwitchInst>(FromPad), in visitEHPadPredecessors()
4520 Check(isa<CatchSwitchInst>(CPI.getParentPad()), in visitCatchPadInst()
4576 } else if (auto *CSI = dyn_cast<CatchSwitchInst>(U)) { in visitFuncletPadInst()
4704 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FPI.getParentPad())) { in visitFuncletPadInst()
4721 void Verifier::visitCatchSwitchInst(CatchSwitchInst &CatchSwitch) { in visitCatchSwitchInst()
H A DInstruction.cpp1103 return cast<CatchSwitchInst>(this)->unwindsToCaller(); in mayThrow()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstructions.h3952 class CatchSwitchInst : public Instruction {
3962 CatchSwitchInst(const CatchSwitchInst &CSI);
3968 CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest,
3982 CatchSwitchInst *cloneImpl() const;
3987 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest,
3991 return new CatchSwitchInst(ParentPad, UnwindDest, NumHandlers, NameStr,
4108 struct OperandTraits<CatchSwitchInst> : public HungoffOperandTraits<2> {};
4110 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(CatchSwitchInst, Value)
4163 CatchSwitchInst *getCatchSwitch() const {
4164 return cast<CatchSwitchInst>(Op<-1>());
H A DInstVisitor.h250 RetTy visitCatchSwitchInst(CatchSwitchInst &I) { in visitCatchSwitchInst()
H A DInstruction.def136 HANDLE_TERM_INST (10, CatchSwitch , CatchSwitchInst)
H A DIRBuilder.h1246 CatchSwitchInst *CreateCatchSwitch(Value *ParentPad, BasicBlock *UnwindBB,
1249 return Insert(CatchSwitchInst::Create(ParentPad, UnwindBB, NumHandlers),
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DPtrState.cpp267 if (isa<CatchSwitchInst>(InsertAfter)) in HandlePotentialUse()
H A DObjCARCContract.cpp628 while (isa<CatchSwitchInst>(InsertBB->getFirstNonPHI())) { in run()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DDivRemPairs.cpp291 if (PredBB && !isa<CatchSwitchInst>(PredBB->getTerminator()) && in optimizeDivRem()
H A DLICM.cpp489 return isa<CatchSwitchInst>(Exit->getTerminator()); in runOnLoop()
1395 if (isa<CatchSwitchInst>(BB->getTerminator())) in isNotUsedOrFoldableInLoop()
H A DLoopStrengthReduce.cpp3784 if (isa<CatchSwitchInst>(UserInst->getParent()->getTerminator())) in CollectLoopInvariantFixupsAndFormulae()
5575 if (isa<CatchSwitchInst>(Tentative)) in HoistInsertPosition()
5890 !isa<CatchSwitchInst>(BB->getTerminator())) { in RewriteForPHI()
6184 isa<CatchSwitchInst>(FirstNonPHI)) in LSRInstance()
6186 if (isa<CatchSwitchInst>(PredBB->getFirstNonPHI())) in LSRInstance()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h54 class CatchSwitchInst; variable
510 void visitCatchSwitch(const CatchSwitchInst &I);
H A DFunctionLoweringInfo.cpp253 if (isa<CatchSwitchInst>(PadInst)) { in set()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp1721 static Instruction *splitBeforeCatchSwitch(CatchSwitchInst *CatchSwitch) { in splitBeforeCatchSwitch()
1849 if (auto *CSI = dyn_cast<CatchSwitchInst>(DefBlock->getTerminator())) in insertSpills()
2238 if (CatchSwitchInst *CS = in rewritePHIs()
2239 dyn_cast<CatchSwitchInst>(Pred->getTerminator())) { in rewritePHIs()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp1597 CatchSwitchInst *CatchSwitchLongjmp = in handleLongjmpableCallsForWasmSjLj()
1732 if (auto *CSI = dyn_cast<CatchSwitchInst>(BB.getFirstNonPHI())) { in handleLongjmpableCallsForWasmSjLj()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGException.cpp980 llvm::CatchSwitchInst *CatchSwitch = in emitCatchPadBlock()
1024 llvm::CatchSwitchInst *CatchSwitch = in emitWasmCatchPadBlock()
1255 cast<llvm::CatchSwitchInst>(DispatchBlock->getFirstNonPHI()); in ExitCXXTryStmt()

12