Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 //===- subzero/src/IceTypes.def - X-macros for ICE types --------*- C++ -*-===// | 1 //===- subzero/src/IceTypes.def - X-macros for ICE types --------*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // This file defines properties of ICE primitive types in the form of x-macros. | 10 // This file defines properties of ICE primitive types in the form of x-macros. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 X(IceType_v4i32, 4, 4, 4, IceType_i32, "<4 x i32>") \ | 47 X(IceType_v4i32, 4, 4, 4, IceType_i32, "<4 x i32>") \ |
| 48 X(IceType_v4f32, 4, 4, 4, IceType_f32, "<4 x float>") \ | 48 X(IceType_v4f32, 4, 4, 4, IceType_f32, "<4 x float>") \ |
| 49 //#define X(tag, sizeLog2, align, elts, elty, str) | 49 //#define X(tag, sizeLog2, align, elts, elty, str) |
| 50 | 50 |
| 51 // Dictionary: | 51 // Dictionary: |
| 52 // V - Is vector type. | 52 // V - Is vector type. |
| 53 // I - Is integer value (scalar or vector). | 53 // I - Is integer value (scalar or vector). |
| 54 // F - Is floating point value (scalar or vector). | 54 // F - Is floating point value (scalar or vector). |
| 55 // IA - Is integer arithmetic type | 55 // IA - Is integer arithmetic type |
| 56 // LS - true if load/store allowed on type. | 56 // LS - true if load/store allowed on type. |
| 57 // P - true if can be used for parameter of call. | |
| 57 // CR - Result type of compare instruction for argument type | 58 // CR - Result type of compare instruction for argument type |
| 58 // (IceType_void if disallowed) | 59 // (IceType_void if disallowed) |
| 59 #define ICETYPE_PROPS_TABLE \ | 60 #define ICETYPE_PROPS_TABLE \ |
| 60 /* Enum Value V I F IA LS CR */ \ | 61 /* Enum Value V I F IA LS P CR */ \ |
| 61 X(IceType_void, 0, 0, 0, 0, 0, IceType_void) \ | 62 X(IceType_void, 0, 0, 0, 0, 0, 0, IceType_void) \ |
| 62 X(IceType_i1, 0, 1, 0, 0, 0, IceType_i1) \ | 63 X(IceType_i1, 0, 1, 0, 0, 0, 0, IceType_i1) \ |
| 63 X(IceType_i8, 0, 1, 0, 1, 1, IceType_i1) \ | 64 X(IceType_i8, 0, 1, 0, 1, 1, 0, IceType_i1) \ |
| 64 X(IceType_i16, 0, 1, 0, 1, 1, IceType_i1) \ | 65 X(IceType_i16, 0, 1, 0, 1, 1, 0, IceType_i1) \ |
| 65 X(IceType_i32, 0, 1, 0, 1, 1, IceType_i1) \ | 66 X(IceType_i32, 0, 1, 0, 1, 1, 1, IceType_i1) \ |
| 66 X(IceType_i64, 0, 1, 0, 1, 1, IceType_i1) \ | 67 X(IceType_i64, 0, 1, 0, 1, 1, 1, IceType_i1) \ |
| 67 X(IceType_f32, 0, 0, 1, 0, 1, IceType_i1) \ | 68 X(IceType_f32, 0, 0, 1, 0, 1, 1, IceType_i1) \ |
| 68 X(IceType_f64, 0, 0, 1, 0, 1, IceType_i1) \ | 69 X(IceType_f64, 0, 0, 1, 0, 1, 1, IceType_i1) \ |
| 69 X(IceType_v4i1, 1, 1, 0, 0, 0, IceType_v4i1) \ | 70 X(IceType_v4i1, 1, 1, 0, 0, 0, 1, IceType_v4i1) \ |
| 70 X(IceType_v8i1, 1, 1, 0, 0, 0, IceType_v8i1) \ | 71 X(IceType_v8i1, 1, 1, 0, 0, 0, 1, IceType_v8i1) \ |
| 71 X(IceType_v16i1, 1, 1, 0, 0, 0, IceType_v16i1) \ | 72 X(IceType_v16i1, 1, 1, 0, 0, 0, 1, IceType_v16i1) \ |
| 72 X(IceType_v16i8, 1, 1, 0, 1, 1, IceType_v16i1) \ | 73 X(IceType_v16i8, 1, 1, 0, 1, 1, 1, IceType_v16i1) \ |
| 73 X(IceType_v8i16, 1, 1, 0, 1, 1, IceType_v8i1) \ | 74 X(IceType_v8i16, 1, 1, 0, 1, 1, 1, IceType_v8i1) \ |
| 74 X(IceType_v4i32, 1, 1, 0, 1, 1, IceType_v4i1) \ | 75 X(IceType_v4i32, 1, 1, 0, 1, 1, 1, IceType_v4i1) \ |
| 75 X(IceType_v4f32, 1, 0, 1, 0, 1, IceType_v4i1) \ | 76 X(IceType_v4f32, 1, 0, 1, 0, 1, 1, IceType_v4i1) \ |
| 76 //#define X(tag, IsVec, IsInt, IsFloat, IsIntArith, IsLoadStore, CompareResult) | 77 //#define X(tag, IsVec, IsInt, IsFloat, IsIntArith, IsLoadStore, IsParam, \ |
|
Jim Stichnoth
2015/09/17 19:56:46
As long as you're changing the \ alignment...
Cou
Karl
2015/09/18 17:22:49
Done.
| |
| 78 // CompareResult) | |
| 77 | 79 |
| 78 #endif // SUBZERO_SRC_ICETYPES_DEF | 80 #endif // SUBZERO_SRC_ICETYPES_DEF |
| OLD | NEW |