| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  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 void setHasFramePointer() = 0; | 
|  205   virtual SizeT getStackReg() const = 0; |  205   virtual SizeT getStackReg() const = 0; | 
 |  206   virtual SizeT getFrameReg() const = 0; | 
|  206   virtual SizeT getFrameOrStackReg() const = 0; |  207   virtual SizeT getFrameOrStackReg() const = 0; | 
|  207   virtual size_t typeWidthInBytesOnStack(Type Ty) const = 0; |  208   virtual size_t typeWidthInBytesOnStack(Type Ty) const = 0; | 
|  208   virtual uint32_t getStackAlignment() const = 0; |  209   virtual uint32_t getStackAlignment() const = 0; | 
 |  210   virtual void reserveFixedAllocaArea(size_t Size, size_t Align) = 0; | 
 |  211   virtual int32_t getFrameFixedAllocaOffset() const = 0; | 
|  209  |  212  | 
|  210   /// Return whether a 64-bit Variable should be split into a Variable64On32. |  213   /// Return whether a 64-bit Variable should be split into a Variable64On32. | 
|  211   virtual bool shouldSplitToVariable64On32(Type Ty) const = 0; |  214   virtual bool shouldSplitToVariable64On32(Type Ty) const = 0; | 
|  212  |  215  | 
|  213   bool hasComputedFrame() const { return HasComputedFrame; } |  216   bool hasComputedFrame() const { return HasComputedFrame; } | 
|  214   /// Returns true if this function calls a function that has the "returns |  217   /// Returns true if this function calls a function that has the "returns | 
|  215   /// twice" attribute. |  218   /// twice" attribute. | 
|  216   bool callsReturnsTwice() const { return CallsReturnsTwice; } |  219   bool callsReturnsTwice() const { return CallsReturnsTwice; } | 
|  217   void setCallsReturnsTwice(bool RetTwice) { CallsReturnsTwice = RetTwice; } |  220   void setCallsReturnsTwice(bool RetTwice) { CallsReturnsTwice = RetTwice; } | 
|  218   int32_t getStackAdjustment() const { return StackAdjustment; } |  221   int32_t getStackAdjustment() const { return StackAdjustment; } | 
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  480   virtual void lower() {} |  483   virtual void lower() {} | 
|  481  |  484  | 
|  482 protected: |  485 protected: | 
|  483   explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {} |  486   explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {} | 
|  484   GlobalContext *Ctx; |  487   GlobalContext *Ctx; | 
|  485 }; |  488 }; | 
|  486  |  489  | 
|  487 } // end of namespace Ice |  490 } // end of namespace Ice | 
|  488  |  491  | 
|  489 #endif // SUBZERO_SRC_ICETARGETLOWERING_H |  492 #endif // SUBZERO_SRC_ICETARGETLOWERING_H | 
| OLD | NEW |