Lines Matching refs:CPI

431   void visitCatchPadInst(CatchPadInst &CPI);
433 void visitCleanupPadInst(CleanupPadInst &CPI);
3198 if (auto *CPI = dyn_cast<CatchPadInst>(&I)) { in visitEHPadPredecessors() local
3200 Assert(BB->getUniquePredecessor() == CPI->getCatchSwitch()->getParent(), in visitEHPadPredecessors()
3203 CPI); in visitEHPadPredecessors()
3204 Assert(BB != CPI->getCatchSwitch()->getUnwindDest(), in visitEHPadPredecessors()
3206 CPI->getCatchSwitch(), CPI); in visitEHPadPredecessors()
3291 void Verifier::visitCatchPadInst(CatchPadInst &CPI) { in visitCatchPadInst() argument
3292 BasicBlock *BB = CPI.getParent(); in visitCatchPadInst()
3296 "CatchPadInst needs to be in a function with a personality.", &CPI); in visitCatchPadInst()
3298 Assert(isa<CatchSwitchInst>(CPI.getParentPad()), in visitCatchPadInst()
3300 CPI.getParentPad()); in visitCatchPadInst()
3304 Assert(BB->getFirstNonPHI() == &CPI, in visitCatchPadInst()
3305 "CatchPadInst not the first non-PHI instruction in the block.", &CPI); in visitCatchPadInst()
3307 visitEHPadPredecessors(CPI); in visitCatchPadInst()
3308 visitFuncletPadInst(CPI); in visitCatchPadInst()
3319 void Verifier::visitCleanupPadInst(CleanupPadInst &CPI) { in visitCleanupPadInst() argument
3320 BasicBlock *BB = CPI.getParent(); in visitCleanupPadInst()
3324 "CleanupPadInst needs to be in a function with a personality.", &CPI); in visitCleanupPadInst()
3328 Assert(BB->getFirstNonPHI() == &CPI, in visitCleanupPadInst()
3330 &CPI); in visitCleanupPadInst()
3332 auto *ParentPad = CPI.getParentPad(); in visitCleanupPadInst()
3334 "CleanupPadInst has an invalid parent.", &CPI); in visitCleanupPadInst()
3336 visitEHPadPredecessors(CPI); in visitCleanupPadInst()
3337 visitFuncletPadInst(CPI); in visitCleanupPadInst()
3370 } else if (auto *CPI = dyn_cast<CleanupPadInst>(U)) { in visitFuncletPadInst() local
3374 Worklist.push_back(CPI); in visitFuncletPadInst()