OLD | NEW |
---|---|
1 //===- subzero/src/IceRegistersARM32.h - Register information ---*- C++ -*-===// | 1 //===- subzero/src/IceRegistersARM32.h - Register information ---*- 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
212 assert(isEncodedQReg(RegNum)); | 212 assert(isEncodedQReg(RegNum)); |
213 return QRegister(RegTable[RegNum].Encoding); | 213 return QRegister(RegTable[RegNum].Encoding); |
214 } | 214 } |
215 | 215 |
216 static inline IceString getRegName(int32_t RegNum) { | 216 static inline IceString getRegName(int32_t RegNum) { |
217 assert(RegNum >= 0); | 217 assert(RegNum >= 0); |
218 assert(RegNum < Reg_NUM); | 218 assert(RegNum < Reg_NUM); |
219 return RegTable[RegNum].Name; | 219 return RegTable[RegNum].Name; |
220 } | 220 } |
221 | 221 |
222 // Extend enum RegClass with ARM32-specific register classes (if any). | 222 // Extend enum RegClass with ARM32-specific register classes (if any). |
Jim Stichnoth
2016/02/03 15:28:37
I guess the "(if any)" comment can be dropped.
Eric Holk
2016/02/03 21:02:21
Done.
| |
223 enum RegClassARM32 : uint8_t { RCARM32_NUM = RC_Target }; | 223 enum RegClassARM32 : uint8_t { |
224 RCARM32_QtoS = RC_Target, // Denotes Q registers that are aliased by S | |
225 // registers. | |
226 RCARM32_NUM | |
227 }; | |
224 | 228 |
225 } // end of namespace RegARM32 | 229 } // end of namespace RegARM32 |
226 } // end of namespace ARM32 | 230 } // end of namespace ARM32 |
227 } // end of namespace Ice | 231 } // end of namespace Ice |
228 | 232 |
229 #endif // SUBZERO_SRC_ICEREGISTERSARM32_H | 233 #endif // SUBZERO_SRC_ICEREGISTERSARM32_H |
OLD | NEW |