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

12

/netbsd-current/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp226 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) {
227 if (CatchSwitch->getParentPad() != ParentPad)
247 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) {
248 assert(FuncInfo.EHPadStateMap.count(CatchSwitch) == 0 &&
252 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) {
257 FuncInfo.EHPadStateMap[CatchSwitch] = TryLow;
260 CatchSwitch->getParentPad())))
283 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest())
291 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest())
367 if (auto *CatchSwitch
573 const auto *CatchSwitch = cast<CatchSwitchInst>(Pad); local
[all...]
H A DWasmEHPrepare.cpp375 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UnwindPad))
377 EHInfo.setUnwindDest(&BB, *CatchSwitch->handlers().begin());
H A DTargetLoweringBase.cpp1752 case CatchSwitch: return 0;
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp256 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(CurrentPad)) {
257 if (CatchSwitch->hasUnwindDest()) {
258 UnwindDestToken = CatchSwitch->getUnwindDest()->getFirstNonPHI();
266 for (auto HI = CatchSwitch->handler_begin(),
267 HE = CatchSwitch->handler_end();
501 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UselessPad)) {
502 assert(CatchSwitch->getUnwindDest() == nullptr && "Expected useless pad");
503 for (BasicBlock *HandlerBlock : CatchSwitch->handlers()) {
722 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) {
723 if (CatchSwitch
[all...]
H A DLocal.cpp2334 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Terminator)) {
2364 for (CatchSwitchInst::handler_iterator I = CatchSwitch->handler_begin(),
2365 E = CatchSwitch->handler_end();
2374 CatchSwitch->removeHandler(I);
2411 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) {
2413 CatchSwitch->getParentPad(), nullptr, CatchSwitch->getNumHandlers(),
2414 CatchSwitch->getName(), CatchSwitch);
2415 for (BasicBlock *PadBB : CatchSwitch
[all...]
H A DBasicBlockUtils.cpp628 else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(PadInst))
629 ParentPad = CatchSwitch->getParentPad();
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DInstruction.h232 case Instruction::CatchSwitch:
646 case Instruction::CatchSwitch:
H A DInstructions.h4268 // Accessor Methods for CatchSwitch stmt
4272 // Accessor Methods for CatchSwitch stmt
4370 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, ArrayRe
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGException.cpp956 llvm::CatchSwitchInst *CatchSwitch = local
971 CatchSwitch, {TypeInfo.RTTI, CGF.Builder.getInt32(TypeInfo.Flags),
974 CGF.Builder.CreateCatchPad(CatchSwitch, {TypeInfo.RTTI});
977 CatchSwitch->addHandler(Handler.Block);
1000 llvm::CatchSwitchInst *CatchSwitch = local
1006 CatchSwitch->addHandler(WasmCatchStartBlock);
1018 auto *CPI = CGF.Builder.CreateCatchPad(CatchSwitch, CatchTypes);
1224 auto *CatchSwitch = local
1226 WasmCatchStartBlock = CatchSwitch->hasUnwindDest()
1227 ? CatchSwitch
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/IR/
H A DInstruction.cpp330 case CatchSwitch: return "catchswitch";
657 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(this))
658 return CatchSwitch->unwindsToCaller();
H A DVerifier.cpp535 void visitCatchSwitchInst(CatchSwitchInst &CatchSwitch);
4219 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FPI.getParentPad())) {
4220 BasicBlock *SwitchUnwindDest = CatchSwitch->getUnwindDest();
4229 &FPI, FirstUser, CatchSwitch);
4236 void Verifier::visitCatchSwitchInst(CatchSwitchInst &CatchSwitch) { argument
4237 BasicBlock *BB = CatchSwitch.getParent();
4242 &CatchSwitch);
4246 Assert(BB->getFirstNonPHI() == &CatchSwitch,
4248 &CatchSwitch);
4250 auto *ParentPad = CatchSwitch
[all...]
H A DCore.cpp3284 void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest) {
3285 unwrap<CatchSwitchInst>(CatchSwitch)->addHandler(unwrap(Dest));
3288 unsigned LLVMGetNumHandlers(LLVMValueRef CatchSwitch) {
3289 return unwrap<CatchSwitchInst>(CatchSwitch)->getNumHandlers();
3292 void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef *Handlers) {
3293 CatchSwitchInst *CSI = unwrap<CatchSwitchInst>(CatchSwitch);
3302 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch) {
3304 ->setCatchSwitch(unwrap<CatchSwitchInst>(CatchSwitch));
H A DAsmWriter.cpp4087 } else if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(&I)) {
4089 writeOperand(CatchSwitch->getParentPad(), /*PrintType=*/false);
4092 for (const BasicBlock *PadBB : CatchSwitch->handlers()) {
4099 if (const BasicBlock *UnwindDest = CatchSwitch->getUnwindDest())
H A DInstructions.cpp1096 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0,
1107 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0,
1116 : Instruction(CSI.getType(), Instruction::CatchSwitch, nullptr,
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm-c/
H A DCore.h3704 void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest);
3707 unsigned LLVMGetNumHandlers(LLVMValueRef CatchSwitch);
3717 * @param CatchSwitch The catchswitch instruction to operate on.
3720 void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef *Handlers);
3746 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch);
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp1450 static Instruction *splitBeforeCatchSwitch(CatchSwitchInst *CatchSwitch) { argument
1451 BasicBlock *CurrentBlock = CatchSwitch->getParent();
1452 BasicBlock *NewBlock = CurrentBlock->splitBasicBlock(CatchSwitch);
1456 CleanupPadInst::Create(CatchSwitch->getParentPad(), {}, "", CurrentBlock);
1852 // CleanupPad with a CatchSwitch predecessor: therefore this is an
/netbsd-current/external/apache2/llvm/dist/llvm/lib/AsmParser/
H A DLLLexer.cpp916 INSTKEYWORD(catchswitch, CatchSwitch);
H A DLLParser.cpp6769 auto *CatchSwitch =
6772 CatchSwitch->addHandler(DestBB);
6773 Inst = CatchSwitch;
6780 Value *CatchSwitch = nullptr;
6788 if (parseValue(Type::getTokenTy(Context), CatchSwitch, PFS))
6795 Inst = CatchPadInst::Create(CatchSwitch, Args);
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp2944 case Instruction::CatchSwitch: {
2946 const auto &CatchSwitch = cast<CatchSwitchInst>(I); local
2948 pushValue(CatchSwitch.getParentPad(), InstID, Vals);
2950 unsigned NumHandlers = CatchSwitch.getNumHandlers();
2952 for (const BasicBlock *CatchPadBB : CatchSwitch.handlers())
2955 if (CatchSwitch.hasUnwindDest())
2956 Vals.push_back(VE.getValueID(CatchSwitch.getUnwindDest()));
/netbsd-current/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp2383 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) {
2385 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) {
2393 NewEHPadBB = CatchSwitch->getUnwindDest();
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp4517 auto *CatchSwitch =
4520 CatchSwitch->addHandler(Handler);
4521 I = CatchSwitch;
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DAttributor.cpp1927 case Instruction::CatchSwitch:
H A DAttributorAttributes.cpp751 (unsigned)Instruction::CatchSwitch, (unsigned)Instruction::Resume};
/netbsd-current/external/apache2/llvm/dist/llvm/bindings/ocaml/llvm/
H A Dllvm.ml250 | CatchSwitch Constructor in type:Opcode/t
/netbsd-current/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp1768 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) {
1771 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) {
1823 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) {
1825 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) {
1833 NewEHPadBB = CatchSwitch->getUnwindDest();

Completed in 697 milliseconds

12