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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 // Validate the enum values in ICMPX8632_TABLE. | 429 // Validate the enum values in ICMPX8632_TABLE. |
430 namespace dummy2 { | 430 namespace dummy2 { |
431 // Define a temporary set of enum values based on low-level table entries. | 431 // Define a temporary set of enum values based on low-level table entries. |
432 enum _tmp_enum { | 432 enum _tmp_enum { |
433 #define X(val, C_32, C1_64, C2_64, C3_64) _tmp_##val, | 433 #define X(val, C_32, C1_64, C2_64, C3_64) _tmp_##val, |
434 ICMPX8632_TABLE | 434 ICMPX8632_TABLE |
435 #undef X | 435 #undef X |
436 _num | 436 _num |
437 }; | 437 }; |
438 // Define a set of constants based on high-level table entries. | 438 // Define a set of constants based on high-level table entries. |
439 #define X(tag, str) static const int _table1_##tag = InstIcmp::tag; | 439 #define X(tag, reverse, str) static const int _table1_##tag = InstIcmp::tag; |
440 ICEINSTICMP_TABLE | 440 ICEINSTICMP_TABLE |
441 #undef X | 441 #undef X |
442 // Define a set of constants based on low-level table entries, and ensure the | 442 // Define a set of constants based on low-level table entries, and ensure the |
443 // table entry keys are consistent. | 443 // table entry keys are consistent. |
444 #define X(val, C_32, C1_64, C2_64, C3_64) \ | 444 #define X(val, C_32, C1_64, C2_64, C3_64) \ |
445 static const int _table2_##val = _tmp_##val; \ | 445 static const int _table2_##val = _tmp_##val; \ |
446 static_assert( \ | 446 static_assert( \ |
447 _table1_##val == _table2_##val, \ | 447 _table1_##val == _table2_##val, \ |
448 "Inconsistency between ICMPX8632_TABLE and ICEINSTICMP_TABLE"); | 448 "Inconsistency between ICMPX8632_TABLE and ICEINSTICMP_TABLE"); |
449 ICMPX8632_TABLE | 449 ICMPX8632_TABLE |
450 #undef X | 450 #undef X |
451 // Repeat the static asserts with respect to the high-level table entries in | 451 // Repeat the static asserts with respect to the high-level table entries in |
452 // case the high-level table has extra entries. | 452 // case the high-level table has extra entries. |
453 #define X(tag, str) \ | 453 #define X(tag, reverse, str) \ |
454 static_assert( \ | 454 static_assert( \ |
455 _table1_##tag == _table2_##tag, \ | 455 _table1_##tag == _table2_##tag, \ |
456 "Inconsistency between ICMPX8632_TABLE and ICEINSTICMP_TABLE"); | 456 "Inconsistency between ICMPX8632_TABLE and ICEINSTICMP_TABLE"); |
457 ICEINSTICMP_TABLE | 457 ICEINSTICMP_TABLE |
458 #undef X | 458 #undef X |
459 } // end of namespace dummy2 | 459 } // end of namespace dummy2 |
460 | 460 |
461 // Validate the enum values in ICETYPEX8632_TABLE. | 461 // Validate the enum values in ICETYPEX8632_TABLE. |
462 namespace dummy3 { | 462 namespace dummy3 { |
463 // Define a temporary set of enum values based on low-level table entries. | 463 // Define a temporary set of enum values based on low-level table entries. |
(...skipping 22 matching lines...) Expand all Loading... |
486 #define X(tag, sizeLog2, align, elts, elty, str, rcstr) \ | 486 #define X(tag, sizeLog2, align, elts, elty, str, rcstr) \ |
487 static_assert(_table1_##tag == _table2_##tag, \ | 487 static_assert(_table1_##tag == _table2_##tag, \ |
488 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); | 488 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); |
489 ICETYPE_TABLE | 489 ICETYPE_TABLE |
490 #undef X | 490 #undef X |
491 } // end of namespace dummy3 | 491 } // end of namespace dummy3 |
492 } // end of anonymous namespace | 492 } // end of anonymous namespace |
493 | 493 |
494 } // end of namespace X8632 | 494 } // end of namespace X8632 |
495 } // end of namespace Ice | 495 } // end of namespace Ice |
OLD | NEW |