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

Unified Diff: src/IceAssemblerX8632.h

Issue 1548363002: Subzero. Code organization. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/IceAssemblerX8664.h » ('j') | src/IceInstX86Base.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceAssemblerX8632.h
diff --git a/src/IceAssemblerX8632.h b/src/IceAssemblerX8632.h
index d84d232e85eb6c271481164c78d421f4fef46dd6..fc0f382da6b2b68dce8cfe7e2acc8657d1042a20 100644
--- a/src/IceAssemblerX8632.h
+++ b/src/IceAssemblerX8632.h
@@ -16,47 +16,24 @@
//===----------------------------------------------------------------------===//
///
/// \file
-/// \brief Implements the Assembler class for x86-32.
+/// \brief Instantiates the Assembler for X86-64.
///
//===----------------------------------------------------------------------===//
#ifndef SUBZERO_SRC_ICEASSEMBLERX8632_H
#define SUBZERO_SRC_ICEASSEMBLERX8632_H
-#include "IceAssembler.h"
+#define X86NAMESPACE X8632
#include "IceAssemblerX86Base.h"
-#include "IceDefs.h"
-#include "IceOperand.h"
+#undef X86NAMESPACE
#include "IceTargetLoweringX8632Traits.h"
-#include "IceTypes.h"
-#include "IceUtils.h"
namespace Ice {
-
-class TargetX8632;
-
namespace X8632 {
-using Immediate = ::Ice::X86Internal::Immediate;
-using Label = ::Ice::X86Internal::Label;
-
-class AssemblerX8632 : public X86Internal::AssemblerX86Base<TargetX8632> {
- AssemblerX8632(const AssemblerX8632 &) = delete;
- AssemblerX8632 &operator=(const AssemblerX8632 &) = delete;
-
-public:
- explicit AssemblerX8632(bool use_far_branches = false)
- : X86Internal::AssemblerX86Base<TargetX8632>(Asm_X8632,
- use_far_branches) {}
- ~AssemblerX8632() override = default;
-
- static bool classof(const Assembler *Asm) {
- return Asm->getKind() == Asm_X8632;
- }
-
-private:
- ENABLE_MAKE_UNIQUE;
-};
+using AssemblerX8632 = AssemblerX86Base<X8632::Traits>;
+using Label = AssemblerX8632::Label;
+using Immediate = AssemblerX8632::Immediate;
} // end of namespace X8632
} // end of namespace Ice
« no previous file with comments | « no previous file | src/IceAssemblerX8664.h » ('j') | src/IceInstX86Base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698