| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | WinEHPrepare.cpp | 226 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in getEHPadFromPredecessor() local 227 if (CatchSwitch->getParentPad() != ParentPad) in getEHPadFromPredecessor() 248 assert(FuncInfo.EHPadStateMap.count(CatchSwitch) == 0 && in calculateCXXStateNumbers() 257 FuncInfo.EHPadStateMap[CatchSwitch] = TryLow; in calculateCXXStateNumbers() 373 assert(CatchSwitch->getNumHandlers() == 1 && in calculateSEHStateNumbers() 386 FuncInfo.EHPadStateMap[CatchSwitch] = TryState; in calculateSEHStateNumbers() 440 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(EHPad)) in isTopLevelPadForMSVC() local 442 CatchSwitch->unwindsToCaller(); in isTopLevelPadForMSVC() 596 assert(CatchSwitch->getNumHandlers()); in calculateClrEHStateNumbers() 597 FuncInfo.EHPadStateMap[CatchSwitch] = CatchState; in calculateClrEHStateNumbers() [all …]
|
| H A D | WasmEHPrepare.cpp | 358 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UnwindPad)) in calculateWasmEHInfo() local 360 EHInfo.setUnwindDest(&BB, *CatchSwitch->handlers().begin()); in calculateWasmEHInfo()
|
| H A D | TargetLoweringBase.cpp | 1778 case CatchSwitch: return 0; in InstructionOpcodeToISD()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | InlineFunction.cpp | 257 if (CatchSwitch->hasUnwindDest()) { in getUnwindDestTokenHelper() 266 for (auto HI = CatchSwitch->handler_begin(), in getUnwindDestTokenHelper() 267 HE = CatchSwitch->handler_end(); in getUnwindDestTokenHelper() 722 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) { in HandleInlinedEHPad() local 723 if (CatchSwitch->unwindsToCaller()) { in HandleInlinedEHPad() 749 CatchSwitch->getParentPad(), UnwindDest, in HandleInlinedEHPad() 750 CatchSwitch->getNumHandlers(), CatchSwitch->getName(), in HandleInlinedEHPad() 751 CatchSwitch); in HandleInlinedEHPad() 752 for (BasicBlock *PadBB : CatchSwitch->handlers()) in HandleInlinedEHPad() 2336 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) { in InlineFunction() local [all …]
|
| H A D | Local.cpp | 2349 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Terminator)) { in markAliveBlocks() local 2379 for (CatchSwitchInst::handler_iterator I = CatchSwitch->handler_begin(), in markAliveBlocks() 2380 E = CatchSwitch->handler_end(); in markAliveBlocks() 2389 CatchSwitch->removeHandler(I); in markAliveBlocks() 2426 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in removeUnwindEdge() local 2428 CatchSwitch->getParentPad(), nullptr, CatchSwitch->getNumHandlers(), in removeUnwindEdge() 2429 CatchSwitch->getName(), CatchSwitch); in removeUnwindEdge() 2430 for (BasicBlock *PadBB : CatchSwitch->handlers()) in removeUnwindEdge() 2434 UnwindDest = CatchSwitch->getUnwindDest(); in removeUnwindEdge()
|
| H A D | BasicBlockUtils.cpp | 626 else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(PadInst)) in ehAwareSplitEdge() local 627 ParentPad = CatchSwitch->getParentPad(); in ehAwareSplitEdge()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGException.cpp | 956 llvm::CatchSwitchInst *CatchSwitch = in emitCatchPadBlock() local 971 CatchSwitch, {TypeInfo.RTTI, CGF.Builder.getInt32(TypeInfo.Flags), in emitCatchPadBlock() 974 CGF.Builder.CreateCatchPad(CatchSwitch, {TypeInfo.RTTI}); in emitCatchPadBlock() 977 CatchSwitch->addHandler(Handler.Block); in emitCatchPadBlock() 1000 llvm::CatchSwitchInst *CatchSwitch = in emitWasmCatchPadBlock() local 1006 CatchSwitch->addHandler(WasmCatchStartBlock); in emitWasmCatchPadBlock() 1018 auto *CPI = CGF.Builder.CreateCatchPad(CatchSwitch, CatchTypes); in emitWasmCatchPadBlock() 1224 auto *CatchSwitch = in ExitCXXTryStmt() local 1226 WasmCatchStartBlock = CatchSwitch->hasUnwindDest() in ExitCXXTryStmt() 1227 ? CatchSwitch->getSuccessor(1) in ExitCXXTryStmt() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Instruction.h | 237 case Instruction::CatchSwitch: 665 case Instruction::CatchSwitch:
|
| H A D | Instructions.h | 4383 return I->getOpcode() == Instruction::CatchSwitch; 4441 explicit CatchPadInst(Value *CatchSwitch, ArrayRef<Value *> Args, 4444 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values, 4446 explicit CatchPadInst(Value *CatchSwitch, ArrayRef<Value *> Args, 4449 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values, 4453 static CatchPadInst *Create(Value *CatchSwitch, ArrayRef<Value *> Args, 4458 CatchPadInst(CatchSwitch, Args, Values, NameStr, InsertBefore); 4465 CatchPadInst(CatchSwitch, Args, Values, NameStr, InsertAtEnd); 4472 void setCatchSwitch(Value *CatchSwitch) { 4473 assert(CatchSwitch); [all …]
|
| H A D | Instruction.def | 136 HANDLE_TERM_INST (10, CatchSwitch , CatchSwitchInst)
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Instruction.cpp | 351 case CatchSwitch: return "catchswitch"; in getOpcodeName() 678 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(this)) in mayThrow() local 679 return CatchSwitch->unwindsToCaller(); in mayThrow()
|
| H A D | Verifier.cpp | 4195 &FPI, FirstUser, CatchSwitch); in visitFuncletPadInst() 4203 BasicBlock *BB = CatchSwitch.getParent(); in visitCatchSwitchInst() 4208 &CatchSwitch); in visitCatchSwitchInst() 4212 Assert(BB->getFirstNonPHI() == &CatchSwitch, in visitCatchSwitchInst() 4214 &CatchSwitch); in visitCatchSwitchInst() 4216 auto *ParentPad = CatchSwitch.getParentPad(); in visitCatchSwitchInst() 4225 &CatchSwitch); in visitCatchSwitchInst() 4229 SiblingFuncletInfo[&CatchSwitch] = &CatchSwitch; in visitCatchSwitchInst() 4232 Assert(CatchSwitch.getNumHandlers() != 0, in visitCatchSwitchInst() 4240 visitEHPadPredecessors(CatchSwitch); in visitCatchSwitchInst() [all …]
|
| H A D | Core.cpp | 3295 void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest) { in LLVMAddHandler() argument 3296 unwrap<CatchSwitchInst>(CatchSwitch)->addHandler(unwrap(Dest)); in LLVMAddHandler() 3299 unsigned LLVMGetNumHandlers(LLVMValueRef CatchSwitch) { in LLVMGetNumHandlers() argument 3300 return unwrap<CatchSwitchInst>(CatchSwitch)->getNumHandlers(); in LLVMGetNumHandlers() 3303 void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef *Handlers) { in LLVMGetHandlers() argument 3304 CatchSwitchInst *CSI = unwrap<CatchSwitchInst>(CatchSwitch); in LLVMGetHandlers() 3313 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch) { in LLVMSetParentCatchSwitch() argument 3315 ->setCatchSwitch(unwrap<CatchSwitchInst>(CatchSwitch)); in LLVMSetParentCatchSwitch()
|
| H A D | AsmWriter.cpp | 4074 } else if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(&I)) { in printInstruction() local 4076 writeOperand(CatchSwitch->getParentPad(), /*PrintType=*/false); in printInstruction() 4079 for (const BasicBlock *PadBB : CatchSwitch->handlers()) { in printInstruction() 4086 if (const BasicBlock *UnwindDest = CatchSwitch->getUnwindDest()) in printInstruction()
|
| H A D | Instructions.cpp | 1106 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0, in CatchSwitchInst() 1117 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0, in CatchSwitchInst() 1126 : Instruction(CSI.getType(), Instruction::CatchSwitch, nullptr, in CatchSwitchInst()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm-c/ |
| H A D | Core.h | 3712 void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest); 3715 unsigned LLVMGetNumHandlers(LLVMValueRef CatchSwitch); 3728 void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef *Handlers); 3754 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch);
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroFrame.cpp | 1472 static Instruction *splitBeforeCatchSwitch(CatchSwitchInst *CatchSwitch) { in splitBeforeCatchSwitch() argument 1473 BasicBlock *CurrentBlock = CatchSwitch->getParent(); in splitBeforeCatchSwitch() 1474 BasicBlock *NewBlock = CurrentBlock->splitBasicBlock(CatchSwitch); in splitBeforeCatchSwitch() 1478 CleanupPadInst::Create(CatchSwitch->getParentPad(), {}, "", CurrentBlock); in splitBeforeCatchSwitch()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Writer/ |
| H A D | BitcodeWriter.cpp | 2948 case Instruction::CatchSwitch: { in writeInstruction() 2950 const auto &CatchSwitch = cast<CatchSwitchInst>(I); in writeInstruction() local 2952 pushValue(CatchSwitch.getParentPad(), InstID, Vals); in writeInstruction() 2954 unsigned NumHandlers = CatchSwitch.getNumHandlers(); in writeInstruction() 2956 for (const BasicBlock *CatchPadBB : CatchSwitch.handlers()) in writeInstruction() 2959 if (CatchSwitch.hasUnwindDest()) in writeInstruction() 2960 Vals.push_back(VE.getValueID(CatchSwitch.getUnwindDest())); in writeInstruction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/AsmParser/ |
| H A D | LLLexer.cpp | 917 INSTKEYWORD(catchswitch, CatchSwitch); in LexIdentifier()
|
| H A D | LLParser.cpp | 6470 auto *CatchSwitch = in parseCatchSwitch() local 6473 CatchSwitch->addHandler(DestBB); in parseCatchSwitch() 6474 Inst = CatchSwitch; in parseCatchSwitch() 6481 Value *CatchSwitch = nullptr; in parseCatchPad() local 6489 if (parseValue(Type::getTokenTy(Context), CatchSwitch, PFS)) in parseCatchPad() 6496 Inst = CatchPadInst::Create(CatchSwitch, Args); in parseCatchPad()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 2426 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) { in findUnwindDestinations() local 2428 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in findUnwindDestinations() 2436 NewEHPadBB = CatchSwitch->getUnwindDest(); in findUnwindDestinations()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 4484 auto *CatchSwitch = in parseFunctionBody() local 4487 CatchSwitch->addHandler(Handler); in parseFunctionBody() 4488 I = CatchSwitch; in parseFunctionBody()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 1769 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) { in findWasmUnwindDestinations() local 1772 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in findWasmUnwindDestinations() 1824 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) { in findUnwindDestinations() local 1826 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in findUnwindDestinations() 1834 NewEHPadBB = CatchSwitch->getUnwindDest(); in findUnwindDestinations()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | Attributor.cpp | 2364 case Instruction::CatchSwitch: in initializeInformationCache()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 4659 case Instruction::CatchSwitch: in isSafeToSpeculativelyExecute()
|