Lines Matching refs:ValueLattice
49 struct ValueLattice { struct
64 constexpr ValueLattice() : State(ValueState::Undefined), Value(llvm::None) {} in ValueLattice() function
65 constexpr ValueLattice(int64_t V) : State(ValueState::Defined), Value(V) {} in ValueLattice() function
66 constexpr ValueLattice(ValueState S) : State(S), Value(llvm::None) {} in ValueLattice() function
68 static constexpr ValueLattice bottom() { in bottom() argument
69 return ValueLattice(ValueState::Undefined); in bottom()
71 static constexpr ValueLattice top() { in top() argument
72 return ValueLattice(ValueState::Defined); in top()
75 friend bool operator==(const ValueLattice &Lhs, const ValueLattice &Rhs) { in operator ==()
78 friend bool operator!=(const ValueLattice &Lhs, const ValueLattice &Rhs) { in operator !=()
82 LatticeJoinEffect join(const ValueLattice &Other) { in join() argument
96 std::ostream &operator<<(std::ostream &OS, const ValueLattice &L) { in operator <<()
100 case ValueLattice::ValueState::Undefined: in operator <<()
102 case ValueLattice::ValueState::Defined: in operator <<()
108 using ConstantPropagationLattice = VarMapLattice<ValueLattice>;
162 ? ValueLattice(R.Val.getInt().getExtValue()) in transfer()
163 : ValueLattice::top(); in transfer()
167 Vars[Var] = ValueLattice::top(); in transfer()
175 ? ValueLattice(R.Val.getInt().getExtValue()) in transfer()
176 : ValueLattice::top(); in transfer()
181 Vars[Var] = ValueLattice::top(); in transfer()