Home
last modified time | relevance | path

Searched refs:UnwindDest (Results 1 – 21 of 21) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyCFGStackify.cpp88 MachineBasicBlock *UnwindDest);
92 MachineBasicBlock *UnwindDest);
93 MachineBasicBlock *getTrampolineBlock(MachineBasicBlock *UnwindDest);
1176 MachineBasicBlock *UnwindDest) { in addNestedTryDelegate() argument
1208 if (UnwindDest != FakeCallerBB) in addNestedTryDelegate()
1209 DelegateBB->addSuccessor(UnwindDest); in addNestedTryDelegate()
1292 .addMBB(UnwindDest); in addNestedTryDelegate()
1312 WebAssemblyCFGStackify::getTrampolineBlock(MachineBasicBlock *UnwindDest) { in getTrampolineBlock() argument
1316 auto It = UnwindDestToTrampoline.find(UnwindDest); in getTrampolineBlock()
1320 auto &MF = *UnwindDest->getParent(); in getTrampolineBlock()
[all …]
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp1709 BasicBlock *UnwindDest = nullptr; in handleLongjmpableCallsForWasmSjLj() local
1712 while (!UnwindDest) { in handleLongjmpableCallsForWasmSjLj()
1714 UnwindDest = CPI->getCatchSwitch()->getUnwindDest(); in handleLongjmpableCallsForWasmSjLj()
1723 UnwindDest = getCleanupRetUnwindDest(CPI); in handleLongjmpableCallsForWasmSjLj()
1731 if (!UnwindDest) in handleLongjmpableCallsForWasmSjLj()
1732 UnwindDest = CatchDispatchLongjmpBB; in handleLongjmpableCallsForWasmSjLj()
1737 UnwindDestToNewPreds[UnwindDest].insert(CI->getParent()); in handleLongjmpableCallsForWasmSjLj()
1738 changeToInvokeAndSplitBasicBlock(CI, UnwindDest); in handleLongjmpableCallsForWasmSjLj()
1773 for (auto &[UnwindDest, NewPreds] : UnwindDestToNewPreds) { in handleLongjmpableCallsForWasmSjLj()
1774 for (PHINode &PN : UnwindDest->phis()) { in handleLongjmpableCallsForWasmSjLj()
[all …]
H A DWebAssemblyExceptionInfo.cpp133 auto *UnwindDest = EHInfo->getUnwindDest(EHPad); in recalculate() local
135 auto *DstWE = getExceptionFor(UnwindDest); in recalculate()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp420 BasicBlock *UnwindDest = InnerCatchSwitch->getUnwindDest(); in calculateCXXStateNumbers() local
421 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers()
425 BasicBlock *UnwindDest = getCleanupRetUnwindDest(InnerCleanupPad); in calculateCXXStateNumbers() local
429 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers()
540 BasicBlock *UnwindDest = InnerCatchSwitch->getUnwindDest(); in calculateSEHStateNumbers() local
541 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateSEHStateNumbers()
545 BasicBlock *UnwindDest = getCleanupRetUnwindDest(InnerCleanupPad); in calculateSEHStateNumbers() local
549 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateSEHStateNumbers()
761 const BasicBlock *UnwindDest; in calculateClrEHStateNumbers() local
771 UnwindDest = Catch->getCatchSwitch()->getUnwindDest(); in calculateClrEHStateNumbers()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DFunctionPropertiesAnalysis.cpp451 const auto *UnwindDest = II->getUnwindDest(); in FunctionPropertiesUpdater() local
452 Successors.insert_range(successors(UnwindDest)); in FunctionPropertiesUpdater()
454 for (auto *Succ : successors(UnwindDest)) in FunctionPropertiesUpdater()
457 const_cast<BasicBlock *>(UnwindDest), in FunctionPropertiesUpdater()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp738 BasicBlock *UnwindDest, uint32_t Flags, ArrayRef<T0> InvokeArgs, in CreateGCStatepointInvokeCommon() argument
753 FnStatepoint, NormalDest, UnwindDest, Args, in CreateGCStatepointInvokeCommon()
763 BasicBlock *NormalDest, BasicBlock *UnwindDest, in CreateGCStatepointInvoke() argument
767 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, in CreateGCStatepointInvoke()
774 BasicBlock *NormalDest, BasicBlock *UnwindDest, uint32_t Flags, in CreateGCStatepointInvoke() argument
779 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, Flags, in CreateGCStatepointInvoke()
785 BasicBlock *NormalDest, BasicBlock *UnwindDest, ArrayRef<Use> InvokeArgs, in CreateGCStatepointInvoke() argument
789 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, in CreateGCStatepointInvoke()
H A DVerifier.cpp2821 BasicBlock *UnwindDest; in getSuccPad() local
2823 UnwindDest = II->getUnwindDest(); in getSuccPad()
2825 UnwindDest = CSI->getUnwindDest(); in getSuccPad()
2827 UnwindDest = cast<CleanupReturnInst>(Terminator)->getUnwindDest(); in getSuccPad()
2828 return &*UnwindDest->getFirstNonPHIIt(); in getSuccPad()
4741 BasicBlock *UnwindDest; in visitFuncletPadInst() local
4743 UnwindDest = CRI->getUnwindDest(); in visitFuncletPadInst()
4751 UnwindDest = CSI->getUnwindDest(); in visitFuncletPadInst()
4753 UnwindDest = II->getUnwindDest(); in visitFuncletPadInst()
4772 if (UnwindDest) { in visitFuncletPadInst()
[all …]
H A DInstructions.cpp1083 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() argument
1089 if (UnwindDest) in CatchSwitchInst()
1091 init(ParentPad, UnwindDest, NumReservedValues + 1); in CatchSwitchInst()
1106 void CatchSwitchInst::init(Value *ParentPad, BasicBlock *UnwindDest, in init() argument
1111 setNumHungOffUseOperands(UnwindDest ? 2 : 1); in init()
1115 if (UnwindDest) { in init()
1117 setUnwindDest(UnwindDest); in init()
H A DInstruction.cpp1184 BasicBlock *UnwindDest = cast<InvokeInst>(this)->getUnwindDest(); in mayThrow() local
1185 BasicBlock::iterator Pad = UnwindDest->getFirstNonPHIIt(); in mayThrow()
H A DAsmWriter.cpp4560 if (const BasicBlock *UnwindDest = CatchSwitch->getUnwindDest()) in printInstruction() local
4561 writeOperand(UnwindDest, /*PrintType=*/true); in printInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp680 BasicBlock *UnwindDest = II->getUnwindDest(); in HandleInlinedEHPad() local
683 assert(UnwindDest->getFirstNonPHIIt()->isEHPad() && "unexpected BasicBlock!"); in HandleInlinedEHPad()
690 for (PHINode &PHI : UnwindDest->phis()) { in HandleInlinedEHPad()
698 BasicBlock::iterator I = UnwindDest->begin(); in HandleInlinedEHPad()
714 CleanupReturnInst::Create(CleanupPad, UnwindDest, CRI->getIterator()); in HandleInlinedEHPad()
760 CatchSwitch->getParentPad(), UnwindDest, in HandleInlinedEHPad()
789 &*BB, UnwindDest, &FuncletUnwindMap)) in HandleInlinedEHPad()
798 UnwindDest->removePredecessor(InvokeBB); in HandleInlinedEHPad()
3047 BasicBlock *UnwindDest = II->getUnwindDest(); in InlineFunction() local
3048 BasicBlock::iterator FirstNonPHI = UnwindDest->getFirstNonPHIIt(); in InlineFunction()
H A DSimplifyCFG.cpp5309 BasicBlock *UnwindDest = RI->getUnwindDest(); in removeEmptyCleanup() local
5316 if (UnwindDest) { in removeEmptyCleanup()
5319 for (PHINode &DestPN : UnwindDest->phis()) { in removeEmptyCleanup()
5346 BasicBlock::iterator InsertPt = UnwindDest->getFirstNonPHIIt(); in removeEmptyCleanup()
5358 for (auto *pred : predecessors(UnwindDest)) in removeEmptyCleanup()
5372 if (UnwindDest == nullptr) { in removeEmptyCleanup()
5382 TI->replaceUsesOfWith(BB, UnwindDest); in removeEmptyCleanup()
5384 Updates.push_back({DominatorTree::Insert, PredBB, UnwindDest}); in removeEmptyCleanup()
5402 BasicBlock *UnwindDest = RI->getUnwindDest(); in mergeCleanupPad() local
5403 if (!UnwindDest) in mergeCleanupPad()
[all …]
H A DLocal.cpp3218 BasicBlock *UnwindDest; in removeUnwindEdge() local
3222 UnwindDest = CRI->getUnwindDest(); in removeUnwindEdge()
3231 UnwindDest = CatchSwitch->getUnwindDest(); in removeUnwindEdge()
3238 UnwindDest->removePredecessor(BB); in removeUnwindEdge()
3242 DTU->applyUpdates({{DominatorTree::Delete, BB, UnwindDest}}); in removeUnwindEdge()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h918 BasicBlock *UnwindDest, ArrayRef<Value *> InvokeArgs,
926 BasicBlock *NormalDest, BasicBlock *UnwindDest, uint32_t Flags,
937 BasicBlock *UnwindDest, ArrayRef<Use> InvokeArgs,
1241 BasicBlock *NormalDest, BasicBlock *UnwindDest,
1246 InvokeInst::Create(Ty, Callee, NormalDest, UnwindDest, Args, OpBundles);
1252 BasicBlock *NormalDest, BasicBlock *UnwindDest,
1256 InvokeInst::Create(Ty, Callee, NormalDest, UnwindDest, Args);
1263 BasicBlock *UnwindDest, ArrayRef<Value *> Args,
1267 NormalDest, UnwindDest, Args, OpBundles, Name);
1271 BasicBlock *UnwindDest, ArrayRef<Value *> Args = {},
[all …]
H A DInstructions.h4120 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,
4162 void setUnwindDest(BasicBlock *UnwindDest) {
4163 assert(UnwindDest);
4165 setOperand(1, UnwindDest);
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp5607 BasicBlock *UnwindDest = nullptr; in parseFunctionBody() local
5609 UnwindDest = getBasicBlock(Record[Idx++]); in parseFunctionBody()
5610 if (!UnwindDest) in parseFunctionBody()
5614 I = CleanupReturnInst::Create(CleanupPad, UnwindDest); in parseFunctionBody()
5658 BasicBlock *UnwindDest = nullptr; in parseFunctionBody() local
5660 UnwindDest = getBasicBlock(Record[Idx++]); in parseFunctionBody()
5661 if (!UnwindDest) in parseFunctionBody()
5669 CatchSwitchInst::Create(ParentPad, UnwindDest, NumHandlers); in parseFunctionBody()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp2993 for (auto &UnwindDest : UnwindDests) { in translateInvoke() local
2994 UnwindDest.first->setIsEHPad(); in translateInvoke()
2995 addSuccessorWithProb(InvokeMBB, UnwindDest.first, UnwindDest.second); in translateInvoke()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DInstruction.cpp1068 void CatchSwitchInst::setUnwindDest(BasicBlock *UnwindDest) { in setUnwindDest() argument
1073 cast<llvm::BasicBlock>(UnwindDest->Val)); in setUnwindDest()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2114 auto UnwindDest = I.getUnwindDest(); in visitCleanupRet() local
2117 (BPI && UnwindDest) in visitCleanupRet()
2118 ? BPI->getEdgeProbability(FuncInfo.MBB->getBasicBlock(), UnwindDest) in visitCleanupRet()
2120 findUnwindDestinations(FuncInfo, UnwindDest, UnwindDestProb, UnwindDests); in visitCleanupRet()
2121 for (auto &UnwindDest : UnwindDests) { in visitCleanupRet() local
2122 UnwindDest.first->setIsEHPad(); in visitCleanupRet()
2123 addSuccessorWithProb(FuncInfo.MBB, UnwindDest.first, UnwindDest.second); in visitCleanupRet()
3461 for (auto &UnwindDest : UnwindDests) { in visitInvoke() local
3462 UnwindDest.first->setIsEHPad(); in visitInvoke()
3463 addSuccessorWithProb(InvokeMBB, UnwindDest.first, UnwindDest.second); in visitInvoke()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DInstruction.h1777 LLVM_ABI void setUnwindDest(BasicBlock *UnwindDest);
/freebsd/contrib/llvm-project/llvm/include/llvm/Testing/Demangle/
H A DDemangleTestCases.inc2939 …odeGen::CodeGenFunction::EmitBranchThroughEHCleanup(clang::CodeGen::CodeGenFunction::UnwindDest)"},
3122UnwindDest, llvm::DenseMapInfo<llvm::Value*>, llvm::DenseMapInfo<clang::CodeGen::CodeGenFunction::
3123 …Gen::CodeGenFunction::UnwindDest, llvm::DenseMapInfo<llvm::Value*>, llvm::DenseMapInfo<clang::Code…