OLD | NEW |
1 | 1 |
2 //===- subzero/unittest/unittest/AssemblerX8664/TestUtil.h ------*- C++ -*-===// | 2 //===- subzero/unittest/unittest/AssemblerX8664/TestUtil.h ------*- C++ -*-===// |
3 // | 3 // |
4 // The Subzero Code Generator | 4 // The Subzero Code Generator |
5 // | 5 // |
6 // This file is distributed under the University of Illinois Open Source | 6 // This file is distributed under the University of Illinois Open Source |
7 // License. See LICENSE.TXT for details. | 7 // License. See LICENSE.TXT for details. |
8 // | 8 // |
9 //===----------------------------------------------------------------------===// | 9 //===----------------------------------------------------------------------===// |
10 // | 10 // |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 XmmRegAliases(xmm12); | 128 XmmRegAliases(xmm12); |
129 XmmRegAliases(xmm13); | 129 XmmRegAliases(xmm13); |
130 XmmRegAliases(xmm14); | 130 XmmRegAliases(xmm14); |
131 XmmRegAliases(xmm15); | 131 XmmRegAliases(xmm15); |
132 #undef XmmRegAliases | 132 #undef XmmRegAliases |
133 #undef NewRegAliases | 133 #undef NewRegAliases |
134 #undef LegacyRegAliases | 134 #undef LegacyRegAliases |
135 | 135 |
136 AssemblerX8664TestBase() { reset(); } | 136 AssemblerX8664TestBase() { reset(); } |
137 | 137 |
138 void reset() { Assembler.reset(new AssemblerX8664()); } | 138 void reset() { Assembler = makeUnique<AssemblerX8664>(); } |
139 | 139 |
140 AssemblerX8664 *assembler() const { return Assembler.get(); } | 140 AssemblerX8664 *assembler() const { return Assembler.get(); } |
141 | 141 |
142 size_t codeBytesSize() const { return Assembler->getBufferView().size(); } | 142 size_t codeBytesSize() const { return Assembler->getBufferView().size(); } |
143 | 143 |
144 const uint8_t *codeBytes() const { | 144 const uint8_t *codeBytes() const { |
145 return static_cast<const uint8_t *>( | 145 return static_cast<const uint8_t *>( |
146 static_cast<const void *>(Assembler->getBufferView().data())); | 146 static_cast<const void *>(Assembler->getBufferView().data())); |
147 } | 147 } |
148 | 148 |
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 | 1094 |
1095 bool NeedsEpilogue; | 1095 bool NeedsEpilogue; |
1096 uint32_t NumAllocatedDwords; | 1096 uint32_t NumAllocatedDwords; |
1097 }; | 1097 }; |
1098 | 1098 |
1099 } // end of namespace Test | 1099 } // end of namespace Test |
1100 } // end of namespace X8664 | 1100 } // end of namespace X8664 |
1101 } // end of namespace Ice | 1101 } // end of namespace Ice |
1102 | 1102 |
1103 #endif // ASSEMBLERX8664_TESTUTIL_H_ | 1103 #endif // ASSEMBLERX8664_TESTUTIL_H_ |
OLD | NEW |