| OLD | NEW |
| 1 //===- subzero/src/IceOperand.cpp - High-level operand implementation -----===// | 1 //===- subzero/src/IceOperand.cpp - High-level operand implementation -----===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 /// | 9 /// |
| 10 /// \file | 10 /// \file |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 } | 459 } |
| 460 if (Offset) | 460 if (Offset) |
| 461 Str << "+" << Offset; | 461 Str << "+" << Offset; |
| 462 } | 462 } |
| 463 | 463 |
| 464 void ConstantUndef::emit(TargetLowering *Target) const { Target->emit(this); } | 464 void ConstantUndef::emit(TargetLowering *Target) const { Target->emit(this); } |
| 465 | 465 |
| 466 void LiveRange::dump(Ostream &Str) const { | 466 void LiveRange::dump(Ostream &Str) const { |
| 467 if (!BuildDefs::dump()) | 467 if (!BuildDefs::dump()) |
| 468 return; | 468 return; |
| 469 Str << "(weight=" << Weight << ") "; | |
| 470 bool First = true; | 469 bool First = true; |
| 471 for (const RangeElementType &I : Range) { | 470 for (const RangeElementType &I : Range) { |
| 472 if (!First) | 471 if (!First) |
| 473 Str << ", "; | 472 Str << ", "; |
| 474 First = false; | 473 First = false; |
| 475 Str << "[" << I.first << ":" << I.second << ")"; | 474 Str << "[" << I.first << ":" << I.second << ")"; |
| 476 } | 475 } |
| 477 } | 476 } |
| 478 | 477 |
| 479 Ostream &operator<<(Ostream &Str, const LiveRange &L) { | 478 Ostream &operator<<(Ostream &Str, const LiveRange &L) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 505 if (getType() != IceType_i32 && getType() != IceType_i16 && | 504 if (getType() != IceType_i32 && getType() != IceType_i16 && |
| 506 getType() != IceType_i8) | 505 getType() != IceType_i8) |
| 507 return false; | 506 return false; |
| 508 // The Following checks if the signed representation of Value is between | 507 // The Following checks if the signed representation of Value is between |
| 509 // -Threshold/2 and +Threshold/2 | 508 // -Threshold/2 and +Threshold/2 |
| 510 bool largerThanThreshold = Threshold / 2 + Value >= Threshold; | 509 bool largerThanThreshold = Threshold / 2 + Value >= Threshold; |
| 511 return largerThanThreshold; | 510 return largerThanThreshold; |
| 512 } | 511 } |
| 513 | 512 |
| 514 } // end of namespace Ice | 513 } // end of namespace Ice |
| OLD | NEW |