Home
last modified time | relevance | path

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

/external/llvm-project/llvm/lib/Analysis/
DLazyValueInfo.cpp71 static bool hasSingleValue(const ValueLatticeElement &Val) { in hasSingleValue()
96 static ValueLatticeElement intersect(const ValueLatticeElement &A, in intersect()
97 const ValueLatticeElement &B) { in intersect()
128 return ValueLatticeElement::getRange( in intersect()
164 SmallDenseMap<AssertingVH<Value>, ValueLatticeElement, 4> LatticeElements;
201 const ValueLatticeElement &Result) { in insertResult()
214 Optional<ValueLatticeElement> getCachedValueInfo(Value *V, in getCachedValueInfo()
221 return ValueLatticeElement::getOverdefined(); in getCachedValueInfo()
398 Optional<ValueLatticeElement> getBlockValue(Value *Val, BasicBlock *BB);
399 Optional<ValueLatticeElement> getEdgeValue(Value *V, BasicBlock *F,
[all …]
DValueLattice.cpp12 raw_ostream &operator<<(raw_ostream &OS, const ValueLatticeElement &Val) { in operator <<()
/external/llvm-project/llvm/include/llvm/Analysis/
DValueLattice.h27 class ValueLatticeElement {
146 ValueLatticeElement() : Tag(unknown), NumRangeExtensions(0) {} in ValueLatticeElement() function
148 ~ValueLatticeElement() { destroy(); } in ~ValueLatticeElement()
150 ValueLatticeElement(const ValueLatticeElement &Other) in ValueLatticeElement() function
169 ValueLatticeElement(ValueLatticeElement &&Other) in ValueLatticeElement() function
189 ValueLatticeElement &operator=(const ValueLatticeElement &Other) {
191 new (this) ValueLatticeElement(Other);
195 ValueLatticeElement &operator=(ValueLatticeElement &&Other) {
197 new (this) ValueLatticeElement(std::move(Other));
201 static ValueLatticeElement get(Constant *C) { in get()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DLazyValueInfo.cpp70 static bool hasSingleValue(const ValueLatticeElement &Val) { in hasSingleValue()
95 static ValueLatticeElement intersect(const ValueLatticeElement &A, in intersect()
96 const ValueLatticeElement &B) { in intersect()
128 return ValueLatticeElement::getRange(std::move(Range)); in intersect()
166 SmallDenseMap<PoisoningVH<BasicBlock>, ValueLatticeElement, 4> BlockVals;
185 const ValueLatticeElement &Result) { in insertResult()
223 ValueLatticeElement getCachedValueInfo(Value *V, BasicBlock *BB) const { in getCachedValueInfo()
225 return ValueLatticeElement::getOverdefined(); in getCachedValueInfo()
229 return ValueLatticeElement(); in getCachedValueInfo()
232 return ValueLatticeElement(); in getCachedValueInfo()
[all …]
DValueLattice.cpp12 raw_ostream &operator<<(raw_ostream &OS, const ValueLatticeElement &Val) { in operator <<()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DValueLattice.h26 class ValueLatticeElement {
63 ValueLatticeElement() : Tag(undefined) {} in ValueLatticeElement() function
67 ~ValueLatticeElement() { in ~ValueLatticeElement()
82 ValueLatticeElement(const ValueLatticeElement &Other) : Tag(undefined) { in ValueLatticeElement() function
88 ValueLatticeElement &operator=(const ValueLatticeElement &Other) {
119 static ValueLatticeElement get(Constant *C) { in get()
120 ValueLatticeElement Res; in get()
125 static ValueLatticeElement getNot(Constant *C) { in getNot()
126 ValueLatticeElement Res; in getNot()
131 static ValueLatticeElement getRange(ConstantRange CR) { in getRange()
[all …]
/external/llvm-project/llvm/unittests/Analysis/
DValueLatticeTest.cpp32 EXPECT_TRUE(ValueLatticeElement::get(C1).isConstantRange()); in TEST_F()
34 ValueLatticeElement::getRange({C1->getValue()}).isConstantRange()); in TEST_F()
35 EXPECT_TRUE(ValueLatticeElement::getOverdefined().isOverdefined()); in TEST_F()
39 EXPECT_TRUE(ValueLatticeElement::get(C2).isConstant()); in TEST_F()
40 EXPECT_TRUE(ValueLatticeElement::getNot(C2).isNotConstant()); in TEST_F()
45 ValueLatticeElement::getRange({APInt(32, 10, true), APInt(32, 20, true)}); in TEST_F()
65 auto LV1 = ValueLatticeElement::get(C1); in TEST_F()
66 EXPECT_FALSE(LV1.mergeIn(ValueLatticeElement::get(C1))); in TEST_F()
72 LV1.mergeIn(ValueLatticeElement::get(ConstantInt::get(I32Ty, 99)))); in TEST_F()
84 ValueLatticeElement LV2; in TEST_F()
[all …]
/external/llvm-project/llvm/lib/Transforms/Scalar/
DSCCP.cpp88 static ValueLatticeElement::MergeOptions getMaxWidenStepsOpts() { in getMaxWidenStepsOpts()
89 return ValueLatticeElement::MergeOptions().setMaxWidenSteps( in getMaxWidenStepsOpts()
98 bool isConstant(const ValueLatticeElement &LV) { in isConstant()
107 bool isOverdefined(const ValueLatticeElement &LV) { in isOverdefined()
120 DenseMap<Value *, ValueLatticeElement>
125 DenseMap<std::pair<Value *, unsigned>, ValueLatticeElement> StructValueState;
131 DenseMap<GlobalVariable *, ValueLatticeElement> TrackedGlobals;
136 MapVector<Function *, ValueLatticeElement> TrackedRetVals;
140 MapVector<std::pair<Function *, unsigned>, ValueLatticeElement>
221 ValueLatticeElement &IV = TrackedGlobals[GV]; in TrackValueOfGlobalVariable()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSCCP.cpp179 ValueLatticeElement toValueLattice() const { in toValueLattice()
181 return ValueLatticeElement::getOverdefined(); in toValueLattice()
183 return ValueLatticeElement::get(getConstant()); in toValueLattice()
184 return ValueLatticeElement(); in toValueLattice()
199 DenseMap<Value *, ValueLatticeElement> ParamState;
510 ValueLatticeElement &getParamState(Value *V) { in getParamState()
513 std::pair<DenseMap<Value*, ValueLatticeElement>::iterator, bool> in getParamState()
514 PI = ParamState.insert(std::make_pair(V, ValueLatticeElement())); in getParamState()
515 ValueLatticeElement &LV = PI.first->second; in getParamState()
1074 ValueLatticeElement V1State = (V1Param != ParamState.end()) in visitCmpInst()
[all …]