Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp208 else if (auto *CatchPad = dyn_cast<CatchPadInst>(FuncletPad)) in calculateStateNumbersForInvokes() local
209 FuncletUnwindDest = CatchPad->getCatchSwitch()->getUnwindDest(); in calculateStateNumbersForInvokes()
390 auto *CatchPad = cast<CatchPadInst>(CatchPadBB->getFirstNonPHIIt()); in calculateCXXStateNumbers() local
391 Handlers.push_back(CatchPad); in calculateCXXStateNumbers()
414 for (const auto *CatchPad : Handlers) { in calculateCXXStateNumbers() local
415 FuncInfo.FuncletBaseStateMap[CatchPad] = CatchLow; in calculateCXXStateNumbers()
416 FuncInfo.EHPadStateMap[CatchPad] = CatchLow; in calculateCXXStateNumbers()
417 for (const User *U : CatchPad->users()) { in calculateCXXStateNumbers()
514 const auto *CatchPad = in calculateSEHStateNumbers() local
516 const BasicBlock *CatchPadBB = CatchPad->getParent(); in calculateSEHStateNumbers()
[all …]
H A DWasmEHPrepare.cpp390 if (const auto *CatchPad = dyn_cast<CatchPadInst>(Pad)) { in calculateWasmEHInfo() local
391 const auto *UnwindBB = CatchPad->getCatchSwitch()->getUnwindDest(); in calculateWasmEHInfo()
H A DTargetLoweringBase.cpp1857 case CatchPad: return 0; in InstructionOpcodeToISD()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DValues.def81 DEF_INSTR(CatchPad, OP(CatchPad), CatchPadInst)
H A DInstruction.h1585 return From->getSubclassID() == ClassID::CatchPad || in classof()
1592 : FuncletPadInst(ClassID::CatchPad, Opcode::CatchPad, CPI, Ctx) {} in CatchPadInst()
1604 return From->getSubclassID() == ClassID::CatchPad; in classof()
1631 LLVM_ABI static CatchReturnInst *create(CatchPadInst *CatchPad,
1635 LLVM_ABI void setCatchPad(CatchPadInst *CatchPad);
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.h844 case Instruction::CatchPad:
881 case Instruction::CatchPad:
H A DInstructions.h4301 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, AllocInfo,
4324 return I->getOpcode() == Instruction::CatchPad;
4339 LLVM_ABI CatchReturnInst(Value *CatchPad, BasicBlock *BB,
4342 void init(Value *CatchPad, BasicBlock *BB);
4351 static CatchReturnInst *Create(Value *CatchPad, BasicBlock *BB,
4353 assert(CatchPad);
4355 return new (AllocMarker) CatchReturnInst(CatchPad, BB, InsertBefore);
4363 void setCatchPad(CatchPadInst *CatchPad) {
4364 assert(CatchPad);
4365 Op<0>() = CatchPad;
H A DInstruction.def201 HANDLE_FUNCLETPAD_INST(52, CatchPad , CatchPadInst)
H A DIRBuilder.h1340 CatchReturnInst *CreateCatchRet(CatchPadInst *CatchPad, BasicBlock *BB) { in CreateCatchRet() argument
1341 return Insert(CatchReturnInst::Create(CatchPad, BB)); in CreateCatchRet()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp292 auto *CatchPad = in getUnwindDestTokenHelper() local
294 for (User *Child : CatchPad->users()) { in getUnwindDestTokenHelper()
322 assert(getParentPad(ChildUnwindDestToken) == CatchPad); in getUnwindDestTokenHelper()
527 auto *CatchPad = &*HandlerBlock->getFirstNonPHIIt(); in getUnwindDestToken() local
528 for (User *U : CatchPad->users()) { in getUnwindDestToken()
532 ->getFirstNonPHIIt()) == CatchPad)) && in getUnwindDestToken()
599 if (auto *CatchPad = dyn_cast<CatchPadInst>(FuncletPad)) in HandleCallsInBlockInlinedThroughInvoke() local
600 MemoKey = CatchPad->getCatchSwitch(); in HandleCallsInBlockInlinedThroughInvoke()
H A DLocal.cpp3159 static unsigned getHashValue(CatchPadInst *CatchPad) { in markAliveBlocks()
3161 CatchPad->value_op_begin(), CatchPad->value_op_end())); in markAliveBlocks()
3184 auto *CatchPad = cast<CatchPadInst>(HandlerBB->getFirstNonPHIIt()); in markAliveBlocks() local
3185 if (!HandlerSet.insert({CatchPad, Empty}).second) { in markAliveBlocks()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp1609 CatchPadInst *CatchPad = IRB.CreateCatchPad(CatchSwitchLongjmp, {}); in handleLongjmpableCallsForWasmSjLj() local
1634 OperandBundleDef("funclet", CatchPad), "label"); in handleLongjmpableCallsForWasmSjLj()
1640 WasmLongjmpF, {Env, Val}, OperandBundleDef("funclet", CatchPad)); in handleLongjmpableCallsForWasmSjLj()
1645 IRB.CreateCatchRet(CatchPad, SetjmpDispatchBB); in handleLongjmpableCallsForWasmSjLj()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DAliasAnalysis.cpp494 ModRefInfo AAResults::getModRefInfo(const CatchPadInst *CatchPad, in getModRefInfo() argument
583 case Instruction::CatchPad: in getModRefInfo()
H A DValueTracking.cpp7032 case Instruction::CatchPad: in isSafeToSpeculativelyExecuteWithOpcode()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/SandboxVectorizer/
H A DLegality.cpp176 case Instruction::Opcode::CatchPad: in notVectorizableBasedOnOpcodesAndTypes()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp774 case CatchPad: return "catchpad"; in getOpcodeName()
1012 case Instruction::CatchPad: in mayReadFromMemory()
1032 case Instruction::CatchPad: in mayWriteToMemory()
H A DCore.cpp3510 LLVMValueRef LLVMBuildCatchRet(LLVMBuilderRef B, LLVMValueRef CatchPad, in LLVMBuildCatchRet() argument
3512 return wrap(unwrap(B)->CreateCatchRet(unwrap<CatchPadInst>(CatchPad), in LLVMBuildCatchRet()
3516 LLVMValueRef LLVMBuildCleanupRet(LLVMBuilderRef B, LLVMValueRef CatchPad, in LLVMBuildCleanupRet() argument
3518 return wrap(unwrap(B)->CreateCleanupRet(unwrap<CleanupPadInst>(CatchPad), in LLVMBuildCleanupRet()
3569 LLVMValueRef LLVMGetParentCatchSwitch(LLVMValueRef CatchPad) { in LLVMGetParentCatchSwitch() argument
3570 return wrap(unwrap<CatchPadInst>(CatchPad)->getCatchSwitch()); in LLVMGetParentCatchSwitch()
3573 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch) { in LLVMSetParentCatchSwitch() argument
3574 unwrap<CatchPadInst>(CatchPad) in LLVMSetParentCatchSwitch()
H A DInstructions.cpp1060 void CatchReturnInst::init(Value *CatchPad, BasicBlock *BB) { in init() argument
1061 Op<0>() = CatchPad; in init()
1072 CatchReturnInst::CatchReturnInst(Value *CatchPad, BasicBlock *BB, in CatchReturnInst() argument
1076 init(CatchPad, BB); in CatchReturnInst()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DInstruction.cpp709 CatchReturnInst *CatchReturnInst::create(CatchPadInst *CatchPad, BasicBlock *BB, in create() argument
713 cast<llvm::CatchPadInst>(CatchPad->Val), cast<llvm::BasicBlock>(BB->Val)); in create()
722 void CatchReturnInst::setCatchPad(CatchPadInst *CatchPad) { in setCatchPad() argument
727 cast<llvm::CatchPadInst>(CatchPad->Val)); in setCatchPad()
H A DContext.cpp159 case llvm::Instruction::CatchPad: { in getOrCreateValueInternal()
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h4436 LLVMValueRef CatchPad,
4439 LLVMValueRef CatchPad,
4515 LLVM_C_ABI LLVMValueRef LLVMGetParentCatchSwitch(LLVMValueRef CatchPad);
4524 LLVM_C_ABI void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad,
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLLexer.cpp961 INSTKEYWORD(catchpad, CatchPad); in LexIdentifier()
H A DLLParser.cpp7756 Value *CatchPad = nullptr; in parseCatchRet() local
7761 if (parseValue(Type::getTokenTy(Context), CatchPad, PFS)) in parseCatchRet()
7769 Inst = CatchReturnInst::Create(CatchPad, BB); in parseCatchRet()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp5623 Value *CatchPad = getValue(Record, Idx++, NextValueNo, TokenTy, in parseFunctionBody() local
5625 if (!CatchPad) in parseFunctionBody()
5631 I = CatchReturnInst::Create(CatchPad, BB); in parseFunctionBody()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp3327 case Instruction::CatchPad: { in writeInstruction()