Lines Matching defs:LPI
608 void visitLandingPadInst(LandingPadInst &LPI);
4445 if (auto *LPI = dyn_cast<LandingPadInst>(&I)) {
4454 LPI);
4520 void Verifier::visitLandingPadInst(LandingPadInst &LPI) {
4523 Check(LPI.getNumClauses() > 0 || LPI.isCleanup(),
4524 "LandingPadInst needs at least one clause or to be a cleanup.", &LPI);
4526 visitEHPadPredecessors(LPI);
4529 LandingPadResultTy = LPI.getType();
4531 Check(LandingPadResultTy == LPI.getType(),
4534 &LPI);
4536 Function *F = LPI.getParent()->getParent();
4538 "LandingPadInst needs to be in a function with a personality.", &LPI);
4542 Check(LPI.getParent()->getLandingPadInst() == &LPI,
4543 "LandingPadInst not the first non-PHI instruction in the block.", &LPI);
4545 for (unsigned i = 0, e = LPI.getNumClauses(); i < e; ++i) {
4546 Constant *Clause = LPI.getClause(i);
4547 if (LPI.isCatch(i)) {
4549 "Catch operand does not have pointer type!", &LPI);
4551 Check(LPI.isFilter(i), "Clause is neither catch nor filter!", &LPI);
4553 "Filter operand is not an array of constants!", &LPI);
4557 visitInstruction(LPI);