Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: src/IceRegistersARM32.h

Issue 1838753002: Subzero: Remove IceString. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More cleanup Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceStringPool.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 static inline bool isEncodedQReg(RegNumT RegNum) { 200 static inline bool isEncodedQReg(RegNumT RegNum) {
201 RegNum.assertIsValid(); 201 RegNum.assertIsValid();
202 return RegTable[RegNum].IsVec128; 202 return RegTable[RegNum].IsVec128;
203 } 203 }
204 204
205 static inline QRegister getEncodedQReg(RegNumT RegNum) { 205 static inline QRegister getEncodedQReg(RegNumT RegNum) {
206 assert(isEncodedQReg(RegNum)); 206 assert(isEncodedQReg(RegNum));
207 return QRegister(RegTable[RegNum].Encoding); 207 return QRegister(RegTable[RegNum].Encoding);
208 } 208 }
209 209
210 static inline IceString getRegName(RegNumT RegNum) { 210 static inline const char *getRegName(RegNumT RegNum) {
211 RegNum.assertIsValid(); 211 RegNum.assertIsValid();
212 return RegTable[RegNum].Name; 212 return RegTable[RegNum].Name;
213 } 213 }
214 214
215 // Extend enum RegClass with ARM32-specific register classes. 215 // Extend enum RegClass with ARM32-specific register classes.
216 enum RegClassARM32 : uint8_t { 216 enum RegClassARM32 : uint8_t {
217 RCARM32_QtoS = RC_Target, // Denotes Q registers that are aliased by S 217 RCARM32_QtoS = RC_Target, // Denotes Q registers that are aliased by S
218 // registers. 218 // registers.
219 RCARM32_NUM 219 RCARM32_NUM
220 }; 220 };
221 221
222 } // end of namespace RegARM32 222 } // end of namespace RegARM32
223 } // end of namespace ARM32 223 } // end of namespace ARM32
224 } // end of namespace Ice 224 } // end of namespace Ice
225 225
226 #endif // SUBZERO_SRC_ICEREGISTERSARM32_H 226 #endif // SUBZERO_SRC_ICEREGISTERSARM32_H
OLDNEW
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceStringPool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698