Lines Matching refs:ValueLatticeElement

67 static bool hasSingleValue(const ValueLatticeElement &Val) {  in hasSingleValue()
92 static ValueLatticeElement intersect(const ValueLatticeElement &A, in intersect()
93 const ValueLatticeElement &B) { in intersect()
125 return ValueLatticeElement::getRange(std::move(Range)); in intersect()
163 SmallDenseMap<PoisoningVH<BasicBlock>, ValueLatticeElement, 4> BlockVals;
182 const ValueLatticeElement &Result) { in insertResult()
220 ValueLatticeElement getCachedValueInfo(Value *V, BasicBlock *BB) const { in getCachedValueInfo()
222 return ValueLatticeElement::getOverdefined(); in getCachedValueInfo()
226 return ValueLatticeElement(); in getCachedValueInfo()
229 return ValueLatticeElement(); in getCachedValueInfo()
407 ValueLatticeElement getBlockValue(Value *Val, BasicBlock *BB);
409 ValueLatticeElement &Result, Instruction *CxtI = nullptr);
416 bool solveBlockValueImpl(ValueLatticeElement &Res, Value *Val,
418 bool solveBlockValueNonLocal(ValueLatticeElement &BBLV, Value *Val,
420 bool solveBlockValuePHINode(ValueLatticeElement &BBLV, PHINode *PN,
422 bool solveBlockValueSelect(ValueLatticeElement &BBLV, SelectInst *S,
426 bool solveBlockValueBinaryOp(ValueLatticeElement &BBLV, BinaryOperator *BBI,
428 bool solveBlockValueCast(ValueLatticeElement &BBLV, CastInst *CI,
431 ValueLatticeElement &BBLV,
439 ValueLatticeElement getValueInBlock(Value *V, BasicBlock *BB,
445 ValueLatticeElement getValueAt(Value *V, Instruction *CxtI);
449 ValueLatticeElement getValueOnEdge(Value *V, BasicBlock *FromBB,
520 ValueLatticeElement::getOverdefined()); in solve()
557 ValueLatticeElement LazyValueInfoImpl::getBlockValue(Value *Val, in getBlockValue()
561 return ValueLatticeElement::get(VC); in getBlockValue()
566 static ValueLatticeElement getFromRangeMetadata(Instruction *BBI) { in getFromRangeMetadata()
574 return ValueLatticeElement::getRange( in getFromRangeMetadata()
580 return ValueLatticeElement::getOverdefined(); in getFromRangeMetadata()
600 ValueLatticeElement Res; in solveBlockValue()
609 bool LazyValueInfoImpl::solveBlockValueImpl(ValueLatticeElement &Res, in solveBlockValueImpl()
633 Res = ValueLatticeElement::getNot(ConstantPointerNull::get(PT)); in solveBlockValueImpl()
699 bool LazyValueInfoImpl::solveBlockValueNonLocal(ValueLatticeElement &BBLV, in solveBlockValueNonLocal()
701 ValueLatticeElement Result; // Start Undefined. in solveBlockValueNonLocal()
714 Result = ValueLatticeElement::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal()
716 Result = ValueLatticeElement::getOverdefined(); in solveBlockValueNonLocal()
732 ValueLatticeElement EdgeResult; in solveBlockValueNonLocal()
749 Result = ValueLatticeElement::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal()
763 bool LazyValueInfoImpl::solveBlockValuePHINode(ValueLatticeElement &BBLV, in solveBlockValuePHINode()
765 ValueLatticeElement Result; // Start Undefined. in solveBlockValuePHINode()
773 ValueLatticeElement EdgeResult; in solveBlockValuePHINode()
800 static ValueLatticeElement getValueFromCondition(Value *Val, Value *Cond,
806 Value *Val, ValueLatticeElement &BBLV, Instruction *BBI) { in intersectAssumeOrGuardBlockValueConstantRange()
835 bool LazyValueInfoImpl::solveBlockValueSelect(ValueLatticeElement &BBLV, in solveBlockValueSelect()
842 BBLV = ValueLatticeElement::getOverdefined(); in solveBlockValueSelect()
845 ValueLatticeElement TrueVal = getBlockValue(SI->getTrueValue(), BB); in solveBlockValueSelect()
849 BBLV = ValueLatticeElement::getOverdefined(); in solveBlockValueSelect()
856 BBLV = ValueLatticeElement::getOverdefined(); in solveBlockValueSelect()
859 ValueLatticeElement FalseVal = getBlockValue(SI->getFalseValue(), BB); in solveBlockValueSelect()
863 BBLV = ValueLatticeElement::getOverdefined(); in solveBlockValueSelect()
891 BBLV = ValueLatticeElement::getRange(ResultCR); in solveBlockValueSelect()
934 ValueLatticeElement::getNot(ResNot)); in solveBlockValueSelect()
942 ValueLatticeElement::getNot(ResNot)); in solveBlockValueSelect()
949 ValueLatticeElement Result; // Start Undefined. in solveBlockValueSelect()
967 ValueLatticeElement Val = getBlockValue(I->getOperand(Op), BB); in getRangeForOperand()
975 bool LazyValueInfoImpl::solveBlockValueCast(ValueLatticeElement &BBLV, in solveBlockValueCast()
981 BBLV = ValueLatticeElement::getOverdefined(); in solveBlockValueCast()
998 BBLV = ValueLatticeElement::getOverdefined(); in solveBlockValueCast()
1016 BBLV = ValueLatticeElement::getRange(LHSRange.castOp(CI->getOpcode(), in solveBlockValueCast()
1021 bool LazyValueInfoImpl::solveBlockValueBinaryOp(ValueLatticeElement &BBLV, in solveBlockValueBinaryOp()
1047 BBLV = ValueLatticeElement::getOverdefined(); in solveBlockValueBinaryOp()
1069 BBLV = ValueLatticeElement::getRange(LHSRange.binaryOp(BinOp, RHSRange)); in solveBlockValueBinaryOp()
1073 static ValueLatticeElement getValueFromICmpCondition(Value *Val, ICmpInst *ICI, in getValueFromICmpCondition()
1084 return ValueLatticeElement::get(cast<Constant>(RHS)); in getValueFromICmpCondition()
1086 return ValueLatticeElement::getNot(cast<Constant>(RHS)); in getValueFromICmpCondition()
1091 return ValueLatticeElement::getOverdefined(); in getValueFromICmpCondition()
1130 return ValueLatticeElement::getRange(std::move(TrueValues)); in getValueFromICmpCondition()
1133 return ValueLatticeElement::getOverdefined(); in getValueFromICmpCondition()
1136 static ValueLatticeElement
1138 DenseMap<Value*, ValueLatticeElement> &Visited);
1140 static ValueLatticeElement
1142 DenseMap<Value*, ValueLatticeElement> &Visited) { in getValueFromConditionImpl()
1153 return ValueLatticeElement::getOverdefined(); in getValueFromConditionImpl()
1162 return ValueLatticeElement::getOverdefined(); in getValueFromConditionImpl()
1168 static ValueLatticeElement
1170 DenseMap<Value*, ValueLatticeElement> &Visited) { in getValueFromCondition()
1180 ValueLatticeElement getValueFromCondition(Value *Val, Value *Cond, in getValueFromCondition()
1183 DenseMap<Value*, ValueLatticeElement> Visited; in getValueFromCondition()
1204 static ValueLatticeElement constantFoldUser(User *Usr, Value *Op, in constantFoldUser()
1215 return ValueLatticeElement::getRange(ConstantRange(C->getValue())); in constantFoldUser()
1226 return ValueLatticeElement::getRange(ConstantRange(C->getValue())); in constantFoldUser()
1229 return ValueLatticeElement::getOverdefined(); in constantFoldUser()
1236 BasicBlock *BBTo, ValueLatticeElement &Result) { in getEdgeValueLocal()
1252 Result = ValueLatticeElement::get(ConstantInt::get( in getEdgeValueLocal()
1290 ValueLatticeElement OpLatticeVal = in getEdgeValueLocal()
1333 ValueLatticeElement EdgeLatticeVal = in getEdgeValueLocal()
1351 Result = ValueLatticeElement::getRange(std::move(EdgesVals)); in getEdgeValueLocal()
1361 ValueLatticeElement &Result, in getEdgeValue()
1365 Result = ValueLatticeElement::get(VC); in getEdgeValue()
1369 ValueLatticeElement LocalResult; in getEdgeValue()
1373 LocalResult = ValueLatticeElement::getOverdefined(); in getEdgeValue()
1390 ValueLatticeElement InBlock = getBlockValue(Val, BBFrom); in getEdgeValue()
1407 ValueLatticeElement LazyValueInfoImpl::getValueInBlock(Value *V, BasicBlock *BB, in getValueInBlock()
1417 ValueLatticeElement Result = getBlockValue(V, BB); in getValueInBlock()
1424 ValueLatticeElement LazyValueInfoImpl::getValueAt(Value *V, Instruction *CxtI) { in getValueAt()
1429 return ValueLatticeElement::get(C); in getValueAt()
1431 ValueLatticeElement Result = ValueLatticeElement::getOverdefined(); in getValueAt()
1440 ValueLatticeElement LazyValueInfoImpl::
1447 ValueLatticeElement Result; in getValueOnEdge()
1557 ValueLatticeElement Result = in getConstant()
1575 ValueLatticeElement Result = in getConstantRange()
1594 ValueLatticeElement Result = in getConstantOnEdge()
1613 ValueLatticeElement Result = in getConstantRangeOnEdge()
1628 getPredicateResult(unsigned Pred, Constant *C, const ValueLatticeElement &Val, in getPredicateResult()
1699 ValueLatticeElement Result = in getPredicateOnEdge()
1720 ValueLatticeElement Result = getImpl(PImpl, AC, &DL, DT).getValueAt(V, CxtI); in getPredicateAt()
1844 ValueLatticeElement Result = LVIImpl->getValueInBlock( in emitBasicBlockStartAnnot()
1869 ValueLatticeElement Result = LVIImpl->getValueInBlock( in emitInstructionAnnot()