| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | WinEHPrepare.cpp | 418 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers() 426 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers() 536 BasicBlock *UnwindDest = InnerCatchSwitch->getUnwindDest(); in calculateSEHStateNumbers() local 537 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateSEHStateNumbers() 545 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateSEHStateNumbers() 756 const BasicBlock *UnwindDest; in calculateClrEHStateNumbers() local 766 UnwindDest = Catch->getCatchSwitch()->getUnwindDest(); in calculateClrEHStateNumbers() 769 UnwindDest = nullptr; in calculateClrEHStateNumbers() 774 UnwindDest = CleanupRet->getUnwindDest(); in calculateClrEHStateNumbers() 816 UnwindDest = UserUnwindDest; in calculateClrEHStateNumbers() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyCFGStackify.cpp | 1117 MachineBasicBlock *UnwindDest = getFakeCallerBlock(MF); in fixCallUnwindMismatches() local 1125 UnwindDest = Succ; in fixCallUnwindMismatches() 1129 if (EHPadStack.back() == UnwindDest) in fixCallUnwindMismatches() 1142 UnwindDestToTryRanges[UnwindDest].push_back( in fixCallUnwindMismatches() 1225 MachineBasicBlock *UnwindDest = P.first; in fixCallUnwindMismatches() local 1248 addTryDelegate(RangeBegin, RangeEnd, UnwindDest); in fixCallUnwindMismatches() 1335 auto *UnwindDest = EHInfo->getUnwindDest(EHPad); in fixCatchUnwindMismatches() local 1336 if (EHPadStack.back() != UnwindDest) { in fixCatchUnwindMismatches() 1337 EHPadToUnwindDest[EHPad] = UnwindDest; in fixCatchUnwindMismatches() 1358 MachineBasicBlock *UnwindDest = P.second; in fixCatchUnwindMismatches() local [all …]
|
| H A D | WebAssemblyExceptionInfo.cpp | 133 auto *UnwindDest = EHInfo->getUnwindDest(EHPad); in recalculate() local 135 auto *DstWE = getExceptionFor(UnwindDest); in recalculate()
|
| H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 1818 BasicBlock *UnwindDest = nullptr; in handleLongjmpableCallsForWasmSjLj() local 1821 while (!UnwindDest) { in handleLongjmpableCallsForWasmSjLj() 1823 UnwindDest = CPI->getCatchSwitch()->getUnwindDest(); in handleLongjmpableCallsForWasmSjLj() 1832 UnwindDest = getCleanupRetUnwindDest(CPI); in handleLongjmpableCallsForWasmSjLj() 1840 if (!UnwindDest) in handleLongjmpableCallsForWasmSjLj() 1841 UnwindDest = CatchDispatchLongjmpBB; in handleLongjmpableCallsForWasmSjLj() 1842 changeToInvokeAndSplitBasicBlock(CI, UnwindDest); in handleLongjmpableCallsForWasmSjLj()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | FunctionPropertiesAnalysis.cpp | 337 const auto *UnwindDest = II->getUnwindDest(); in FunctionPropertiesUpdater() local 338 Successors.insert(succ_begin(UnwindDest), succ_end(UnwindDest)); in FunctionPropertiesUpdater()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | IRBuilder.cpp | 816 BasicBlock *UnwindDest, uint32_t Flags, ArrayRef<T0> InvokeArgs, in CreateGCStatepointInvokeCommon() argument 831 FnStatepoint, NormalDest, UnwindDest, Args, in CreateGCStatepointInvokeCommon() 841 BasicBlock *NormalDest, BasicBlock *UnwindDest, in CreateGCStatepointInvoke() argument 845 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, in CreateGCStatepointInvoke() 852 BasicBlock *NormalDest, BasicBlock *UnwindDest, uint32_t Flags, in CreateGCStatepointInvoke() argument 857 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, Flags, in CreateGCStatepointInvoke() 863 BasicBlock *NormalDest, BasicBlock *UnwindDest, ArrayRef<Use> InvokeArgs, in CreateGCStatepointInvoke() argument 867 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, in CreateGCStatepointInvoke()
|
| H A D | Verifier.cpp | 2559 BasicBlock *UnwindDest; in getSuccPad() local 2561 UnwindDest = II->getUnwindDest(); in getSuccPad() 2563 UnwindDest = CSI->getUnwindDest(); in getSuccPad() 2566 return UnwindDest->getFirstNonPHI(); in getSuccPad() 4433 BasicBlock *UnwindDest; in visitFuncletPadInst() local 4435 UnwindDest = CRI->getUnwindDest(); in visitFuncletPadInst() 4443 UnwindDest = CSI->getUnwindDest(); in visitFuncletPadInst() 4445 UnwindDest = II->getUnwindDest(); in visitFuncletPadInst() 4464 if (UnwindDest) { in visitFuncletPadInst() 4465 UnwindPad = UnwindDest->getFirstNonPHI(); in visitFuncletPadInst() [all …]
|
| H A D | Instructions.cpp | 1083 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() argument 1089 if (UnwindDest) in CatchSwitchInst() 1091 init(ParentPad, UnwindDest, NumReservedValues + 1); in CatchSwitchInst() 1095 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() argument 1100 if (UnwindDest) in CatchSwitchInst() 1102 init(ParentPad, UnwindDest, NumReservedValues + 1); in CatchSwitchInst() 1117 void CatchSwitchInst::init(Value *ParentPad, BasicBlock *UnwindDest, in init() argument 1122 setNumHungOffUseOperands(UnwindDest ? 2 : 1); in init() 1126 if (UnwindDest) { in init() 1128 setUnwindDest(UnwindDest); in init()
|
| H A D | Instruction.cpp | 1017 BasicBlock *UnwindDest = cast<InvokeInst>(this)->getUnwindDest(); in mayThrow() local 1018 Instruction *Pad = UnwindDest->getFirstNonPHI(); in mayThrow()
|
| H A D | AsmWriter.cpp | 4274 if (const BasicBlock *UnwindDest = CatchSwitch->getUnwindDest()) in printInstruction() local 4275 writeOperand(UnwindDest, /*PrintType=*/true); in printInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | InlineFunction.cpp | 658 BasicBlock *UnwindDest = II->getUnwindDest(); in HandleInlinedEHPad() local 661 assert(UnwindDest->getFirstNonPHI()->isEHPad() && "unexpected BasicBlock!"); in HandleInlinedEHPad() 668 for (PHINode &PHI : UnwindDest->phis()) { in HandleInlinedEHPad() 676 BasicBlock::iterator I = UnwindDest->begin(); in HandleInlinedEHPad() 692 CleanupReturnInst::Create(CleanupPad, UnwindDest, CRI); in HandleInlinedEHPad() 738 CatchSwitch->getParentPad(), UnwindDest, in HandleInlinedEHPad() 767 &*BB, UnwindDest, &FuncletUnwindMap)) in HandleInlinedEHPad() 776 UnwindDest->removePredecessor(InvokeBB); in HandleInlinedEHPad() 2616 BasicBlock *UnwindDest = II->getUnwindDest(); in InlineFunction() local 2617 Instruction *FirstNonPHI = UnwindDest->getFirstNonPHI(); in InlineFunction()
|
| H A D | SimplifyCFG.cpp | 5090 BasicBlock *UnwindDest = RI->getUnwindDest(); in removeEmptyCleanup() local 5091 Instruction *DestEHPad = UnwindDest ? UnwindDest->getFirstNonPHI() : nullptr; in removeEmptyCleanup() 5098 if (UnwindDest) { in removeEmptyCleanup() 5101 for (PHINode &DestPN : UnwindDest->phis()) { in removeEmptyCleanup() 5140 for (auto *pred : predecessors(UnwindDest)) in removeEmptyCleanup() 5154 if (UnwindDest == nullptr) { in removeEmptyCleanup() 5164 TI->replaceUsesOfWith(BB, UnwindDest); in removeEmptyCleanup() 5184 BasicBlock *UnwindDest = RI->getUnwindDest(); in mergeCleanupPad() local 5185 if (!UnwindDest) in mergeCleanupPad() 5190 if (UnwindDest->getSinglePredecessor() != RI->getParent()) in mergeCleanupPad() [all …]
|
| H A D | Local.cpp | 3131 BasicBlock *UnwindDest; in removeUnwindEdge() local 3135 UnwindDest = CRI->getUnwindDest(); in removeUnwindEdge() 3144 UnwindDest = CatchSwitch->getUnwindDest(); in removeUnwindEdge() 3151 UnwindDest->removePredecessor(BB); in removeUnwindEdge() 3155 DTU->applyUpdates({{DominatorTree::Delete, BB, UnwindDest}}); in removeUnwindEdge()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | IRBuilder.h | 897 BasicBlock *UnwindDest, ArrayRef<Value *> InvokeArgs, 905 BasicBlock *NormalDest, BasicBlock *UnwindDest, uint32_t Flags, 916 BasicBlock *UnwindDest, ArrayRef<Use> InvokeArgs, 1153 BasicBlock *NormalDest, BasicBlock *UnwindDest, 1158 InvokeInst::Create(Ty, Callee, NormalDest, UnwindDest, Args, OpBundles); 1164 BasicBlock *NormalDest, BasicBlock *UnwindDest, 1168 InvokeInst::Create(Ty, Callee, NormalDest, UnwindDest, Args); 1175 BasicBlock *UnwindDest, ArrayRef<Value *> Args, 1179 NormalDest, UnwindDest, Args, OpBundles, Name); 1183 BasicBlock *UnwindDest, [all …]
|
| H A D | Instructions.h | 4343 CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, 4351 CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, 4358 void init(Value *ParentPad, BasicBlock *UnwindDest, unsigned NumReserved); 4370 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest, 4374 return new CatchSwitchInst(ParentPad, UnwindDest, NumHandlers, NameStr, 4378 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest, 4381 return new CatchSwitchInst(ParentPad, UnwindDest, NumHandlers, NameStr, 4400 void setUnwindDest(BasicBlock *UnwindDest) { 4401 assert(UnwindDest); 4403 setOperand(1, UnwindDest);
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 5338 BasicBlock *UnwindDest = nullptr; in parseFunctionBody() local 5340 UnwindDest = getBasicBlock(Record[Idx++]); in parseFunctionBody() 5341 if (!UnwindDest) in parseFunctionBody() 5345 I = CleanupReturnInst::Create(CleanupPad, UnwindDest); in parseFunctionBody() 5389 BasicBlock *UnwindDest = nullptr; in parseFunctionBody() local 5391 UnwindDest = getBasicBlock(Record[Idx++]); in parseFunctionBody() 5392 if (!UnwindDest) in parseFunctionBody() 5400 CatchSwitchInst::Create(ParentPad, UnwindDest, NumHandlers); in parseFunctionBody()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 2780 for (auto &UnwindDest : UnwindDests) { in translateInvoke() local 2781 UnwindDest.first->setIsEHPad(); in translateInvoke() 2782 addSuccessorWithProb(InvokeMBB, UnwindDest.first, UnwindDest.second); in translateInvoke()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 2105 auto UnwindDest = I.getUnwindDest(); in visitCleanupRet() local 2108 (BPI && UnwindDest) in visitCleanupRet() 2109 ? BPI->getEdgeProbability(FuncInfo.MBB->getBasicBlock(), UnwindDest) in visitCleanupRet() 2111 findUnwindDestinations(FuncInfo, UnwindDest, UnwindDestProb, UnwindDests); in visitCleanupRet() 2112 for (auto &UnwindDest : UnwindDests) { in visitCleanupRet() local 2113 UnwindDest.first->setIsEHPad(); in visitCleanupRet() 2114 addSuccessorWithProb(FuncInfo.MBB, UnwindDest.first, UnwindDest.second); in visitCleanupRet() 3212 for (auto &UnwindDest : UnwindDests) { in visitInvoke() local 3213 UnwindDest.first->setIsEHPad(); in visitInvoke() 3214 addSuccessorWithProb(InvokeMBB, UnwindDest.first, UnwindDest.second); in visitInvoke()
|