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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 }; | 74 }; |
75 | 75 |
76 const size_t MachineTraits<TargetX8632>::TableTypeX8632AttributesSize = | 76 const size_t MachineTraits<TargetX8632>::TableTypeX8632AttributesSize = |
77 llvm::array_lengthof(TableTypeX8632Attributes); | 77 llvm::array_lengthof(TableTypeX8632Attributes); |
78 | 78 |
79 const uint32_t MachineTraits<TargetX8632>::X86_STACK_ALIGNMENT_BYTES = 16; | 79 const uint32_t MachineTraits<TargetX8632>::X86_STACK_ALIGNMENT_BYTES = 16; |
80 const char *MachineTraits<TargetX8632>::TargetName = "X8632"; | 80 const char *MachineTraits<TargetX8632>::TargetName = "X8632"; |
81 | 81 |
82 } // end of namespace X86Internal | 82 } // end of namespace X86Internal |
83 | 83 |
84 TargetX8632 *TargetX8632::create(Cfg *Func) { | |
85 return X86Internal::TargetX86Base<TargetX8632>::create(Func); | |
86 } | |
87 | |
88 TargetDataX8632::TargetDataX8632(GlobalContext *Ctx) | 84 TargetDataX8632::TargetDataX8632(GlobalContext *Ctx) |
89 : TargetDataLowering(Ctx) {} | 85 : TargetDataLowering(Ctx) {} |
90 | 86 |
91 namespace { | 87 namespace { |
92 template <typename T> struct PoolTypeConverter {}; | 88 template <typename T> struct PoolTypeConverter {}; |
93 | 89 |
94 template <> struct PoolTypeConverter<float> { | 90 template <> struct PoolTypeConverter<float> { |
95 typedef uint32_t PrimitiveIntType; | 91 typedef uint32_t PrimitiveIntType; |
96 typedef ConstantFloat IceType; | 92 typedef ConstantFloat IceType; |
97 static const Type Ty = IceType_f32; | 93 static const Type Ty = IceType_f32; |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 // entries in case the high-level table has extra entries. | 347 // entries in case the high-level table has extra entries. |
352 #define X(tag, size, align, elts, elty, str) \ | 348 #define X(tag, size, align, elts, elty, str) \ |
353 static_assert(_table1_##tag == _table2_##tag, \ | 349 static_assert(_table1_##tag == _table2_##tag, \ |
354 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); | 350 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); |
355 ICETYPE_TABLE | 351 ICETYPE_TABLE |
356 #undef X | 352 #undef X |
357 } // end of namespace dummy3 | 353 } // end of namespace dummy3 |
358 } // end of anonymous namespace | 354 } // end of anonymous namespace |
359 | 355 |
360 } // end of namespace Ice | 356 } // end of namespace Ice |
OLD | NEW |