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

Side by Side Diff: src/IceRegistersX8632.h

Issue 1676123002: Subzero: Use a proper RegNumT type instead of int32_t/SizeT. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Make it possible to do "auto NewReg = RegNumT::NoRegister;" Created 4 years, 10 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/IceRegistersMIPS32.h ('k') | src/IceTargetLowering.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/IceRegistersX8632.h - Register information ---*- C++ -*-===// 1 //===- subzero/src/IceRegistersX8632.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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 /// An enum of X87 Stack Registers. The enum value does match the encoding 74 /// An enum of X87 Stack Registers. The enum value does match the encoding
75 /// used to binary encode register operands in instructions. 75 /// used to binary encode register operands in instructions.
76 enum X87STRegister { 76 enum X87STRegister {
77 #define X(val, encode, name) Encoded_##val = encode, 77 #define X(val, encode, name) Encoded_##val = encode,
78 X87ST_REGX8632_TABLE 78 X87ST_REGX8632_TABLE
79 #undef X 79 #undef X
80 Encoded_Not_X87STReg = -1 80 Encoded_Not_X87STReg = -1
81 }; 81 };
82 82
83 static inline X87STRegister getEncodedSTReg(int32_t RegNum) { 83 static inline X87STRegister getEncodedSTReg(uint32_t X87RegNum) {
84 assert(Encoded_X87ST_First <= RegNum); 84 assert(int(Encoded_X87ST_First) <= int(X87RegNum));
85 assert(RegNum <= Encoded_X87ST_Last); 85 assert(X87RegNum <= Encoded_X87ST_Last);
86 return X87STRegister(RegNum); 86 return X87STRegister(X87RegNum);
87 } 87 }
88 }; 88 };
89 89
90 } // end of namespace Ice 90 } // end of namespace Ice
91 91
92 #endif // SUBZERO_SRC_ICEREGISTERSX8632_H 92 #endif // SUBZERO_SRC_ICEREGISTERSX8632_H
OLDNEW
« no previous file with comments | « src/IceRegistersMIPS32.h ('k') | src/IceTargetLowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698