| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | WinEHPrepare.cpp | 360 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in getEHPadFromPredecessor() local 361 if (CatchSwitch->getParentPad() != ParentPad) in getEHPadFromPredecessor() 382 assert(FuncInfo.EHPadStateMap.count(CatchSwitch) == 0 && in calculateCXXStateNumbers() 391 FuncInfo.EHPadStateMap[CatchSwitch] = TryLow; in calculateCXXStateNumbers() 508 assert(CatchSwitch->getNumHandlers() == 1 && in calculateSEHStateNumbers() 521 FuncInfo.EHPadStateMap[CatchSwitch] = TryState; in calculateSEHStateNumbers() 576 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(EHPad)) in isTopLevelPadForMSVC() local 578 CatchSwitch->unwindsToCaller(); in isTopLevelPadForMSVC() 743 assert(CatchSwitch->getNumHandlers()); in calculateClrEHStateNumbers() 744 FuncInfo.EHPadStateMap[CatchSwitch] = CatchState; in calculateClrEHStateNumbers() [all …]
|
| H A D | WasmEHPrepare.cpp | 395 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UnwindPad)) in calculateWasmEHInfo() local 397 EHInfo.setUnwindDest(&BB, *CatchSwitch->handlers().begin()); in calculateWasmEHInfo()
|
| H A D | TargetLoweringBase.cpp | 1850 case CatchSwitch: return 0; in InstructionOpcodeToISD()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | InlineFunction.cpp | 258 if (CatchSwitch->hasUnwindDest()) { in getUnwindDestTokenHelper() 267 for (auto HI = CatchSwitch->handler_begin(), in getUnwindDestTokenHelper() 268 HE = CatchSwitch->handler_end(); in getUnwindDestTokenHelper() 711 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) { in HandleInlinedEHPad() local 712 if (CatchSwitch->unwindsToCaller()) { in HandleInlinedEHPad() 738 CatchSwitch->getParentPad(), UnwindDest, in HandleInlinedEHPad() 739 CatchSwitch->getNumHandlers(), CatchSwitch->getName(), in HandleInlinedEHPad() 740 CatchSwitch); in HandleInlinedEHPad() 741 for (BasicBlock *PadBB : CatchSwitch->handlers()) in HandleInlinedEHPad() 2647 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) { in InlineFunction() local [all …]
|
| H A D | Local.cpp | 3061 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Terminator)) { in markAliveBlocks() local 3091 for (CatchSwitchInst::handler_iterator I = CatchSwitch->handler_begin(), in markAliveBlocks() 3092 E = CatchSwitch->handler_end(); in markAliveBlocks() 3101 CatchSwitch->removeHandler(I); in markAliveBlocks() 3136 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in removeUnwindEdge() local 3138 CatchSwitch->getParentPad(), nullptr, CatchSwitch->getNumHandlers(), in removeUnwindEdge() 3139 CatchSwitch->getName(), CatchSwitch); in removeUnwindEdge() 3140 for (BasicBlock *PadBB : CatchSwitch->handlers()) in removeUnwindEdge() 3144 UnwindDest = CatchSwitch->getUnwindDest(); in removeUnwindEdge()
|
| H A D | BasicBlockUtils.cpp | 883 else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(PadInst)) in ehAwareSplitEdge() local 884 ParentPad = CatchSwitch->getParentPad(); in ehAwareSplitEdge()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGException.cpp | 980 llvm::CatchSwitchInst *CatchSwitch = in emitCatchPadBlock() local 995 CatchSwitch, {TypeInfo.RTTI, CGF.Builder.getInt32(TypeInfo.Flags), in emitCatchPadBlock() 998 CGF.Builder.CreateCatchPad(CatchSwitch, {TypeInfo.RTTI}); in emitCatchPadBlock() 1001 CatchSwitch->addHandler(Handler.Block); in emitCatchPadBlock() 1024 llvm::CatchSwitchInst *CatchSwitch = in emitWasmCatchPadBlock() local 1030 CatchSwitch->addHandler(WasmCatchStartBlock); in emitWasmCatchPadBlock() 1042 auto *CPI = CGF.Builder.CreateCatchPad(CatchSwitch, CatchTypes); in emitWasmCatchPadBlock() 1253 auto *CatchSwitch = in ExitCXXTryStmt() local 1255 WasmCatchStartBlock = CatchSwitch->hasUnwindDest() in ExitCXXTryStmt() 1256 ? CatchSwitch->getSuccessor(1) in ExitCXXTryStmt() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Instruction.h | 311 case Instruction::CatchSwitch: 791 case Instruction::CatchSwitch:
|
| H A D | Instructions.h | 4490 return I->getOpcode() == Instruction::CatchSwitch; 4549 explicit CatchPadInst(Value *CatchSwitch, ArrayRef<Value *> Args, 4552 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values, 4554 explicit CatchPadInst(Value *CatchSwitch, ArrayRef<Value *> Args, 4557 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values, 4561 static CatchPadInst *Create(Value *CatchSwitch, ArrayRef<Value *> Args, 4566 CatchPadInst(CatchSwitch, Args, Values, NameStr, InsertBefore); 4573 CatchPadInst(CatchSwitch, Args, Values, NameStr, InsertAtEnd); 4580 void setCatchSwitch(Value *CatchSwitch) { 4581 assert(CatchSwitch); [all …]
|
| H A D | Instruction.def | 136 HANDLE_TERM_INST (10, CatchSwitch , CatchSwitchInst)
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Verifier.cpp | 4574 &FPI, FirstUser, CatchSwitch); in visitFuncletPadInst() 4582 BasicBlock *BB = CatchSwitch.getParent(); in visitCatchSwitchInst() 4587 &CatchSwitch); in visitCatchSwitchInst() 4591 Check(BB->getFirstNonPHI() == &CatchSwitch, in visitCatchSwitchInst() 4593 &CatchSwitch); in visitCatchSwitchInst() 4595 auto *ParentPad = CatchSwitch.getParentPad(); in visitCatchSwitchInst() 4604 &CatchSwitch); in visitCatchSwitchInst() 4608 SiblingFuncletInfo[&CatchSwitch] = &CatchSwitch; in visitCatchSwitchInst() 4611 Check(CatchSwitch.getNumHandlers() != 0, in visitCatchSwitchInst() 4619 visitEHPadPredecessors(CatchSwitch); in visitCatchSwitchInst() [all …]
|
| H A D | Instruction.cpp | 621 case CatchSwitch: return "catchswitch"; in getOpcodeName() 1010 case Instruction::CatchSwitch: in mayThrow()
|
| H A D | Core.cpp | 3287 void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest) { in LLVMAddHandler() argument 3288 unwrap<CatchSwitchInst>(CatchSwitch)->addHandler(unwrap(Dest)); in LLVMAddHandler() 3291 unsigned LLVMGetNumHandlers(LLVMValueRef CatchSwitch) { in LLVMGetNumHandlers() argument 3292 return unwrap<CatchSwitchInst>(CatchSwitch)->getNumHandlers(); in LLVMGetNumHandlers() 3295 void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef *Handlers) { in LLVMGetHandlers() argument 3296 CatchSwitchInst *CSI = unwrap<CatchSwitchInst>(CatchSwitch); in LLVMGetHandlers() 3305 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch) { in LLVMSetParentCatchSwitch() argument 3307 ->setCatchSwitch(unwrap<CatchSwitchInst>(CatchSwitch)); in LLVMSetParentCatchSwitch()
|
| H A D | AsmWriter.cpp | 4262 } else if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(&I)) { in printInstruction() local 4264 writeOperand(CatchSwitch->getParentPad(), /*PrintType=*/false); in printInstruction() 4267 for (const BasicBlock *PadBB : CatchSwitch->handlers()) { in printInstruction() 4274 if (const BasicBlock *UnwindDest = CatchSwitch->getUnwindDest()) in printInstruction()
|
| H A D | Instructions.cpp | 1087 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0, in CatchSwitchInst() 1098 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0, in CatchSwitchInst() 1107 : Instruction(CSI.getType(), Instruction::CatchSwitch, nullptr, in CatchSwitchInst()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm-c/ |
| H A D | Core.h | 3975 void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest); 3978 unsigned LLVMGetNumHandlers(LLVMValueRef CatchSwitch); 3991 void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef *Handlers); 4017 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch);
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroFrame.cpp | 1691 static Instruction *splitBeforeCatchSwitch(CatchSwitchInst *CatchSwitch) { in splitBeforeCatchSwitch() argument 1692 BasicBlock *CurrentBlock = CatchSwitch->getParent(); in splitBeforeCatchSwitch() 1693 BasicBlock *NewBlock = CurrentBlock->splitBasicBlock(CatchSwitch); in splitBeforeCatchSwitch() 1697 CleanupPadInst::Create(CatchSwitch->getParentPad(), {}, "", CurrentBlock); in splitBeforeCatchSwitch()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Bitcode/Writer/ |
| H A D | BitcodeWriter.cpp | 3087 case Instruction::CatchSwitch: { in writeInstruction() 3089 const auto &CatchSwitch = cast<CatchSwitchInst>(I); in writeInstruction() local 3091 pushValue(CatchSwitch.getParentPad(), InstID, Vals); in writeInstruction() 3093 unsigned NumHandlers = CatchSwitch.getNumHandlers(); in writeInstruction() 3095 for (const BasicBlock *CatchPadBB : CatchSwitch.handlers()) in writeInstruction() 3098 if (CatchSwitch.hasUnwindDest()) in writeInstruction() 3099 Vals.push_back(VE.getValueID(CatchSwitch.getUnwindDest())); in writeInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/AsmParser/ |
| H A D | LLLexer.cpp | 899 INSTKEYWORD(catchswitch, CatchSwitch); in LexIdentifier()
|
| H A D | LLParser.cpp | 7065 auto *CatchSwitch = in parseCatchSwitch() local 7068 CatchSwitch->addHandler(DestBB); in parseCatchSwitch() 7069 Inst = CatchSwitch; in parseCatchSwitch() 7076 Value *CatchSwitch = nullptr; in parseCatchPad() local 7084 if (parseValue(Type::getTokenTy(Context), CatchSwitch, PFS)) in parseCatchPad() 7091 Inst = CatchPadInst::Create(CatchSwitch, Args); in parseCatchPad()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 2686 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) { in findUnwindDestinations() local 2688 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in findUnwindDestinations() 2696 NewEHPadBB = CatchSwitch->getUnwindDest(); in findUnwindDestinations()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 5399 auto *CatchSwitch = in parseFunctionBody() local 5402 CatchSwitch->addHandler(Handler); in parseFunctionBody() 5403 I = CatchSwitch; in parseFunctionBody()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 2025 } else if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) { in findWasmUnwindDestinations() local 2028 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in findWasmUnwindDestinations() 2080 } else if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) { in findUnwindDestinations() local 2082 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in findUnwindDestinations() 2090 NewEHPadBB = CatchSwitch->getUnwindDest(); in findUnwindDestinations()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | Attributor.cpp | 3266 case Instruction::CatchSwitch: in initializeInformationCache()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 6245 case Instruction::CatchSwitch: in isSafeToSpeculativelyExecuteWithOpcode()
|