Index: src/IceTypes.h |
diff --git a/src/IceTypes.h b/src/IceTypes.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..677322f1db48242d14aba43dfc261669c5a5881f |
--- /dev/null |
+++ b/src/IceTypes.h |
@@ -0,0 +1,35 @@ |
+//===- subzero/src/IceTypes.h - Primitive 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 declares a few properties of the primitive types allowed |
+// in Subzero. Every Subzero source file is expected to include |
+// IceTypes.h. |
+// |
+//===----------------------------------------------------------------------===// |
+ |
+#ifndef SUBZERO_SRC_ICETYPES_H |
+#define SUBZERO_SRC_ICETYPES_H |
+ |
+#include "IceTypes.def" |
+ |
+namespace Ice { |
+ |
+enum Type { |
+#define X(tag, size, str) tag, |
+ ICETYPE_TABLE |
+#undef X |
+}; |
+ |
+size_t typeWidthInBytes(Type Ty); |
+ |
+template <> Ostream &operator<<(class Ostream &Str, const Type &Ty); |
+ |
+} // end of namespace Ice |
+ |
+#endif // SUBZERO_SRC_ICETYPES_H |