OLD | NEW |
1 //===- subzero/src/IceAssemblerX8632.h - Assembler for x86-32 ---*- C++ -*-===// | 1 //===- subzero/src/IceAssemblerX8632.h - Assembler for x86-32 ---*- 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 // |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "IceTargetLoweringX8632Traits.h" | 30 #include "IceTargetLoweringX8632Traits.h" |
31 #include "IceTypes.h" | 31 #include "IceTypes.h" |
32 #include "IceUtils.h" | 32 #include "IceUtils.h" |
33 | 33 |
34 namespace Ice { | 34 namespace Ice { |
35 | 35 |
36 class TargetX8632; | 36 class TargetX8632; |
37 | 37 |
38 namespace X8632 { | 38 namespace X8632 { |
39 | 39 |
| 40 using Immediate = ::Ice::X86Internal::Immediate; |
| 41 using Label = ::Ice::X86Internal::Label; |
| 42 |
40 class AssemblerX8632 : public X86Internal::AssemblerX86Base<TargetX8632> { | 43 class AssemblerX8632 : public X86Internal::AssemblerX86Base<TargetX8632> { |
41 AssemblerX8632(const AssemblerX8632 &) = delete; | 44 AssemblerX8632(const AssemblerX8632 &) = delete; |
42 AssemblerX8632 &operator=(const AssemblerX8632 &) = delete; | 45 AssemblerX8632 &operator=(const AssemblerX8632 &) = delete; |
43 | 46 |
44 public: | 47 public: |
45 explicit AssemblerX8632(bool use_far_branches = false) | 48 explicit AssemblerX8632(bool use_far_branches = false) |
46 : X86Internal::AssemblerX86Base<TargetX8632>(Asm_X8632, | 49 : X86Internal::AssemblerX86Base<TargetX8632>(Asm_X8632, |
47 use_far_branches) {} | 50 use_far_branches) {} |
48 ~AssemblerX8632() override = default; | 51 ~AssemblerX8632() override = default; |
49 | 52 |
50 static bool classof(const Assembler *Asm) { | 53 static bool classof(const Assembler *Asm) { |
51 return Asm->getKind() == Asm_X8632; | 54 return Asm->getKind() == Asm_X8632; |
52 } | 55 } |
53 }; | 56 }; |
54 | 57 |
55 } // end of namespace X8632 | 58 } // end of namespace X8632 |
56 } // end of namespace Ice | 59 } // end of namespace Ice |
57 | 60 |
58 #endif // SUBZERO_SRC_ICEASSEMBLERX8632_H | 61 #endif // SUBZERO_SRC_ICEASSEMBLERX8632_H |
OLD | NEW |