OLD | NEW |
1 //===- subzero/src/IceTypes.cpp - Primitive type properties ---------------===// | 1 //===- subzero/src/IceTypes.cpp - Primitive type properties ---------------===// |
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 /// \file | 10 /// \file |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 ICETYPE_TABLE | 51 ICETYPE_TABLE |
52 #undef X | 52 #undef X |
53 // Assert that tags in ICETYPE_PROPS_TABLE is in ICETYPE_TABLE. | 53 // Assert that tags in ICETYPE_PROPS_TABLE is in ICETYPE_TABLE. |
54 #define X(tag, IsVec, IsInt, IsFloat, IsIntArith, IsLoadStore, CompareResult) \ | 54 #define X(tag, IsVec, IsInt, IsFloat, IsIntArith, IsLoadStore, CompareResult) \ |
55 static_assert( \ | 55 static_assert( \ |
56 (unsigned)_table_tag_##tag == (unsigned)_props_table_tag_##tag, \ | 56 (unsigned)_table_tag_##tag == (unsigned)_props_table_tag_##tag, \ |
57 "Inconsistency between ICETYPE_PROPS_TABLE and ICETYPE_TABLE"); | 57 "Inconsistency between ICETYPE_PROPS_TABLE and ICETYPE_TABLE"); |
58 ICETYPE_PROPS_TABLE | 58 ICETYPE_PROPS_TABLE |
59 #undef X | 59 #undef X |
60 | 60 |
61 // Show vector definitions match in ICETYPE_TABLE and | 61 // Show vector definitions match in ICETYPE_TABLE and ICETYPE_PROPS_TABLE. |
62 // ICETYPE_PROPS_TABLE. | |
63 | 62 |
64 // Define constants for each element size in ICETYPE_TABLE. | 63 // Define constants for each element size in ICETYPE_TABLE. |
65 enum { | 64 enum { |
66 #define X(tag, sizeLog2, align, elts, elty, str) _table_elts_##tag = elts, | 65 #define X(tag, sizeLog2, align, elts, elty, str) _table_elts_##tag = elts, |
67 ICETYPE_TABLE | 66 ICETYPE_TABLE |
68 #undef X | 67 #undef X |
69 _enum_table_elts_Elements = 0 | 68 _enum_table_elts_Elements = 0 |
70 }; | 69 }; |
71 // Define constants for boolean flag if vector in ICETYPE_PROPS_TABLE. | 70 // Define constants for boolean flag if vector in ICETYPE_PROPS_TABLE. |
72 enum { | 71 enum { |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 IsFirst = false; | 275 IsFirst = false; |
277 } else { | 276 } else { |
278 Stream << ", "; | 277 Stream << ", "; |
279 } | 278 } |
280 Stream << ArgTy; | 279 Stream << ArgTy; |
281 } | 280 } |
282 Stream << ")"; | 281 Stream << ")"; |
283 } | 282 } |
284 | 283 |
285 } // end of namespace Ice | 284 } // end of namespace Ice |
OLD | NEW |