| OLD | NEW |
| 1 //===- subzero/unittest/unittest/AssemblerX8632/TestUtil.h ------*- C++ -*-===// | 1 //===- subzero/unittest/unittest/AssemblerX8632/TestUtil.h ------*- C++ -*-===// |
| 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 // Utility classes for testing the X8632 Assembler. | 10 // Utility classes for testing the X8632 Assembler. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include <cassert> | 21 #include <cassert> |
| 22 #include <sys/mman.h> | 22 #include <sys/mman.h> |
| 23 | 23 |
| 24 namespace Ice { | 24 namespace Ice { |
| 25 namespace X8632 { | 25 namespace X8632 { |
| 26 namespace Test { | 26 namespace Test { |
| 27 | 27 |
| 28 class AssemblerX8632TestBase : public ::testing::Test { | 28 class AssemblerX8632TestBase : public ::testing::Test { |
| 29 protected: | 29 protected: |
| 30 using Address = AssemblerX8632::Traits::Address; | 30 using Address = AssemblerX8632::Traits::Address; |
| 31 using ByteRegister = AssemblerX8632::Traits::ByteRegister; | |
| 32 using Cond = AssemblerX8632::Traits::Cond; | 31 using Cond = AssemblerX8632::Traits::Cond; |
| 33 using GPRRegister = AssemblerX8632::Traits::GPRRegister; | 32 using GPRRegister = AssemblerX8632::Traits::GPRRegister; |
| 33 using ByteRegister = AssemblerX8632::Traits::ByteRegister; |
| 34 using Label = ::Ice::X86Internal::Label; | 34 using Label = ::Ice::X86Internal::Label; |
| 35 using Traits = AssemblerX8632::Traits; | 35 using Traits = AssemblerX8632::Traits; |
| 36 using XmmRegister = AssemblerX8632::Traits::XmmRegister; | 36 using XmmRegister = AssemblerX8632::Traits::XmmRegister; |
| 37 using X87STRegister = AssemblerX8632::Traits::X87STRegister; | 37 using X87STRegister = AssemblerX8632::Traits::X87STRegister; |
| 38 | 38 |
| 39 AssemblerX8632TestBase() { reset(); } | 39 AssemblerX8632TestBase() { reset(); } |
| 40 | 40 |
| 41 void reset() { Assembler.reset(new AssemblerX8632()); } | 41 void reset() { Assembler.reset(new AssemblerX8632()); } |
| 42 | 42 |
| 43 AssemblerX8632 *assembler() const { return Assembler.get(); } | 43 AssemblerX8632 *assembler() const { return Assembler.get(); } |
| (...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 | 840 |
| 841 bool NeedsEpilogue; | 841 bool NeedsEpilogue; |
| 842 uint32_t NumAllocatedDwords; | 842 uint32_t NumAllocatedDwords; |
| 843 }; | 843 }; |
| 844 | 844 |
| 845 } // end of namespace Test | 845 } // end of namespace Test |
| 846 } // end of namespace X8632 | 846 } // end of namespace X8632 |
| 847 } // end of namespace Ice | 847 } // end of namespace Ice |
| 848 | 848 |
| 849 #endif // ASSEMBLERX8632_TESTUTIL_H_ | 849 #endif // ASSEMBLERX8632_TESTUTIL_H_ |
| OLD | NEW |