Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyLateEHPrepare.cpp65 MachineBasicBlock *EHPad = nullptr; in getMatchingEHPad() local
72 if (EHPad && EHPad != MBB) in getMatchingEHPad()
74 EHPad = MBB; in getMatchingEHPad()
81 return EHPad; in getMatchingEHPad()
167 auto *EHPad = getMatchingEHPad(TI); in replaceFuncletReturns() local
168 auto CatchPos = EHPad->begin(); in replaceFuncletReturns()
271 MachineBasicBlock *EHPad = getMatchingEHPad(Extract); in addExceptionExtraction() local
272 assert(EHPad && "No matching EH pad for extract_exception"); in addExceptionExtraction()
273 auto CatchPos = EHPad->begin(); in addExceptionExtraction()
279 EHPad->insert(Catch->getNextNode(), Extract->removeFromParent()); in addExceptionExtraction()
[all …]
DWebAssemblyExceptionInfo.cpp51 MachineBasicBlock *EHPad = DomNode->getBlock(); in recalculate() local
52 if (!EHPad->isEHPad()) in recalculate()
54 auto *WE = new WebAssemblyException(EHPad); in recalculate()
103 MachineBasicBlock *EHPad = WE->getEHPad(); in discoverAndMapException() local
105 WL.push_back(EHPad); in discoverAndMapException()
122 if (MDT.dominates(EHPad, Frontier)) in discoverAndMapException()
134 if (MDT.dominates(EHPad, Succ)) in discoverAndMapException()
DWebAssemblyExceptionInfo.h43 MachineBasicBlock *EHPad = nullptr; variable
51 WebAssemblyException(MachineBasicBlock *EHPad) : EHPad(EHPad) {} in WebAssemblyException() argument
56 MachineBasicBlock *getEHPad() const { return EHPad; } in getEHPad()
57 MachineBasicBlock *getHeader() const { return EHPad; } in getHeader()
DWebAssemblyCFGStackify.cpp96 MachineBasicBlock *EHPad);
186 MachineBasicBlock *EHPad) { in registerTryScope() argument
188 TryToEHPad[Begin] = EHPad; in registerTryScope()
189 EHPadToTry[EHPad] = Begin; in registerTryScope()
198 MachineBasicBlock *EHPad = TryToEHPad.lookup(Begin); in unregisterScope() local
199 if (EHPad) { in unregisterScope()
200 assert(EHPadToTry.count(EHPad)); in unregisterScope()
202 EHPadToTry.erase(EHPad); in unregisterScope()
1006 MachineBasicBlock *EHPad = P.first; in fixUnwindMismatches() local
1015 for (auto &MI : *EHPad) { in fixUnwindMismatches()
[all …]
/external/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyLateEHPrepare.cpp71 MachineBasicBlock *EHPad = nullptr; in getMatchingEHPad() local
78 if (EHPad && EHPad != MBB) in getMatchingEHPad()
80 EHPad = MBB; in getMatchingEHPad()
89 return EHPad; in getMatchingEHPad()
191 auto *EHPad = getMatchingEHPad(TI); in replaceFuncletReturns() local
192 auto CatchPos = EHPad->begin(); in replaceFuncletReturns()
295 MachineBasicBlock *EHPad = getMatchingEHPad(Extract); in addExceptionExtraction() local
296 assert(EHPad && "No matching EH pad for extract_exception"); in addExceptionExtraction()
297 auto CatchPos = EHPad->begin(); in addExceptionExtraction()
303 EHPad->insert(Catch->getNextNode(), Extract->removeFromParent()); in addExceptionExtraction()
[all …]
DWebAssemblyExceptionInfo.cpp51 MachineBasicBlock *EHPad = DomNode->getBlock(); in recalculate() local
52 if (!EHPad->isEHPad()) in recalculate()
54 auto WE = std::make_unique<WebAssemblyException>(EHPad); in recalculate()
106 MachineBasicBlock *EHPad = WE->getEHPad(); in discoverAndMapException() local
108 WL.push_back(EHPad); in discoverAndMapException()
125 if (MDT.dominates(EHPad, Frontier)) in discoverAndMapException()
137 if (MDT.dominates(EHPad, Succ)) in discoverAndMapException()
DWebAssemblyCFGStackify.cpp99 MachineBasicBlock *EHPad);
182 static MachineInstr *findCatch(MachineBasicBlock *EHPad, Register &ExnReg) { in findCatch() argument
183 assert(EHPad->isEHPad()); in findCatch()
185 for (auto &MI : *EHPad) { in findCatch()
198 static MachineInstr *findCatch(MachineBasicBlock *EHPad) { in findCatch() argument
200 return findCatch(EHPad, Dummy); in findCatch()
211 MachineBasicBlock *EHPad) { in registerTryScope() argument
213 TryToEHPad[Begin] = EHPad; in registerTryScope()
214 EHPadToTry[EHPad] = Begin; in registerTryScope()
223 MachineBasicBlock *EHPad = TryToEHPad.lookup(Begin); in unregisterScope() local
[all …]
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()
/external/llvm-project/llvm/lib/CodeGen/
DFixupStatepointCallerSaved.cpp239 void reset(const MachineBasicBlock *EHPad) { in reset() argument
244 if (EHPad && GlobalIndices.count(EHPad)) in reset()
245 for (auto &RSP : GlobalIndices[EHPad]) in reset()
250 int getFrameIndex(Register Reg, MachineBasicBlock *EHPad) { in getFrameIndex() argument
252 auto It = GlobalIndices.find(EHPad); in getFrameIndex()
261 << printMBBReference(*EHPad) << "\n"); in getFrameIndex()
288 if (EHPad) { in getFrameIndex()
289 GlobalIndices[EHPad].push_back(std::make_pair(Reg, FI)); in getFrameIndex()
292 << printMBBReference(*EHPad) << "\n"); in getFrameIndex()
317 MachineBasicBlock *EHPad; member in __anon6a7383e10211::StatepointState
[all …]
DWinEHPrepare.cpp439 static bool isTopLevelPadForMSVC(const Instruction *EHPad) { in isTopLevelPadForMSVC() argument
440 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(EHPad)) in isTopLevelPadForMSVC()
443 if (auto *CleanupPad = dyn_cast<CleanupPadInst>(EHPad)) in isTopLevelPadForMSVC()
446 if (isa<CatchPadInst>(EHPad)) in isTopLevelPadForMSVC()
1098 Instruction *EHPad = PHIBlock->getFirstNonPHI(); in insertPHILoads() local
1100 if (!EHPad->isTerminator()) { in insertPHILoads()
/external/llvm/lib/Transforms/Utils/
DInlineFunction.cpp183 static Value *getParentPad(Value *EHPad) { in getParentPad() argument
184 if (auto *FPI = dyn_cast<FuncletPadInst>(EHPad)) in getParentPad()
186 return cast<CatchSwitchInst>(EHPad)->getParentPad(); in getParentPad()
193 static Value *getUnwindDestTokenHelper(Instruction *EHPad, in getUnwindDestTokenHelper() argument
195 SmallVector<Instruction *, 8> Worklist(1, EHPad); in getUnwindDestTokenHelper()
314 ExitedOriginalPad |= (ExitedPad == EHPad); in getUnwindDestTokenHelper()
344 static Value *getUnwindDestToken(Instruction *EHPad, in getUnwindDestToken() argument
349 if (auto *CPI = dyn_cast<CatchPadInst>(EHPad)) in getUnwindDestToken()
350 EHPad = CPI->getCatchSwitch(); in getUnwindDestToken()
353 auto Memo = MemoMap.find(EHPad); in getUnwindDestToken()
[all …]
/external/llvm-project/llvm/lib/Transforms/Utils/
DInlineFunction.cpp225 static Value *getParentPad(Value *EHPad) { in getParentPad() argument
226 if (auto *FPI = dyn_cast<FuncletPadInst>(EHPad)) in getParentPad()
228 return cast<CatchSwitchInst>(EHPad)->getParentPad(); in getParentPad()
235 static Value *getUnwindDestTokenHelper(Instruction *EHPad, in getUnwindDestTokenHelper() argument
237 SmallVector<Instruction *, 8> Worklist(1, EHPad); in getUnwindDestTokenHelper()
356 ExitedOriginalPad |= (ExitedPad == EHPad); in getUnwindDestTokenHelper()
386 static Value *getUnwindDestToken(Instruction *EHPad, in getUnwindDestToken() argument
391 if (auto *CPI = dyn_cast<CatchPadInst>(EHPad)) in getUnwindDestToken()
392 EHPad = CPI->getCatchSwitch(); in getUnwindDestToken()
395 auto Memo = MemoMap.find(EHPad); in getUnwindDestToken()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DInlineFunction.cpp218 static Value *getParentPad(Value *EHPad) { in getParentPad() argument
219 if (auto *FPI = dyn_cast<FuncletPadInst>(EHPad)) in getParentPad()
221 return cast<CatchSwitchInst>(EHPad)->getParentPad(); in getParentPad()
228 static Value *getUnwindDestTokenHelper(Instruction *EHPad, in getUnwindDestTokenHelper() argument
230 SmallVector<Instruction *, 8> Worklist(1, EHPad); in getUnwindDestTokenHelper()
349 ExitedOriginalPad |= (ExitedPad == EHPad); in getUnwindDestTokenHelper()
379 static Value *getUnwindDestToken(Instruction *EHPad, in getUnwindDestToken() argument
384 if (auto *CPI = dyn_cast<CatchPadInst>(EHPad)) in getUnwindDestToken()
385 EHPad = CPI->getCatchSwitch(); in getUnwindDestToken()
388 auto Memo = MemoMap.find(EHPad); in getUnwindDestToken()
[all …]
/external/llvm/lib/CodeGen/
DWinEHPrepare.cpp406 static bool isTopLevelPadForMSVC(const Instruction *EHPad) { in isTopLevelPadForMSVC() argument
407 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(EHPad)) in isTopLevelPadForMSVC()
410 if (auto *CleanupPad = dyn_cast<CleanupPadInst>(EHPad)) in isTopLevelPadForMSVC()
413 if (isa<CatchPadInst>(EHPad)) in isTopLevelPadForMSVC()
1068 Instruction *EHPad = PHIBlock->getFirstNonPHI(); in insertPHILoads() local
1070 if (!isa<TerminatorInst>(EHPad)) { in insertPHILoads()
DSplitKit.cpp89 if (none_of(EHPadSucessors, [&](const MachineBasicBlock *EHPad) { in computeLastInsertPoint() argument
90 return LIS.isLiveInToMBB(CurLI, EHPad); in computeLastInsertPoint()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DWinEHPrepare.cpp417 static bool isTopLevelPadForMSVC(const Instruction *EHPad) { in isTopLevelPadForMSVC() argument
418 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(EHPad)) in isTopLevelPadForMSVC()
421 if (auto *CleanupPad = dyn_cast<CleanupPadInst>(EHPad)) in isTopLevelPadForMSVC()
424 if (isa<CatchPadInst>(EHPad)) in isTopLevelPadForMSVC()
1076 Instruction *EHPad = PHIBlock->getFirstNonPHI(); in insertPHILoads() local
1078 if (!EHPad->isTerminator()) { in insertPHILoads()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/
DObjCARCContract.cpp329 Instruction *EHPad = CV.front()->getFirstNonPHI(); in createCallInst() local
330 if (EHPad->isEHPad()) in createCallInst()
331 OpBundles.emplace_back("funclet", EHPad); in createCallInst()
DObjCARCOpts.cpp772 Instruction *EHPad = CV.front()->getFirstNonPHI(); in CloneCallInstForBB() local
773 if (EHPad->isEHPad()) in CloneCallInstForBB()
774 OpBundles.emplace_back("funclet", EHPad); in CloneCallInstForBB()
/external/llvm-project/llvm/lib/Transforms/ObjCARC/
DObjCARCContract.cpp317 Instruction *EHPad = CV.front()->getFirstNonPHI(); in createCallInst() local
318 if (EHPad->isEHPad()) in createCallInst()
319 OpBundles.emplace_back("funclet", EHPad); in createCallInst()
DObjCARCOpts.cpp782 Instruction *EHPad = CV.front()->getFirstNonPHI(); in CloneCallInstForBB() local
783 if (EHPad->isEHPad()) in CloneCallInstForBB()
784 OpBundles.emplace_back("funclet", EHPad); in CloneCallInstForBB()
/external/llvm/lib/Transforms/Scalar/
DLICM.cpp609 Instruction *EHPad = BBColor->getFirstNonPHI(); in CloneInstructionInExitBlock() local
610 if (EHPad->isEHPad()) in CloneInstructionInExitBlock()
611 OpBundles.emplace_back("funclet", EHPad); in CloneInstructionInExitBlock()
/external/llvm-project/clang/lib/CodeGen/
DCGCoroutine.cpp386 if (llvm::Instruction *EHPad = CGF.CurrentFuncletPad) in getBundlesForCoroEnd() local
387 BundleList.emplace_back("funclet", EHPad); in getBundlesForCoroEnd()
/external/llvm-project/llvm/lib/Transforms/Instrumentation/
DPGOInstrumentation.cpp858 Instruction *EHPad = CV.front()->getFirstNonPHI(); in populateEHOperandBundle() local
859 if (EHPad->isEHPad()) in populateEHOperandBundle()
860 OpBundles.emplace_back("funclet", EHPad); in populateEHOperandBundle()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLICM.cpp1389 Instruction *EHPad = BBColor->getFirstNonPHI(); in CloneInstructionInExitBlock() local
1390 if (EHPad->isEHPad()) in CloneInstructionInExitBlock()
1391 OpBundles.emplace_back("funclet", EHPad); in CloneInstructionInExitBlock()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLICM.cpp1438 Instruction *EHPad = BBColor->getFirstNonPHI(); in cloneInstructionInExitBlock() local
1439 if (EHPad->isEHPad()) in cloneInstructionInExitBlock()
1440 OpBundles.emplace_back("funclet", EHPad); in cloneInstructionInExitBlock()

12