Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp283 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers()
291 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers()
400 BasicBlock *UnwindDest = InnerCatchSwitch->getUnwindDest(); in calculateSEHStateNumbers() local
401 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateSEHStateNumbers()
409 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateSEHStateNumbers()
611 const BasicBlock *UnwindDest; in calculateClrEHStateNumbers() local
621 UnwindDest = Catch->getCatchSwitch()->getUnwindDest(); in calculateClrEHStateNumbers()
624 UnwindDest = nullptr; in calculateClrEHStateNumbers()
629 UnwindDest = CleanupRet->getUnwindDest(); in calculateClrEHStateNumbers()
671 UnwindDest = UserUnwindDest; in calculateClrEHStateNumbers()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyCFGStackify.cpp1136 MachineBasicBlock *UnwindDest = getFakeCallerBlock(MF); in fixCallUnwindMismatches() local
1144 UnwindDest = Succ; in fixCallUnwindMismatches()
1148 if (EHPadStack.back() == UnwindDest) in fixCallUnwindMismatches()
1161 UnwindDestToTryRanges[UnwindDest].push_back( in fixCallUnwindMismatches()
1244 MachineBasicBlock *UnwindDest = P.first; in fixCallUnwindMismatches() local
1267 addTryDelegate(RangeBegin, RangeEnd, UnwindDest); in fixCallUnwindMismatches()
1353 auto *UnwindDest = EHInfo->getUnwindDest(EHPad); in fixCatchUnwindMismatches() local
1354 if (EHPadStack.back() != UnwindDest) { in fixCatchUnwindMismatches()
1355 EHPadToUnwindDest[EHPad] = UnwindDest; in fixCatchUnwindMismatches()
1376 MachineBasicBlock *UnwindDest = P.second; in fixCatchUnwindMismatches() local
[all …]
H A DWebAssemblyExceptionInfo.cpp131 auto *UnwindDest = EHInfo->getUnwindDest(EHPad); in recalculate() local
133 auto *DstWE = getExceptionFor(UnwindDest); in recalculate()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp722 Value *ActualInvokee, BasicBlock *NormalDest, BasicBlock *UnwindDest, in CreateGCStatepointInvokeCommon() argument
740 return Builder->CreateInvoke(FnStatepoint, NormalDest, UnwindDest, Args, in CreateGCStatepointInvokeCommon()
748 BasicBlock *NormalDest, BasicBlock *UnwindDest, in CreateGCStatepointInvoke() argument
752 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, in CreateGCStatepointInvoke()
759 BasicBlock *NormalDest, BasicBlock *UnwindDest, uint32_t Flags, in CreateGCStatepointInvoke() argument
763 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, Flags, in CreateGCStatepointInvoke()
769 BasicBlock *NormalDest, BasicBlock *UnwindDest, ArrayRef<Use> InvokeArgs, in CreateGCStatepointInvoke() argument
772 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, in CreateGCStatepointInvoke()
H A DVerifier.cpp2249 BasicBlock *UnwindDest; in getSuccPad() local
2251 UnwindDest = II->getUnwindDest(); in getSuccPad()
2253 UnwindDest = CSI->getUnwindDest(); in getSuccPad()
2256 return UnwindDest->getFirstNonPHI(); in getSuccPad()
4055 BasicBlock *UnwindDest; in visitFuncletPadInst() local
4057 UnwindDest = CRI->getUnwindDest(); in visitFuncletPadInst()
4065 UnwindDest = CSI->getUnwindDest(); in visitFuncletPadInst()
4067 UnwindDest = II->getUnwindDest(); in visitFuncletPadInst()
4086 if (UnwindDest) { in visitFuncletPadInst()
4087 UnwindPad = UnwindDest->getFirstNonPHI(); in visitFuncletPadInst()
[all …]
H A DInstructions.cpp1102 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() argument
1108 if (UnwindDest) in CatchSwitchInst()
1110 init(ParentPad, UnwindDest, NumReservedValues + 1); in CatchSwitchInst()
1114 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() argument
1119 if (UnwindDest) in CatchSwitchInst()
1121 init(ParentPad, UnwindDest, NumReservedValues + 1); in CatchSwitchInst()
1136 void CatchSwitchInst::init(Value *ParentPad, BasicBlock *UnwindDest, in init() argument
1141 setNumHungOffUseOperands(UnwindDest ? 2 : 1); in init()
1145 if (UnwindDest) { in init()
1147 setUnwindDest(UnwindDest); in init()
H A DAsmWriter.cpp4086 if (const BasicBlock *UnwindDest = CatchSwitch->getUnwindDest()) in printInstruction() local
4087 writeOperand(UnwindDest, /*PrintType=*/true); in printInstruction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp666 BasicBlock *UnwindDest = II->getUnwindDest(); in HandleInlinedEHPad() local
669 assert(UnwindDest->getFirstNonPHI()->isEHPad() && "unexpected BasicBlock!"); in HandleInlinedEHPad()
676 for (Instruction &I : *UnwindDest) { in HandleInlinedEHPad()
687 BasicBlock::iterator I = UnwindDest->begin(); in HandleInlinedEHPad()
703 CleanupReturnInst::Create(CleanupPad, UnwindDest, CRI); in HandleInlinedEHPad()
749 CatchSwitch->getParentPad(), UnwindDest, in HandleInlinedEHPad()
778 &*BB, UnwindDest, &FuncletUnwindMap)) in HandleInlinedEHPad()
787 UnwindDest->removePredecessor(InvokeBB); in HandleInlinedEHPad()
2279 BasicBlock *UnwindDest = II->getUnwindDest(); in InlineFunction() local
2280 Instruction *FirstNonPHI = UnwindDest->getFirstNonPHI(); in InlineFunction()
H A DSimplifyCFG.cpp4416 BasicBlock *UnwindDest = RI->getUnwindDest(); in removeEmptyCleanup() local
4417 Instruction *DestEHPad = UnwindDest ? UnwindDest->getFirstNonPHI() : nullptr; in removeEmptyCleanup()
4424 if (UnwindDest) { in removeEmptyCleanup()
4427 for (PHINode &DestPN : UnwindDest->phis()) { in removeEmptyCleanup()
4466 for (auto *pred : predecessors(UnwindDest)) in removeEmptyCleanup()
4480 if (UnwindDest == nullptr) { in removeEmptyCleanup()
4490 TI->replaceUsesOfWith(BB, UnwindDest); in removeEmptyCleanup()
4510 BasicBlock *UnwindDest = RI->getUnwindDest(); in mergeCleanupPad() local
4511 if (!UnwindDest) in mergeCleanupPad()
4516 if (UnwindDest->getSinglePredecessor() != RI->getParent()) in mergeCleanupPad()
[all …]
H A DLocal.cpp2421 BasicBlock *UnwindDest; in removeUnwindEdge() local
2425 UnwindDest = CRI->getUnwindDest(); in removeUnwindEdge()
2434 UnwindDest = CatchSwitch->getUnwindDest(); in removeUnwindEdge()
2441 UnwindDest->removePredecessor(BB); in removeUnwindEdge()
2445 DTU->applyUpdates({{DominatorTree::Delete, BB, UnwindDest}}); in removeUnwindEdge()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h819 BasicBlock *UnwindDest, ArrayRef<Value *> InvokeArgs,
827 BasicBlock *NormalDest, BasicBlock *UnwindDest, uint32_t Flags,
838 BasicBlock *UnwindDest, ArrayRef<Use> InvokeArgs,
1030 BasicBlock *NormalDest, BasicBlock *UnwindDest,
1035 InvokeInst::Create(Ty, Callee, NormalDest, UnwindDest, Args, OpBundles);
1041 BasicBlock *NormalDest, BasicBlock *UnwindDest,
1045 InvokeInst::Create(Ty, Callee, NormalDest, UnwindDest, Args);
1052 BasicBlock *UnwindDest, ArrayRef<Value *> Args,
1056 NormalDest, UnwindDest, Args, OpBundles, Name);
1060 BasicBlock *UnwindDest,
[all …]
H A DInstructions.h4236 CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest,
4244 CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest,
4251 void init(Value *ParentPad, BasicBlock *UnwindDest, unsigned NumReserved);
4263 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest,
4267 return new CatchSwitchInst(ParentPad, UnwindDest, NumHandlers, NameStr,
4271 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest,
4274 return new CatchSwitchInst(ParentPad, UnwindDest, NumHandlers, NameStr,
4293 void setUnwindDest(BasicBlock *UnwindDest) {
4294 assert(UnwindDest);
4296 setOperand(1, UnwindDest);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp4427 BasicBlock *UnwindDest = nullptr; in parseFunctionBody() local
4429 UnwindDest = getBasicBlock(Record[Idx++]); in parseFunctionBody()
4430 if (!UnwindDest) in parseFunctionBody()
4434 I = CleanupReturnInst::Create(CleanupPad, UnwindDest); in parseFunctionBody()
4474 BasicBlock *UnwindDest = nullptr; in parseFunctionBody() local
4476 UnwindDest = getBasicBlock(Record[Idx++]); in parseFunctionBody()
4477 if (!UnwindDest) in parseFunctionBody()
4485 CatchSwitchInst::Create(ParentPad, UnwindDest, NumHandlers); in parseFunctionBody()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp2525 for (auto &UnwindDest : UnwindDests) { in translateInvoke() local
2526 UnwindDest.first->setIsEHPad(); in translateInvoke()
2527 addSuccessorWithProb(InvokeMBB, UnwindDest.first, UnwindDest.second); in translateInvoke()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp1849 auto UnwindDest = I.getUnwindDest(); in visitCleanupRet() local
1852 (BPI && UnwindDest) in visitCleanupRet()
1853 ? BPI->getEdgeProbability(FuncInfo.MBB->getBasicBlock(), UnwindDest) in visitCleanupRet()
1855 findUnwindDestinations(FuncInfo, UnwindDest, UnwindDestProb, UnwindDests); in visitCleanupRet()
1856 for (auto &UnwindDest : UnwindDests) { in visitCleanupRet() local
1857 UnwindDest.first->setIsEHPad(); in visitCleanupRet()
1858 addSuccessorWithProb(FuncInfo.MBB, UnwindDest.first, UnwindDest.second); in visitCleanupRet()
2947 for (auto &UnwindDest : UnwindDests) { in visitInvoke() local
2948 UnwindDest.first->setIsEHPad(); in visitInvoke()
2949 addSuccessorWithProb(InvokeMBB, UnwindDest.first, UnwindDest.second); in visitInvoke()