| OLD | NEW |
| 1 //===- subzero/src/IceOperand.h - High-level operands -----------*- C++ -*-===// | 1 //===- subzero/src/IceOperand.h - High-level operands -----------*- C++ -*-===// |
| 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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 return IgnoreLiveness || IsRematerializable; | 696 return IgnoreLiveness || IsRematerializable; |
| 697 } | 697 } |
| 698 | 698 |
| 699 int32_t getStackOffset() const { return StackOffset; } | 699 int32_t getStackOffset() const { return StackOffset; } |
| 700 void setStackOffset(int32_t Offset) { StackOffset = Offset; } | 700 void setStackOffset(int32_t Offset) { StackOffset = Offset; } |
| 701 /// Returns the variable's stack offset in symbolic form, to improve | 701 /// Returns the variable's stack offset in symbolic form, to improve |
| 702 /// readability in DecorateAsm mode. | 702 /// readability in DecorateAsm mode. |
| 703 std::string getSymbolicStackOffset() const { | 703 std::string getSymbolicStackOffset() const { |
| 704 if (!BuildDefs::dump()) | 704 if (!BuildDefs::dump()) |
| 705 return ""; | 705 return ""; |
| 706 return "lv$" + getName(); | 706 return ".L$lv$" + getName(); |
| 707 } | 707 } |
| 708 | 708 |
| 709 bool hasReg() const { return getRegNum().hasValue(); } | 709 bool hasReg() const { return getRegNum().hasValue(); } |
| 710 RegNumT getRegNum() const { return RegNum; } | 710 RegNumT getRegNum() const { return RegNum; } |
| 711 void setRegNum(RegNumT NewRegNum) { | 711 void setRegNum(RegNumT NewRegNum) { |
| 712 // Regnum shouldn't be set more than once. | 712 // Regnum shouldn't be set more than once. |
| 713 assert(!hasReg() || RegNum == NewRegNum); | 713 assert(!hasReg() || RegNum == NewRegNum); |
| 714 RegNum = NewRegNum; | 714 RegNum = NewRegNum; |
| 715 } | 715 } |
| 716 bool hasRegTmp() const { return getRegNumTmp().hasValue(); } | 716 bool hasRegTmp() const { return getRegNumTmp().hasValue(); } |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 return Operand->getKind() == kVariableBoolean; | 1023 return Operand->getKind() == kVariableBoolean; |
| 1024 } | 1024 } |
| 1025 | 1025 |
| 1026 private: | 1026 private: |
| 1027 Variable *BoolSource = nullptr; | 1027 Variable *BoolSource = nullptr; |
| 1028 }; | 1028 }; |
| 1029 | 1029 |
| 1030 } // end of namespace Ice | 1030 } // end of namespace Ice |
| 1031 | 1031 |
| 1032 #endif // SUBZERO_SRC_ICEOPERAND_H | 1032 #endif // SUBZERO_SRC_ICEOPERAND_H |
| OLD | NEW |