| 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 // This file implements the Operand class and its target-independent | 10 // This file implements the Operand class and its target-independent |
| 11 // subclasses, primarily for the methods of the Variable class. | 11 // subclasses, primarily for the methods of the Variable class. |
| 12 // | 12 // |
| 13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
| 14 | 14 |
| 15 #include "IceOperand.h" |
| 16 |
| 15 #include "IceCfg.h" | 17 #include "IceCfg.h" |
| 16 #include "IceCfgNode.h" | 18 #include "IceCfgNode.h" |
| 17 #include "IceInst.h" | 19 #include "IceInst.h" |
| 18 #include "IceOperand.h" | |
| 19 #include "IceTargetLowering.h" // dumping stack/frame pointer register | 20 #include "IceTargetLowering.h" // dumping stack/frame pointer register |
| 20 | 21 |
| 21 namespace Ice { | 22 namespace Ice { |
| 22 | 23 |
| 23 bool operator==(const RelocatableTuple &A, const RelocatableTuple &B) { | 24 bool operator==(const RelocatableTuple &A, const RelocatableTuple &B) { |
| 24 return A.Offset == B.Offset && A.Name == B.Name; | 25 return A.Offset == B.Offset && A.Name == B.Name; |
| 25 } | 26 } |
| 26 | 27 |
| 27 bool operator<(const RegWeight &A, const RegWeight &B) { | 28 bool operator<(const RegWeight &A, const RegWeight &B) { |
| 28 return A.getWeight() < B.getWeight(); | 29 return A.getWeight() < B.getWeight(); |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 if (getType() != IceType_i32 && getType() != IceType_i16 && | 504 if (getType() != IceType_i32 && getType() != IceType_i16 && |
| 504 getType() != IceType_i8) | 505 getType() != IceType_i8) |
| 505 return false; | 506 return false; |
| 506 // The Following checks if the signed representation of Value is between | 507 // The Following checks if the signed representation of Value is between |
| 507 // -Threshold/2 and +Threshold/2 | 508 // -Threshold/2 and +Threshold/2 |
| 508 bool largerThanThreshold = Threshold / 2 + Value >= Threshold; | 509 bool largerThanThreshold = Threshold / 2 + Value >= Threshold; |
| 509 return largerThanThreshold; | 510 return largerThanThreshold; |
| 510 } | 511 } |
| 511 | 512 |
| 512 } // end of namespace Ice | 513 } // end of namespace Ice |
| OLD | NEW |