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

Side by Side Diff: src/IceTargetLoweringX8632.cpp

Issue 1497033002: Fuse icmp/fcmp with select (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes. Created 5 years 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
OLDNEW
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 , 66 ,
67 ICMPX8632_TABLE 67 ICMPX8632_TABLE
68 #undef X 68 #undef X
69 }; 69 };
70 70
71 const size_t MachineTraits<TargetX8632>::TableIcmp64Size = 71 const size_t MachineTraits<TargetX8632>::TableIcmp64Size =
72 llvm::array_lengthof(TableIcmp64); 72 llvm::array_lengthof(TableIcmp64);
73 73
74 const MachineTraits<TargetX8632>::TableTypeX8632AttributesType 74 const MachineTraits<TargetX8632>::TableTypeX8632AttributesType
75 MachineTraits<TargetX8632>::TableTypeX8632Attributes[] = { 75 MachineTraits<TargetX8632>::TableTypeX8632Attributes[] = {
76 #define X(tag, elementty, cvt, sdss, pack, width, fld) \ 76 #define X(tag, elementty, cvt, sdss, pdps, spsd, pack, width, fld) \
77 { IceType_##elementty } \ 77 { IceType_##elementty } \
78 , 78 ,
79 ICETYPEX8632_TABLE 79 ICETYPEX8632_TABLE
80 #undef X 80 #undef X
81 }; 81 };
82 82
83 const size_t MachineTraits<TargetX8632>::TableTypeX8632AttributesSize = 83 const size_t MachineTraits<TargetX8632>::TableTypeX8632AttributesSize =
84 llvm::array_lengthof(TableTypeX8632Attributes); 84 llvm::array_lengthof(TableTypeX8632Attributes);
85 85
86 const uint32_t MachineTraits<TargetX8632>::X86_STACK_ALIGNMENT_BYTES = 16; 86 const uint32_t MachineTraits<TargetX8632>::X86_STACK_ALIGNMENT_BYTES = 16;
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 _table1_##tag == _table2_##tag, \ 967 _table1_##tag == _table2_##tag, \
968 "Inconsistency between ICMPX8632_TABLE and ICEINSTICMP_TABLE"); 968 "Inconsistency between ICMPX8632_TABLE and ICEINSTICMP_TABLE");
969 ICEINSTICMP_TABLE 969 ICEINSTICMP_TABLE
970 #undef X 970 #undef X
971 } // end of namespace dummy2 971 } // end of namespace dummy2
972 972
973 // Validate the enum values in ICETYPEX8632_TABLE. 973 // Validate the enum values in ICETYPEX8632_TABLE.
974 namespace dummy3 { 974 namespace dummy3 {
975 // Define a temporary set of enum values based on low-level table entries. 975 // Define a temporary set of enum values based on low-level table entries.
976 enum _tmp_enum { 976 enum _tmp_enum {
977 #define X(tag, elementty, cvt, sdss, pack, width, fld) _tmp_##tag, 977 #define X(tag, elementty, cvt, sdss, pdps, spsd, pack, width, fld) _tmp_##tag,
978 ICETYPEX8632_TABLE 978 ICETYPEX8632_TABLE
979 #undef X 979 #undef X
980 _num 980 _num
981 }; 981 };
982 // Define a set of constants based on high-level table entries. 982 // Define a set of constants based on high-level table entries.
983 #define X(tag, sizeLog2, align, elts, elty, str) \ 983 #define X(tag, sizeLog2, align, elts, elty, str) \
984 static const int _table1_##tag = IceType_##tag; 984 static const int _table1_##tag = IceType_##tag;
985 ICETYPE_TABLE 985 ICETYPE_TABLE
986 #undef X 986 #undef X
987 // Define a set of constants based on low-level table entries, and ensure the 987 // Define a set of constants based on low-level table entries, and ensure the
988 // table entry keys are consistent. 988 // table entry keys are consistent.
989 #define X(tag, elementty, cvt, sdss, pack, width, fld) \ 989 #define X(tag, elementty, cvt, sdss, pdps, spsd, pack, width, fld) \
990 static const int _table2_##tag = _tmp_##tag; \ 990 static const int _table2_##tag = _tmp_##tag; \
991 static_assert(_table1_##tag == _table2_##tag, \ 991 static_assert(_table1_##tag == _table2_##tag, \
992 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); 992 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE");
993 ICETYPEX8632_TABLE 993 ICETYPEX8632_TABLE
994 #undef X 994 #undef X
995 // Repeat the static asserts with respect to the high-level table entries in 995 // Repeat the static asserts with respect to the high-level table entries in
996 // case the high-level table has extra entries. 996 // case the high-level table has extra entries.
997 #define X(tag, sizeLog2, align, elts, elty, str) \ 997 #define X(tag, sizeLog2, align, elts, elty, str) \
998 static_assert(_table1_##tag == _table2_##tag, \ 998 static_assert(_table1_##tag == _table2_##tag, \
999 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); 999 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE");
1000 ICETYPE_TABLE 1000 ICETYPE_TABLE
1001 #undef X 1001 #undef X
1002 } // end of namespace dummy3 1002 } // end of namespace dummy3
1003 } // end of anonymous namespace 1003 } // end of anonymous namespace
1004 1004
1005 } // end of namespace Ice 1005 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698