Lines Matching defs:LV

48 bool SCCPSolver::isConstant(const ValueLatticeElement &LV) {
49 return LV.isConstant() ||
50 (LV.isConstantRange() && LV.getConstantRange().isSingleElement());
53 bool SCCPSolver::isOverdefined(const ValueLatticeElement &LV) {
54 return !LV.isUnknownOrUndef() && !SCCPSolver::isConstant(LV);
528 ValueLatticeElement &LV = I.first->second;
531 return LV; // Common case, already in the map.
534 LV.markConstant(C); // Constants are constant
537 return LV;
550 ValueLatticeElement &LV = I.first->second;
553 return LV; // Common case, already in the map.
559 LV.markOverdefined(); // Unknown sort of constant.
561 LV.markConstant(Elt); // Constants are constant.
565 return LV;
882 Constant *getConstant(const ValueLatticeElement &LV, Type *Ty) const;
996 ValueLatticeElement LV = It->second;
997 if (!SCCPSolver::isConstant(LV))
1003 Constant *SCCPInstVisitor::getConstant(const ValueLatticeElement &LV,
1005 if (LV.isConstant()) {
1006 Constant *C = LV.getConstant();
1011 if (LV.isConstantRange()) {
1012 const auto &CR = LV.getConstantRange();
1028 ValueLatticeElement LV = LVs[I];
1029 ConstVals.push_back(SCCPSolver::isConstant(LV)
1030 ? getConstant(LV, ST->getElementType(I))
1035 const ValueLatticeElement &LV = getLatticeValueFor(V);
1036 if (SCCPSolver::isOverdefined(LV))
1038 Const = SCCPSolver::isConstant(LV) ? getConstant(LV, V->getType())
1355 auto &LV = getValueState(&I);
1362 mergeInValue(LV, &I, ValueLatticeElement::getRange(Res));
2062 ValueLatticeElement &LV = getStructValueState(&I, i);
2063 if (LV.isUnknown()) {
2064 markOverdefined(LV, &I);
2071 ValueLatticeElement &LV = getValueState(&I);
2072 if (!LV.isUnknown())
2247 Constant *SCCPSolver::getConstant(const ValueLatticeElement &LV,
2249 return Visitor->getConstant(LV, Ty);