Lines Matching defs:LPI
600 void visitLandingPadInst(LandingPadInst &LPI);
4383 if (auto *LPI = dyn_cast<LandingPadInst>(&I)) {
4392 LPI);
4458 void Verifier::visitLandingPadInst(LandingPadInst &LPI) {
4461 Check(LPI.getNumClauses() > 0 || LPI.isCleanup(),
4462 "LandingPadInst needs at least one clause or to be a cleanup.", &LPI);
4464 visitEHPadPredecessors(LPI);
4467 LandingPadResultTy = LPI.getType();
4469 Check(LandingPadResultTy == LPI.getType(),
4472 &LPI);
4474 Function *F = LPI.getParent()->getParent();
4476 "LandingPadInst needs to be in a function with a personality.", &LPI);
4480 Check(LPI.getParent()->getLandingPadInst() == &LPI,
4481 "LandingPadInst not the first non-PHI instruction in the block.", &LPI);
4483 for (unsigned i = 0, e = LPI.getNumClauses(); i < e; ++i) {
4484 Constant *Clause = LPI.getClause(i);
4485 if (LPI.isCatch(i)) {
4487 "Catch operand does not have pointer type!", &LPI);
4489 Check(LPI.isFilter(i), "Clause is neither catch nor filter!", &LPI);
4491 "Filter operand is not an array of constants!", &LPI);
4495 visitInstruction(LPI);