Index: src/IceTypes.def |
diff --git a/src/IceTypes.def b/src/IceTypes.def |
index 03d302d4e36b869bfda0240786c9636a7221fe64..c9bf350f6c55a7bdeb1485885b31a18ab8229c7b 100644 |
--- a/src/IceTypes.def |
+++ b/src/IceTypes.def |
@@ -16,23 +16,31 @@ |
#define SUBZERO_SRC_ICETYPES_DEF |
#define ICETYPE_TABLE \ |
- /* enum value, size, align, # elts, element type, printable string */ \ |
+ /* enum value, size, align, # elts, element type, printable string \ |
+ , flags */ \ |
jvoung (off chromium)
2014/07/22 18:40:18
maybe put the comma in the previous line?
Karl
2014/07/23 20:22:20
Done.
|
/* (size and alignment in bytes) */ \ |
- X(IceType_void, 0, 0, 1, IceType_void, "void") \ |
- X(IceType_i1, 1, 1, 1, IceType_i1, "i1") \ |
- X(IceType_i8, 1, 1, 1, IceType_i8, "i8") \ |
- X(IceType_i16, 2, 1, 1, IceType_i16, "i16") \ |
- X(IceType_i32, 4, 1, 1, IceType_i32, "i32") \ |
- X(IceType_i64, 8, 1, 1, IceType_i64, "i64") \ |
- X(IceType_f32, 4, 4, 1, IceType_f32, "float") \ |
- X(IceType_f64, 8, 8, 1, IceType_f64, "double") \ |
- X(IceType_v4i1, 16, 1, 4, IceType_i1, "<4 x i1>") \ |
- X(IceType_v8i1, 16, 1, 8, IceType_i1, "<8 x i1>") \ |
- X(IceType_v16i1, 16, 1, 16, IceType_i1, "<16 x i1>") \ |
- X(IceType_v16i8, 16, 1, 16, IceType_i8, "<16 x i8>") \ |
- X(IceType_v8i16, 16, 2, 8, IceType_i16, "<8 x i16>") \ |
- X(IceType_v4i32, 16, 4, 4, IceType_i32, "<4 x i32>") \ |
- X(IceType_v4f32, 16, 4, 4, IceType_f32, "<4 x float>") \ |
+ X(IceType_void, 0, 0, 1, IceType_void, "void", 0) \ |
+ X(IceType_i1, 1, 1, 1, IceType_i1, "i1", \ |
+ TypeFlagIsInteger) \ |
+ X(IceType_i8, 1, 1, 1, IceType_i8, "i8", \ |
+ TypeFlagIsInteger) \ |
+ X(IceType_i16, 2, 1, 1, IceType_i16, "i16", \ |
+ TypeFlagIsInteger) \ |
+ X(IceType_i32, 4, 1, 1, IceType_i32, "i32", \ |
+ TypeFlagIsInteger) \ |
+ X(IceType_i64, 8, 1, 1, IceType_i64, "i64", \ |
+ TypeFlagIsInteger) \ |
+ X(IceType_f32, 4, 4, 1, IceType_f32, "float", \ |
+ TypeFlagIsFloating) \ |
+ X(IceType_f64, 8, 8, 1, IceType_f64, "double", \ |
+ TypeFlagIsFloating) \ |
+ X(IceType_v4i1, 16, 1, 4, IceType_i1, "<4 x i1>", 0) \ |
+ X(IceType_v8i1, 16, 1, 8, IceType_i1, "<8 x i1>", 0) \ |
+ X(IceType_v16i1, 16, 1, 16, IceType_i1, "<16 x i1>", 0) \ |
+ X(IceType_v16i8, 16, 1, 16, IceType_i8, "<16 x i8>", 0) \ |
+ X(IceType_v8i16, 16, 2, 8, IceType_i16, "<8 x i16>", 0) \ |
+ X(IceType_v4i32, 16, 4, 4, IceType_i32, "<4 x i32>", 0) \ |
+ X(IceType_v4f32, 16, 4, 4, IceType_f32, "<4 x float>", 0) \ |
//#define X(tag, size, align, elts, elty, str) |
#endif // SUBZERO_SRC_ICETYPES_DEF |