| OLD | NEW |
| 1 //===- subzero/src/IceAssemblerX86Base.h - base x86 assembler -*- C++ -*---===// | 1 //===- subzero/src/IceAssemblerX86Base.h - base x86 assembler -*- 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 llvm::SmallVector<intptr_t, 20> UnresolvedNearPositions; | 108 llvm::SmallVector<intptr_t, 20> UnresolvedNearPositions; |
| 109 | 109 |
| 110 template <class> friend class AssemblerX86Base; | 110 template <class> friend class AssemblerX86Base; |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 template <class Machine> class AssemblerX86Base : public Assembler { | 113 template <class Machine> class AssemblerX86Base : public Assembler { |
| 114 AssemblerX86Base(const AssemblerX86Base &) = delete; | 114 AssemblerX86Base(const AssemblerX86Base &) = delete; |
| 115 AssemblerX86Base &operator=(const AssemblerX86Base &) = delete; | 115 AssemblerX86Base &operator=(const AssemblerX86Base &) = delete; |
| 116 | 116 |
| 117 protected: | 117 protected: |
| 118 AssemblerX86Base(AssemblerKind Kind, GlobalContext *Ctx, | 118 AssemblerX86Base(AssemblerKind Kind, bool use_far_branches) |
| 119 bool use_far_branches) | 119 : Assembler(Kind) { |
| 120 : Assembler(Kind, Ctx) { | |
| 121 // This mode is only needed and implemented for MIPS and ARM. | 120 // This mode is only needed and implemented for MIPS and ARM. |
| 122 assert(!use_far_branches); | 121 assert(!use_far_branches); |
| 123 (void)use_far_branches; | 122 (void)use_far_branches; |
| 124 } | 123 } |
| 125 | 124 |
| 126 public: | 125 public: |
| 127 using Traits = MachineTraits<Machine>; | 126 using Traits = MachineTraits<Machine>; |
| 128 | 127 |
| 129 ~AssemblerX86Base() override; | 128 ~AssemblerX86Base() override; |
| 130 | 129 |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 emitUint8(0x66); | 1065 emitUint8(0x66); |
| 1067 } | 1066 } |
| 1068 | 1067 |
| 1069 } // end of namespace X86Internal | 1068 } // end of namespace X86Internal |
| 1070 | 1069 |
| 1071 } // end of namespace Ice | 1070 } // end of namespace Ice |
| 1072 | 1071 |
| 1073 #include "IceAssemblerX86BaseImpl.h" | 1072 #include "IceAssemblerX86BaseImpl.h" |
| 1074 | 1073 |
| 1075 #endif // SUBZERO_SRC_ICEASSEMBLERX86BASE_H | 1074 #endif // SUBZERO_SRC_ICEASSEMBLERX86BASE_H |
| OLD | NEW |