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 virtual void doBranchOpt(Inst * /*I*/, const CfgNode * /*NextNode*/) {} |
128 | 129 |
129 // Returns a variable pre-colored to the specified physical | 130 // Returns a variable pre-colored to the specified physical |
130 // register. This is generally used to get very direct access to | 131 // register. This is generally used to get very direct access to |
131 // the register such as in the prolog or epilog or for marking | 132 // the register such as in the prolog or epilog or for marking |
132 // scratch registers as killed by a call. | 133 // scratch registers as killed by a call. |
133 virtual Variable *getPhysicalRegister(SizeT RegNum) = 0; | 134 virtual Variable *getPhysicalRegister(SizeT RegNum) = 0; |
134 // Returns a printable name for the register. | 135 // Returns a printable name for the register. |
135 virtual IceString getRegName(SizeT RegNum, Type Ty) const = 0; | 136 virtual IceString getRegName(SizeT RegNum, Type Ty) const = 0; |
136 | 137 |
137 virtual bool hasFramePointer() const { return false; } | 138 virtual bool hasFramePointer() const { return false; } |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 private: | 249 private: |
249 TargetGlobalInitLowering(const TargetGlobalInitLowering &) | 250 TargetGlobalInitLowering(const TargetGlobalInitLowering &) |
250 LLVM_DELETED_FUNCTION; | 251 LLVM_DELETED_FUNCTION; |
251 TargetGlobalInitLowering & | 252 TargetGlobalInitLowering & |
252 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION; | 253 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION; |
253 }; | 254 }; |
254 | 255 |
255 } // end of namespace Ice | 256 } // end of namespace Ice |
256 | 257 |
257 #endif // SUBZERO_SRC_ICETARGETLOWERING_H | 258 #endif // SUBZERO_SRC_ICETARGETLOWERING_H |
OLD | NEW |