| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | WinEHPrepare.cpp | 226 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in getEHPadFromPredecessor() 247 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateCXXStateNumbers() 281 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateCXXStateNumbers() 367 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateSEHStateNumbers() 399 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateSEHStateNumbers() 440 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(EHPad)) in isTopLevelPadForMSVC() 536 else if (const auto *CSI = dyn_cast<CatchSwitchInst>(FirstNonPHI)) in calculateClrEHStateNumbers() 573 const auto *CatchSwitch = cast<CatchSwitchInst>(Pad); in calculateClrEHStateNumbers() 634 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(U)) { in calculateClrEHStateNumbers() 656 if (auto *CSI = dyn_cast<CatchSwitchInst>(UserUnwindPad)) in calculateClrEHStateNumbers() [all …]
|
| H A D | WasmEHPrepare.cpp | 364 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UnwindPad)) in calculateWasmEHInfo()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | InlineFunction.cpp | 237 return cast<CatchSwitchInst>(EHPad)->getParentPad(); in getParentPad() 256 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(CurrentPad)) { in getUnwindDestTokenHelper() 276 if (!isa<CleanupPadInst>(Child) && !isa<CatchSwitchInst>(Child)) in getUnwindDestTokenHelper() 316 } else if (isa<CleanupPadInst>(U) || isa<CatchSwitchInst>(U)) { in getUnwindDestTokenHelper() 501 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UselessPad)) { in getUnwindDestToken() 512 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken() 525 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken() 717 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) { in HandleInlinedEHPad() 743 auto *NewCatchSwitch = CatchSwitchInst::Create( in HandleInlinedEHPad() 1892 if (isa<CatchSwitchInst>(CalledBB.getFirstNonPHI())) in InlineFunction() [all …]
|
| H A D | Local.cpp | 2384 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Terminator)) { in markAliveBlocks() 2414 for (CatchSwitchInst::handler_iterator I = CatchSwitch->handler_begin(), in markAliveBlocks() 2461 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in removeUnwindEdge() 2462 auto *NewCatchSwitch = CatchSwitchInst::Create( in removeUnwindEdge()
|
| H A D | BasicBlockUtils.cpp | 558 else if (auto *CS = dyn_cast<CatchSwitchInst>(TI)) in setUnwindEdgeTo() 650 else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(PadInst)) in ehAwareSplitEdge()
|
| H A D | SCCPSolver.cpp | 295 void visitCatchSwitchInst(CatchSwitchInst &CPI) { in visitCatchSwitchInst()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Instructions.h | 4279 class CatchSwitchInst : public Instruction { 4289 CatchSwitchInst(const CatchSwitchInst &CSI); 4295 CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, 4303 CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, 4317 CatchSwitchInst *cloneImpl() const; 4322 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest, 4330 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest, 4450 struct OperandTraits<CatchSwitchInst> : public HungoffOperandTraits<2> {}; 4452 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(CatchSwitchInst, Value) 4528 CatchSwitchInst *getCatchSwitch() const { [all …]
|
| H A D | InstVisitor.h | 251 RetTy visitCatchSwitchInst(CatchSwitchInst &I) { in visitCatchSwitchInst()
|
| H A D | Instruction.def | 136 HANDLE_TERM_INST (10, CatchSwitch , CatchSwitchInst)
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Instructions.cpp | 1129 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() function in CatchSwitchInst 1141 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() function in CatchSwitchInst 1152 CatchSwitchInst::CatchSwitchInst(const CatchSwitchInst &CSI) in CatchSwitchInst() function in CatchSwitchInst 1163 void CatchSwitchInst::init(Value *ParentPad, BasicBlock *UnwindDest, in init() 1180 void CatchSwitchInst::growOperands(unsigned Size) { in growOperands() 1189 void CatchSwitchInst::addHandler(BasicBlock *Handler) { in addHandler() 1197 void CatchSwitchInst::removeHandler(handler_iterator HI) { in removeHandler() 4830 CatchSwitchInst *CatchSwitchInst::cloneImpl() const { in cloneImpl() 4831 return new CatchSwitchInst(*this); in cloneImpl()
|
| H A D | Core.cpp | 2920 } else if (CatchSwitchInst *CSI = dyn_cast<CatchSwitchInst>(unwrap(Invoke))) { in LLVMGetUnwindDest() 2933 } else if (CatchSwitchInst *CSI = dyn_cast<CatchSwitchInst>(unwrap(Invoke))) { in LLVMSetUnwindDest() 3282 unwrap<CatchSwitchInst>(CatchSwitch)->addHandler(unwrap(Dest)); in LLVMAddHandler() 3286 return unwrap<CatchSwitchInst>(CatchSwitch)->getNumHandlers(); in LLVMGetNumHandlers() 3290 CatchSwitchInst *CSI = unwrap<CatchSwitchInst>(CatchSwitch); in LLVMGetHandlers() 3301 ->setCatchSwitch(unwrap<CatchSwitchInst>(CatchSwitch)); in LLVMSetParentCatchSwitch()
|
| H A D | Verifier.cpp | 551 void visitCatchSwitchInst(CatchSwitchInst &CatchSwitch); 2390 else if (auto *CSI = dyn_cast<CatchSwitchInst>(Terminator)) in getSuccPad() 4003 return cast<CatchSwitchInst>(EHPad)->getParentPad(); in getParentPad() 4056 } else if (auto *CSI = dyn_cast<CatchSwitchInst>(TI)) { in visitEHPadPredecessors() 4078 Check(isa<FuncletPadInst>(FromPad) || isa<CatchSwitchInst>(FromPad), in visitEHPadPredecessors() 4146 Check(isa<CatchSwitchInst>(CPI.getParentPad()), in visitCatchPadInst() 4202 } else if (auto *CSI = dyn_cast<CatchSwitchInst>(U)) { in visitFuncletPadInst() 4330 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FPI.getParentPad())) { in visitFuncletPadInst() 4347 void Verifier::visitCatchSwitchInst(CatchSwitchInst &CatchSwitch) { in visitCatchSwitchInst()
|
| H A D | Instruction.cpp | 690 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(this)) in mayThrow()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/ObjCARC/ |
| H A D | PtrState.cpp | 267 if (isa<CatchSwitchInst>(InsertAfter)) in HandlePotentialUse()
|
| H A D | ObjCARCContract.cpp | 627 while (isa<CatchSwitchInst>(InsertBB->getFirstNonPHI())) { in run()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.h | 51 class CatchSwitchInst; variable 455 void visitCatchSwitch(const CatchSwitchInst &I);
|
| H A D | FunctionLoweringInfo.cpp | 256 if (isa<CatchSwitchInst>(PadInst)) { in set()
|
| /llvm-project-15.0.7/llvm/test/Verifier/ |
| H A D | invalid-eh.ll | 106 ;T7: ; CHECK7: CatchSwitchInst has an invalid parent 117 ;T8: ; CHECK8: CatchSwitchInst handlers must be catchpads 403 ;T23: ; CHECK23: CatchPadInst needs to be directly nested in a CatchSwitchInst.
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroFrame.cpp | 1508 static Instruction *splitBeforeCatchSwitch(CatchSwitchInst *CatchSwitch) { in splitBeforeCatchSwitch() 1646 if (auto *CSI = dyn_cast<CatchSwitchInst>(DefBlock->getTerminator())) in insertSpills() 1955 if (CatchSwitchInst *CS = in rewritePHIs() 1956 dyn_cast<CatchSwitchInst>(Pred->getTerminator())) { in rewritePHIs()
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | SparsePropagation.cpp | 526 CatchSwitchInst *CatchSwitch = in TEST_F()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGException.cpp | 962 llvm::CatchSwitchInst *CatchSwitch = in emitCatchPadBlock() 1006 llvm::CatchSwitchInst *CatchSwitch = in emitWasmCatchPadBlock() 1231 cast<llvm::CatchSwitchInst>(DispatchBlock->getFirstNonPHI()); in ExitCXXTryStmt()
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 1716 CatchSwitchInst *CatchSwitchLongjmp = in handleLongjmpableCallsForWasmSjLj() 1855 if (auto *CSI = dyn_cast<CatchSwitchInst>(BB.getFirstNonPHI())) { in handleLongjmpableCallsForWasmSjLj()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LICM.cpp | 465 return isa<CatchSwitchInst>(Exit->getTerminator()); in runOnLoop() 1358 if (isa<CatchSwitchInst>(BB->getTerminator())) in isNotUsedOrFreeInLoop()
|
| H A D | LoopStrengthReduce.cpp | 3527 if (isa<CatchSwitchInst>(UserInst->getParent()->getTerminator())) in CollectLoopInvariantFixupsAndFormulae() 5175 if (isa<CatchSwitchInst>(Tentative)) in HoistInsertPosition() 5477 !isa<CatchSwitchInst>(BB->getTerminator())) { in RewriteForPHI() 5728 isa<CatchSwitchInst>(FirstNonPHI)) in LSRInstance() 5730 if (isa<CatchSwitchInst>(PredBB->getFirstNonPHI())) in LSRInstance()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | InstrProfiling.cpp | 328 return isa<CatchSwitchInst>(Exit->getTerminator()); in isPromotionPossible()
|