| /openbsd-src/gnu/llvm/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() 247 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateCXXStateNumbers() local 248 assert(FuncInfo.EHPadStateMap.count(CatchSwitch) == 0 && in calculateCXXStateNumbers() 252 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in calculateCXXStateNumbers() 257 FuncInfo.EHPadStateMap[CatchSwitch] = TryLow; in calculateCXXStateNumbers() 260 CatchSwitch->getParentPad()))) in calculateCXXStateNumbers() 283 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers() 291 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers() 367 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateSEHStateNumbers() local [all …]
|
| H A D | WasmEHPrepare.cpp | 363 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UnwindPad)) in calculateWasmEHInfo() local 365 EHInfo.setUnwindDest(&BB, *CatchSwitch->handlers().begin()); in calculateWasmEHInfo()
|
| H A D | TargetLoweringBase.cpp | 1805 case CatchSwitch: return 0; in InstructionOpcodeToISD()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | InlineFunction.cpp | 259 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(CurrentPad)) { in getUnwindDestTokenHelper() local 260 if (CatchSwitch->hasUnwindDest()) { in getUnwindDestTokenHelper() 261 UnwindDestToken = CatchSwitch->getUnwindDest()->getFirstNonPHI(); in getUnwindDestTokenHelper() 269 for (auto HI = CatchSwitch->handler_begin(), in getUnwindDestTokenHelper() 270 HE = CatchSwitch->handler_end(); in getUnwindDestTokenHelper() 504 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UselessPad)) { in getUnwindDestToken() local 505 assert(CatchSwitch->getUnwindDest() == nullptr && "Expected useless pad"); in getUnwindDestToken() 506 for (BasicBlock *HandlerBlock : CatchSwitch->handlers()) { in getUnwindDestToken() 713 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) { in HandleInlinedEHPad() local 714 if (CatchSwitch->unwindsToCaller()) { in HandleInlinedEHPad() [all …]
|
| H A D | Local.cpp | 2492 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Terminator)) { in markAliveBlocks() local 2522 for (CatchSwitchInst::handler_iterator I = CatchSwitch->handler_begin(), in markAliveBlocks() 2523 E = CatchSwitch->handler_end(); in markAliveBlocks() 2532 CatchSwitch->removeHandler(I); in markAliveBlocks() 2567 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in removeUnwindEdge() local 2569 CatchSwitch->getParentPad(), nullptr, CatchSwitch->getNumHandlers(), in removeUnwindEdge() 2570 CatchSwitch->getName(), CatchSwitch); in removeUnwindEdge() 2571 for (BasicBlock *PadBB : CatchSwitch->handlers()) in removeUnwindEdge() 2575 UnwindDest = CatchSwitch->getUnwindDest(); in removeUnwindEdge()
|
| H A D | BasicBlockUtils.cpp | 748 else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(PadInst)) in ehAwareSplitEdge() local 749 ParentPad = CatchSwitch->getParentPad(); in ehAwareSplitEdge()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGException.cpp | 962 llvm::CatchSwitchInst *CatchSwitch = in emitCatchPadBlock() local 977 CatchSwitch, {TypeInfo.RTTI, CGF.Builder.getInt32(TypeInfo.Flags), in emitCatchPadBlock() 980 CGF.Builder.CreateCatchPad(CatchSwitch, {TypeInfo.RTTI}); in emitCatchPadBlock() 983 CatchSwitch->addHandler(Handler.Block); in emitCatchPadBlock() 1006 llvm::CatchSwitchInst *CatchSwitch = in emitWasmCatchPadBlock() local 1012 CatchSwitch->addHandler(WasmCatchStartBlock); in emitWasmCatchPadBlock() 1024 auto *CPI = CGF.Builder.CreateCatchPad(CatchSwitch, CatchTypes); in emitWasmCatchPadBlock() 1229 auto *CatchSwitch = in ExitCXXTryStmt() local 1231 WasmCatchStartBlock = CatchSwitch->hasUnwindDest() in ExitCXXTryStmt() 1232 ? CatchSwitch->getSuccessor(1) in ExitCXXTryStmt() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | Instruction.h | 241 case Instruction::CatchSwitch: 687 case Instruction::CatchSwitch:
|
| H A D | Instructions.h | 4476 return I->getOpcode() == Instruction::CatchSwitch; 4535 explicit CatchPadInst(Value *CatchSwitch, ArrayRef<Value *> Args, 4538 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values, 4540 explicit CatchPadInst(Value *CatchSwitch, ArrayRef<Value *> Args, 4543 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values, 4547 static CatchPadInst *Create(Value *CatchSwitch, ArrayRef<Value *> Args, 4552 CatchPadInst(CatchSwitch, Args, Values, NameStr, InsertBefore); 4555 static CatchPadInst *Create(Value *CatchSwitch, ArrayRef<Value *> Args, 4559 CatchPadInst(CatchSwitch, Args, Values, NameStr, InsertAtEnd); 4566 void setCatchSwitch(Value *CatchSwitch) { [all …]
|
| H A D | Instruction.def | 136 HANDLE_TERM_INST (10, CatchSwitch , CatchSwitchInst)
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | Instruction.cpp | 410 case CatchSwitch: return "catchswitch"; in getOpcodeName() 740 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(this)) in mayThrow() local 741 return CatchSwitch->unwindsToCaller(); in mayThrow()
|
| H A D | Verifier.cpp | 553 void visitCatchSwitchInst(CatchSwitchInst &CatchSwitch); 4395 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FPI.getParentPad())) { in visitFuncletPadInst() local 4396 BasicBlock *SwitchUnwindDest = CatchSwitch->getUnwindDest(); in visitFuncletPadInst() 4405 &FPI, FirstUser, CatchSwitch); in visitFuncletPadInst() 4412 void Verifier::visitCatchSwitchInst(CatchSwitchInst &CatchSwitch) { in visitCatchSwitchInst() argument 4413 BasicBlock *BB = CatchSwitch.getParent(); in visitCatchSwitchInst() 4418 &CatchSwitch); in visitCatchSwitchInst() 4422 Check(BB->getFirstNonPHI() == &CatchSwitch, in visitCatchSwitchInst() 4424 &CatchSwitch); in visitCatchSwitchInst() 4426 auto *ParentPad = CatchSwitch.getParentPad(); in visitCatchSwitchInst() [all …]
|
| H A D | Core.cpp | 3243 void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest) { in LLVMAddHandler() argument 3244 unwrap<CatchSwitchInst>(CatchSwitch)->addHandler(unwrap(Dest)); in LLVMAddHandler() 3247 unsigned LLVMGetNumHandlers(LLVMValueRef CatchSwitch) { in LLVMGetNumHandlers() argument 3248 return unwrap<CatchSwitchInst>(CatchSwitch)->getNumHandlers(); in LLVMGetNumHandlers() 3251 void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef *Handlers) { in LLVMGetHandlers() argument 3252 CatchSwitchInst *CSI = unwrap<CatchSwitchInst>(CatchSwitch); in LLVMGetHandlers() 3261 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch) { in LLVMSetParentCatchSwitch() argument 3263 ->setCatchSwitch(unwrap<CatchSwitchInst>(CatchSwitch)); in LLVMSetParentCatchSwitch()
|
| H A D | AsmWriter.cpp | 4171 } else if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(&I)) { in printInstruction() local 4173 writeOperand(CatchSwitch->getParentPad(), /*PrintType=*/false); in printInstruction() 4176 for (const BasicBlock *PadBB : CatchSwitch->handlers()) { in printInstruction() 4183 if (const BasicBlock *UnwindDest = CatchSwitch->getUnwindDest()) in printInstruction()
|
| H A D | Instructions.cpp | 1236 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0, in CatchSwitchInst() 1247 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0, in CatchSwitchInst() 1256 : Instruction(CSI.getType(), Instruction::CatchSwitch, nullptr, in CatchSwitchInst()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm-c/ |
| H A D | Core.h | 3780 void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest); 3783 unsigned LLVMGetNumHandlers(LLVMValueRef CatchSwitch); 3796 void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef *Handlers); 3822 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch);
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroFrame.cpp | 1543 static Instruction *splitBeforeCatchSwitch(CatchSwitchInst *CatchSwitch) { in splitBeforeCatchSwitch() argument 1544 BasicBlock *CurrentBlock = CatchSwitch->getParent(); in splitBeforeCatchSwitch() 1545 BasicBlock *NewBlock = CurrentBlock->splitBasicBlock(CatchSwitch); in splitBeforeCatchSwitch() 1549 CleanupPadInst::Create(CatchSwitch->getParentPad(), {}, "", CurrentBlock); in splitBeforeCatchSwitch()
|
| /openbsd-src/gnu/llvm/llvm/lib/Bitcode/Writer/ |
| H A D | BitcodeWriter.cpp | 3038 case Instruction::CatchSwitch: { in writeInstruction() 3040 const auto &CatchSwitch = cast<CatchSwitchInst>(I); in writeInstruction() local 3042 pushValue(CatchSwitch.getParentPad(), InstID, Vals); in writeInstruction() 3044 unsigned NumHandlers = CatchSwitch.getNumHandlers(); in writeInstruction() 3046 for (const BasicBlock *CatchPadBB : CatchSwitch.handlers()) in writeInstruction() 3049 if (CatchSwitch.hasUnwindDest()) in writeInstruction() 3050 Vals.push_back(VE.getValueID(CatchSwitch.getUnwindDest())); in writeInstruction()
|
| /openbsd-src/gnu/llvm/llvm/lib/AsmParser/ |
| H A D | LLLexer.cpp | 884 INSTKEYWORD(catchswitch, CatchSwitch); in LexIdentifier()
|
| H A D | LLParser.cpp | 6886 auto *CatchSwitch = in parseCatchSwitch() local 6889 CatchSwitch->addHandler(DestBB); in parseCatchSwitch() 6890 Inst = CatchSwitch; in parseCatchSwitch() 6897 Value *CatchSwitch = nullptr; in parseCatchPad() local 6905 if (parseValue(Type::getTokenTy(Context), CatchSwitch, PFS)) in parseCatchPad() 6912 Inst = CatchPadInst::Create(CatchSwitch, Args); in parseCatchPad()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 2538 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) { in findUnwindDestinations() local 2540 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in findUnwindDestinations() 2548 NewEHPadBB = CatchSwitch->getUnwindDest(); in findUnwindDestinations()
|
| /openbsd-src/gnu/llvm/llvm/bindings/ocaml/llvm/ |
| H A D | llvm.ml | 250 | CatchSwitch Constructor
|
| /openbsd-src/gnu/llvm/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 5353 auto *CatchSwitch = in parseFunctionBody() local 5356 CatchSwitch->addHandler(Handler); in parseFunctionBody() 5357 I = CatchSwitch; in parseFunctionBody()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 1848 } else if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) { in findWasmUnwindDestinations() local 1851 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in findWasmUnwindDestinations() 1903 } else if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) { in findUnwindDestinations() local 1905 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in findUnwindDestinations() 1913 NewEHPadBB = CatchSwitch->getUnwindDest(); in findUnwindDestinations()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/ |
| H A D | Attributor.cpp | 3069 case Instruction::CatchSwitch: in initializeInformationCache()
|