| 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 // This file declares the TargetLowering and LoweringContext | 10 // This file declares the TargetLowering and LoweringContext |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 virtual void translateO2() { | 118 virtual void translateO2() { |
| 119 Func->setError("Target doesn't specify O2 lowering steps."); | 119 Func->setError("Target doesn't specify O2 lowering steps."); |
| 120 } | 120 } |
| 121 | 121 |
| 122 // Tries to do address mode optimization on a single instruction. | 122 // Tries to do address mode optimization on a single instruction. |
| 123 void doAddressOpt(); | 123 void doAddressOpt(); |
| 124 // Randomly insert NOPs. | 124 // Randomly insert NOPs. |
| 125 void doNopInsertion(); | 125 void doNopInsertion(); |
| 126 // Lowers a single instruction. | 126 // Lowers a single instruction. |
| 127 void lower(); | 127 void lower(); |
| 128 // Tries to do branch optimization on a single instruction. Returns |
| 129 // true if some optimization was done. |
| 130 virtual bool doBranchOpt(Inst * /*I*/, const CfgNode * /*NextNode*/) { |
| 131 return false; |
| 132 } |
| 128 | 133 |
| 129 // Returns a variable pre-colored to the specified physical | 134 // Returns a variable pre-colored to the specified physical |
| 130 // register. This is generally used to get very direct access to | 135 // register. This is generally used to get very direct access to |
| 131 // the register such as in the prolog or epilog or for marking | 136 // the register such as in the prolog or epilog or for marking |
| 132 // scratch registers as killed by a call. | 137 // scratch registers as killed by a call. |
| 133 virtual Variable *getPhysicalRegister(SizeT RegNum) = 0; | 138 virtual Variable *getPhysicalRegister(SizeT RegNum) = 0; |
| 134 // Returns a printable name for the register. | 139 // Returns a printable name for the register. |
| 135 virtual IceString getRegName(SizeT RegNum, Type Ty) const = 0; | 140 virtual IceString getRegName(SizeT RegNum, Type Ty) const = 0; |
| 136 | 141 |
| 137 virtual bool hasFramePointer() const { return false; } | 142 virtual bool hasFramePointer() const { return false; } |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 private: | 253 private: |
| 249 TargetGlobalInitLowering(const TargetGlobalInitLowering &) | 254 TargetGlobalInitLowering(const TargetGlobalInitLowering &) |
| 250 LLVM_DELETED_FUNCTION; | 255 LLVM_DELETED_FUNCTION; |
| 251 TargetGlobalInitLowering & | 256 TargetGlobalInitLowering & |
| 252 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION; | 257 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION; |
| 253 }; | 258 }; |
| 254 | 259 |
| 255 } // end of namespace Ice | 260 } // end of namespace Ice |
| 256 | 261 |
| 257 #endif // SUBZERO_SRC_ICETARGETLOWERING_H | 262 #endif // SUBZERO_SRC_ICETARGETLOWERING_H |
| OLD | NEW |