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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 // Validate the enum values in ICETYPEX8632_TABLE. | 566 // Validate the enum values in ICETYPEX8632_TABLE. |
567 namespace dummy3 { | 567 namespace dummy3 { |
568 // Define a temporary set of enum values based on low-level table entries. | 568 // Define a temporary set of enum values based on low-level table entries. |
569 enum _tmp_enum { | 569 enum _tmp_enum { |
570 #define X(tag, elementty, cvt, sdss, pdps, spsd, pack, width, fld) _tmp_##tag, | 570 #define X(tag, elementty, cvt, sdss, pdps, spsd, pack, width, fld) _tmp_##tag, |
571 ICETYPEX8632_TABLE | 571 ICETYPEX8632_TABLE |
572 #undef X | 572 #undef X |
573 _num | 573 _num |
574 }; | 574 }; |
575 // Define a set of constants based on high-level table entries. | 575 // Define a set of constants based on high-level table entries. |
576 #define X(tag, sizeLog2, align, elts, elty, str) \ | 576 #define X(tag, sizeLog2, align, elts, elty, str, rcstr) \ |
577 static const int _table1_##tag = IceType_##tag; | 577 static const int _table1_##tag = IceType_##tag; |
578 ICETYPE_TABLE | 578 ICETYPE_TABLE |
579 #undef X | 579 #undef X |
580 // Define a set of constants based on low-level table entries, and ensure the | 580 // Define a set of constants based on low-level table entries, and ensure the |
581 // table entry keys are consistent. | 581 // table entry keys are consistent. |
582 #define X(tag, elementty, cvt, sdss, pdps, spsd, pack, width, fld) \ | 582 #define X(tag, elementty, cvt, sdss, pdps, spsd, pack, width, fld) \ |
583 static const int _table2_##tag = _tmp_##tag; \ | 583 static const int _table2_##tag = _tmp_##tag; \ |
584 static_assert(_table1_##tag == _table2_##tag, \ | 584 static_assert(_table1_##tag == _table2_##tag, \ |
585 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); | 585 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); |
586 ICETYPEX8632_TABLE | 586 ICETYPEX8632_TABLE |
587 #undef X | 587 #undef X |
588 // Repeat the static asserts with respect to the high-level table entries in | 588 // Repeat the static asserts with respect to the high-level table entries in |
589 // case the high-level table has extra entries. | 589 // case the high-level table has extra entries. |
590 #define X(tag, sizeLog2, align, elts, elty, str) \ | 590 #define X(tag, sizeLog2, align, elts, elty, str, rcstr) \ |
591 static_assert(_table1_##tag == _table2_##tag, \ | 591 static_assert(_table1_##tag == _table2_##tag, \ |
592 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); | 592 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); |
593 ICETYPE_TABLE | 593 ICETYPE_TABLE |
594 #undef X | 594 #undef X |
595 } // end of namespace dummy3 | 595 } // end of namespace dummy3 |
596 } // end of anonymous namespace | 596 } // end of anonymous namespace |
597 | 597 |
598 } // end of namespace X8632 | 598 } // end of namespace X8632 |
599 } // end of namespace Ice | 599 } // end of namespace Ice |
OLD | NEW |