| OLD | NEW |
| 1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- C++ -*-===// | 1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 /// Returns a variable pre-colored to the specified physical register. This is | 194 /// Returns a variable pre-colored to the specified physical register. This is |
| 195 /// generally used to get very direct access to the register such as in the | 195 /// generally used to get very direct access to the register such as in the |
| 196 /// prolog or epilog or for marking scratch registers as killed by a call. If | 196 /// prolog or epilog or for marking scratch registers as killed by a call. If |
| 197 /// a Type is not provided, a target-specific default type is used. | 197 /// a Type is not provided, a target-specific default type is used. |
| 198 virtual Variable *getPhysicalRegister(SizeT RegNum, | 198 virtual Variable *getPhysicalRegister(SizeT RegNum, |
| 199 Type Ty = IceType_void) = 0; | 199 Type Ty = IceType_void) = 0; |
| 200 /// Returns a printable name for the register. | 200 /// Returns a printable name for the register. |
| 201 virtual IceString getRegName(SizeT RegNum, Type Ty) const = 0; | 201 virtual IceString getRegName(SizeT RegNum, Type Ty) const = 0; |
| 202 | 202 |
| 203 virtual bool hasFramePointer() const { return false; } | 203 virtual bool hasFramePointer() const { return false; } |
| 204 virtual void setHasFramePointer() = 0; |
| 204 virtual SizeT getStackReg() const = 0; | 205 virtual SizeT getStackReg() const = 0; |
| 205 virtual SizeT getFrameOrStackReg() const = 0; | 206 virtual SizeT getFrameOrStackReg() const = 0; |
| 206 virtual size_t typeWidthInBytesOnStack(Type Ty) const = 0; | 207 virtual size_t typeWidthInBytesOnStack(Type Ty) const = 0; |
| 208 virtual uint32_t getStackAlignment() const = 0; |
| 207 | 209 |
| 208 /// Return whether a 64-bit Variable should be split into a Variable64On32. | 210 /// Return whether a 64-bit Variable should be split into a Variable64On32. |
| 209 virtual bool shouldSplitToVariable64On32(Type Ty) const = 0; | 211 virtual bool shouldSplitToVariable64On32(Type Ty) const = 0; |
| 210 | 212 |
| 211 bool hasComputedFrame() const { return HasComputedFrame; } | 213 bool hasComputedFrame() const { return HasComputedFrame; } |
| 212 /// Returns true if this function calls a function that has the "returns | 214 /// Returns true if this function calls a function that has the "returns |
| 213 /// twice" attribute. | 215 /// twice" attribute. |
| 214 bool callsReturnsTwice() const { return CallsReturnsTwice; } | 216 bool callsReturnsTwice() const { return CallsReturnsTwice; } |
| 215 void setCallsReturnsTwice(bool RetTwice) { CallsReturnsTwice = RetTwice; } | 217 void setCallsReturnsTwice(bool RetTwice) { CallsReturnsTwice = RetTwice; } |
| 216 int32_t getStackAdjustment() const { return StackAdjustment; } | 218 int32_t getStackAdjustment() const { return StackAdjustment; } |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 virtual void lower() {} | 479 virtual void lower() {} |
| 478 | 480 |
| 479 protected: | 481 protected: |
| 480 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {} | 482 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {} |
| 481 GlobalContext *Ctx; | 483 GlobalContext *Ctx; |
| 482 }; | 484 }; |
| 483 | 485 |
| 484 } // end of namespace Ice | 486 } // end of namespace Ice |
| 485 | 487 |
| 486 #endif // SUBZERO_SRC_ICETARGETLOWERING_H | 488 #endif // SUBZERO_SRC_ICETARGETLOWERING_H |
| OLD | NEW |