Lines Matching refs:CleanupPad

168 static BasicBlock *getCleanupRetUnwindDest(const CleanupPadInst *CleanupPad) {  in getCleanupRetUnwindDest()  argument
169 for (const User *U : CleanupPad->users()) in getCleanupRetUnwindDest()
196 else if (auto *CleanupPad = dyn_cast<CleanupPadInst>(FuncletPad)) in calculateStateNumbersForInvokes() local
197 FuncletUnwindDest = getCleanupRetUnwindDest(CleanupPad); in calculateStateNumbersForInvokes()
232 auto *CleanupPad = cast<CleanupReturnInst>(TI)->getCleanupPad(); in getEHPadFromPredecessor() local
233 if (CleanupPad->getParentPad() != ParentPad) in getEHPadFromPredecessor()
235 return CleanupPad->getParent(); in getEHPadFromPredecessor()
309 auto *CleanupPad = cast<CleanupPadInst>(FirstNonPHI); in calculateCXXStateNumbers() local
313 if (FuncInfo.EHPadStateMap.count(CleanupPad)) in calculateCXXStateNumbers()
317 FuncInfo.EHPadStateMap[CleanupPad] = CleanupState; in calculateCXXStateNumbers()
322 CleanupPad->getParentPad()))) { in calculateCXXStateNumbers()
327 for (const User *U : CleanupPad->users()) { in calculateCXXStateNumbers()
414 auto *CleanupPad = cast<CleanupPadInst>(FirstNonPHI); in calculateSEHStateNumbers() local
418 if (FuncInfo.EHPadStateMap.count(CleanupPad)) in calculateSEHStateNumbers()
422 FuncInfo.EHPadStateMap[CleanupPad] = CleanupState; in calculateSEHStateNumbers()
427 getEHPadFromPredecessor(PredBlock, CleanupPad->getParentPad()))) in calculateSEHStateNumbers()
430 for (const User *U : CleanupPad->users()) { in calculateSEHStateNumbers()
443 if (auto *CleanupPad = dyn_cast<CleanupPadInst>(EHPad)) in isTopLevelPadForMSVC() local
444 return isa<ConstantTokenNone>(CleanupPad->getParentPad()) && in isTopLevelPadForMSVC()
445 getCleanupRetUnwindDest(CleanupPad) == nullptr; in isTopLevelPadForMSVC()
954 auto *CleanupPad = dyn_cast_or_null<CleanupPadInst>(FuncletPad); in removeImplausibleInstructions() local
1004 IsUnreachableCleanupret = CRI->getCleanupPad() != CleanupPad; in removeImplausibleInstructions()
1009 if (Personality == EHPersonality::MSVC_CXX && CleanupPad) { in removeImplausibleInstructions()