| OLD | NEW |
| 1 //===- subzero/src/IceTargetLoweringX8632.cpp - x86-32 lowering -----------===// | 1 //===- subzero/src/IceTargetLoweringX8632.cpp - x86-32 lowering -----------===// |
| 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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 namespace dummy3 { | 328 namespace dummy3 { |
| 329 // Define a temporary set of enum values based on low-level table | 329 // Define a temporary set of enum values based on low-level table |
| 330 // entries. | 330 // entries. |
| 331 enum _tmp_enum { | 331 enum _tmp_enum { |
| 332 #define X(tag, elementty, cvt, sdss, pack, width, fld) _tmp_##tag, | 332 #define X(tag, elementty, cvt, sdss, pack, width, fld) _tmp_##tag, |
| 333 ICETYPEX8632_TABLE | 333 ICETYPEX8632_TABLE |
| 334 #undef X | 334 #undef X |
| 335 _num | 335 _num |
| 336 }; | 336 }; |
| 337 // Define a set of constants based on high-level table entries. | 337 // Define a set of constants based on high-level table entries. |
| 338 #define X(tag, size, align, elts, elty, str) \ | 338 #define X(tag, sizeLog2, align, elts, elty, str) \ |
| 339 static const int _table1_##tag = tag; | 339 static const int _table1_##tag = tag; |
| 340 ICETYPE_TABLE | 340 ICETYPE_TABLE |
| 341 #undef X | 341 #undef X |
| 342 // Define a set of constants based on low-level table entries, and | 342 // Define a set of constants based on low-level table entries, and |
| 343 // ensure the table entry keys are consistent. | 343 // ensure the table entry keys are consistent. |
| 344 #define X(tag, elementty, cvt, sdss, pack, width, fld) \ | 344 #define X(tag, elementty, cvt, sdss, pack, width, fld) \ |
| 345 static const int _table2_##tag = _tmp_##tag; \ | 345 static const int _table2_##tag = _tmp_##tag; \ |
| 346 static_assert(_table1_##tag == _table2_##tag, \ | 346 static_assert(_table1_##tag == _table2_##tag, \ |
| 347 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); | 347 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); |
| 348 ICETYPEX8632_TABLE | 348 ICETYPEX8632_TABLE |
| 349 #undef X | 349 #undef X |
| 350 // Repeat the static asserts with respect to the high-level table | 350 // Repeat the static asserts with respect to the high-level table |
| 351 // entries in case the high-level table has extra entries. | 351 // entries in case the high-level table has extra entries. |
| 352 #define X(tag, size, align, elts, elty, str) \ | 352 #define X(tag, sizeLog2, align, elts, elty, str) \ |
| 353 static_assert(_table1_##tag == _table2_##tag, \ | 353 static_assert(_table1_##tag == _table2_##tag, \ |
| 354 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); | 354 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); |
| 355 ICETYPE_TABLE | 355 ICETYPE_TABLE |
| 356 #undef X | 356 #undef X |
| 357 } // end of namespace dummy3 | 357 } // end of namespace dummy3 |
| 358 } // end of anonymous namespace | 358 } // end of anonymous namespace |
| 359 | 359 |
| 360 } // end of namespace Ice | 360 } // end of namespace Ice |
| OLD | NEW |