| OLD | NEW |
| 1 //===- subzero/src/IceAssemblerX8664.h - Assembler for x86-64 ---*- C++ -*-===// | 1 //===- subzero/src/IceAssemblerX8664.h - Assembler for x86-64 ---*- C++ -*-===// |
| 2 // | 2 // |
| 3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 4 // for details. All rights reserved. Use of this source code is governed by a | 4 // for details. All rights reserved. Use of this source code is governed by a |
| 5 // BSD-style license that can be found in the LICENSE file. | 5 // BSD-style license that can be found in the LICENSE file. |
| 6 // | 6 // |
| 7 // Modified by the Subzero authors. | 7 // Modified by the Subzero authors. |
| 8 // | 8 // |
| 9 //===----------------------------------------------------------------------===// | 9 //===----------------------------------------------------------------------===// |
| 10 // | 10 // |
| 11 // The Subzero Code Generator | 11 // The Subzero Code Generator |
| 12 // | 12 // |
| 13 // This file is distributed under the University of Illinois Open Source | 13 // This file is distributed under the University of Illinois Open Source |
| 14 // License. See LICENSE.TXT for details. | 14 // License. See LICENSE.TXT for details. |
| 15 // | 15 // |
| 16 //===----------------------------------------------------------------------===// | 16 //===----------------------------------------------------------------------===// |
| 17 /// | 17 /// |
| 18 /// \file | 18 /// \file |
| 19 /// \brief Implements the Assembler class for x86-64. | 19 /// \brief Instantiates the Assembler for X86-64. |
| 20 /// | 20 /// |
| 21 //===----------------------------------------------------------------------===// | 21 //===----------------------------------------------------------------------===// |
| 22 | 22 |
| 23 #ifndef SUBZERO_SRC_ICEASSEMBLERX8664_H | 23 #ifndef SUBZERO_SRC_ICEASSEMBLERX8664_H |
| 24 #define SUBZERO_SRC_ICEASSEMBLERX8664_H | 24 #define SUBZERO_SRC_ICEASSEMBLERX8664_H |
| 25 | 25 |
| 26 #include "IceAssembler.h" | 26 #define X86NAMESPACE X8664 |
| 27 #include "IceAssemblerX86Base.h" | 27 #include "IceAssemblerX86Base.h" |
| 28 #include "IceDefs.h" | 28 #undef X86NAMESPACE |
| 29 #include "IceOperand.h" | |
| 30 #include "IceTargetLoweringX8664Traits.h" | 29 #include "IceTargetLoweringX8664Traits.h" |
| 31 #include "IceTypes.h" | |
| 32 #include "IceUtils.h" | |
| 33 | 30 |
| 34 namespace Ice { | 31 namespace Ice { |
| 35 | |
| 36 class TargetX8664; | |
| 37 | |
| 38 namespace X8664 { | 32 namespace X8664 { |
| 39 | 33 |
| 40 using Immediate = ::Ice::X86Internal::Immediate; | 34 using AssemblerX8664 = AssemblerX86Base<X8664::Traits>; |
| 41 using Label = ::Ice::X86Internal::Label; | 35 using Label = AssemblerX8664::Label; |
| 42 | 36 using Immediate = AssemblerX8664::Immediate; |
| 43 class AssemblerX8664 : public X86Internal::AssemblerX86Base<TargetX8664> { | |
| 44 AssemblerX8664(const AssemblerX8664 &) = delete; | |
| 45 AssemblerX8664 &operator=(const AssemblerX8664 &) = delete; | |
| 46 | |
| 47 public: | |
| 48 explicit AssemblerX8664(bool use_far_branches = false) | |
| 49 : X86Internal::AssemblerX86Base<TargetX8664>(Asm_X8664, | |
| 50 use_far_branches) {} | |
| 51 ~AssemblerX8664() override = default; | |
| 52 | |
| 53 static bool classof(const Assembler *Asm) { | |
| 54 return Asm->getKind() == Asm_X8664; | |
| 55 } | |
| 56 | |
| 57 private: | |
| 58 ENABLE_MAKE_UNIQUE; | |
| 59 }; | |
| 60 | 37 |
| 61 } // end of namespace X8664 | 38 } // end of namespace X8664 |
| 62 } // end of namespace Ice | 39 } // end of namespace Ice |
| 63 | 40 |
| 64 #endif // SUBZERO_SRC_ICEASSEMBLERX8664_H | 41 #endif // SUBZERO_SRC_ICEASSEMBLERX8664_H |
| OLD | NEW |