Searched refs:CatchSwitch (Results 1 - 22 of 22) sorted by relevance

/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp225 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) {
226 if (CatchSwitch->getParentPad() != ParentPad)
243 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) {
244 assert(FuncInfo.EHPadStateMap.count(CatchSwitch) == 0 &&
248 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) {
253 FuncInfo.EHPadStateMap[CatchSwitch] = TryLow;
256 CatchSwitch->getParentPad())))
269 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest())
277 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest())
345 if (auto *CatchSwitch
551 const auto *CatchSwitch = cast<CatchSwitchInst>(Pad); local
[all...]
H A DWasmEHPrepare.cpp367 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UnwindPad))
369 EHInfo.setEHPadUnwindDest(&BB, *CatchSwitch->handlers().begin());
H A DTargetLoweringBase.cpp1592 case CatchSwitch: return 0;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp240 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(CurrentPad)) {
241 if (CatchSwitch->hasUnwindDest()) {
242 UnwindDestToken = CatchSwitch->getUnwindDest()->getFirstNonPHI();
250 for (auto HI = CatchSwitch->handler_begin(),
251 HE = CatchSwitch->handler_end();
485 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UselessPad)) {
486 assert(CatchSwitch->getUnwindDest() == nullptr && "Expected useless pad");
487 for (BasicBlock *HandlerBlock : CatchSwitch->handlers()) {
699 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) {
700 if (CatchSwitch
[all...]
H A DLocal.cpp2141 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Terminator)) {
2170 for (CatchSwitchInst::handler_iterator I = CatchSwitch->handler_begin(),
2171 E = CatchSwitch->handler_end();
2176 CatchSwitch->removeHandler(I);
2206 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) {
2208 CatchSwitch->getParentPad(), nullptr, CatchSwitch->getNumHandlers(),
2209 CatchSwitch->getName(), CatchSwitch);
2210 for (BasicBlock *PadBB : CatchSwitch
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp552 static Instruction *splitBeforeCatchSwitch(CatchSwitchInst *CatchSwitch) { argument
553 BasicBlock *CurrentBlock = CatchSwitch->getParent();
554 BasicBlock *NewBlock = CurrentBlock->splitBasicBlock(CatchSwitch);
558 CleanupPadInst::Create(CatchSwitch->getParentPad(), {}, "", CurrentBlock);
857 else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(PadInst))
858 ParentPad = CatchSwitch->getParentPad();
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.h197 case Instruction::CatchSwitch:
595 case Instruction::CatchSwitch:
H A DInstructions.h4278 // Accessor Methods for CatchSwitch stmt
4282 // Accessor Methods for CatchSwitch stmt
4380 return I->getOpcode() == Instruction::CatchSwitch;
4438 explicit CatchPadInst(Value *CatchSwitch, ArrayRef<Value *> Args,
4441 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values,
4443 explicit CatchPadInst(Value *CatchSwitch, ArrayRef<Value *> Args,
4446 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values,
4450 static CatchPadInst *Create(Value *CatchSwitch, ArrayRef<Value *> Args,
4455 CatchPadInst(CatchSwitch, Args, Values, NameStr, InsertBefore);
4458 static CatchPadInst *Create(Value *CatchSwitch, ArrayRe
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGException.cpp911 llvm::CatchSwitchInst *CatchSwitch = local
926 CatchSwitch, {TypeInfo.RTTI, CGF.Builder.getInt32(TypeInfo.Flags),
929 CGF.Builder.CreateCatchPad(CatchSwitch, {TypeInfo.RTTI});
932 CatchSwitch->addHandler(Handler.Block);
955 llvm::CatchSwitchInst *CatchSwitch = local
961 CatchSwitch->addHandler(WasmCatchStartBlock);
973 auto *CPI = CGF.Builder.CreateCatchPad(CatchSwitch, CatchTypes);
1179 auto *CatchSwitch = local
1181 WasmCatchStartBlock = CatchSwitch->hasUnwindDest()
1182 ? CatchSwitch
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp495 void visitCatchSwitchInst(CatchSwitchInst &CatchSwitch);
3936 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FPI.getParentPad())) {
3937 BasicBlock *SwitchUnwindDest = CatchSwitch->getUnwindDest();
3946 &FPI, FirstUser, CatchSwitch);
3953 void Verifier::visitCatchSwitchInst(CatchSwitchInst &CatchSwitch) { argument
3954 BasicBlock *BB = CatchSwitch.getParent();
3959 &CatchSwitch);
3963 Assert(BB->getFirstNonPHI() == &CatchSwitch,
3965 &CatchSwitch);
3967 auto *ParentPad = CatchSwitch
[all...]
H A DInstruction.cpp305 case CatchSwitch: return "catchswitch";
598 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(this))
599 return CatchSwitch->unwindsToCaller();
H A DCore.cpp3223 void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest) {
3224 unwrap<CatchSwitchInst>(CatchSwitch)->addHandler(unwrap(Dest));
3227 unsigned LLVMGetNumHandlers(LLVMValueRef CatchSwitch) {
3228 return unwrap<CatchSwitchInst>(CatchSwitch)->getNumHandlers();
3231 void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef *Handlers) {
3232 CatchSwitchInst *CSI = unwrap<CatchSwitchInst>(CatchSwitch);
3242 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch) {
3244 ->setCatchSwitch(unwrap<CatchSwitchInst>(CatchSwitch));
H A DAsmWriter.cpp3804 } else if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(&I)) {
3806 writeOperand(CatchSwitch->getParentPad(), /*PrintType=*/false);
3809 for (const BasicBlock *PadBB : CatchSwitch->handlers()) {
3816 if (const BasicBlock *UnwindDest = CatchSwitch->getUnwindDest())
H A DInstructions.cpp996 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0,
1007 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0,
1016 : Instruction(CSI.getType(), Instruction::CatchSwitch, nullptr,
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h3644 void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest);
3647 unsigned LLVMGetNumHandlers(LLVMValueRef CatchSwitch);
3657 * @param CatchSwitch The catchswitch instruction to operate on.
3660 void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef *Handlers);
3686 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLLexer.cpp894 INSTKEYWORD(catchswitch, CatchSwitch);
H A DLLParser.cpp6273 auto *CatchSwitch =
6276 CatchSwitch->addHandler(DestBB);
6277 Inst = CatchSwitch;
6284 Value *CatchSwitch = nullptr;
6292 if (ParseValue(Type::getTokenTy(Context), CatchSwitch, PFS))
6299 Inst = CatchPadInst::Create(CatchSwitch, Args);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp2818 case Instruction::CatchSwitch: {
2820 const auto &CatchSwitch = cast<CatchSwitchInst>(I); local
2822 pushValue(CatchSwitch.getParentPad(), InstID, Vals);
2824 unsigned NumHandlers = CatchSwitch.getNumHandlers();
2826 for (const BasicBlock *CatchPadBB : CatchSwitch.handlers())
2829 if (CatchSwitch.hasUnwindDest())
2830 Vals.push_back(VE.getValueID(CatchSwitch.getUnwindDest()));
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp4132 case Instruction::CatchSwitch:
4429 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I))
4430 return !CatchSwitch->unwindsToCaller();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp4321 auto *CatchSwitch =
4324 CatchSwitch->addHandler(Handler);
4325 I = CatchSwitch;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp1692 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) {
1695 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) {
1747 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) {
1749 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) {
1757 NewEHPadBB = CatchSwitch->getUnwindDest();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributor.cpp874 (unsigned)Instruction::CatchSwitch, (unsigned)Instruction::Resume};
6454 case Instruction::CatchSwitch:

Completed in 641 milliseconds