Lines Matching defs:CPI
602 void visitCatchPadInst(CatchPadInst &CPI);
604 void visitCleanupPadInst(CleanupPadInst &CPI);
4396 if (auto *CPI = dyn_cast<CatchPadInst>(&I)) {
4398 Check(BB->getUniquePredecessor() == CPI->getCatchSwitch()->getParent(),
4401 CPI);
4402 Check(BB != CPI->getCatchSwitch()->getUnwindDest(),
4404 CPI->getCatchSwitch(), CPI);
4513 void Verifier::visitCatchPadInst(CatchPadInst &CPI) {
4514 BasicBlock *BB = CPI.getParent();
4518 "CatchPadInst needs to be in a function with a personality.", &CPI);
4520 Check(isa<CatchSwitchInst>(CPI.getParentPad()),
4522 CPI.getParentPad());
4526 Check(BB->getFirstNonPHI() == &CPI,
4527 "CatchPadInst not the first non-PHI instruction in the block.", &CPI);
4529 visitEHPadPredecessors(CPI);
4530 visitFuncletPadInst(CPI);
4541 void Verifier::visitCleanupPadInst(CleanupPadInst &CPI) {
4542 BasicBlock *BB = CPI.getParent();
4546 "CleanupPadInst needs to be in a function with a personality.", &CPI);
4550 Check(BB->getFirstNonPHI() == &CPI,
4551 "CleanupPadInst not the first non-PHI instruction in the block.", &CPI);
4553 auto *ParentPad = CPI.getParentPad();
4555 "CleanupPadInst has an invalid parent.", &CPI);
4557 visitEHPadPredecessors(CPI);
4558 visitFuncletPadInst(CPI);
4591 } else if (auto *CPI = dyn_cast<CleanupPadInst>(U)) {
4595 Worklist.push_back(CPI);