Lines Matching refs:CleanupPad

181 static BasicBlock *getCleanupRetUnwindDest(const CleanupPadInst *CleanupPad) {  in getCleanupRetUnwindDest()  argument
182 for (const User *U : CleanupPad->users()) in getCleanupRetUnwindDest()
209 else if (auto *CleanupPad = dyn_cast<CleanupPadInst>(FuncletPad)) in calculateStateNumbersForInvokes() local
210 FuncletUnwindDest = getCleanupRetUnwindDest(CleanupPad); in calculateStateNumbersForInvokes()
366 auto *CleanupPad = cast<CleanupReturnInst>(TI)->getCleanupPad(); in getEHPadFromPredecessor() local
367 if (CleanupPad->getParentPad() != ParentPad) in getEHPadFromPredecessor()
369 return CleanupPad->getParent(); in getEHPadFromPredecessor()
444 auto *CleanupPad = cast<CleanupPadInst>(FirstNonPHI); in calculateCXXStateNumbers() local
448 if (FuncInfo.EHPadStateMap.count(CleanupPad)) in calculateCXXStateNumbers()
452 FuncInfo.EHPadStateMap[CleanupPad] = CleanupState; in calculateCXXStateNumbers()
457 CleanupPad->getParentPad()))) { in calculateCXXStateNumbers()
462 for (const User *U : CleanupPad->users()) { in calculateCXXStateNumbers()
550 auto *CleanupPad = cast<CleanupPadInst>(FirstNonPHI); in calculateSEHStateNumbers() local
554 if (FuncInfo.EHPadStateMap.count(CleanupPad)) in calculateSEHStateNumbers()
558 FuncInfo.EHPadStateMap[CleanupPad] = CleanupState; in calculateSEHStateNumbers()
563 getEHPadFromPredecessor(PredBlock, CleanupPad->getParentPad()))) in calculateSEHStateNumbers()
566 for (const User *U : CleanupPad->users()) { in calculateSEHStateNumbers()
579 if (auto *CleanupPad = dyn_cast<CleanupPadInst>(EHPad)) in isTopLevelPadForMSVC() local
580 return isa<ConstantTokenNone>(CleanupPad->getParentPad()) && in isTopLevelPadForMSVC()
581 getCleanupRetUnwindDest(CleanupPad) == nullptr; in isTopLevelPadForMSVC()
1099 auto *CleanupPad = dyn_cast_or_null<CleanupPadInst>(FuncletPad); in removeImplausibleInstructions() local
1149 IsUnreachableCleanupret = CRI->getCleanupPad() != CleanupPad; in removeImplausibleInstructions()
1154 if (Personality == EHPersonality::MSVC_CXX && CleanupPad) { in removeImplausibleInstructions()