Home
last modified time | relevance | path

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

/external/llvm/lib/CodeGen/
DWinEHPrepare.cpp210 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in getEHPadFromPredecessor() local
211 if (CatchSwitch->getParentPad() != ParentPad) in getEHPadFromPredecessor()
228 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateCXXStateNumbers() local
229 assert(FuncInfo.EHPadStateMap.count(CatchSwitch) == 0 && in calculateCXXStateNumbers()
233 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in calculateCXXStateNumbers()
238 FuncInfo.EHPadStateMap[CatchSwitch] = TryLow; in calculateCXXStateNumbers()
241 CatchSwitch->getParentPad()))) in calculateCXXStateNumbers()
318 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateSEHStateNumbers() local
319 assert(FuncInfo.EHPadStateMap.count(CatchSwitch) == 0 && in calculateSEHStateNumbers()
324 assert(CatchSwitch->getNumHandlers() == 1 && in calculateSEHStateNumbers()
[all …]
DTargetLoweringBase.cpp1552 case CatchSwitch: return 0; in InstructionOpcodeToISD()
/external/llvm/lib/Transforms/Utils/
DInlineFunction.cpp346 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) { in HandleInlinedEHPad() local
347 if (CatchSwitch->unwindsToCaller()) { in HandleInlinedEHPad()
349 CatchSwitch->getParentPad(), UnwindDest, in HandleInlinedEHPad()
350 CatchSwitch->getNumHandlers(), CatchSwitch->getName(), in HandleInlinedEHPad()
351 CatchSwitch); in HandleInlinedEHPad()
352 for (BasicBlock *PadBB : CatchSwitch->handlers()) in HandleInlinedEHPad()
1464 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) { in InlineFunction() local
1465 if (isa<ConstantTokenNone>(CatchSwitch->getParentPad())) in InlineFunction()
1466 CatchSwitch->setParentPad(CallSiteEHPad); in InlineFunction()
DLocal.cpp1348 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in removeUnwindEdge() local
1350 CatchSwitch->getParentPad(), nullptr, CatchSwitch->getNumHandlers(), in removeUnwindEdge()
1351 CatchSwitch->getName(), CatchSwitch); in removeUnwindEdge()
1352 for (BasicBlock *PadBB : CatchSwitch->handlers()) in removeUnwindEdge()
1356 UnwindDest = CatchSwitch->getUnwindDest(); in removeUnwindEdge()
/external/llvm/lib/IR/
DInstruction.cpp208 case CatchSwitch: return "catchswitch"; in getOpcodeName()
476 if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(this)) in mayThrow() local
477 return CatchSwitch->unwindsToCaller(); in mayThrow()
DVerifier.cpp406 void visitCatchSwitchInst(CatchSwitchInst &CatchSwitch);
3055 void Verifier::visitCatchSwitchInst(CatchSwitchInst &CatchSwitch) { in visitCatchSwitchInst() argument
3056 visitEHPadPredecessors(CatchSwitch); in visitCatchSwitchInst()
3058 BasicBlock *BB = CatchSwitch.getParent(); in visitCatchSwitchInst()
3063 &CatchSwitch); in visitCatchSwitchInst()
3067 Assert(BB->getFirstNonPHI() == &CatchSwitch, in visitCatchSwitchInst()
3069 &CatchSwitch); in visitCatchSwitchInst()
3071 if (BasicBlock *UnwindDest = CatchSwitch.getUnwindDest()) { in visitCatchSwitchInst()
3076 &CatchSwitch); in visitCatchSwitchInst()
3079 auto *ParentPad = CatchSwitch.getParentPad(); in visitCatchSwitchInst()
[all …]
DAsmWriter.cpp2886 } else if (const auto *CatchSwitch = dyn_cast<CatchSwitchInst>(&I)) { in printInstruction() local
2888 writeOperand(CatchSwitch->getParentPad(), /*PrintType=*/false); in printInstruction()
2891 for (const BasicBlock *PadBB : CatchSwitch->handlers()) { in printInstruction()
2898 if (const BasicBlock *UnwindDest = CatchSwitch->getUnwindDest()) in printInstruction()
DInstructions.cpp873 : TerminatorInst(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0, in CatchSwitchInst()
884 : TerminatorInst(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0, in CatchSwitchInst()
893 : TerminatorInst(CSI.getType(), Instruction::CatchSwitch, nullptr, in CatchSwitchInst()
/external/llvm/include/llvm/IR/
DInstructions.h3983 return I->getOpcode() == Instruction::CatchSwitch;
4045 explicit CatchPadInst(Value *CatchSwitch, ArrayRef<Value *> Args,
4048 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values,
4050 explicit CatchPadInst(Value *CatchSwitch, ArrayRef<Value *> Args,
4053 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values,
4057 static CatchPadInst *Create(Value *CatchSwitch, ArrayRef<Value *> Args,
4062 CatchPadInst(CatchSwitch, Args, Values, NameStr, InsertBefore);
4064 static CatchPadInst *Create(Value *CatchSwitch, ArrayRef<Value *> Args,
4068 CatchPadInst(CatchSwitch, Args, Values, NameStr, InsertAtEnd);
4075 void setCatchSwitch(Value *CatchSwitch) {
[all …]
DInstruction.h395 case Instruction::CatchSwitch:
DInstruction.def119 HANDLE_TERM_INST (10, CatchSwitch , CatchSwitchInst)
DInstrTypes.h85 case Instruction::CatchSwitch: in isExceptional()
/external/clang/lib/CodeGen/
DCGException.cpp888 llvm::CatchSwitchInst *CatchSwitch = in emitCatchPadBlock() local
903 CatchSwitch, {TypeInfo.RTTI, CGF.Builder.getInt32(TypeInfo.Flags), in emitCatchPadBlock()
906 CGF.Builder.CreateCatchPad(CatchSwitch, {TypeInfo.RTTI}); in emitCatchPadBlock()
909 CatchSwitch->addHandler(Handler.Block); in emitCatchPadBlock()
/external/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp2008 case Instruction::CatchSwitch: { in WriteInstruction()
2010 const auto &CatchSwitch = cast<CatchSwitchInst>(I); in WriteInstruction() local
2012 pushValue(CatchSwitch.getParentPad(), InstID, Vals, VE); in WriteInstruction()
2014 unsigned NumHandlers = CatchSwitch.getNumHandlers(); in WriteInstruction()
2016 for (const BasicBlock *CatchPadBB : CatchSwitch.handlers()) in WriteInstruction()
2019 if (CatchSwitch.hasUnwindDest()) in WriteInstruction()
2020 Vals.push_back(VE.getValueID(CatchSwitch.getUnwindDest())); in WriteInstruction()
/external/llvm/lib/AsmParser/
DLLLexer.cpp767 INSTKEYWORD(catchswitch, CatchSwitch); in LexIdentifier()
DLLParser.cpp5263 auto *CatchSwitch = in ParseCatchSwitch() local
5266 CatchSwitch->addHandler(DestBB); in ParseCatchSwitch()
5267 Inst = CatchSwitch; in ParseCatchSwitch()
5274 Value *CatchSwitch = nullptr; in ParseCatchPad() local
5282 if (ParseValue(Type::getTokenTy(Context), CatchSwitch, PFS)) in ParseCatchPad()
5289 Inst = CatchPadInst::Create(CatchSwitch, Args); in ParseCatchPad()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp4498 auto *CatchSwitch = in parseFunctionBody() local
4501 CatchSwitch->addHandler(Handler); in parseFunctionBody()
4502 I = CatchSwitch; in parseFunctionBody()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp1259 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(Pad)) { in findUnwindDestinations() local
1261 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) { in findUnwindDestinations()
1267 NewEHPadBB = CatchSwitch->getUnwindDest(); in findUnwindDestinations()
/external/llvm/lib/Analysis/
DValueTracking.cpp3438 case Instruction::CatchSwitch: in isSafeToSpeculativelyExecute()