Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DWinEHPrepare.cpp225 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in getEHPadFromPredecessor() local
226 if (CatchSwitch->getParentPad() != ParentPad) in getEHPadFromPredecessor()
243 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateCXXStateNumbers() local
244 assert(FuncInfo.EHPadStateMap.count(CatchSwitch) == 0 && in calculateCXXStateNumbers()
248 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in calculateCXXStateNumbers()
253 FuncInfo.EHPadStateMap[CatchSwitch] = TryLow; in calculateCXXStateNumbers()
256 CatchSwitch->getParentPad()))) in calculateCXXStateNumbers()
269 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers()
277 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers()
345 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateSEHStateNumbers() local
[all …]
DWasmEHPrepare.cpp367 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UnwindPad)) in calculateWasmEHInfo() local
369 EHInfo.setEHPadUnwindDest(&BB, *CatchSwitch->handlers().begin()); in calculateWasmEHInfo()
DTargetLoweringBase.cpp1592 case CatchSwitch: return 0; in InstructionOpcodeToISD()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DInlineFunction.cpp240 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(CurrentPad)) { in getUnwindDestTokenHelper() local
241 if (CatchSwitch->hasUnwindDest()) { in getUnwindDestTokenHelper()
242 UnwindDestToken = CatchSwitch->getUnwindDest()->getFirstNonPHI(); in getUnwindDestTokenHelper()
250 for (auto HI = CatchSwitch->handler_begin(), in getUnwindDestTokenHelper()
251 HE = CatchSwitch->handler_end(); in getUnwindDestTokenHelper()
485 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UselessPad)) { in getUnwindDestToken() local
486 assert(CatchSwitch->getUnwindDest() == nullptr && "Expected useless pad"); in getUnwindDestToken()
487 for (BasicBlock *HandlerBlock : CatchSwitch->handlers()) { in getUnwindDestToken()
699 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) { in HandleInlinedEHPad() local
700 if (CatchSwitch->unwindsToCaller()) { in HandleInlinedEHPad()
[all …]
DLocal.cpp2141 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Terminator)) { in markAliveBlocks() local
2170 for (CatchSwitchInst::handler_iterator I = CatchSwitch->handler_begin(), in markAliveBlocks()
2171 E = CatchSwitch->handler_end(); in markAliveBlocks()
2176 CatchSwitch->removeHandler(I); in markAliveBlocks()
2206 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in removeUnwindEdge() local
2208 CatchSwitch->getParentPad(), nullptr, CatchSwitch->getNumHandlers(), in removeUnwindEdge()
2209 CatchSwitch->getName(), CatchSwitch); in removeUnwindEdge()
2210 for (BasicBlock *PadBB : CatchSwitch->handlers()) in removeUnwindEdge()
2214 UnwindDest = CatchSwitch->getUnwindDest(); in removeUnwindEdge()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroFrame.cpp552 static Instruction *splitBeforeCatchSwitch(CatchSwitchInst *CatchSwitch) { in splitBeforeCatchSwitch() argument
553 BasicBlock *CurrentBlock = CatchSwitch->getParent(); in splitBeforeCatchSwitch()
554 BasicBlock *NewBlock = CurrentBlock->splitBasicBlock(CatchSwitch); in splitBeforeCatchSwitch()
558 CleanupPadInst::Create(CatchSwitch->getParentPad(), {}, "", CurrentBlock); in splitBeforeCatchSwitch()
857 else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(PadInst)) in ehAwareSplitEdge() local
858 ParentPad = CatchSwitch->getParentPad(); in ehAwareSplitEdge()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DInstruction.h197 case Instruction::CatchSwitch:
595 case Instruction::CatchSwitch:
DInstructions.h4380 return I->getOpcode() == Instruction::CatchSwitch;
4438 explicit CatchPadInst(Value *CatchSwitch, ArrayRef<Value *> Args,
4441 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values,
4443 explicit CatchPadInst(Value *CatchSwitch, ArrayRef<Value *> Args,
4446 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values,
4450 static CatchPadInst *Create(Value *CatchSwitch, ArrayRef<Value *> Args,
4455 CatchPadInst(CatchSwitch, Args, Values, NameStr, InsertBefore);
4458 static CatchPadInst *Create(Value *CatchSwitch, ArrayRef<Value *> Args,
4462 CatchPadInst(CatchSwitch, Args, Values, NameStr, InsertAtEnd);
4469 void setCatchSwitch(Value *CatchSwitch) {
[all …]
DInstruction.def136 HANDLE_TERM_INST (10, CatchSwitch , CatchSwitchInst)
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DInstruction.cpp305 case CatchSwitch: return "catchswitch"; in getOpcodeName()
598 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(this)) in mayThrow() local
599 return CatchSwitch->unwindsToCaller(); in mayThrow()
DVerifier.cpp495 void visitCatchSwitchInst(CatchSwitchInst &CatchSwitch);
3936 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FPI.getParentPad())) { in visitFuncletPadInst() local
3937 BasicBlock *SwitchUnwindDest = CatchSwitch->getUnwindDest(); in visitFuncletPadInst()
3946 &FPI, FirstUser, CatchSwitch); in visitFuncletPadInst()
3953 void Verifier::visitCatchSwitchInst(CatchSwitchInst &CatchSwitch) { in visitCatchSwitchInst() argument
3954 BasicBlock *BB = CatchSwitch.getParent(); in visitCatchSwitchInst()
3959 &CatchSwitch); in visitCatchSwitchInst()
3963 Assert(BB->getFirstNonPHI() == &CatchSwitch, in visitCatchSwitchInst()
3965 &CatchSwitch); in visitCatchSwitchInst()
3967 auto *ParentPad = CatchSwitch.getParentPad(); in visitCatchSwitchInst()
[all …]
DCore.cpp3223 void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest) { in LLVMAddHandler() argument
3224 unwrap<CatchSwitchInst>(CatchSwitch)->addHandler(unwrap(Dest)); in LLVMAddHandler()
3227 unsigned LLVMGetNumHandlers(LLVMValueRef CatchSwitch) { in LLVMGetNumHandlers() argument
3228 return unwrap<CatchSwitchInst>(CatchSwitch)->getNumHandlers(); in LLVMGetNumHandlers()
3231 void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef *Handlers) { in LLVMGetHandlers() argument
3232 CatchSwitchInst *CSI = unwrap<CatchSwitchInst>(CatchSwitch); in LLVMGetHandlers()
3242 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch) { in LLVMSetParentCatchSwitch() argument
3244 ->setCatchSwitch(unwrap<CatchSwitchInst>(CatchSwitch)); in LLVMSetParentCatchSwitch()
DAsmWriter.cpp3804 } else if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(&I)) { in printInstruction() local
3806 writeOperand(CatchSwitch->getParentPad(), /*PrintType=*/false); in printInstruction()
3809 for (const BasicBlock *PadBB : CatchSwitch->handlers()) { in printInstruction()
3816 if (const BasicBlock *UnwindDest = CatchSwitch->getUnwindDest()) in printInstruction()
DInstructions.cpp996 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0, in CatchSwitchInst()
1007 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0, in CatchSwitchInst()
1016 : Instruction(CSI.getType(), Instruction::CatchSwitch, nullptr, in CatchSwitchInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DInstruction.h455 case Instruction::CatchSwitch: in isEHPad()
DInstruction.def119 HANDLE_TERM_INST (10, CatchSwitch , CatchSwitchInst)
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/
DCore.h3644 void LLVMAddHandler(LLVMValueRef CatchSwitch, LLVMBasicBlockRef Dest);
3647 unsigned LLVMGetNumHandlers(LLVMValueRef CatchSwitch);
3660 void LLVMGetHandlers(LLVMValueRef CatchSwitch, LLVMBasicBlockRef *Handlers);
3686 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp2818 case Instruction::CatchSwitch: { in writeInstruction()
2820 const auto &CatchSwitch = cast<CatchSwitchInst>(I); in writeInstruction() local
2822 pushValue(CatchSwitch.getParentPad(), InstID, Vals); in writeInstruction()
2824 unsigned NumHandlers = CatchSwitch.getNumHandlers(); in writeInstruction()
2826 for (const BasicBlock *CatchPadBB : CatchSwitch.handlers()) in writeInstruction()
2829 if (CatchSwitch.hasUnwindDest()) in writeInstruction()
2830 Vals.push_back(VE.getValueID(CatchSwitch.getUnwindDest())); in writeInstruction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
DLLLexer.cpp894 INSTKEYWORD(catchswitch, CatchSwitch); in LexIdentifier()
DLLParser.cpp6273 auto *CatchSwitch = in ParseCatchSwitch() local
6276 CatchSwitch->addHandler(DestBB); in ParseCatchSwitch()
6277 Inst = CatchSwitch; in ParseCatchSwitch()
6284 Value *CatchSwitch = nullptr; in ParseCatchPad() local
6292 if (ParseValue(Type::getTokenTy(Context), CatchSwitch, PFS)) in ParseCatchPad()
6299 Inst = CatchPadInst::Create(CatchSwitch, Args); in ParseCatchPad()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DValueTracking.cpp4132 case Instruction::CatchSwitch: in isSafeToSpeculativelyExecute()
4429 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) in isGuaranteedToTransferExecutionToSuccessor() local
4430 return !CatchSwitch->unwindsToCaller(); in isGuaranteedToTransferExecutionToSuccessor()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp4321 auto *CatchSwitch = in parseFunctionBody() local
4324 CatchSwitch->addHandler(Handler); in parseFunctionBody()
4325 I = CatchSwitch; in parseFunctionBody()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp1692 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) { in findWasmUnwindDestinations() local
1695 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in findWasmUnwindDestinations()
1747 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) { in findUnwindDestinations() local
1749 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in findUnwindDestinations()
1757 NewEHPadBB = CatchSwitch->getUnwindDest(); in findUnwindDestinations()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DAttributor.cpp874 (unsigned)Instruction::CatchSwitch, (unsigned)Instruction::Resume}; in updateImpl()
6454 case Instruction::CatchSwitch: in initializeInformationCache()