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