| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | EHPersonalities.cpp | 160 Value *ParentPad = CatchRet->getCatchSwitchParentPad(); in colorEHFunclets() local 161 if (isa<ConstantTokenNone>(ParentPad)) in colorEHFunclets() 164 SuccColor = cast<Instruction>(ParentPad)->getParent(); in colorEHFunclets()
|
| H A D | Instructions.cpp | 1083 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() argument 1087 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, AllocMarker, in CatchSwitchInst() 1091 init(ParentPad, UnwindDest, NumReservedValues + 1); in CatchSwitchInst() 1106 void CatchSwitchInst::init(Value *ParentPad, BasicBlock *UnwindDest, in init() argument 1108 assert(ParentPad && NumReservedValues); in init() 1114 Op<0>() = ParentPad; in init() 1154 void FuncletPadInst::init(Value *ParentPad, ArrayRef<Value *> Args, in init() argument 1158 setParentPad(ParentPad); in init() 1170 FuncletPadInst::FuncletPadInst(Instruction::FuncletPadOps Op, Value *ParentPad, in FuncletPadInst() argument 1174 : Instruction(ParentPad->getType(), Op, AllocInfo, InsertBefore) { in FuncletPadInst() [all …]
|
| H A D | Core.cpp | 3477 LLVMValueRef LLVMBuildCatchPad(LLVMBuilderRef B, LLVMValueRef ParentPad, in LLVMBuildCatchPad() argument 3480 return wrap(unwrap(B)->CreateCatchPad(unwrap(ParentPad), in LLVMBuildCatchPad() 3484 LLVMValueRef LLVMBuildCleanupPad(LLVMBuilderRef B, LLVMValueRef ParentPad, in LLVMBuildCleanupPad() argument 3487 if (ParentPad == nullptr) { in LLVMBuildCleanupPad() 3489 ParentPad = wrap(Constant::getNullValue(Ty)); in LLVMBuildCleanupPad() 3492 unwrap(ParentPad), ArrayRef(unwrap(Args), NumArgs), Name)); in LLVMBuildCleanupPad() 3499 LLVMValueRef LLVMBuildCatchSwitch(LLVMBuilderRef B, LLVMValueRef ParentPad, in LLVMBuildCatchSwitch() argument 3502 if (ParentPad == nullptr) { in LLVMBuildCatchSwitch() 3504 ParentPad = wrap(Constant::getNullValue(Ty)); in LLVMBuildCatchSwitch() 3506 return wrap(unwrap(B)->CreateCatchSwitch(unwrap(ParentPad), unwrap(UnwindBB), in LLVMBuildCatchSwitch()
|
| H A D | Verifier.cpp | 4721 auto *ParentPad = CPI.getParentPad(); in visitCleanupPadInst() local 4722 Check(isa<ConstantTokenNone>(ParentPad) || isa<FuncletPadInst>(ParentPad), in visitCleanupPadInst() 4903 auto *ParentPad = CatchSwitch.getParentPad(); in visitCatchSwitchInst() local 4904 Check(isa<ConstantTokenNone>(ParentPad) || isa<FuncletPadInst>(ParentPad), in visitCatchSwitchInst() 4905 "CatchSwitchInst has an invalid parent.", ParentPad); in visitCatchSwitchInst() 4915 if (getParentPad(&*I) == ParentPad) in visitCatchSwitchInst()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGException.cpp | 973 llvm::Value *ParentPad = CGF.CurrentFuncletPad; in emitCatchPadBlock() local 974 if (!ParentPad) in emitCatchPadBlock() 975 ParentPad = llvm::ConstantTokenNone::get(CGF.getLLVMContext()); in emitCatchPadBlock() 981 CGF.Builder.CreateCatchSwitch(ParentPad, UnwindBB, NumHandlers); in emitCatchPadBlock() 1017 llvm::Value *ParentPad = CGF.CurrentFuncletPad; in emitWasmCatchPadBlock() local 1018 if (!ParentPad) in emitWasmCatchPadBlock() 1019 ParentPad = llvm::ConstantTokenNone::get(CGF.getLLVMContext()); in emitWasmCatchPadBlock() 1025 CGF.Builder.CreateCatchSwitch(ParentPad, UnwindBB, NumHandlers); in emitWasmCatchPadBlock() 1609 llvm::Value *ParentPad = CurrentFuncletPad; in getTerminateFunclet() local 1610 if (!ParentPad) in getTerminateFunclet() [all …]
|
| H A D | CGCleanup.cpp | 1048 llvm::Value *ParentPad = CurrentFuncletPad; in PopCleanupBlock() local 1049 if (!ParentPad) in PopCleanupBlock() 1050 ParentPad = llvm::ConstantTokenNone::get(CGM.getLLVMContext()); in PopCleanupBlock() 1051 CurrentFuncletPad = CPI = Builder.CreateCleanupPad(ParentPad); in PopCleanupBlock()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | WinEHPrepare.cpp | 359 Value *ParentPad) { in getEHPadFromPredecessor() argument 364 if (CatchSwitch->getParentPad() != ParentPad) in getEHPadFromPredecessor() 370 if (CleanupPad->getParentPad() != ParentPad) in getEHPadFromPredecessor() 686 const Value *ParentPad; in calculateClrEHStateNumbers() local 688 ParentPad = CPI->getParentPad(); in calculateClrEHStateNumbers() 690 ParentPad = CSI->getParentPad(); in calculateClrEHStateNumbers() 693 if (isa<ConstantTokenNone>(ParentPad)) in calculateClrEHStateNumbers()
|
| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Instruction.cpp | 659 void FuncletPadInst::setParentPad(Value *ParentPad) { in setParentPad() argument 663 cast<llvm::FuncletPadInst>(Val)->setParentPad(ParentPad->Val); in setParentPad() 683 CatchPadInst *CatchPadInst::create(Value *ParentPad, ArrayRef<Value *> Args, in create() argument 692 Builder.CreateCatchPad(ParentPad->Val, LLVMArgs, Name); in create() 696 CleanupPadInst *CleanupPadInst::create(Value *ParentPad, ArrayRef<Value *> Args, in create() argument 705 Builder.CreateCleanupPad(ParentPad->Val, LLVMArgs, Name); in create() 1042 CatchSwitchInst *CatchSwitchInst::create(Value *ParentPad, BasicBlock *UnwindBB, in create() argument 1048 ParentPad->Val, cast<llvm::BasicBlock>(UnwindBB->Val), NumHandlers, Name); in create() 1056 void CatchSwitchInst::setParentPad(Value *ParentPad) { in setParentPad() argument 1060 cast<llvm::CatchSwitchInst>(Val)->setParentPad(ParentPad->Val); in setParentPad()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | BasicBlockUtils.cpp | 751 Value *ParentPad = nullptr; in ehAwareSplitEdge() local 753 ParentPad = FuncletPad->getParentPad(); in ehAwareSplitEdge() 755 ParentPad = CatchSwitch->getParentPad(); in ehAwareSplitEdge() 757 ParentPad = CleanupPad->getParentPad(); in ehAwareSplitEdge() 759 ParentPad = LandingPad->getParent(); in ehAwareSplitEdge() 763 auto *NewCleanupPad = CleanupPadInst::Create(ParentPad, {}, BBName, NewBB); in ehAwareSplitEdge()
|
| H A D | InlineFunction.cpp | 736 if (auto *ParentPad = in HandleInlinedEHPad() local 746 UnwindDestToken = getUnwindDestToken(ParentPad, FuncletUnwindMap); in HandleInlinedEHPad()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | InstrTypes.h | 2363 Value *ParentPad, ArrayRef<Value *> Args, 2367 void init(Value *ParentPad, ArrayRef<Value *> Args, const Twine &NameStr); 2392 void setParentPad(Value *ParentPad) { 2393 assert(ParentPad); 2394 Op<-1>() = ParentPad;
|
| H A D | Instructions.h | 4120 LLVM_ABI CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, 4127 void init(Value *ParentPad, BasicBlock *UnwindDest, unsigned NumReserved); 4139 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest, 4143 return new CatchSwitchInst(ParentPad, UnwindDest, NumHandlers, NameStr, 4152 void setParentPad(Value *ParentPad) { setOperand(0, ParentPad); } 4269 explicit CleanupPadInst(Value *ParentPad, ArrayRef<Value *> Args, 4272 : FuncletPadInst(Instruction::CleanupPad, ParentPad, Args, AllocInfo, 4276 static CleanupPadInst *Create(Value *ParentPad, ArrayRef<Value *> Args = {}, 4281 CleanupPadInst(ParentPad, Args, AllocMarker, NameStr, InsertBefore);
|
| H A D | IRBuilder.h | 1322 CatchSwitchInst *CreateCatchSwitch(Value *ParentPad, BasicBlock *UnwindBB, 1325 return Insert(CatchSwitchInst::Create(ParentPad, UnwindBB, NumHandlers), 1329 CatchPadInst *CreateCatchPad(Value *ParentPad, ArrayRef<Value *> Args, 1331 return Insert(CatchPadInst::Create(ParentPad, Args), Name); 1334 CleanupPadInst *CreateCleanupPad(Value *ParentPad, 1337 return Insert(CleanupPadInst::Create(ParentPad, Args), Name);
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 1724 Value *ParentPad = CPI->getParentPad(); in handleLongjmpableCallsForWasmSjLj() local 1725 if (isa<ConstantTokenNone>(ParentPad)) in handleLongjmpableCallsForWasmSjLj() 1727 FromPad = cast<Instruction>(ParentPad); in handleLongjmpableCallsForWasmSjLj()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Instruction.h | 1577 LLVM_ABI void setParentPad(Value *ParentPad); 1600 LLVM_ABI static CatchPadInst *create(Value *ParentPad, ArrayRef<Value *> Args, 1614 LLVM_ABI static CleanupPadInst *create(Value *ParentPad, 1764 create(Value *ParentPad, BasicBlock *UnwindBB, unsigned NumHandlers, 1768 LLVM_ABI void setParentPad(Value *ParentPad);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm-c/ |
| H A D | Core.h | 4442 LLVMValueRef ParentPad, 4446 LLVMValueRef ParentPad, 4450 LLVMValueRef ParentPad,
|
| /freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 5643 Value *ParentPad = getValue(Record, Idx++, NextValueNo, TokenTy, in parseFunctionBody() local 5645 if (!ParentPad) in parseFunctionBody() 5669 CatchSwitchInst::Create(ParentPad, UnwindDest, NumHandlers); in parseFunctionBody() 5686 Value *ParentPad = getValue(Record, Idx++, NextValueNo, TokenTy, in parseFunctionBody() local 5688 if (!ParentPad) in parseFunctionBody() 5706 I = CleanupPadInst::Create(ParentPad, Args); in parseFunctionBody() 5708 I = CatchPadInst::Create(ParentPad, Args); in parseFunctionBody()
|
| /freebsd/contrib/llvm-project/llvm/lib/AsmParser/ |
| H A D | LLParser.cpp | 7776 Value *ParentPad; in parseCatchSwitch() local 7785 if (parseValue(Type::getTokenTy(Context), ParentPad, PFS)) in parseCatchSwitch() 7815 CatchSwitchInst::Create(ParentPad, UnwindBB, Table.size()); in parseCatchSwitch() 7847 Value *ParentPad = nullptr; in parseCleanupPad() local 7856 if (parseValue(Type::getTokenTy(Context), ParentPad, PFS)) in parseCleanupPad() 7863 Inst = CleanupPadInst::Create(ParentPad, Args); in parseCleanupPad()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 2024 Value *ParentPad = I.getCatchSwitchParentPad(); in visitCatchRet() local 2026 if (isa<ConstantTokenNone>(ParentPad)) in visitCatchRet() 2029 SuccessorColor = cast<Instruction>(ParentPad)->getParent(); in visitCatchRet()
|