Home
last modified time | relevance | path

Searched refs:EHPad (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyExceptionInfo.cpp84 MachineBasicBlock *EHPad = DomNode->getBlock(); in recalculate() local
85 if (!EHPad->isEHPad()) in recalculate()
87 auto WE = std::make_unique<WebAssemblyException>(EHPad); in recalculate()
128 MachineBasicBlock *EHPad = DomNode->getBlock(); in recalculate() local
129 if (!EHPad->isEHPad()) in recalculate()
131 if (!EHInfo->hasUnwindDest(EHPad)) in recalculate()
133 auto *UnwindDest = EHInfo->getUnwindDest(EHPad); in recalculate()
134 auto *SrcWE = getExceptionFor(EHPad); in recalculate()
167 MachineBasicBlock *EHPad = DomNode->getBlock(); in recalculate() local
168 if (!EHPad->isEHPad()) in recalculate()
[all …]
H A DWebAssemblyLateEHPrepare.cpp74 MachineBasicBlock *EHPad = nullptr; in getMatchingEHPad() local
80 if (EHPad && EHPad != MBB) in getMatchingEHPad()
82 EHPad = MBB; in getMatchingEHPad()
91 return EHPad; in getMatchingEHPad()
187 MachineBasicBlock *EHPad = getMatchingEHPad(Catch); in hoistCatches() local
188 assert(EHPad && "No matching EH pad for catch"); in hoistCatches()
189 auto InsertPos = EHPad->begin(); in hoistCatches()
193 while (InsertPos != EHPad->end() && InsertPos->isEHLabel()) in hoistCatches()
198 EHPad->insert(InsertPos, Catch->removeFromParent()); in hoistCatches()
313 for (auto &[EHPad, Rethrows] : EHPadToRethrows) { in addCatchRefsAndThrowRefs()
[all …]
H A DWebAssemblyExceptionInfo.h43 MachineBasicBlock *EHPad = nullptr; variable
51 WebAssemblyException(MachineBasicBlock *EHPad) : EHPad(EHPad) {} in WebAssemblyException() argument
55 MachineBasicBlock *getEHPad() const { return EHPad; } in getEHPad()
56 MachineBasicBlock *getHeader() const { return EHPad; } in getHeader()
H A DWebAssemblyUtilities.cpp150 MachineInstr *WebAssembly::findCatch(MachineBasicBlock *EHPad) { in findCatch() argument
151 assert(EHPad->isEHPad()); in findCatch()
152 auto Pos = EHPad->begin(); in findCatch()
155 while (Pos != EHPad->end() && in findCatch()
158 if (Pos != EHPad->end() && WebAssembly::isCatch(Pos->getOpcode())) in findCatch()
H A DWebAssemblyCFGStackify.cpp168 MachineBasicBlock *EHPad);
260 MachineBasicBlock *EHPad) { in registerTryScope() argument
262 TryToEHPad[Begin] = EHPad; in registerTryScope()
263 EHPadToTry[EHPad] = Begin; in registerTryScope()
272 MachineBasicBlock *EHPad = TryToEHPad.lookup(Begin); in unregisterScope() local
273 if (EHPad) { in unregisterScope()
274 assert(EHPadToTry.count(EHPad)); in unregisterScope()
276 EHPadToTry.erase(EHPad); in unregisterScope()
1989 MachineBasicBlock *EHPad = nullptr; in fixCallUnwindMismatches() local
1992 EHPad = Succ; in fixCallUnwindMismatches()
[all …]
H A DWebAssemblyUtilities.h61 MachineInstr *findCatch(MachineBasicBlock *EHPad);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DFixupStatepointCallerSaved.cpp238 void reset(const MachineBasicBlock *EHPad) { in reset() argument
243 if (EHPad) in reset()
244 if (auto It = GlobalIndices.find(EHPad); It != GlobalIndices.end()) in reset()
249 int getFrameIndex(Register Reg, MachineBasicBlock *EHPad) { in getFrameIndex() argument
251 auto It = GlobalIndices.find(EHPad); in getFrameIndex()
260 << printMBBReference(*EHPad) << "\n"); in getFrameIndex()
287 if (EHPad) { in getFrameIndex()
288 GlobalIndices[EHPad].push_back(std::make_pair(Reg, FI)); in getFrameIndex()
291 << printMBBReference(*EHPad) << "\n"); in getFrameIndex()
316 MachineBasicBlock *EHPad; member in __anon2f435cf10211::StatepointState
[all …]
H A DWinEHPrepare.cpp580 static bool isTopLevelPadForMSVC(const Instruction *EHPad) { in isTopLevelPadForMSVC() argument
581 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(EHPad)) in isTopLevelPadForMSVC()
584 if (auto *CleanupPad = dyn_cast<CleanupPadInst>(EHPad)) in isTopLevelPadForMSVC()
587 if (isa<CatchPadInst>(EHPad)) in isTopLevelPadForMSVC()
1275 Instruction *EHPad = &*PHIBlock->getFirstNonPHIIt(); in insertPHILoads() local
1277 if (!EHPad->isTerminator()) { in insertPHILoads()
H A DSplitKit.cpp113 if (none_of(ExceptionalSuccessors, [&](const MachineBasicBlock *EHPad) { in computeLastInsertPoint() argument
114 return LIS.isLiveInToMBB(CurLI, EHPad); in computeLastInsertPoint()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/Utils/
H A DWebAssemblyUtilities.cpp
H A DWebAssemblyUtilities.h
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp35 BasicBlock::iterator EHPad = CV.front()->getFirstNonPHIIt(); in createCallInstWithColors() local
36 if (EHPad->isEHPad()) in createCallInstWithColors()
37 OpBundles.emplace_back("funclet", &*EHPad); in createCallInstWithColors()
H A DObjCARCOpts.cpp586 if (auto *EHPad = in addOpBundleForFunclet() local
588 OpBundles.emplace_back("funclet", EHPad); in addOpBundleForFunclet()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp256 static Value *getParentPad(Value *EHPad) { in getParentPad() argument
257 if (auto *FPI = dyn_cast<FuncletPadInst>(EHPad)) in getParentPad()
259 return cast<CatchSwitchInst>(EHPad)->getParentPad(); in getParentPad()
266 static Value *getUnwindDestTokenHelper(Instruction *EHPad, in getUnwindDestTokenHelper() argument
268 SmallVector<Instruction *, 8> Worklist(1, EHPad); in getUnwindDestTokenHelper()
388 ExitedOriginalPad |= (ExitedPad == EHPad); in getUnwindDestTokenHelper()
418 static Value *getUnwindDestToken(Instruction *EHPad, in getUnwindDestToken() argument
423 if (auto *CPI = dyn_cast<CatchPadInst>(EHPad)) in getUnwindDestToken()
424 EHPad = CPI->getCatchSwitch(); in getUnwindDestToken()
427 auto Memo = MemoMap.find(EHPad); in getUnwindDestToken()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCoroutine.cpp561 if (llvm::Instruction *EHPad = CGF.CurrentFuncletPad) in getBundlesForCoroEnd() local
562 BundleList.emplace_back("funclet", EHPad); in getBundlesForCoroEnd()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLICM.cpp1382 BasicBlock::iterator EHPad = BBColor->getFirstNonPHIIt(); in cloneInstructionInExitBlock() local
1383 if (EHPad->isEHPad()) in cloneInstructionInExitBlock()
1384 OpBundles.emplace_back("funclet", &*EHPad); in cloneInstructionInExitBlock()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp4536 static Value *getParentPad(Value *EHPad) { in getParentPad() argument
4537 if (auto *FPI = dyn_cast<FuncletPadInst>(EHPad)) in getParentPad()
4540 return cast<CatchSwitchInst>(EHPad)->getParentPad(); in getParentPad()