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

Side by Side Diff: unittest/AssemblerX8664/TestUtil.h

Issue 1419903002: Subzero: Refactor x86 register definitions to use the alias mechanism. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Bring back ByteRegister Created 5 years, 1 month 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 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 11 matching lines...) Expand all
22 #include <cassert> 22 #include <cassert>
23 #include <sys/mman.h> 23 #include <sys/mman.h>
24 24
25 namespace Ice { 25 namespace Ice {
26 namespace X8664 { 26 namespace X8664 {
27 namespace Test { 27 namespace Test {
28 28
29 class AssemblerX8664TestBase : public ::testing::Test { 29 class AssemblerX8664TestBase : public ::testing::Test {
30 protected: 30 protected:
31 using Address = AssemblerX8664::Traits::Address; 31 using Address = AssemblerX8664::Traits::Address;
32 using ByteRegister = AssemblerX8664::Traits::ByteRegister;
33 using Cond = AssemblerX8664::Traits::Cond; 32 using Cond = AssemblerX8664::Traits::Cond;
34 using GPRRegister = AssemblerX8664::Traits::GPRRegister; 33 using GPRRegister = AssemblerX8664::Traits::GPRRegister;
35 using Traits = AssemblerX8664::Traits; 34 using Traits = AssemblerX8664::Traits;
36 using XmmRegister = AssemblerX8664::Traits::XmmRegister; 35 using XmmRegister = AssemblerX8664::Traits::XmmRegister;
37 36
38 // The following are "nicknames" for all possible GPRs in x86-64. With those, we 37 // The following are "nicknames" for all possible GPRs in x86-64. With those, we
39 // can use, e.g., 38 // can use, e.g.,
40 // 39 //
41 // Encoded_GPR_al() 40 // Encoded_GPR_al()
42 // 41 //
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 1087
1089 bool NeedsEpilogue; 1088 bool NeedsEpilogue;
1090 uint32_t NumAllocatedDwords; 1089 uint32_t NumAllocatedDwords;
1091 }; 1090 };
1092 1091
1093 } // end of namespace Test 1092 } // end of namespace Test
1094 } // end of namespace X8664 1093 } // end of namespace X8664
1095 } // end of namespace Ice 1094 } // end of namespace Ice
1096 1095
1097 #endif // ASSEMBLERX8664_TESTUTIL_H_ 1096 #endif // ASSEMBLERX8664_TESTUTIL_H_
OLDNEW
« src/IceRegistersX8632.h ('K') | « unittest/AssemblerX8664/GPRArith.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698