Lines Matching refs:dyn_cast
148 dyn_cast<AllocaInst>(CPI->getArgOperand(2)->stripPointerCasts())) in addTryBlockMapEntry()
159 if (const auto *CRI = dyn_cast<CleanupReturnInst>(U)) in getCleanupRetUnwindDest()
169 auto *II = dyn_cast<InvokeInst>(BB.getTerminator()); in calculateStateNumbersForInvokes()
179 dyn_cast<FuncletPadInst>(FuncletEntryBB->getFirstNonPHI()); in calculateStateNumbersForInvokes()
183 else if (auto *CatchPad = dyn_cast<CatchPadInst>(FuncletPad)) in calculateStateNumbersForInvokes()
185 else if (auto *CleanupPad = dyn_cast<CleanupPadInst>(FuncletPad)) in calculateStateNumbersForInvokes()
215 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) { in getEHPadFromPredecessor()
233 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateCXXStateNumbers()
257 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateCXXStateNumbers()
262 if (auto *InnerCleanupPad = dyn_cast<CleanupPadInst>(UserI)) { in calculateCXXStateNumbers()
334 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) { in calculateSEHStateNumbers()
347 const Function *Filter = dyn_cast<Function>(FilterOrNull); in calculateSEHStateNumbers()
366 if (auto *InnerCatchSwitch = dyn_cast<CatchSwitchInst>(UserI)) { in calculateSEHStateNumbers()
371 if (auto *InnerCleanupPad = dyn_cast<CleanupPadInst>(UserI)) { in calculateSEHStateNumbers()
407 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(EHPad)) in isTopLevelPadForMSVC()
410 if (auto *CleanupPad = dyn_cast<CleanupPadInst>(EHPad)) in isTopLevelPadForMSVC()
501 if (const auto *CPI = dyn_cast<CleanupPadInst>(FirstNonPHI)) in calculateClrEHStateNumbers()
503 else if (const auto *CSI = dyn_cast<CatchSwitchInst>(FirstNonPHI)) in calculateClrEHStateNumbers()
522 if (const auto *Cleanup = dyn_cast<CleanupPadInst>(Pad)) { in calculateClrEHStateNumbers()
532 if (const auto *I = dyn_cast<Instruction>(U)) in calculateClrEHStateNumbers()
556 if (const auto *I = dyn_cast<Instruction>(U)) in calculateClrEHStateNumbers()
579 if (const auto *Catch = dyn_cast<CatchPadInst>(Pad)) { in calculateClrEHStateNumbers()
593 if (auto *CleanupRet = dyn_cast<CleanupReturnInst>(U)) { in calculateClrEHStateNumbers()
602 if (auto *Invoke = dyn_cast<InvokeInst>(U)) { in calculateClrEHStateNumbers()
604 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(U)) { in calculateClrEHStateNumbers()
606 } else if (auto *ChildCleanup = dyn_cast<CleanupPadInst>(U)) { in calculateClrEHStateNumbers()
626 if (auto *CSI = dyn_cast<CatchSwitchInst>(UserUnwindPad)) in calculateClrEHStateNumbers()
689 auto *PN = dyn_cast<PHINode>(I); in demotePHIsOnFunclets()
801 if (auto *CatchRet = dyn_cast<CatchReturnInst>(Pred->getTerminator())) in cloneCommonBlocks()
816 dyn_cast<CatchReturnInst>(IncomingBlock->getTerminator())) { in cloneCommonBlocks()
842 auto *OldPN = dyn_cast<PHINode>(&OldI); in cloneCommonBlocks()
848 auto *NewPN = dyn_cast<PHINode>(&NewI); in cloneCommonBlocks()
862 auto *SuccPN = dyn_cast<PHINode>(&SuccI); in cloneCommonBlocks()
874 if (auto *Inst = dyn_cast<Instruction>(IV)) { in cloneCommonBlocks()
893 auto *OldI = dyn_cast<Instruction>(const_cast<Value *>(VT.first)); in cloneCommonBlocks()
934 auto *FuncletPad = dyn_cast<FuncletPadInst>(FirstNonPHI); in removeImplausibleInstructions()
953 dyn_cast<Function>(CS.getCalledValue()->stripPointerCasts()); in removeImplausibleInstructions()
981 if (auto *CRI = dyn_cast<CatchReturnInst>(TI)) in removeImplausibleInstructions()
985 if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) in removeImplausibleInstructions()
1116 PHINode *PN = dyn_cast<PHINode>(InVal); in insertPHIStores()
1165 if (auto *UsingPHI = dyn_cast<PHINode>(UsingInst)) { in replaceUseWithLoad()
1177 dyn_cast<CatchReturnInst>(IncomingBlock->getTerminator())) { in replaceUseWithLoad()