| 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 // This file implements the TargetLoweringX8632 class, which | 10 // This file implements the TargetLoweringX8632 class, which |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 return BaseOS.str(); | 136 return BaseOS.str(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 // In some cases, there are x-macros tables for both high-level and | 139 // In some cases, there are x-macros tables for both high-level and |
| 140 // low-level instructions/operands that use the same enum key value. | 140 // low-level instructions/operands that use the same enum key value. |
| 141 // The tables are kept separate to maintain a proper separation | 141 // The tables are kept separate to maintain a proper separation |
| 142 // between abstraction layers. There is a risk that the tables | 142 // between abstraction layers. There is a risk that the tables |
| 143 // could get out of sync if enum values are reordered or if entries | 143 // could get out of sync if enum values are reordered or if entries |
| 144 // are added or deleted. This dummy function uses static_assert to | 144 // are added or deleted. This dummy function uses static_assert to |
| 145 // ensure everything is kept in sync. | 145 // ensure everything is kept in sync. |
| 146 void xMacroIntegrityCheck() { | 146 void __attribute__((unused)) xMacroIntegrityCheck() { |
| 147 // Validate the enum values in FCMPX8632_TABLE. | 147 // Validate the enum values in FCMPX8632_TABLE. |
| 148 { | 148 { |
| 149 // Define a temporary set of enum values based on low-level | 149 // Define a temporary set of enum values based on low-level |
| 150 // table entries. | 150 // table entries. |
| 151 enum _tmp_enum { | 151 enum _tmp_enum { |
| 152 #define X(val, dflt, swapS, C1, C2, swapV, pred) _tmp_##val, | 152 #define X(val, dflt, swapS, C1, C2, swapV, pred) _tmp_##val, |
| 153 FCMPX8632_TABLE | 153 FCMPX8632_TABLE |
| 154 #undef X | 154 #undef X |
| 155 _num | 155 _num |
| 156 }; | 156 }; |
| (...skipping 3860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4017 for (SizeT i = 0; i < Size; ++i) { | 4017 for (SizeT i = 0; i < Size; ++i) { |
| 4018 Str << "\t.byte\t" << (((unsigned)Data[i]) & 0xff) << "\n"; | 4018 Str << "\t.byte\t" << (((unsigned)Data[i]) & 0xff) << "\n"; |
| 4019 } | 4019 } |
| 4020 Str << "\t.size\t" << MangledName << ", " << Size << "\n"; | 4020 Str << "\t.size\t" << MangledName << ", " << Size << "\n"; |
| 4021 } | 4021 } |
| 4022 Str << "\t" << (IsInternal ? ".local" : ".global") << "\t" << MangledName | 4022 Str << "\t" << (IsInternal ? ".local" : ".global") << "\t" << MangledName |
| 4023 << "\n"; | 4023 << "\n"; |
| 4024 } | 4024 } |
| 4025 | 4025 |
| 4026 } // end of namespace Ice | 4026 } // end of namespace Ice |
| OLD | NEW |