Chromium Code Reviews| Index: src/IceTypes.h |
| diff --git a/src/IceTypes.h b/src/IceTypes.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8c000db6eae321d2c8e47dc50fd632cb994850f2 |
| --- /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 |
| + |
| +enum IceType { |
| + IceType_void, |
| + IceType_i1, |
| + IceType_i8, |
| + IceType_i16, |
| + IceType_i32, |
| + IceType_i64, |
| + IceType_f32, |
| + IceType_f64, |
| + IceType_NUM // This enum value must come last. |
| +}; |
| + |
| +size_t iceTypeWidthInBytes(IceType Type); |
| + |
| +template <> IceOstream &operator<<(class IceOstream &Str, const IceType &Type); |
|
JF
2014/04/16 01:27:32
Same on this being in IceDefs.h
Jim Stichnoth
2014/04/21 20:26:40
I think it's OK here. This operator overload can'
|
| + |
| +#endif // SUBZERO_SRC_ICETYPES_H |