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

Unified Diff: src/IceConditionCodesX8664.h

Issue 1216033004: Move X8632-specific Assembler stuff to Machine Traits. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceAssemblerX86BaseImpl.h ('k') | src/IceInstX8632.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceConditionCodesX8664.h
diff --git a/src/IceConditionCodesX8664.h b/src/IceConditionCodesX8664.h
index 59a149393e0ab9b05f647f7bb7cd22165e63794e..ec30f88b0d880af8be3a42ff2508d68e2ba72751 100644
--- a/src/IceConditionCodesX8664.h
+++ b/src/IceConditionCodesX8664.h
@@ -19,28 +19,27 @@
namespace Ice {
-namespace CondX8664 {
-// An enum of condition codes used for branches and cmov. The enum value
-// should match the value used to encode operands in binary instructions.
-enum BrCond {
+class CondX8664 {
+ // An enum of condition codes used for branches and cmov. The enum value
+ // should match the value used to encode operands in binary instructions.
+ enum BrCond {
#define X(tag, encode, opp, dump, emit) tag encode,
- ICEINSTX8664BR_TABLE
+ ICEINSTX8664BR_TABLE
#undef X
- Br_None
-};
+ Br_None
+ };
-// An enum of condition codes relevant to the CMPPS instruction. The enum
-// value should match the value used to encode operands in binary
-// instructions.
-enum CmppsCond {
+ // An enum of condition codes relevant to the CMPPS instruction. The enum
+ // value should match the value used to encode operands in binary
+ // instructions.
+ enum CmppsCond {
#define X(tag, emit) tag,
- ICEINSTX8664CMPPS_TABLE
+ ICEINSTX8664CMPPS_TABLE
#undef X
- Cmpps_Invalid
+ Cmpps_Invalid
+ };
};
-} // end of namespace CondX8664
-
} // end of namespace Ice
#endif // SUBZERO_SRC_ICECONDITIONCODESX8664_H
« no previous file with comments | « src/IceAssemblerX86BaseImpl.h ('k') | src/IceInstX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698