Lines Matching defs:CPI
610 void visitCatchPadInst(CatchPadInst &CPI);
612 void visitCleanupPadInst(CleanupPadInst &CPI);
4458 if (auto *CPI = dyn_cast<CatchPadInst>(&I)) {
4460 Check(BB->getUniquePredecessor() == CPI->getCatchSwitch()->getParent(),
4463 CPI);
4464 Check(BB != CPI->getCatchSwitch()->getUnwindDest(),
4466 CPI->getCatchSwitch(), CPI);
4575 void Verifier::visitCatchPadInst(CatchPadInst &CPI) {
4576 BasicBlock *BB = CPI.getParent();
4580 "CatchPadInst needs to be in a function with a personality.", &CPI);
4582 Check(isa<CatchSwitchInst>(CPI.getParentPad()),
4584 CPI.getParentPad());
4588 Check(&*BB->getFirstNonPHIIt() == &CPI,
4589 "CatchPadInst not the first non-PHI instruction in the block.", &CPI);
4591 visitEHPadPredecessors(CPI);
4592 visitFuncletPadInst(CPI);
4603 void Verifier::visitCleanupPadInst(CleanupPadInst &CPI) {
4604 BasicBlock *BB = CPI.getParent();
4608 "CleanupPadInst needs to be in a function with a personality.", &CPI);
4612 Check(&*BB->getFirstNonPHIIt() == &CPI,
4613 "CleanupPadInst not the first non-PHI instruction in the block.", &CPI);
4615 auto *ParentPad = CPI.getParentPad();
4617 "CleanupPadInst has an invalid parent.", &CPI);
4619 visitEHPadPredecessors(CPI);
4620 visitFuncletPadInst(CPI);
4653 } else if (auto *CPI = dyn_cast<CleanupPadInst>(U)) {
4657 Worklist.push_back(CPI);