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 enum IceType { | |
20 IceType_void, | |
21 IceType_i1, | |
22 IceType_i8, | |
23 IceType_i16, | |
24 IceType_i32, | |
25 IceType_i64, | |
26 IceType_f32, | |
27 IceType_f64, | |
28 IceType_NUM | |
JF
2014/04/04 04:05:26
Comment on IceType_NUM needing to be the last enum
Jim Stichnoth
2014/04/06 02:16:09
Done. IceType_NUM is no longer used in this CL, b
| |
29 }; | |
30 | |
31 uint32_t iceTypeWidth(IceType T); | |
JF
2014/04/04 04:05:26
Bits or bytes? I'd rather have all width related f
Jim Stichnoth
2014/04/06 02:16:09
Done.
| |
32 IceOstream &operator<<(class IceOstream &Str, IceType T); | |
JF
2014/04/04 04:05:26
Could you make this a template so it works with an
Jim Stichnoth
2014/04/06 02:16:09
I made a templated operator << override which make
| |
33 | |
34 #endif // SUBZERO_SRC_ICETYPES_H | |
OLD | NEW |