OLD | NEW |
(Empty) | |
| 1 //===- subzero/src/IceTypes.h - Primitive ICE types -------------*- C++ -*-===// |
| 2 // |
| 3 // The Subzero Code Generator |
| 4 // |
| 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. |
| 7 // |
| 8 //===----------------------------------------------------------------------===// |
| 9 // |
| 10 // This file declares a few properties of the primitive types allowed |
| 11 // in Subzero. Every Subzero source file is expected to include |
| 12 // IceTypes.h. |
| 13 // |
| 14 //===----------------------------------------------------------------------===// |
| 15 |
| 16 #ifndef SUBZERO_SRC_ICETYPES_H |
| 17 #define SUBZERO_SRC_ICETYPES_H |
| 18 |
| 19 #include "IceTypes.def" |
| 20 |
| 21 namespace Ice { |
| 22 |
| 23 enum Type { |
| 24 #define X(tag, size, str) tag, |
| 25 ICETYPE_TABLE |
| 26 #undef X |
| 27 }; |
| 28 |
| 29 size_t typeWidthInBytes(Type Ty); |
| 30 |
| 31 template <> Ostream &operator<<(class Ostream &Str, const Type &Ty); |
| 32 |
| 33 } // end of namespace Ice |
| 34 |
| 35 #endif // SUBZERO_SRC_ICETYPES_H |
OLD | NEW |