Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Side by Side Diff: src/IceTargetLoweringX8664.cpp

Issue 1614273002: Subzero: Make -reg-use and -reg-exclude specific to register class. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add error log Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceTargetLoweringX8632Traits.h ('k') | src/IceTargetLoweringX86Base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceTargetLoweringX8664.cpp - x86-64 lowering -----------===// 1 //===- subzero/src/IceTargetLoweringX8664.cpp - x86-64 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 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 // Validate the enum values in ICETYPEX8664_TABLE. 834 // Validate the enum values in ICETYPEX8664_TABLE.
835 namespace dummy3 { 835 namespace dummy3 {
836 // Define a temporary set of enum values based on low-level table entries. 836 // Define a temporary set of enum values based on low-level table entries.
837 enum _tmp_enum { 837 enum _tmp_enum {
838 #define X(tag, elementty, cvt, sdss, pdps, spsd, pack, width, fld) _tmp_##tag, 838 #define X(tag, elementty, cvt, sdss, pdps, spsd, pack, width, fld) _tmp_##tag,
839 ICETYPEX8664_TABLE 839 ICETYPEX8664_TABLE
840 #undef X 840 #undef X
841 _num 841 _num
842 }; 842 };
843 // Define a set of constants based on high-level table entries. 843 // Define a set of constants based on high-level table entries.
844 #define X(tag, sizeLog2, align, elts, elty, str) \ 844 #define X(tag, sizeLog2, align, elts, elty, str, rcstr) \
845 static const int _table1_##tag = IceType_##tag; 845 static const int _table1_##tag = IceType_##tag;
846 ICETYPE_TABLE 846 ICETYPE_TABLE
847 #undef X 847 #undef X
848 // Define a set of constants based on low-level table entries, and ensure the 848 // Define a set of constants based on low-level table entries, and ensure the
849 // table entry keys are consistent. 849 // table entry keys are consistent.
850 #define X(tag, elementty, cvt, sdss, pdps, spsd, pack, width, fld) \ 850 #define X(tag, elementty, cvt, sdss, pdps, spsd, pack, width, fld) \
851 static const int _table2_##tag = _tmp_##tag; \ 851 static const int _table2_##tag = _tmp_##tag; \
852 static_assert(_table1_##tag == _table2_##tag, \ 852 static_assert(_table1_##tag == _table2_##tag, \
853 "Inconsistency between ICETYPEX8664_TABLE and ICETYPE_TABLE"); 853 "Inconsistency between ICETYPEX8664_TABLE and ICETYPE_TABLE");
854 ICETYPEX8664_TABLE 854 ICETYPEX8664_TABLE
855 #undef X 855 #undef X
856 // Repeat the static asserts with respect to the high-level table entries in 856 // Repeat the static asserts with respect to the high-level table entries in
857 // case the high-level table has extra entries. 857 // case the high-level table has extra entries.
858 #define X(tag, sizeLog2, align, elts, elty, str) \ 858 #define X(tag, sizeLog2, align, elts, elty, str, rcstr) \
859 static_assert(_table1_##tag == _table2_##tag, \ 859 static_assert(_table1_##tag == _table2_##tag, \
860 "Inconsistency between ICETYPEX8664_TABLE and ICETYPE_TABLE"); 860 "Inconsistency between ICETYPEX8664_TABLE and ICETYPE_TABLE");
861 ICETYPE_TABLE 861 ICETYPE_TABLE
862 #undef X 862 #undef X
863 } // end of namespace dummy3 863 } // end of namespace dummy3
864 } // end of anonymous namespace 864 } // end of anonymous namespace
865 865
866 } // end of namespace X8664 866 } // end of namespace X8664
867 } // end of namespace Ice 867 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLoweringX8632Traits.h ('k') | src/IceTargetLoweringX86Base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698