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

Unified Diff: src/IceConditionCodesX8632.h

Issue 582113003: Lift register and condition code enums out into their own file. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: add first and last Created 6 years, 3 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 | « no previous file | src/IceInstX8632.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceConditionCodesX8632.h
diff --git a/src/IceConditionCodesX8632.h b/src/IceConditionCodesX8632.h
new file mode 100644
index 0000000000000000000000000000000000000000..a930bf895ae9276bc933d8b56a80b3374bbca4bd
--- /dev/null
+++ b/src/IceConditionCodesX8632.h
@@ -0,0 +1,46 @@
+//===- subzero/src/IceConditionCodesX8632.h - Condition Codes ---*- C++ -*-===//
+//
+// The Subzero Code Generator
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file declares the condition codes for x86-32.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef SUBZERO_SRC_ICECONDITIONCODESX8632_H
+#define SUBZERO_SRC_ICECONDITIONCODESX8632_H
+
+#include "IceDefs.h"
+#include "IceInstX8632.def"
+
+namespace Ice {
+
+class CondX86 {
+public:
+ // 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,
+ ICEINSTX8632BR_TABLE
+#undef X
+ 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 {
+#define X(tag, emit) tag,
+ ICEINSTX8632CMPPS_TABLE
+#undef X
+ Cmpps_Invalid
+ };
+};
+
+} // end of namespace Ice
+
+#endif // SUBZERO_SRC_ICECONDITIONCODESX8632_H
« no previous file with comments | « no previous file | src/IceInstX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698