Home
last modified time | relevance | path

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

12

/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
HDWinEHPrepare.cpp225 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in getEHPadFromPredecessor()
243 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateCXXStateNumbers()
267 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateCXXStateNumbers()
345 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateSEHStateNumbers()
377 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateSEHStateNumbers()
418 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(EHPad)) in isTopLevelPadForMSVC()
514 else if (const auto *CSI = dyn_cast<CatchSwitchInst>(FirstNonPHI)) in calculateClrEHStateNumbers()
551 const auto *CatchSwitch = cast<CatchSwitchInst>(Pad); in calculateClrEHStateNumbers()
615 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(U)) { in calculateClrEHStateNumbers()
637 if (auto *CSI = dyn_cast<CatchSwitchInst>(UserUnwindPad)) in calculateClrEHStateNumbers()
[all …]
HDWasmEHPrepare.cpp367 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UnwindPad)) in calculateWasmEHInfo()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
HDInlineFunction.cpp221 return cast<CatchSwitchInst>(EHPad)->getParentPad(); in getParentPad()
240 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(CurrentPad)) { in getUnwindDestTokenHelper()
260 if (!isa<CleanupPadInst>(Child) && !isa<CatchSwitchInst>(Child)) in getUnwindDestTokenHelper()
300 } else if (isa<CleanupPadInst>(U) || isa<CatchSwitchInst>(U)) { in getUnwindDestTokenHelper()
485 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UselessPad)) { in getUnwindDestToken()
496 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
509 if (isa<CatchSwitchInst>(U) || isa<CleanupPadInst>(U)) in getUnwindDestToken()
699 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) { in HandleInlinedEHPad()
725 auto *NewCatchSwitch = CatchSwitchInst::Create( in HandleInlinedEHPad()
1659 if (isa<CatchSwitchInst>(CalledBB.getFirstNonPHI())) in InlineFunction()
[all …]
HDLocal.cpp2141 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Terminator)) { in markAliveBlocks()
2170 for (CatchSwitchInst::handler_iterator I = CatchSwitch->handler_begin(), in markAliveBlocks()
2206 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in removeUnwindEdge()
2207 auto *NewCatchSwitch = CatchSwitchInst::Create( in removeUnwindEdge()
HDCodeExtractor.cpp136 if (const auto *CSI = dyn_cast<CatchSwitchInst>(I)) { in isBlockValidForExtraction()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
HDInstructions.cpp992 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() function in CatchSwitchInst
1004 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() function in CatchSwitchInst
1015 CatchSwitchInst::CatchSwitchInst(const CatchSwitchInst &CSI) in CatchSwitchInst() function in CatchSwitchInst
1026 void CatchSwitchInst::init(Value *ParentPad, BasicBlock *UnwindDest, in init()
1043 void CatchSwitchInst::growOperands(unsigned Size) { in growOperands()
1052 void CatchSwitchInst::addHandler(BasicBlock *Handler) { in addHandler()
1060 void CatchSwitchInst::removeHandler(handler_iterator HI) { in removeHandler()
4306 CatchSwitchInst *CatchSwitchInst::cloneImpl() const { in cloneImpl()
4307 return new CatchSwitchInst(*this); in cloneImpl()
HDCore.cpp2866 } else if (CatchSwitchInst *CSI = dyn_cast<CatchSwitchInst>(unwrap(Invoke))) { in LLVMGetUnwindDest()
2879 } else if (CatchSwitchInst *CSI = dyn_cast<CatchSwitchInst>(unwrap(Invoke))) { in LLVMSetUnwindDest()
3224 unwrap<CatchSwitchInst>(CatchSwitch)->addHandler(unwrap(Dest)); in LLVMAddHandler()
3228 return unwrap<CatchSwitchInst>(CatchSwitch)->getNumHandlers(); in LLVMGetNumHandlers()
3232 CatchSwitchInst *CSI = unwrap<CatchSwitchInst>(CatchSwitch); in LLVMGetHandlers()
3233 for (CatchSwitchInst::handler_iterator I = CSI->handler_begin(), in LLVMGetHandlers()
3244 ->setCatchSwitch(unwrap<CatchSwitchInst>(CatchSwitch)); in LLVMSetParentCatchSwitch()
HDVerifier.cpp495 void visitCatchSwitchInst(CatchSwitchInst &CatchSwitch);
2113 else if (auto *CSI = dyn_cast<CatchSwitchInst>(Terminator)) in getSuccPad()
3613 return cast<CatchSwitchInst>(EHPad)->getParentPad(); in getParentPad()
3666 } else if (auto *CSI = dyn_cast<CatchSwitchInst>(TI)) { in visitEHPadPredecessors()
3752 Assert(isa<CatchSwitchInst>(CPI.getParentPad()), in visitCatchPadInst()
3809 } else if (auto *CSI = dyn_cast<CatchSwitchInst>(U)) { in visitFuncletPadInst()
3936 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FPI.getParentPad())) { in visitFuncletPadInst()
3953 void Verifier::visitCatchSwitchInst(CatchSwitchInst &CatchSwitch) { in visitCatchSwitchInst()
HDInstruction.cpp598 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(this)) in mayThrow()
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/
HDInstructions.h4221 class CatchSwitchInst : public Instruction {
4229 CatchSwitchInst(const CatchSwitchInst &CSI);
4235 CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest,
4243 CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest,
4257 CatchSwitchInst *cloneImpl() const;
4260 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest,
4264 return new CatchSwitchInst(ParentPad, UnwindDest, NumHandlers, NameStr,
4268 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest,
4271 return new CatchSwitchInst(ParentPad, UnwindDest, NumHandlers, NameStr,
4388 struct OperandTraits<CatchSwitchInst> : public HungoffOperandTraits<2> {};
[all …]
HDInstVisitor.h259 RetTy visitCatchSwitchInst(CatchSwitchInst &I) { in visitCatchSwitchInst()
HDInstruction.def136 HANDLE_TERM_INST (10, CatchSwitch , CatchSwitchInst)
HDIRBuilder.h1115 CatchSwitchInst *CreateCatchSwitch(Value *ParentPad, BasicBlock *UnwindBB,
1118 return Insert(CatchSwitchInst::Create(ParentPad, UnwindBB, NumHandlers),
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
HDCoroFrame.cpp552 static Instruction *splitBeforeCatchSwitch(CatchSwitchInst *CatchSwitch) { in splitBeforeCatchSwitch()
692 if (auto *CSI = dyn_cast<CatchSwitchInst>(DefBlock->getTerminator())) in insertSpills()
799 else if (auto *CS = dyn_cast<CatchSwitchInst>(TI)) in setUnwindEdgeTo()
857 else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(PadInst)) in ehAwareSplitEdge()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
HDPtrState.cpp270 if (isa<CatchSwitchInst>(InsertAfter)) in HandlePotentialUse()
HDObjCARCContract.cpp661 while (isa<CatchSwitchInst>(InsertBB->getFirstNonPHI())) { in runOnFunction()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
HDSelectionDAGBuilder.h54 class CatchSwitchInst; variable
657 void visitCatchSwitch(const CatchSwitchInst &I);
HDFunctionLoweringInfo.cpp251 if (isa<CatchSwitchInst>(PadInst)) { in set()
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
HDCGException.cpp911 llvm::CatchSwitchInst *CatchSwitch = in emitCatchPadBlock()
955 llvm::CatchSwitchInst *CatchSwitch = in emitWasmCatchPadBlock()
1180 cast<llvm::CatchSwitchInst>(DispatchBlock->getFirstNonPHI()); in ExitCXXTryStmt()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
HDLICM.cpp414 return isa<CatchSwitchInst>(Exit->getTerminator()); in runOnLoop()
1343 if (isa<CatchSwitchInst>(BB->getTerminator())) in isNotUsedOrFreeInLoop()
HDLoopStrengthReduce.cpp3436 if (isa<CatchSwitchInst>(UserInst->getParent()->getTerminator())) in CollectLoopInvariantFixupsAndFormulae()
5016 if (isa<CatchSwitchInst>(Tentative)) in HoistInsertPosition()
5321 !isa<CatchSwitchInst>(BB->getTerminator())) { in RewriteForPHI()
5526 isa<CatchSwitchInst>(FirstNonPHI)) in LSRInstance()
5528 if (isa<CatchSwitchInst>(PredBB->getFirstNonPHI())) in LSRInstance()
HDSCCP.cpp625 void visitCatchSwitchInst(CatchSwitchInst &CPI) { in visitCatchSwitchInst()
HDReassociate.cpp887 if (isa<CatchSwitchInst>(InsertPt)) in NegateValue()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
HDInstrProfiling.cpp322 return isa<CatchSwitchInst>(Exit->getTerminator()); in getMaxNumOfPromotionsInLoop()
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm-c/
HDCore.h1579 macro(CatchSwitchInst) \

12