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

Unified Diff: src/IceTypes.def

Issue 205613002: Initial skeleton of Subzero. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Use non-anonymous structs so that array_lengthof works Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceTypes.cpp ('k') | src/llvm2ice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTypes.def
diff --git a/src/IceTypes.def b/src/IceTypes.def
new file mode 100644
index 0000000000000000000000000000000000000000..a54ab6543b1491afcac46a4ffec85eb8bdd57f91
--- /dev/null
+++ b/src/IceTypes.def
@@ -0,0 +1,31 @@
+//===- subzero/src/IceTypes.def - X-macros for ICE types --------*- C++ -*-===//
+//
+// The Subzero Code Generator
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file defines properties of ICE primitive types in the form of
+// x-macros.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef SUBZERO_SRC_ICETYPES_DEF
+#define SUBZERO_SRC_ICETYPES_DEF
+
+#define ICETYPE_TABLE \
+ /* enum value, size, align, printable string */ \
+ /* (size and alignment in bytes) */ \
+ X(IceType_void, 0, 0, "void") \
+ X(IceType_i1, 1, 1, "i1") \
+ X(IceType_i8, 1, 1, "i8") \
+ X(IceType_i16, 2, 1, "i16") \
+ X(IceType_i32, 4, 1, "i32") \
+ X(IceType_i64, 8, 1, "i64") \
+ X(IceType_f32, 4, 4, "float") \
+ X(IceType_f64, 8, 8, "double")
+//#define X(tag, size, align, str)
+
+#endif // SUBZERO_SRC_ICETYPES_DEF
« no previous file with comments | « src/IceTypes.cpp ('k') | src/llvm2ice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698