Lines Matching full:lv
47 bool SCCPSolver::isConstant(const ValueLatticeElement &LV) { in isConstant() argument
48 return LV.isConstant() || in isConstant()
49 (LV.isConstantRange() && LV.getConstantRange().isSingleElement()); in isConstant()
52 bool SCCPSolver::isOverdefined(const ValueLatticeElement &LV) { in isOverdefined() argument
53 return !LV.isUnknownOrUndef() && !SCCPSolver::isConstant(LV); in isOverdefined()
482 ValueLatticeElement &LV = I.first->second; in getValueState() local
485 return LV; // Common case, already in the map. in getValueState()
488 LV.markConstant(C); // Constants are constant in getValueState()
491 return LV; in getValueState()
504 ValueLatticeElement &LV = I.first->second; in getStructValueState() local
507 return LV; // Common case, already in the map. in getStructValueState()
513 LV.markOverdefined(); // Unknown sort of constant. in getStructValueState()
515 LV.markConstant(Elt); // Constants are constant. in getStructValueState()
519 return LV; in getStructValueState()
828 Constant *getConstant(const ValueLatticeElement &LV, Type *Ty) const;
937 ValueLatticeElement LV = It->second; in isStructLatticeConstant() local
938 if (!SCCPSolver::isConstant(LV)) in isStructLatticeConstant()
944 Constant *SCCPInstVisitor::getConstant(const ValueLatticeElement &LV, in getConstant() argument
946 if (LV.isConstant()) { in getConstant()
947 Constant *C = LV.getConstant(); in getConstant()
952 if (LV.isConstantRange()) { in getConstant()
953 const auto &CR = LV.getConstantRange(); in getConstant()
969 ValueLatticeElement LV = LVs[I]; in getConstantOrNull() local
970 ConstVals.push_back(SCCPSolver::isConstant(LV) in getConstantOrNull()
971 ? getConstant(LV, ST->getElementType(I)) in getConstantOrNull()
976 const ValueLatticeElement &LV = getLatticeValueFor(V); in getConstantOrNull() local
977 if (SCCPSolver::isOverdefined(LV)) in getConstantOrNull()
979 Const = SCCPSolver::isConstant(LV) ? getConstant(LV, V->getType()) in getConstantOrNull()
1296 auto &LV = getValueState(&I); in visitCastInst() local
1303 mergeInValue(LV, &I, ValueLatticeElement::getRange(Res)); in visitCastInst()
1971 ValueLatticeElement &LV = getStructValueState(&I, i); in resolvedUndef() local
1972 if (LV.isUnknown()) { in resolvedUndef()
1973 markOverdefined(LV, &I); in resolvedUndef()
1980 ValueLatticeElement &LV = getValueState(&I); in resolvedUndef() local
1981 if (!LV.isUnknown()) in resolvedUndef()
2151 Constant *SCCPSolver::getConstant(const ValueLatticeElement &LV, in getConstant() argument
2153 return Visitor->getConstant(LV, Ty); in getConstant()