Home
last modified time | relevance | path

Searched refs:CatchPad (Results 1 – 25 of 26) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp194 else if (auto *CatchPad = dyn_cast<CatchPadInst>(FuncletPad)) in calculateStateNumbersForInvokes() local
195 FuncletUnwindDest = CatchPad->getCatchSwitch()->getUnwindDest(); in calculateStateNumbersForInvokes()
254 Handlers.push_back(CatchPad); in calculateCXXStateNumbers()
277 for (const auto *CatchPad : Handlers) { in calculateCXXStateNumbers() local
278 FuncInfo.FuncletBaseStateMap[CatchPad] = CatchLow; in calculateCXXStateNumbers()
279 for (const User *U : CatchPad->users()) { in calculateCXXStateNumbers()
375 const auto *CatchPad = in calculateSEHStateNumbers() local
377 const BasicBlock *CatchPadBB = CatchPad->getParent(); in calculateSEHStateNumbers()
397 for (const User *U : CatchPad->users()) { in calculateSEHStateNumbers()
953 auto *CatchPad = dyn_cast_or_null<CatchPadInst>(FuncletPad); in removeImplausibleInstructions() local
[all …]
H A DWasmEHPrepare.cpp359 if (const auto *CatchPad = dyn_cast<CatchPadInst>(Pad)) { in calculateWasmEHInfo() local
360 const auto *UnwindBB = CatchPad->getCatchSwitch()->getUnwindDest(); in calculateWasmEHInfo()
H A DTargetLoweringBase.cpp1784 case CatchPad: return 0; in InstructionOpcodeToISD()
/llvm-project-15.0.7/llvm/test/CodeGen/WinEH/
H A Dwineh-demotion.ll105 ; CHECK: [[CatchPad:%[^ ]+]] = catchpad within %cs2 []
110 ; CHECK: catchret from [[CatchPad]] to label
298 ; CHECK-NEXT: %[[CatchPad:[^ ]+]] = catchpad within %cs1 []
306 ; CHECK-NEXT: catchret from %[[CatchPad]] to label %[[SplitLeft:[^ ]+]]
316 ; CHECK: catchret from %[[CatchPad]] to label %join
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DAliasAnalysis.cpp577 ModRefInfo AAResults::getModRefInfo(const CatchPadInst *CatchPad, in getModRefInfo() argument
580 return getModRefInfo(CatchPad, Loc, AAQIP); in getModRefInfo()
583 ModRefInfo AAResults::getModRefInfo(const CatchPadInst *CatchPad, in getModRefInfo() argument
701 case Instruction::CatchPad: in getModRefInfo()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstruction.h613 case Instruction::CatchPad:
650 case Instruction::CatchPad:
H A DInstructions.h4538 return I->getOpcode() == Instruction::CatchPad;
4554 void init(Value *CatchPad, BasicBlock *BB);
4563 static CatchReturnInst *Create(Value *CatchPad, BasicBlock *BB,
4565 assert(CatchPad);
4567 return new (2) CatchReturnInst(CatchPad, BB, InsertBefore);
4570 static CatchReturnInst *Create(Value *CatchPad, BasicBlock *BB,
4572 assert(CatchPad);
4574 return new (2) CatchReturnInst(CatchPad, BB, InsertAtEnd);
4582 void setCatchPad(CatchPadInst *CatchPad) {
4583 assert(CatchPad);
[all …]
H A DInstruction.def201 HANDLE_FUNCLETPAD_INST(52, CatchPad , CatchPadInst)
H A DIRBuilder.h1129 CatchReturnInst *CreateCatchRet(CatchPadInst *CatchPad, BasicBlock *BB) { in CreateCatchRet() argument
1130 return Insert(CatchReturnInst::Create(CatchPad, BB)); in CreateCatchRet()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp270 auto *CatchPad = cast<CatchPadInst>(HandlerBlock->getFirstNonPHI()); in getUnwindDestTokenHelper() local
271 for (User *Child : CatchPad->users()) { in getUnwindDestTokenHelper()
299 assert(getParentPad(ChildUnwindDestToken) == CatchPad); in getUnwindDestTokenHelper()
504 auto *CatchPad = HandlerBlock->getFirstNonPHI(); in getUnwindDestToken() local
505 for (User *U : CatchPad->users()) { in getUnwindDestToken()
510 CatchPad)) && in getUnwindDestToken()
583 if (auto *CatchPad = dyn_cast<CatchPadInst>(FuncletPad)) in HandleCallsInBlockInlinedThroughInvoke() local
584 MemoKey = CatchPad->getCatchSwitch(); in HandleCallsInBlockInlinedThroughInvoke()
H A DLocal.cpp2395 static unsigned getHashValue(CatchPadInst *CatchPad) { in markAliveBlocks()
2397 CatchPad->value_op_begin(), CatchPad->value_op_end())); in markAliveBlocks()
2420 auto *CatchPad = cast<CatchPadInst>(HandlerBB->getFirstNonPHI()); in markAliveBlocks() local
2421 if (!HandlerSet.insert({CatchPad, Empty}).second) { in markAliveBlocks()
/llvm-project-15.0.7/llvm/lib/IR/
H A DInstruction.cpp359 case CatchPad: return "catchpad"; in getOpcodeName()
584 case Instruction::CatchPad: in mayReadFromMemory()
604 case Instruction::CatchPad: in mayWriteToMemory()
H A DCore.cpp3235 LLVMValueRef LLVMBuildCatchRet(LLVMBuilderRef B, LLVMValueRef CatchPad, in LLVMBuildCatchRet() argument
3237 return wrap(unwrap(B)->CreateCatchRet(unwrap<CatchPadInst>(CatchPad), in LLVMBuildCatchRet()
3241 LLVMValueRef LLVMBuildCleanupRet(LLVMBuilderRef B, LLVMValueRef CatchPad, in LLVMBuildCleanupRet() argument
3243 return wrap(unwrap(B)->CreateCleanupRet(unwrap<CleanupPadInst>(CatchPad), in LLVMBuildCleanupRet()
3295 LLVMValueRef LLVMGetParentCatchSwitch(LLVMValueRef CatchPad) { in LLVMGetParentCatchSwitch() argument
3296 return wrap(unwrap<CatchPadInst>(CatchPad)->getCatchSwitch()); in LLVMGetParentCatchSwitch()
3299 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch) { in LLVMSetParentCatchSwitch() argument
3300 unwrap<CatchPadInst>(CatchPad) in LLVMSetParentCatchSwitch()
H A DInstructions.cpp1097 void CatchReturnInst::init(Value *CatchPad, BasicBlock *BB) { in init() argument
1098 Op<0>() = CatchPad; in init()
1109 CatchReturnInst::CatchReturnInst(Value *CatchPad, BasicBlock *BB, in CatchReturnInst() argument
1114 init(CatchPad, BB); in CatchReturnInst()
1117 CatchReturnInst::CatchReturnInst(Value *CatchPad, BasicBlock *BB, in CatchReturnInst() argument
1122 init(CatchPad, BB); in CatchReturnInst()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DSparsePropagation.cpp530 CatchPadInst *CatchPad = Builder.CreateCatchPad(CatchSwitch, {}); in TEST_F() local
531 Builder.CreateCatchRet(CatchPad, Exit); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp1723 CatchPadInst *CatchPad = IRB.CreateCatchPad(CatchSwitchLongjmp, {}); in handleLongjmpableCallsForWasmSjLj() local
1752 OperandBundleDef("funclet", CatchPad), "label"); in handleLongjmpableCallsForWasmSjLj()
1758 WasmLongjmpF, {Env, Val}, OperandBundleDef("funclet", CatchPad)); in handleLongjmpableCallsForWasmSjLj()
1763 IRB.CreateCatchRet(CatchPad, SetjmpDispatchBB); in handleLongjmpableCallsForWasmSjLj()
/llvm-project-15.0.7/llvm/tools/llvm-c-test/
H A Decho.cpp733 LLVMValueRef CatchPad = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local
737 Dst = LLVMBuildCleanupRet(Builder, CatchPad, Unwind); in CloneInstruction()
741 LLVMValueRef CatchPad = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local
743 Dst = LLVMBuildCatchRet(Builder, CatchPad, SuccBB); in CloneInstruction()
/llvm-project-15.0.7/llvm/include/llvm-c/
H A DCore.h3744 LLVMValueRef LLVMBuildCleanupRet(LLVMBuilderRef B, LLVMValueRef CatchPad,
3746 LLVMValueRef LLVMBuildCatchRet(LLVMBuilderRef B, LLVMValueRef CatchPad,
3814 LLVMValueRef LLVMGetParentCatchSwitch(LLVMValueRef CatchPad);
3823 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch);
/llvm-project-15.0.7/llvm/test/Verifier/
H A Dinvalid-eh.ll35 ;T1: ; CHECK1: CatchReturnInst needs to be provided a CatchPad
45 ;T2: ; CHECK2: CatchReturnInst needs to be provided a CatchPad
/llvm-project-15.0.7/llvm/lib/AsmParser/
H A DLLLexer.cpp867 INSTKEYWORD(catchpad, CatchPad); in LexIdentifier()
H A DLLParser.cpp6535 Value *CatchPad = nullptr; in parseCatchRet() local
6540 if (parseValue(Type::getTokenTy(Context), CatchPad, PFS)) in parseCatchRet()
6548 Inst = CatchReturnInst::Create(CatchPad, BB); in parseCatchRet()
/llvm-project-15.0.7/llvm/bindings/ocaml/llvm/
H A Dllvm.ml248 | CatchPad Constructor
H A Dllvm.mli272 | CatchPad Constructor
/llvm-project-15.0.7/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp5145 Value *CatchPad = getValue(Record, Idx++, NextValueNo, TokenTy, in parseFunctionBody() local
5147 if (!CatchPad) in parseFunctionBody()
5153 I = CatchReturnInst::Create(CatchPad, BB); in parseFunctionBody()
/llvm-project-15.0.7/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp2978 case Instruction::CatchPad: { in writeInstruction()

12