Home
last modified time | relevance | path

Searched refs:ValueLatticeElement (Results 1 – 5 of 5) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DLazyValueInfo.cpp66 static bool hasSingleValue(const ValueLatticeElement &Val) { in hasSingleValue()
91 static ValueLatticeElement intersect(const ValueLatticeElement &A, in intersect()
92 const ValueLatticeElement &B) { in intersect()
124 return ValueLatticeElement::getRange(std::move(Range)); in intersect()
162 SmallDenseMap<PoisoningVH<BasicBlock>, ValueLatticeElement, 4> BlockVals;
181 const ValueLatticeElement &Result) { in insertResult()
219 ValueLatticeElement getCachedValueInfo(Value *V, BasicBlock *BB) const { in getCachedValueInfo()
221 return ValueLatticeElement::getOverdefined(); in getCachedValueInfo()
225 return ValueLatticeElement(); in getCachedValueInfo()
228 return ValueLatticeElement(); in getCachedValueInfo()
[all …]
DValueLattice.cpp13 raw_ostream &operator<<(raw_ostream &OS, const ValueLatticeElement &Val) { in operator <<()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DValueLattice.h27 class ValueLatticeElement {
64 ValueLatticeElement() : Tag(undefined) {} in ValueLatticeElement() function
68 ~ValueLatticeElement() { in ~ValueLatticeElement()
83 ValueLatticeElement(const ValueLatticeElement &Other) : Tag(undefined) { in ValueLatticeElement() function
89 ValueLatticeElement &operator=(const ValueLatticeElement &Other) {
120 static ValueLatticeElement get(Constant *C) { in get()
121 ValueLatticeElement Res; in get()
126 static ValueLatticeElement getNot(Constant *C) { in getNot()
127 ValueLatticeElement Res; in getNot()
132 static ValueLatticeElement getRange(ConstantRange CR) { in getRange()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
DValueLatticeTest.cpp36 EXPECT_TRUE(ValueLatticeElement::get(C1).isConstantRange()); in TEST_F()
38 ValueLatticeElement::getRange({C1->getValue()}).isConstantRange()); in TEST_F()
39 EXPECT_TRUE(ValueLatticeElement::getOverdefined().isOverdefined()); in TEST_F()
43 EXPECT_TRUE(ValueLatticeElement::get(C2).isConstant()); in TEST_F()
44 EXPECT_TRUE(ValueLatticeElement::getNot(C2).isNotConstant()); in TEST_F()
52 auto LV1 = ValueLatticeElement::get(C1); in TEST_F()
53 EXPECT_FALSE(LV1.mergeIn(ValueLatticeElement::get(C1), M.getDataLayout())); in TEST_F()
58 EXPECT_TRUE(LV1.mergeIn(ValueLatticeElement::get(ConstantInt::get(I32Ty, 99)), in TEST_F()
71 ValueLatticeElement LV2; in TEST_F()
82 LV1.mergeIn(ValueLatticeElement::getOverdefined(), M.getDataLayout())); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DSCCP.cpp177 ValueLatticeElement toValueLattice() const { in toValueLattice()
179 return ValueLatticeElement::getOverdefined(); in toValueLattice()
181 return ValueLatticeElement::get(getConstant()); in toValueLattice()
182 return ValueLatticeElement(); in toValueLattice()
197 DenseMap<Value *, ValueLatticeElement> ParamState;
487 ValueLatticeElement &getParamState(Value *V) { in getParamState()
490 std::pair<DenseMap<Value*, ValueLatticeElement>::iterator, bool> in getParamState()
491 PI = ParamState.insert(std::make_pair(V, ValueLatticeElement())); in getParamState()
492 ValueLatticeElement &LV = PI.first->second; in getParamState()
994 ValueLatticeElement V1State = (V1Param != ParamState.end()) in visitCmpInst()
[all …]