Lines Matching refs:Value
25 IrOpcode::Value opcode() const { return node()->opcode(); }
46 // A pattern matcher for abitrary value constants.
47 template <typename T, IrOpcode::Value kOpcode>
59 const T& Value() const {
110 template <typename T, IrOpcode::Value kOpcode>
114 bool Is(const T& value) const {
115 return this->HasValue() && this->Value() == value;
118 return this->HasValue() && low <= this->Value() && this->Value() <= high;
121 return this->HasValue() && (this->Value() % n) == 0;
124 return this->HasValue() && this->Value() > 0 &&
125 (this->Value() & (this->Value() - 1)) == 0;
128 return this->HasValue() && this->Value() < 0 &&
129 (-this->Value() & (-this->Value() - 1)) == 0;
147 template <typename T, IrOpcode::Value kOpcode>
151 bool Is(const T& value) const {
152 return this->HasValue() && this->Value() == value;
155 return this->HasValue() && low <= this->Value() && this->Value() <= high;
158 return this->Is(0.0) && std::signbit(this->Value());
160 bool IsNaN() const { return this->HasValue() && std::isnan(this->Value()); }
161 bool IsZero() const { return this->Is(0.0) && !std::signbit(this->Value()); }
182 bool Is(const ExternalReference& value) const {
183 return this->HasValue() && this->Value() == value;
258 template <class BinopMatcher, IrOpcode::Value kMulOpcode,
259 IrOpcode::Value kShiftOpcode>
267 typename BinopMatcher::RightMatcher::ValueType value =
268 m.right().Value();
269 if (value >= 0 && value <= 3) {
270 scale_ = static_cast<int>(value);
275 typename BinopMatcher::RightMatcher::ValueType value =
276 m.right().Value();
277 if (value == 1) {
279 } else if (value == 2) {
281 } else if (value == 4) {
283 } else if (value == 8) {
286 if (value == 3) {
289 } else if (value == 5) {
292 } else if (value == 9) {
316 template <class BinopMatcher, IrOpcode::Value kAddOpcode,
317 IrOpcode::Value kMulOpcode, IrOpcode::Value kShiftOpcode>
319 static const IrOpcode::Value kOpcode = kAddOpcode;
521 int64_t value = 0;
525 value = OpParameter<int32_t>(displacement);
529 value = OpParameter<int64_t>(displacement);
536 if (value == 0) {