Home
last modified time | relevance | path

Searched refs:CatchSwitch (Results 1 – 25 of 28) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp226 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 DWasmEHPrepare.cpp375 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UnwindPad)) in calculateWasmEHInfo() local
377 EHInfo.setUnwindDest(&BB, *CatchSwitch->handlers().begin()); in calculateWasmEHInfo()
H A DTargetLoweringBase.cpp1752 case CatchSwitch: return 0; in InstructionOpcodeToISD()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp256 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(CurrentPad)) { in getUnwindDestTokenHelper() local
257 if (CatchSwitch->hasUnwindDest()) { in getUnwindDestTokenHelper()
258 UnwindDestToken = CatchSwitch->getUnwindDest()->getFirstNonPHI(); in getUnwindDestTokenHelper()
266 for (auto HI = CatchSwitch->handler_begin(), in getUnwindDestTokenHelper()
267 HE = CatchSwitch->handler_end(); in getUnwindDestTokenHelper()
501 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UselessPad)) { in getUnwindDestToken() local
502 assert(CatchSwitch->getUnwindDest() == nullptr && "Expected useless pad"); in getUnwindDestToken()
503 for (BasicBlock *HandlerBlock : CatchSwitch->handlers()) { in getUnwindDestToken()
722 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) { in HandleInlinedEHPad() local
723 if (CatchSwitch->unwindsToCaller()) { in HandleInlinedEHPad()
[all …]
H A DLocal.cpp2334 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Terminator)) { in markAliveBlocks() local
2364 for (CatchSwitchInst::handler_iterator I = CatchSwitch->handler_begin(), in markAliveBlocks()
2365 E = CatchSwitch->handler_end(); in markAliveBlocks()
2374 CatchSwitch->removeHandler(I); in markAliveBlocks()
2411 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in removeUnwindEdge() local
2413 CatchSwitch->getParentPad(), nullptr, CatchSwitch->getNumHandlers(), in removeUnwindEdge()
2414 CatchSwitch->getName(), CatchSwitch); in removeUnwindEdge()
2415 for (BasicBlock *PadBB : CatchSwitch->handlers()) in removeUnwindEdge()
2419 UnwindDest = CatchSwitch->getUnwindDest(); in removeUnwindEdge()
H A DBasicBlockUtils.cpp628 else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(PadInst)) in ehAwareSplitEdge() local
629 ParentPad = CatchSwitch->getParentPad(); in ehAwareSplitEdge()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGException.cpp956 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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DInstruction.h232 case Instruction::CatchSwitch:
646 case Instruction::CatchSwitch:
H A DInstructions.h4370 return I->getOpcode() == Instruction::CatchSwitch;
4428 explicit CatchPadInst(Value *CatchSwitch, ArrayRef<Value *> Args,
4431 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values,
4433 explicit CatchPadInst(Value *CatchSwitch, ArrayRef<Value *> Args,
4436 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values,
4440 static CatchPadInst *Create(Value *CatchSwitch, ArrayRef<Value *> Args,
4445 CatchPadInst(CatchSwitch, Args, Values, NameStr, InsertBefore);
4448 static CatchPadInst *Create(Value *CatchSwitch, ArrayRef<Value *> Args,
4452 CatchPadInst(CatchSwitch, Args, Values, NameStr, InsertAtEnd);
4459 void setCatchSwitch(Value *CatchSwitch) {
[all …]
H A DInstruction.def136 HANDLE_TERM_INST (10, CatchSwitch , CatchSwitchInst)
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DVerifier.cpp535 void visitCatchSwitchInst(CatchSwitchInst &CatchSwitch);
4219 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FPI.getParentPad())) { in visitFuncletPadInst() local
4220 BasicBlock *SwitchUnwindDest = CatchSwitch->getUnwindDest(); in visitFuncletPadInst()
4229 &FPI, FirstUser, CatchSwitch); in visitFuncletPadInst()
4236 void Verifier::visitCatchSwitchInst(CatchSwitchInst &CatchSwitch) { in visitCatchSwitchInst() argument
4237 BasicBlock *BB = CatchSwitch.getParent(); in visitCatchSwitchInst()
4242 &CatchSwitch); in visitCatchSwitchInst()
4246 Assert(BB->getFirstNonPHI() == &CatchSwitch, in visitCatchSwitchInst()
4248 &CatchSwitch); in visitCatchSwitchInst()
4250 auto *ParentPad = CatchSwitch.getParentPad(); in visitCatchSwitchInst()
[all …]
H A DInstruction.cpp330 case CatchSwitch: return "catchswitch"; in getOpcodeName()
657 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(this)) in mayThrow() local
658 return CatchSwitch->unwindsToCaller(); in mayThrow()
H A DCore.cpp3284 void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest) { in LLVMAddHandler() argument
3285 unwrap<CatchSwitchInst>(CatchSwitch)->addHandler(unwrap(Dest)); in LLVMAddHandler()
3288 unsigned LLVMGetNumHandlers(LLVMValueRef CatchSwitch) { in LLVMGetNumHandlers() argument
3289 return unwrap<CatchSwitchInst>(CatchSwitch)->getNumHandlers(); in LLVMGetNumHandlers()
3292 void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef *Handlers) { in LLVMGetHandlers() argument
3293 CatchSwitchInst *CSI = unwrap<CatchSwitchInst>(CatchSwitch); in LLVMGetHandlers()
3302 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch) { in LLVMSetParentCatchSwitch() argument
3304 ->setCatchSwitch(unwrap<CatchSwitchInst>(CatchSwitch)); in LLVMSetParentCatchSwitch()
H A DAsmWriter.cpp4087 } else if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(&I)) { in printInstruction() local
4089 writeOperand(CatchSwitch->getParentPad(), /*PrintType=*/false); in printInstruction()
4092 for (const BasicBlock *PadBB : CatchSwitch->handlers()) { in printInstruction()
4099 if (const BasicBlock *UnwindDest = CatchSwitch->getUnwindDest()) in printInstruction()
H A DInstructions.cpp1096 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0, in CatchSwitchInst()
1107 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0, in CatchSwitchInst()
1116 : Instruction(CSI.getType(), Instruction::CatchSwitch, nullptr, in CatchSwitchInst()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm-c/
H A DCore.h3704 void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest);
3707 unsigned LLVMGetNumHandlers(LLVMValueRef CatchSwitch);
3720 void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef *Handlers);
3746 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp1450 static Instruction *splitBeforeCatchSwitch(CatchSwitchInst *CatchSwitch) { in splitBeforeCatchSwitch() argument
1451 BasicBlock *CurrentBlock = CatchSwitch->getParent(); in splitBeforeCatchSwitch()
1452 BasicBlock *NewBlock = CurrentBlock->splitBasicBlock(CatchSwitch); in splitBeforeCatchSwitch()
1456 CleanupPadInst::Create(CatchSwitch->getParentPad(), {}, "", CurrentBlock); in splitBeforeCatchSwitch()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp2944 case Instruction::CatchSwitch: { in writeInstruction()
2946 const auto &CatchSwitch = cast<CatchSwitchInst>(I); in writeInstruction() local
2948 pushValue(CatchSwitch.getParentPad(), InstID, Vals); in writeInstruction()
2950 unsigned NumHandlers = CatchSwitch.getNumHandlers(); in writeInstruction()
2952 for (const BasicBlock *CatchPadBB : CatchSwitch.handlers()) in writeInstruction()
2955 if (CatchSwitch.hasUnwindDest()) in writeInstruction()
2956 Vals.push_back(VE.getValueID(CatchSwitch.getUnwindDest())); in writeInstruction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/AsmParser/
H A DLLLexer.cpp916 INSTKEYWORD(catchswitch, CatchSwitch); in LexIdentifier()
H A DLLParser.cpp6769 auto *CatchSwitch = in parseCatchSwitch() local
6772 CatchSwitch->addHandler(DestBB); in parseCatchSwitch()
6773 Inst = CatchSwitch; in parseCatchSwitch()
6780 Value *CatchSwitch = nullptr; in parseCatchPad() local
6788 if (parseValue(Type::getTokenTy(Context), CatchSwitch, PFS)) in parseCatchPad()
6795 Inst = CatchPadInst::Create(CatchSwitch, Args); in parseCatchPad()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp2383 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) { in findUnwindDestinations() local
2385 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in findUnwindDestinations()
2393 NewEHPadBB = CatchSwitch->getUnwindDest(); in findUnwindDestinations()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DAttributor.cpp1927 case Instruction::CatchSwitch: in initializeInformationCache()
/netbsd-src/external/apache2/llvm/dist/llvm/bindings/ocaml/llvm/
H A Dllvm.ml250 | CatchSwitch Constructor
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp4517 auto *CatchSwitch = in parseFunctionBody() local
4520 CatchSwitch->addHandler(Handler); in parseFunctionBody()
4521 I = CatchSwitch; in parseFunctionBody()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp1768 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) { in findWasmUnwindDestinations() local
1771 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in findWasmUnwindDestinations()
1823 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) { in findUnwindDestinations() local
1825 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in findUnwindDestinations()
1833 NewEHPadBB = CatchSwitch->getUnwindDest(); in findUnwindDestinations()

12