Home
last modified time | relevance | path

Searched refs:LatticeVal (Results 1 – 10 of 10) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DSparsePropagation.h33 template <class LatticeKey, class LatticeVal,
46 template <class LatticeKey, class LatticeVal> class AbstractLatticeFunction {
48 LatticeVal UndefVal, OverdefinedVal, UntrackedVal;
51 AbstractLatticeFunction(LatticeVal undefVal, LatticeVal overdefinedVal, in AbstractLatticeFunction()
52 LatticeVal untrackedVal) { in AbstractLatticeFunction()
60 LatticeVal getUndefVal() const { return UndefVal; } in getUndefVal()
61 LatticeVal getOverdefinedVal() const { return OverdefinedVal; } in getOverdefinedVal()
62 LatticeVal getUntrackedVal() const { return UntrackedVal; } in getUntrackedVal()
71 virtual LatticeVal ComputeLatticeVal(LatticeKey Key) { in ComputeLatticeVal()
82 virtual LatticeVal MergeValues(LatticeVal X, LatticeVal Y) { in MergeValues()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DSparsePropagation.h46 typedef void *LatticeVal; typedef
48 LatticeVal UndefVal, OverdefinedVal, UntrackedVal;
50 AbstractLatticeFunction(LatticeVal undefVal, LatticeVal overdefinedVal, in AbstractLatticeFunction()
51 LatticeVal untrackedVal) { in AbstractLatticeFunction()
58 LatticeVal getUndefVal() const { return UndefVal; } in getUndefVal()
59 LatticeVal getOverdefinedVal() const { return OverdefinedVal; } in getOverdefinedVal()
60 LatticeVal getUntrackedVal() const { return UntrackedVal; } in getUntrackedVal()
71 virtual LatticeVal ComputeConstant(Constant *C) { in ComputeConstant()
84 virtual Constant *GetConstant(LatticeVal LV, Value *Val, SparseSolver &SS) { in GetConstant()
90 virtual LatticeVal ComputeArgument(Argument *I) { in ComputeArgument()
[all …]
/external/llvm/include/llvm/Analysis/
DSparsePropagation.h47 typedef void *LatticeVal; typedef
50 LatticeVal UndefVal, OverdefinedVal, UntrackedVal;
53 AbstractLatticeFunction(LatticeVal undefVal, LatticeVal overdefinedVal, in AbstractLatticeFunction()
54 LatticeVal untrackedVal) { in AbstractLatticeFunction()
61 LatticeVal getUndefVal() const { return UndefVal; } in getUndefVal()
62 LatticeVal getOverdefinedVal() const { return OverdefinedVal; } in getOverdefinedVal()
63 LatticeVal getUntrackedVal() const { return UntrackedVal; } in getUntrackedVal()
72 virtual LatticeVal ComputeConstant(Constant *C) { in ComputeConstant()
83 virtual Constant *GetConstant(LatticeVal LV, Value *Val, SparseSolver &SS) { in GetConstant()
89 virtual LatticeVal ComputeArgument(Argument *I) { in ComputeArgument()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Analysis/LazyValueAnalysis/
Dlvi-after-jumpthreading.ll14 ; CHECK-NEXT: ; LatticeVal for: 'i32 %a' is: overdefined
15 ; CHECK-NEXT: ; LatticeVal for: 'i32 %length' is: overdefined
19 ; CHECK-NEXT: ; LatticeVal for: 'i32 %a' is: overdefined
20 ; CHECK-NEXT: ; LatticeVal for: 'i32 %length' is: overdefined
21 ; CHECK-NEXT: ; LatticeVal for: ' %iv = phi i32 [ 0, %entry ], [ %iv.next, %backedge ]' in BB:…
22 ; CHECK-NEXT: ; LatticeVal for: ' %iv = phi i32 [ 0, %entry ], [ %iv.next, %backedge ]' in BB:…
24 ; CHECK-NEXT: ; LatticeVal for: ' %iv.next = add nsw i32 %iv, 1' in BB: '%backedge' is: consta…
25 ; CHECK-NEXT: ; LatticeVal for: ' %iv.next = add nsw i32 %iv, 1' in BB: '%exit' is: constantra…
27 ; CHECK-NEXT: ; LatticeVal for: ' %cont = icmp slt i32 %iv.next, 400' in BB: '%backedge' is: o…
28 ; CHECK-NEXT: ; LatticeVal for: ' %cont = icmp slt i32 %iv.next, 400' in BB: '%exit' is: const…
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DSCCP.cpp78 class LatticeVal { class
106 LatticeVal() : Val(nullptr, unknown) {} in LatticeVal() function in __anonf4e4c9bf0111::LatticeVal
195 DenseMap<Value *, LatticeVal> ValueState; // The state each value is in.
201 DenseMap<std::pair<Value *, unsigned>, LatticeVal> StructValueState;
207 DenseMap<GlobalVariable *, LatticeVal> TrackedGlobals;
212 DenseMap<Function *, LatticeVal> TrackedRetVals;
216 DenseMap<std::pair<Function *, unsigned>, LatticeVal> TrackedMultipleRetVals;
272 LatticeVal &IV = TrackedGlobals[GV]; in TrackValueOfGlobalVariable()
287 LatticeVal())); in AddTrackedFunction()
289 TrackedRetVals.insert(std::make_pair(F, LatticeVal())); in AddTrackedFunction()
[all …]
/external/llvm/lib/Transforms/Scalar/
DSCCP.cpp60 class LatticeVal { class
88 LatticeVal() : Val(nullptr, unknown) {} in LatticeVal() function in __anon8a523c670111::LatticeVal
163 DenseMap<Value*, LatticeVal> ValueState; // The state each value is in.
168 DenseMap<std::pair<Value*, unsigned>, LatticeVal> StructValueState;
174 DenseMap<GlobalVariable*, LatticeVal> TrackedGlobals;
179 DenseMap<Function*, LatticeVal> TrackedRetVals;
183 DenseMap<std::pair<Function*, unsigned>, LatticeVal> TrackedMultipleRetVals;
234 LatticeVal &IV = TrackedGlobals[GV]; in TrackValueOfGlobalVariable()
249 LatticeVal())); in AddTrackedFunction()
251 TrackedRetVals.insert(std::make_pair(F, LatticeVal())); in AddTrackedFunction()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DSCCP.cpp58 class LatticeVal { class
86 LatticeVal() : Val(0, undefined) {} in LatticeVal() function in __anon967d13930111::LatticeVal
160 DenseMap<Value*, LatticeVal> ValueState; // The state each value is in.
165 DenseMap<std::pair<Value*, unsigned>, LatticeVal> StructValueState;
171 DenseMap<GlobalVariable*, LatticeVal> TrackedGlobals;
176 DenseMap<Function*, LatticeVal> TrackedRetVals;
180 DenseMap<std::pair<Function*, unsigned>, LatticeVal> TrackedMultipleRetVals;
233 LatticeVal &IV = TrackedGlobals[GV]; in TrackValueOfGlobalVariable()
248 LatticeVal())); in AddTrackedFunction()
250 TrackedRetVals.insert(std::make_pair(F, LatticeVal())); in AddTrackedFunction()
[all …]
/external/llvm/lib/Analysis/
DSparsePropagation.cpp32 void AbstractLatticeFunction::PrintValue(LatticeVal V, raw_ostream &OS) { in PrintValue()
53 SparseSolver::LatticeVal SparseSolver::getOrInitValueState(Value *V) { in getOrInitValueState()
54 DenseMap<Value*, LatticeVal>::iterator I = ValueState.find(V); in getOrInitValueState()
57 LatticeVal LV; in getOrInitValueState()
79 void SparseSolver::UpdateState(Instruction &Inst, LatticeVal V) { in UpdateState()
80 DenseMap<Value*, LatticeVal>::iterator I = ValueState.find(&Inst); in UpdateState()
133 LatticeVal BCValue; in getFeasibleSuccessors()
175 LatticeVal SCValue; in getFeasibleSuccessors()
235 LatticeVal IV = LatticeFunc->ComputeInstructionState(PN, *this); in visitPHINode()
241 LatticeVal PNIV = getOrInitValueState(&PN); in visitPHINode()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DSparsePropagation.cpp31 void AbstractLatticeFunction::PrintValue(LatticeVal V, raw_ostream &OS) { in PrintValue()
52 SparseSolver::LatticeVal SparseSolver::getOrInitValueState(Value *V) { in getOrInitValueState()
53 DenseMap<Value*, LatticeVal>::iterator I = ValueState.find(V); in getOrInitValueState()
56 LatticeVal LV; in getOrInitValueState()
78 void SparseSolver::UpdateState(Instruction &Inst, LatticeVal V) { in UpdateState()
79 DenseMap<Value*, LatticeVal>::iterator I = ValueState.find(&Inst); in UpdateState()
132 LatticeVal BCValue; in getFeasibleSuccessors()
174 LatticeVal SCValue; in getFeasibleSuccessors()
234 LatticeVal IV = LatticeFunc->ComputeInstructionState(PN, *this); in visitPHINode()
240 LatticeVal PNIV = getOrInitValueState(&PN); in visitPHINode()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
DSparsePropagation.cpp64 TestLatticeVal() : LatticeVal(nullptr, UndefinedVal) {} in TestLatticeVal()
66 : LatticeVal(C, State) {} in TestLatticeVal()
70 bool isConstant() const { return LatticeVal.getInt() == ConstantVal; } in isConstant()
74 bool isOverdefined() const { return LatticeVal.getInt() == OverdefinedVal; } in isOverdefined()
77 return LatticeVal == RHS.LatticeVal; in operator ==()
81 return LatticeVal != RHS.LatticeVal; in operator !=()
87 PointerIntPair<const Constant *, 2, TestLatticeStateTy> LatticeVal; member in __anonc8b100540211::TestLatticeVal