/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | EHPersonalities.cpp | 152 Value *ParentPad = CatchRet->getCatchSwitchParentPad(); in colorEHFunclets() local 153 if (isa<ConstantTokenNone>(ParentPad)) in colorEHFunclets() 156 SuccColor = cast<Instruction>(ParentPad)->getParent(); in colorEHFunclets()
|
H A D | Instructions.cpp | 1017 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() argument 1021 : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0, in CatchSwitchInst() 1025 init(ParentPad, UnwindDest, NumReservedValues + 1); in CatchSwitchInst() 1040 void CatchSwitchInst::init(Value *ParentPad, BasicBlock *UnwindDest, in init() argument 1042 assert(ParentPad && NumReservedValues); in init() 1048 Op<0>() = ParentPad; in init() 1088 void FuncletPadInst::init(Value *ParentPad, ArrayRef<Value *> Args, in init() argument 1092 setParentPad(ParentPad); in init() 1105 FuncletPadInst::FuncletPadInst(Instruction::FuncletPadOps Op, Value *ParentPad, in FuncletPadInst() argument 1109 : Instruction(ParentPad->getType(), Op, in FuncletPadInst() [all …]
|
H A D | Core.cpp | 3422 LLVMValueRef LLVMBuildCatchPad(LLVMBuilderRef B, LLVMValueRef ParentPad, in LLVMBuildCatchPad() argument 3425 return wrap(unwrap(B)->CreateCatchPad(unwrap(ParentPad), in LLVMBuildCatchPad() 3429 LLVMValueRef LLVMBuildCleanupPad(LLVMBuilderRef B, LLVMValueRef ParentPad, in LLVMBuildCleanupPad() argument 3432 if (ParentPad == nullptr) { in LLVMBuildCleanupPad() 3434 ParentPad = wrap(Constant::getNullValue(Ty)); in LLVMBuildCleanupPad() 3437 unwrap(ParentPad), ArrayRef(unwrap(Args), NumArgs), Name)); in LLVMBuildCleanupPad() 3444 LLVMValueRef LLVMBuildCatchSwitch(LLVMBuilderRef B, LLVMValueRef ParentPad, in LLVMBuildCatchSwitch() argument 3447 if (ParentPad == nullptr) { in LLVMBuildCatchSwitch() 3449 ParentPad = wrap(Constant::getNullValue(Ty)); in LLVMBuildCatchSwitch() 3451 return wrap(unwrap(B)->CreateCatchSwitch(unwrap(ParentPad), unwrap(UnwindBB), in LLVMBuildCatchSwitch()
|
H A D | Verifier.cpp | 4553 auto *ParentPad = CPI.getParentPad(); in visitCleanupPadInst() local 4554 Check(isa<ConstantTokenNone>(ParentPad) || isa<FuncletPadInst>(ParentPad), in visitCleanupPadInst() 4735 auto *ParentPad = CatchSwitch.getParentPad(); in visitCatchSwitchInst() local 4736 Check(isa<ConstantTokenNone>(ParentPad) || isa<FuncletPadInst>(ParentPad), in visitCatchSwitchInst() 4737 "CatchSwitchInst has an invalid parent.", ParentPad); in visitCatchSwitchInst() 4747 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 | 1032 llvm::Value *ParentPad = CurrentFuncletPad; in PopCleanupBlock() local 1033 if (!ParentPad) in PopCleanupBlock() 1034 ParentPad = llvm::ConstantTokenNone::get(CGM.getLLVMContext()); in PopCleanupBlock() 1035 CurrentFuncletPad = CPI = Builder.CreateCleanupPad(ParentPad); in PopCleanupBlock()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | WinEHPrepare.cpp | 357 Value *ParentPad) { in getEHPadFromPredecessor() argument 362 if (CatchSwitch->getParentPad() != ParentPad) in getEHPadFromPredecessor() 368 if (CleanupPad->getParentPad() != ParentPad) in getEHPadFromPredecessor() 682 const Value *ParentPad; in calculateClrEHStateNumbers() local 684 ParentPad = CPI->getParentPad(); in calculateClrEHStateNumbers() 686 ParentPad = CSI->getParentPad(); in calculateClrEHStateNumbers() 689 if (isa<ConstantTokenNone>(ParentPad)) in calculateClrEHStateNumbers()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | BasicBlockUtils.cpp | 891 Value *ParentPad = nullptr; in ehAwareSplitEdge() local 893 ParentPad = FuncletPad->getParentPad(); in ehAwareSplitEdge() 895 ParentPad = CatchSwitch->getParentPad(); in ehAwareSplitEdge() 897 ParentPad = CleanupPad->getParentPad(); in ehAwareSplitEdge() 899 ParentPad = LandingPad->getParent(); in ehAwareSplitEdge() 903 auto *NewCleanupPad = CleanupPadInst::Create(ParentPad, {}, BBName, NewBB); in ehAwareSplitEdge()
|
H A D | InlineFunction.cpp | 717 if (auto *ParentPad = in HandleInlinedEHPad() local 727 UnwindDestToken = getUnwindDestToken(ParentPad, FuncletUnwindMap); in HandleInlinedEHPad()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Instructions.h | 3968 CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, 3975 void init(Value *ParentPad, BasicBlock *UnwindDest, unsigned NumReserved); 3987 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest, 3991 return new CatchSwitchInst(ParentPad, UnwindDest, NumHandlers, NameStr, 4000 void setParentPad(Value *ParentPad) { setOperand(0, ParentPad); } 4117 explicit CleanupPadInst(Value *ParentPad, ArrayRef<Value *> Args, 4120 : FuncletPadInst(Instruction::CleanupPad, ParentPad, Args, Values, 4124 static CleanupPadInst *Create(Value *ParentPad, 4130 CleanupPadInst(ParentPad, Args, Values, NameStr, InsertBefore);
|
H A D | InstrTypes.h | 2421 explicit FuncletPadInst(Instruction::FuncletPadOps Op, Value *ParentPad, 2425 void init(Value *ParentPad, ArrayRef<Value *> Args, const Twine &NameStr); 2450 void setParentPad(Value *ParentPad) { 2451 assert(ParentPad); 2452 Op<-1>() = ParentPad;
|
H A D | IRBuilder.h | 1246 CatchSwitchInst *CreateCatchSwitch(Value *ParentPad, BasicBlock *UnwindBB, 1249 return Insert(CatchSwitchInst::Create(ParentPad, UnwindBB, NumHandlers), 1253 CatchPadInst *CreateCatchPad(Value *ParentPad, ArrayRef<Value *> Args, 1255 return Insert(CatchPadInst::Create(ParentPad, Args), Name); 1258 CleanupPadInst *CreateCleanupPad(Value *ParentPad, 1261 return Insert(CleanupPadInst::Create(ParentPad, Args), Name);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 1718 Value *ParentPad = CPI->getParentPad(); in handleLongjmpableCallsForWasmSjLj() local 1719 if (isa<ConstantTokenNone>(ParentPad)) in handleLongjmpableCallsForWasmSjLj() 1721 FromPad = cast<Instruction>(ParentPad); in handleLongjmpableCallsForWasmSjLj()
|
/freebsd/contrib/llvm-project/llvm/include/llvm-c/ |
H A D | Core.h | 4205 LLVMValueRef LLVMBuildCatchPad(LLVMBuilderRef B, LLVMValueRef ParentPad, 4208 LLVMValueRef LLVMBuildCleanupPad(LLVMBuilderRef B, LLVMValueRef ParentPad, 4211 LLVMValueRef LLVMBuildCatchSwitch(LLVMBuilderRef B, LLVMValueRef ParentPad,
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 5551 Value *ParentPad = getValue(Record, Idx++, NextValueNo, TokenTy, in parseFunctionBody() local 5553 if (!ParentPad) in parseFunctionBody() 5577 CatchSwitchInst::Create(ParentPad, UnwindDest, NumHandlers); in parseFunctionBody() 5594 Value *ParentPad = getValue(Record, Idx++, NextValueNo, TokenTy, in parseFunctionBody() local 5596 if (!ParentPad) in parseFunctionBody() 5614 I = CleanupPadInst::Create(ParentPad, Args); in parseFunctionBody() 5616 I = CatchPadInst::Create(ParentPad, Args); in parseFunctionBody()
|
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/ |
H A D | LLParser.cpp | 7462 Value *ParentPad; in parseCatchSwitch() local 7471 if (parseValue(Type::getTokenTy(Context), ParentPad, PFS)) in parseCatchSwitch() 7501 CatchSwitchInst::Create(ParentPad, UnwindBB, Table.size()); in parseCatchSwitch() 7533 Value *ParentPad = nullptr; in parseCleanupPad() local 7542 if (parseValue(Type::getTokenTy(Context), ParentPad, PFS)) in parseCleanupPad() 7549 Inst = CleanupPadInst::Create(ParentPad, Args); in parseCleanupPad()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGBuilder.cpp | 1998 Value *ParentPad = I.getCatchSwitchParentPad(); in visitCatchRet() local 2000 if (isa<ConstantTokenNone>(ParentPad)) in visitCatchRet() 2003 SuccessorColor = cast<Instruction>(ParentPad)->getParent(); in visitCatchRet()
|