Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A 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 …]
H A DValueLattice.cpp12 raw_ostream &operator<<(raw_ostream &OS, const ValueLatticeElement &Val) { in operator <<()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp39 static ValueLatticeElement::MergeOptions getMaxWidenStepsOpts() { in getMaxWidenStepsOpts()
40 return ValueLatticeElement::MergeOptions().setMaxWidenSteps( in getMaxWidenStepsOpts()
50 bool isConstant(const ValueLatticeElement &LV) { in isConstant()
59 bool isOverdefined(const ValueLatticeElement &LV) { in isOverdefined()
73 DenseMap<Value *, ValueLatticeElement>
78 DenseMap<std::pair<Value *, unsigned>, ValueLatticeElement> StructValueState;
84 DenseMap<GlobalVariable *, ValueLatticeElement> TrackedGlobals;
89 MapVector<Function *, ValueLatticeElement> TrackedRetVals;
93 MapVector<std::pair<Function *, unsigned>, ValueLatticeElement>
132 ConstantInt *getConstantInt(const ValueLatticeElement &IV) const { in getConstantInt()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A 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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DSCCPSolver.h104 std::vector<ValueLatticeElement> getStructLatticeValueFor(Value *V) const;
108 const ValueLatticeElement &getLatticeValueFor(Value *V) const;
111 const MapVector<Function *, ValueLatticeElement> &getTrackedRetVals();
115 const DenseMap<GlobalVariable *, ValueLatticeElement> &getTrackedGlobals();
132 Constant *getConstant(const ValueLatticeElement &LV) const;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DSCCP.cpp87 static bool isConstant(const ValueLatticeElement &LV) { in isConstant()
96 static bool isOverdefined(const ValueLatticeElement &LV) { in isOverdefined()
106 std::vector<ValueLatticeElement> IVs = Solver.getStructLatticeValueFor(V); in tryToReplaceWithConstant()
108 [](const ValueLatticeElement &LV) { return isOverdefined(LV); })) in tryToReplaceWithConstant()
113 ValueLatticeElement V = IVs[i]; in tryToReplaceWithConstant()
120 const ValueLatticeElement &IV = Solver.getLatticeValueFor(V); in tryToReplaceWithConstant()
172 const ValueLatticeElement &IV = Solver.getLatticeValueFor(ExtOp); in simplifyInstsInBlock()
326 [](const ValueLatticeElement &LV) { in findReturnsToZap()
577 const ValueLatticeElement &ReturnValue = I.second; in runIPSCCP()