Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp418 BasicBlock *UnwindDest = InnerCatchSwitch->getUnwindDest(); in calculateCXXStateNumbers() local
419 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers()
423 BasicBlock *UnwindDest = getCleanupRetUnwindDest(InnerCleanupPad); in calculateCXXStateNumbers() local
427 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers()
537 BasicBlock *UnwindDest = InnerCatchSwitch->getUnwindDest(); in calculateSEHStateNumbers() local
538 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateSEHStateNumbers()
542 BasicBlock *UnwindDest = getCleanupRetUnwindDest(InnerCleanupPad); in calculateSEHStateNumbers() local
546 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateSEHStateNumbers()
757 const BasicBlock *UnwindDest; in calculateClrEHStateNumbers() local
767 UnwindDest = Catch->getCatchSwitch()->getUnwindDest(); in calculateClrEHStateNumbers()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyCFGStackify.cpp1116 MachineBasicBlock *UnwindDest = getFakeCallerBlock(MF); in fixCallUnwindMismatches() local
1124 UnwindDest = Succ; in fixCallUnwindMismatches()
1128 if (EHPadStack.back() == UnwindDest) in fixCallUnwindMismatches()
1141 UnwindDestToTryRanges[UnwindDest].push_back( in fixCallUnwindMismatches()
1145 << "\nOriginal dest = " << UnwindDest->getName() in fixCallUnwindMismatches()
1224 MachineBasicBlock *UnwindDest = P.first; in fixCallUnwindMismatches() local
1247 addTryDelegate(RangeBegin, RangeEnd, UnwindDest); in fixCallUnwindMismatches()
1334 auto *UnwindDest = EHInfo->getUnwindDest(EHPad); in fixCatchUnwindMismatches() local
1335 if (EHPadStack.back() != UnwindDest) { in fixCatchUnwindMismatches()
1336 EHPadToUnwindDest[EHPad] = UnwindDest; in fixCatchUnwindMismatches()
[all …]
H A DWebAssemblyExceptionInfo.cpp134 auto *UnwindDest = EHInfo->getUnwindDest(EHPad); in recalculate() local
136 auto *DstWE = getExceptionFor(UnwindDest); in recalculate()
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp1703 BasicBlock *UnwindDest = nullptr; in handleLongjmpableCallsForWasmSjLj() local
1706 while (!UnwindDest) { in handleLongjmpableCallsForWasmSjLj()
1708 UnwindDest = CPI->getCatchSwitch()->getUnwindDest(); in handleLongjmpableCallsForWasmSjLj()
1717 UnwindDest = getCleanupRetUnwindDest(CPI); in handleLongjmpableCallsForWasmSjLj()
1725 if (!UnwindDest) in handleLongjmpableCallsForWasmSjLj()
1726 UnwindDest = CatchDispatchLongjmpBB; in handleLongjmpableCallsForWasmSjLj()
1727 changeToInvokeAndSplitBasicBlock(CI, UnwindDest); in handleLongjmpableCallsForWasmSjLj()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DFunctionPropertiesAnalysis.cpp337 const auto *UnwindDest = II->getUnwindDest(); in FunctionPropertiesUpdater() local
338 Successors.insert(succ_begin(UnwindDest), succ_end(UnwindDest)); in FunctionPropertiesUpdater()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp817 BasicBlock *UnwindDest, uint32_t Flags, ArrayRef<T0> InvokeArgs, in CreateGCStatepointInvokeCommon() argument
832 FnStatepoint, NormalDest, UnwindDest, Args, in CreateGCStatepointInvokeCommon()
842 BasicBlock *NormalDest, BasicBlock *UnwindDest, in CreateGCStatepointInvoke() argument
846 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, in CreateGCStatepointInvoke()
853 BasicBlock *NormalDest, BasicBlock *UnwindDest, uint32_t Flags, in CreateGCStatepointInvoke() argument
858 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, Flags, in CreateGCStatepointInvoke()
864 BasicBlock *NormalDest, BasicBlock *UnwindDest, ArrayRef<Use> InvokeArgs, in CreateGCStatepointInvoke() argument
868 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, in CreateGCStatepointInvoke()
H A DVerifier.cpp2683 BasicBlock *UnwindDest; in getSuccPad() local
2685 UnwindDest = II->getUnwindDest(); in getSuccPad()
2687 UnwindDest = CSI->getUnwindDest(); in getSuccPad()
2689 UnwindDest = cast<CleanupReturnInst>(Terminator)->getUnwindDest(); in getSuccPad()
2690 return UnwindDest->getFirstNonPHI(); in getSuccPad()
4573 BasicBlock *UnwindDest; in visitFuncletPadInst() local
4575 UnwindDest = CRI->getUnwindDest(); in visitFuncletPadInst()
4583 UnwindDest = CSI->getUnwindDest(); in visitFuncletPadInst()
4585 UnwindDest = II->getUnwindDest(); in visitFuncletPadInst()
4604 if (UnwindDest) { in visitFuncletPadInst()
[all …]
H A DInstructions.cpp1017 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() argument
1023 if (UnwindDest) in CatchSwitchInst()
1025 init(ParentPad, UnwindDest, NumReservedValues + 1); in CatchSwitchInst()
1040 void CatchSwitchInst::init(Value *ParentPad, BasicBlock *UnwindDest, in init() argument
1045 setNumHungOffUseOperands(UnwindDest ? 2 : 1); in init()
1049 if (UnwindDest) { in init()
1051 setUnwindDest(UnwindDest); in init()
H A DInstruction.cpp1109 BasicBlock *UnwindDest = cast<InvokeInst>(this)->getUnwindDest(); in mayThrow() local
1110 Instruction *Pad = UnwindDest->getFirstNonPHI(); in mayThrow()
H A DAsmWriter.cpp4367 if (const BasicBlock *UnwindDest = CatchSwitch->getUnwindDest()) in printInstruction() local
4368 writeOperand(UnwindDest, /*PrintType=*/true); in printInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp661 BasicBlock *UnwindDest = II->getUnwindDest(); in HandleInlinedEHPad() local
664 assert(UnwindDest->getFirstNonPHI()->isEHPad() && "unexpected BasicBlock!"); in HandleInlinedEHPad()
671 for (PHINode &PHI : UnwindDest->phis()) { in HandleInlinedEHPad()
679 BasicBlock::iterator I = UnwindDest->begin(); in HandleInlinedEHPad()
695 CleanupReturnInst::Create(CleanupPad, UnwindDest, CRI->getIterator()); in HandleInlinedEHPad()
741 CatchSwitch->getParentPad(), UnwindDest, in HandleInlinedEHPad()
770 &*BB, UnwindDest, &FuncletUnwindMap)) in HandleInlinedEHPad()
779 UnwindDest->removePredecessor(InvokeBB); in HandleInlinedEHPad()
2719 BasicBlock *UnwindDest = II->getUnwindDest(); in InlineFunction() local
2720 Instruction *FirstNonPHI = UnwindDest->getFirstNonPHI(); in InlineFunction()
H A DSimplifyCFG.cpp5159 BasicBlock *UnwindDest = RI->getUnwindDest(); in removeEmptyCleanup() local
5160 Instruction *DestEHPad = UnwindDest ? UnwindDest->getFirstNonPHI() : nullptr; in removeEmptyCleanup()
5167 if (UnwindDest) { in removeEmptyCleanup()
5170 for (PHINode &DestPN : UnwindDest->phis()) { in removeEmptyCleanup()
5209 for (auto *pred : predecessors(UnwindDest)) in removeEmptyCleanup()
5223 if (UnwindDest == nullptr) { in removeEmptyCleanup()
5233 TI->replaceUsesOfWith(BB, UnwindDest); in removeEmptyCleanup()
5235 Updates.push_back({DominatorTree::Insert, PredBB, UnwindDest}); in removeEmptyCleanup()
5253 BasicBlock *UnwindDest = RI->getUnwindDest(); in mergeCleanupPad() local
5254 if (!UnwindDest) in mergeCleanupPad()
[all …]
H A DLocal.cpp3177 BasicBlock *UnwindDest; in removeUnwindEdge() local
3181 UnwindDest = CRI->getUnwindDest(); in removeUnwindEdge()
3190 UnwindDest = CatchSwitch->getUnwindDest(); in removeUnwindEdge()
3197 UnwindDest->removePredecessor(BB); in removeUnwindEdge()
3201 DTU->applyUpdates({{DominatorTree::Delete, BB, UnwindDest}}); in removeUnwindEdge()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h900 BasicBlock *UnwindDest, ArrayRef<Value *> InvokeArgs,
908 BasicBlock *NormalDest, BasicBlock *UnwindDest, uint32_t Flags,
919 BasicBlock *UnwindDest, ArrayRef<Use> InvokeArgs,
1164 BasicBlock *NormalDest, BasicBlock *UnwindDest,
1169 InvokeInst::Create(Ty, Callee, NormalDest, UnwindDest, Args, OpBundles);
1175 BasicBlock *NormalDest, BasicBlock *UnwindDest,
1179 InvokeInst::Create(Ty, Callee, NormalDest, UnwindDest, Args);
1186 BasicBlock *UnwindDest, ArrayRef<Value *> Args,
1190 NormalDest, UnwindDest, Args, OpBundles, Name);
1194 BasicBlock *UnwindDest,
[all …]
H A DInstructions.h3968 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,
4010 void setUnwindDest(BasicBlock *UnwindDest) {
4011 assert(UnwindDest);
4013 setOperand(1, UnwindDest);
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp5515 BasicBlock *UnwindDest = nullptr; in parseFunctionBody() local
5517 UnwindDest = getBasicBlock(Record[Idx++]); in parseFunctionBody()
5518 if (!UnwindDest) in parseFunctionBody()
5522 I = CleanupReturnInst::Create(CleanupPad, UnwindDest); in parseFunctionBody()
5566 BasicBlock *UnwindDest = nullptr; in parseFunctionBody() local
5568 UnwindDest = getBasicBlock(Record[Idx++]); in parseFunctionBody()
5569 if (!UnwindDest) in parseFunctionBody()
5577 CatchSwitchInst::Create(ParentPad, UnwindDest, NumHandlers); in parseFunctionBody()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp2946 for (auto &UnwindDest : UnwindDests) { in translateInvoke() local
2947 UnwindDest.first->setIsEHPad(); in translateInvoke()
2948 addSuccessorWithProb(InvokeMBB, UnwindDest.first, UnwindDest.second); in translateInvoke()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2144 auto UnwindDest = I.getUnwindDest(); in visitCleanupRet() local
2147 (BPI && UnwindDest) in visitCleanupRet()
2148 ? BPI->getEdgeProbability(FuncInfo.MBB->getBasicBlock(), UnwindDest) in visitCleanupRet()
2150 findUnwindDestinations(FuncInfo, UnwindDest, UnwindDestProb, UnwindDests); in visitCleanupRet()
2151 for (auto &UnwindDest : UnwindDests) { in visitCleanupRet() local
2152 UnwindDest.first->setIsEHPad(); in visitCleanupRet()
2153 addSuccessorWithProb(FuncInfo.MBB, UnwindDest.first, UnwindDest.second); in visitCleanupRet()
3407 for (auto &UnwindDest : UnwindDests) { in visitInvoke() local
3408 UnwindDest.first->setIsEHPad(); in visitInvoke()
3409 addSuccessorWithProb(InvokeMBB, UnwindDest.first, UnwindDest.second); in visitInvoke()