Home
last modified time | relevance | path

Searched refs:CleanupPad (Results 1 – 22 of 22) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp182 static BasicBlock *getCleanupRetUnwindDest(const CleanupPadInst *CleanupPad) { in getCleanupRetUnwindDest() argument
183 for (const User *U : CleanupPad->users()) in getCleanupRetUnwindDest()
210 else if (auto *CleanupPad = dyn_cast<CleanupPadInst>(FuncletPad)) in calculateStateNumbersForInvokes() local
211 FuncletUnwindDest = getCleanupRetUnwindDest(CleanupPad); in calculateStateNumbersForInvokes()
369 auto *CleanupPad = cast<CleanupReturnInst>(TI)->getCleanupPad(); in getEHPadFromPredecessor() local
370 if (CleanupPad->getParentPad() != ParentPad) in getEHPadFromPredecessor()
372 return CleanupPad->getParent(); in getEHPadFromPredecessor()
447 auto *CleanupPad = cast<CleanupPadInst>(FirstNonPHI); in calculateCXXStateNumbers() local
451 auto [It, Inserted] = FuncInfo.EHPadStateMap.try_emplace(CleanupPad); in calculateCXXStateNumbers()
461 CleanupPad->getParentPad()))) { in calculateCXXStateNumbers()
[all …]
H A DTargetLoweringBase.cpp1859 case CleanupPad: return 0; in InstructionOpcodeToISD()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DValues.def82 DEF_INSTR(CleanupPad, OP(CleanupPad), CleanupPadInst)
H A DInstruction.h1586 From->getSubclassID() == ClassID::CleanupPad; in classof()
1610 : FuncletPadInst(ClassID::CleanupPad, Opcode::CleanupPad, CPI, Ctx) {} in CleanupPadInst()
1619 return From->getSubclassID() == ClassID::CleanupPad; in classof()
1655 LLVM_ABI static CleanupReturnInst *create(CleanupPadInst *CleanupPad,
1665 LLVM_ABI void setCleanupPad(CleanupPadInst *CleanupPad);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DSpillUtils.cpp111 auto *CleanupPad = in splitBeforeCatchSwitch() local
114 CleanupReturnInst::Create(CleanupPad, NewBlock, CurrentBlock); in splitBeforeCatchSwitch()
H A DCoroFrame.cpp1319 CleanupPadInst *CleanupPad) { in rewritePHIsForCleanupPad() argument
1362 CleanupPad->removeFromParent(); in rewritePHIsForCleanupPad()
1363 CleanupPad->insertAfter(SetDispatchValuePN->getIterator()); in rewritePHIsForCleanupPad()
1435 if (auto *CleanupPad = in rewritePHIs() local
1445 rewritePHIsForCleanupPad(&BB, CleanupPad); in rewritePHIs()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp327 auto *CleanupPad = cast<CleanupPadInst>(CurrentPad); in getUnwindDestTokenHelper() local
328 for (User *U : CleanupPad->users()) { in getUnwindDestTokenHelper()
333 UnwindDestToken = ConstantTokenNone::get(CleanupPad->getContext()); in getUnwindDestTokenHelper()
360 getParentPad(ChildUnwindDestToken) == CleanupPad) in getUnwindDestTokenHelper()
713 auto *CleanupPad = CRI->getCleanupPad(); in HandleInlinedEHPad() local
714 CleanupReturnInst::Create(CleanupPad, UnwindDest, CRI->getIterator()); in HandleInlinedEHPad()
721 assert(!FuncletUnwindMap.count(CleanupPad) || in HandleInlinedEHPad()
722 isa<ConstantTokenNone>(FuncletUnwindMap[CleanupPad])); in HandleInlinedEHPad()
723 FuncletUnwindMap[CleanupPad] = in HandleInlinedEHPad()
H A DBasicBlockUtils.cpp756 else if (auto *CleanupPad = dyn_cast<CleanupPadInst>(PadInst)) in ehAwareSplitEdge() local
757 ParentPad = CleanupPad->getParentPad(); in ehAwareSplitEdge()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/SandboxVectorizer/
H A DLegality.cpp177 case Instruction::Opcode::CleanupPad: in notVectorizableBasedOnOpcodesAndTypes()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstructions.h4272 : FuncletPadInst(Instruction::CleanupPad, ParentPad, Args, AllocInfo,
4286 return I->getOpcode() == Instruction::CleanupPad;
4416 LLVM_ABI CleanupReturnInst(Value *CleanupPad, BasicBlock *UnwindBB,
4420 void init(Value *CleanupPad, BasicBlock *UnwindBB);
4429 static CleanupReturnInst *Create(Value *CleanupPad,
4432 assert(CleanupPad);
4438 CleanupReturnInst(CleanupPad, UnwindBB, AllocMarker, InsertBefore);
4451 void setCleanupPad(CleanupPadInst *CleanupPad) {
4452 assert(CleanupPad);
4453 Op<0>() = CleanupPad;
H A DInstruction.def200 HANDLE_FUNCLETPAD_INST(51, CleanupPad, CleanupPadInst)
H A DInstruction.h882 case Instruction::CleanupPad:
H A DIRBuilder.h1317 CleanupReturnInst *CreateCleanupRet(CleanupPadInst *CleanupPad,
1319 return Insert(CleanupReturnInst::Create(CleanupPad, UnwindBB));
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DInstruction.cpp748 CleanupReturnInst *CleanupReturnInst::create(CleanupPadInst *CleanupPad, in create() argument
755 cast<llvm::CleanupPadInst>(CleanupPad->Val), LLVMUnwindBB); in create()
764 void CleanupReturnInst::setCleanupPad(CleanupPadInst *CleanupPad) { in setCleanupPad() argument
770 cast<llvm::CleanupPadInst>(CleanupPad->Val)); in setCleanupPad()
H A DContext.cpp165 case llvm::Instruction::CleanupPad: { in getOrCreateValueInternal()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp840 case CleanupPad: return "cleanuppad"; in getOpcodeName()
1190 case Instruction::CleanupPad: in mayThrow()
H A DInstructions.cpp1040 void CleanupReturnInst::init(Value *CleanupPad, BasicBlock *UnwindBB) { in init() argument
1044 Op<0>() = CleanupPad; in init()
1049 CleanupReturnInst::CleanupReturnInst(Value *CleanupPad, BasicBlock *UnwindBB, in CleanupReturnInst() argument
1052 : Instruction(Type::getVoidTy(CleanupPad->getContext()), in CleanupReturnInst()
1054 init(CleanupPad, UnwindBB); in CleanupReturnInst()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLLexer.cpp962 INSTKEYWORD(cleanuppad, CleanupPad); in LexIdentifier()
H A DLLParser.cpp7727 Value *CleanupPad = nullptr; in parseCleanupRet() local
7732 if (parseValue(Type::getTokenTy(Context), CleanupPad, PFS)) in parseCleanupRet()
7749 Inst = CleanupReturnInst::Create(CleanupPad, UnwindBB); in parseCleanupRet()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp5603 Value *CleanupPad = getValue(Record, Idx++, NextValueNo, TokenTy, in parseFunctionBody() local
5605 if (!CleanupPad) in parseFunctionBody()
5614 I = CleanupReturnInst::Create(CleanupPad, UnwindDest); in parseFunctionBody()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp3326 case Instruction::CleanupPad: in writeInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp7034 case Instruction::CleanupPad: in isSafeToSpeculativelyExecuteWithOpcode()