Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef ART_COMPILER_OPTIMIZING_CODE_GENERATOR_ARM64_H_ |
| 18 | #define ART_COMPILER_OPTIMIZING_CODE_GENERATOR_ARM64_H_ |
| 19 | |
| 20 | #include "code_generator.h" |
Serban Constantinescu | 02d81cc | 2015-01-05 16:08:49 +0000 | [diff] [blame] | 21 | #include "dex/compiler_enums.h" |
Calin Juravle | cd6dffe | 2015-01-08 17:35:35 +0000 | [diff] [blame^] | 22 | #include "driver/compiler_options.h" |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 23 | #include "nodes.h" |
| 24 | #include "parallel_move_resolver.h" |
| 25 | #include "utils/arm64/assembler_arm64.h" |
| 26 | #include "a64/disasm-a64.h" |
| 27 | #include "a64/macro-assembler-a64.h" |
| 28 | #include "arch/arm64/quick_method_frame_info_arm64.h" |
| 29 | |
| 30 | namespace art { |
| 31 | namespace arm64 { |
| 32 | |
| 33 | class CodeGeneratorARM64; |
Alexandre Rames | 67555f7 | 2014-11-18 10:55:16 +0000 | [diff] [blame] | 34 | class SlowPathCodeARM64; |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 35 | |
Nicolas Geoffray | 86a8d7a | 2014-11-19 08:47:18 +0000 | [diff] [blame] | 36 | // Use a local definition to prevent copying mistakes. |
| 37 | static constexpr size_t kArm64WordSize = kArm64PointerSize; |
| 38 | |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 39 | static const vixl::Register kParameterCoreRegisters[] = { |
| 40 | vixl::x1, vixl::x2, vixl::x3, vixl::x4, vixl::x5, vixl::x6, vixl::x7 |
| 41 | }; |
| 42 | static constexpr size_t kParameterCoreRegistersLength = arraysize(kParameterCoreRegisters); |
| 43 | static const vixl::FPRegister kParameterFPRegisters[] = { |
| 44 | vixl::d0, vixl::d1, vixl::d2, vixl::d3, vixl::d4, vixl::d5, vixl::d6, vixl::d7 |
| 45 | }; |
| 46 | static constexpr size_t kParameterFPRegistersLength = arraysize(kParameterFPRegisters); |
| 47 | |
| 48 | const vixl::Register tr = vixl::x18; // Thread Register |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 49 | |
| 50 | const vixl::CPURegList vixl_reserved_core_registers(vixl::ip0, vixl::ip1); |
Alexandre Rames | a89086e | 2014-11-07 17:13:25 +0000 | [diff] [blame] | 51 | const vixl::CPURegList vixl_reserved_fp_registers(vixl::d31); |
Serban Constantinescu | 02164b3 | 2014-11-13 14:05:07 +0000 | [diff] [blame] | 52 | const vixl::CPURegList runtime_reserved_core_registers(tr, vixl::lr); |
Nicolas Geoffray | 5b4b898 | 2014-12-18 17:45:56 +0000 | [diff] [blame] | 53 | const vixl::CPURegList quick_callee_saved_registers(vixl::CPURegister::kRegister, |
| 54 | vixl::kXRegSize, |
| 55 | kArm64CalleeSaveRefSpills); |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 56 | |
Alexandre Rames | a89086e | 2014-11-07 17:13:25 +0000 | [diff] [blame] | 57 | Location ARM64ReturnLocation(Primitive::Type return_type); |
| 58 | |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 59 | class InvokeDexCallingConvention : public CallingConvention<vixl::Register, vixl::FPRegister> { |
| 60 | public: |
| 61 | InvokeDexCallingConvention() |
| 62 | : CallingConvention(kParameterCoreRegisters, |
| 63 | kParameterCoreRegistersLength, |
| 64 | kParameterFPRegisters, |
| 65 | kParameterFPRegistersLength) {} |
| 66 | |
| 67 | Location GetReturnLocation(Primitive::Type return_type) { |
Alexandre Rames | a89086e | 2014-11-07 17:13:25 +0000 | [diff] [blame] | 68 | return ARM64ReturnLocation(return_type); |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 69 | } |
| 70 | |
| 71 | |
| 72 | private: |
| 73 | DISALLOW_COPY_AND_ASSIGN(InvokeDexCallingConvention); |
| 74 | }; |
| 75 | |
| 76 | class InvokeDexCallingConventionVisitor { |
| 77 | public: |
Alexandre Rames | a89086e | 2014-11-07 17:13:25 +0000 | [diff] [blame] | 78 | InvokeDexCallingConventionVisitor() : gp_index_(0), fp_index_(0), stack_index_(0) {} |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 79 | |
| 80 | Location GetNextLocation(Primitive::Type type); |
| 81 | Location GetReturnLocation(Primitive::Type return_type) { |
| 82 | return calling_convention.GetReturnLocation(return_type); |
| 83 | } |
| 84 | |
| 85 | private: |
| 86 | InvokeDexCallingConvention calling_convention; |
| 87 | // The current index for core registers. |
| 88 | uint32_t gp_index_; |
Alexandre Rames | a89086e | 2014-11-07 17:13:25 +0000 | [diff] [blame] | 89 | // The current index for floating-point registers. |
| 90 | uint32_t fp_index_; |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 91 | // The current stack index. |
| 92 | uint32_t stack_index_; |
| 93 | |
| 94 | DISALLOW_COPY_AND_ASSIGN(InvokeDexCallingConventionVisitor); |
| 95 | }; |
| 96 | |
| 97 | class InstructionCodeGeneratorARM64 : public HGraphVisitor { |
| 98 | public: |
| 99 | InstructionCodeGeneratorARM64(HGraph* graph, CodeGeneratorARM64* codegen); |
| 100 | |
| 101 | #define DECLARE_VISIT_INSTRUCTION(name, super) \ |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 102 | void Visit##name(H##name* instr) OVERRIDE; |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 103 | FOR_EACH_CONCRETE_INSTRUCTION(DECLARE_VISIT_INSTRUCTION) |
| 104 | #undef DECLARE_VISIT_INSTRUCTION |
| 105 | |
| 106 | void LoadCurrentMethod(XRegister reg); |
| 107 | |
| 108 | Arm64Assembler* GetAssembler() const { return assembler_; } |
Alexandre Rames | 67555f7 | 2014-11-18 10:55:16 +0000 | [diff] [blame] | 109 | vixl::MacroAssembler* GetVIXLAssembler() { return GetAssembler()->vixl_masm_; } |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 110 | |
| 111 | private: |
Alexandre Rames | 67555f7 | 2014-11-18 10:55:16 +0000 | [diff] [blame] | 112 | void GenerateClassInitializationCheck(SlowPathCodeARM64* slow_path, vixl::Register class_reg); |
Serban Constantinescu | 02d81cc | 2015-01-05 16:08:49 +0000 | [diff] [blame] | 113 | void GenerateMemoryBarrier(MemBarrierKind kind); |
Serban Constantinescu | 02164b3 | 2014-11-13 14:05:07 +0000 | [diff] [blame] | 114 | void GenerateSuspendCheck(HSuspendCheck* instruction, HBasicBlock* successor); |
Alexandre Rames | 67555f7 | 2014-11-18 10:55:16 +0000 | [diff] [blame] | 115 | void HandleBinaryOp(HBinaryOperation* instr); |
Serban Constantinescu | 02164b3 | 2014-11-13 14:05:07 +0000 | [diff] [blame] | 116 | void HandleShift(HBinaryOperation* instr); |
Calin Juravle | cd6dffe | 2015-01-08 17:35:35 +0000 | [diff] [blame^] | 117 | void GenerateImplicitNullCheck(HNullCheck* instruction); |
| 118 | void GenerateExplicitNullCheck(HNullCheck* instruction); |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 119 | |
| 120 | Arm64Assembler* const assembler_; |
| 121 | CodeGeneratorARM64* const codegen_; |
| 122 | |
| 123 | DISALLOW_COPY_AND_ASSIGN(InstructionCodeGeneratorARM64); |
| 124 | }; |
| 125 | |
| 126 | class LocationsBuilderARM64 : public HGraphVisitor { |
| 127 | public: |
| 128 | explicit LocationsBuilderARM64(HGraph* graph, CodeGeneratorARM64* codegen) |
| 129 | : HGraphVisitor(graph), codegen_(codegen) {} |
| 130 | |
| 131 | #define DECLARE_VISIT_INSTRUCTION(name, super) \ |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 132 | void Visit##name(H##name* instr) OVERRIDE; |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 133 | FOR_EACH_CONCRETE_INSTRUCTION(DECLARE_VISIT_INSTRUCTION) |
| 134 | #undef DECLARE_VISIT_INSTRUCTION |
| 135 | |
| 136 | private: |
Alexandre Rames | 67555f7 | 2014-11-18 10:55:16 +0000 | [diff] [blame] | 137 | void HandleBinaryOp(HBinaryOperation* instr); |
Serban Constantinescu | 02164b3 | 2014-11-13 14:05:07 +0000 | [diff] [blame] | 138 | void HandleShift(HBinaryOperation* instr); |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 139 | void HandleInvoke(HInvoke* instr); |
| 140 | |
| 141 | CodeGeneratorARM64* const codegen_; |
| 142 | InvokeDexCallingConventionVisitor parameter_visitor_; |
| 143 | |
| 144 | DISALLOW_COPY_AND_ASSIGN(LocationsBuilderARM64); |
| 145 | }; |
| 146 | |
Alexandre Rames | 3e69f16 | 2014-12-10 10:36:50 +0000 | [diff] [blame] | 147 | class ParallelMoveResolverARM64 : public ParallelMoveResolver { |
| 148 | public: |
| 149 | ParallelMoveResolverARM64(ArenaAllocator* allocator, CodeGeneratorARM64* codegen) |
| 150 | : ParallelMoveResolver(allocator), codegen_(codegen) {} |
| 151 | |
| 152 | void EmitMove(size_t index) OVERRIDE; |
| 153 | void EmitSwap(size_t index) OVERRIDE; |
| 154 | void RestoreScratch(int reg) OVERRIDE; |
| 155 | void SpillScratch(int reg) OVERRIDE; |
| 156 | |
| 157 | private: |
| 158 | Arm64Assembler* GetAssembler() const; |
| 159 | vixl::MacroAssembler* GetVIXLAssembler() const { |
| 160 | return GetAssembler()->vixl_masm_; |
| 161 | } |
| 162 | |
| 163 | CodeGeneratorARM64* const codegen_; |
| 164 | |
| 165 | DISALLOW_COPY_AND_ASSIGN(ParallelMoveResolverARM64); |
| 166 | }; |
| 167 | |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 168 | class CodeGeneratorARM64 : public CodeGenerator { |
| 169 | public: |
Calin Juravle | cd6dffe | 2015-01-08 17:35:35 +0000 | [diff] [blame^] | 170 | CodeGeneratorARM64(HGraph* graph, const CompilerOptions& compiler_options); |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 171 | virtual ~CodeGeneratorARM64() {} |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 172 | |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 173 | void GenerateFrameEntry() OVERRIDE; |
| 174 | void GenerateFrameExit() OVERRIDE; |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 175 | |
| 176 | static const vixl::CPURegList& GetFramePreservedRegisters() { |
| 177 | static const vixl::CPURegList frame_preserved_regs = |
| 178 | vixl::CPURegList(vixl::CPURegister::kRegister, vixl::kXRegSize, vixl::lr.Bit()); |
| 179 | return frame_preserved_regs; |
| 180 | } |
| 181 | static int GetFramePreservedRegistersSize() { |
| 182 | return GetFramePreservedRegisters().TotalSizeInBytes(); |
| 183 | } |
| 184 | |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 185 | void Bind(HBasicBlock* block) OVERRIDE; |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 186 | |
| 187 | vixl::Label* GetLabelOf(HBasicBlock* block) const { |
| 188 | return block_labels_ + block->GetBlockId(); |
| 189 | } |
| 190 | |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 191 | void Move(HInstruction* instruction, Location location, HInstruction* move_for) OVERRIDE; |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 192 | |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 193 | size_t GetWordSize() const OVERRIDE { |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 194 | return kArm64WordSize; |
| 195 | } |
| 196 | |
Mark Mendell | f85a9ca | 2015-01-13 09:20:58 -0500 | [diff] [blame] | 197 | size_t GetFloatingPointSpillSlotSize() const OVERRIDE { |
| 198 | // Allocated in D registers, which are word sized. |
| 199 | return kArm64WordSize; |
| 200 | } |
| 201 | |
Alexandre Rames | 67555f7 | 2014-11-18 10:55:16 +0000 | [diff] [blame] | 202 | uintptr_t GetAddressOf(HBasicBlock* block) const OVERRIDE { |
| 203 | vixl::Label* block_entry_label = GetLabelOf(block); |
| 204 | DCHECK(block_entry_label->IsBound()); |
| 205 | return block_entry_label->location(); |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 206 | } |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 207 | |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 208 | size_t FrameEntrySpillSize() const OVERRIDE; |
| 209 | |
| 210 | HGraphVisitor* GetLocationBuilder() OVERRIDE { return &location_builder_; } |
| 211 | HGraphVisitor* GetInstructionVisitor() OVERRIDE { return &instruction_visitor_; } |
| 212 | Arm64Assembler* GetAssembler() OVERRIDE { return &assembler_; } |
Alexandre Rames | 67555f7 | 2014-11-18 10:55:16 +0000 | [diff] [blame] | 213 | vixl::MacroAssembler* GetVIXLAssembler() { return GetAssembler()->vixl_masm_; } |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 214 | |
| 215 | // Emit a write barrier. |
| 216 | void MarkGCCard(vixl::Register object, vixl::Register value); |
| 217 | |
| 218 | // Register allocation. |
| 219 | |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 220 | void SetupBlockedRegisters() const OVERRIDE; |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 221 | // AllocateFreeRegister() is only used when allocating registers locally |
| 222 | // during CompileBaseline(). |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 223 | Location AllocateFreeRegister(Primitive::Type type) const OVERRIDE; |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 224 | |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 225 | Location GetStackLocation(HLoadLocal* load) const OVERRIDE; |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 226 | |
Alexandre Rames | 3e69f16 | 2014-12-10 10:36:50 +0000 | [diff] [blame] | 227 | size_t SaveCoreRegister(size_t stack_index, uint32_t reg_id); |
| 228 | size_t RestoreCoreRegister(size_t stack_index, uint32_t reg_id); |
| 229 | size_t SaveFloatingPointRegister(size_t stack_index, uint32_t reg_id); |
| 230 | size_t RestoreFloatingPointRegister(size_t stack_index, uint32_t reg_id); |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 231 | |
| 232 | // The number of registers that can be allocated. The register allocator may |
| 233 | // decide to reserve and not use a few of them. |
| 234 | // We do not consider registers sp, xzr, wzr. They are either not allocatable |
| 235 | // (xzr, wzr), or make for poor allocatable registers (sp alignment |
| 236 | // requirements, etc.). This also facilitates our task as all other registers |
| 237 | // can easily be mapped via to or from their type and index or code. |
Alexandre Rames | a89086e | 2014-11-07 17:13:25 +0000 | [diff] [blame] | 238 | static const int kNumberOfAllocatableRegisters = vixl::kNumberOfRegisters - 1; |
| 239 | static const int kNumberOfAllocatableFPRegisters = vixl::kNumberOfFPRegisters; |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 240 | static constexpr int kNumberOfAllocatableRegisterPairs = 0; |
| 241 | |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 242 | void DumpCoreRegister(std::ostream& stream, int reg) const OVERRIDE; |
| 243 | void DumpFloatingPointRegister(std::ostream& stream, int reg) const OVERRIDE; |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 244 | |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 245 | InstructionSet GetInstructionSet() const OVERRIDE { |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 246 | return InstructionSet::kArm64; |
| 247 | } |
| 248 | |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 249 | void Initialize() OVERRIDE { |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 250 | HGraph* graph = GetGraph(); |
| 251 | int length = graph->GetBlocks().Size(); |
| 252 | block_labels_ = graph->GetArena()->AllocArray<vixl::Label>(length); |
| 253 | for (int i = 0; i < length; ++i) { |
| 254 | new(block_labels_ + i) vixl::Label(); |
| 255 | } |
| 256 | } |
| 257 | |
Serban Constantinescu | 32f5b4d | 2014-11-25 20:05:46 +0000 | [diff] [blame] | 258 | void Finalize(CodeAllocator* allocator) OVERRIDE; |
| 259 | |
Alexandre Rames | fc19de8 | 2014-11-07 17:13:31 +0000 | [diff] [blame] | 260 | // Code generation helpers. |
Alexandre Rames | 67555f7 | 2014-11-18 10:55:16 +0000 | [diff] [blame] | 261 | void MoveConstant(vixl::CPURegister destination, HConstant* constant); |
Alexandre Rames | 3e69f16 | 2014-12-10 10:36:50 +0000 | [diff] [blame] | 262 | // The type is optional. When specified it must be coherent with the |
| 263 | // locations, and is used for optimisation and debugging. |
| 264 | void MoveLocation(Location destination, Location source, |
| 265 | Primitive::Type type = Primitive::kPrimVoid); |
| 266 | void SwapLocations(Location loc_1, Location loc_2); |
Alexandre Rames | 67555f7 | 2014-11-18 10:55:16 +0000 | [diff] [blame] | 267 | void Load(Primitive::Type type, vixl::CPURegister dst, const vixl::MemOperand& src); |
| 268 | void Store(Primitive::Type type, vixl::CPURegister rt, const vixl::MemOperand& dst); |
| 269 | void LoadCurrentMethod(vixl::Register current_method); |
Serban Constantinescu | 02d81cc | 2015-01-05 16:08:49 +0000 | [diff] [blame] | 270 | void LoadAcquire(Primitive::Type type, vixl::CPURegister dst, const vixl::MemOperand& src); |
| 271 | void StoreRelease(Primitive::Type type, vixl::CPURegister rt, const vixl::MemOperand& dst); |
Alexandre Rames | 67555f7 | 2014-11-18 10:55:16 +0000 | [diff] [blame] | 272 | |
| 273 | // Generate code to invoke a runtime entry point. |
| 274 | void InvokeRuntime(int32_t offset, HInstruction* instruction, uint32_t dex_pc); |
Alexandre Rames | fc19de8 | 2014-11-07 17:13:31 +0000 | [diff] [blame] | 275 | |
Alexandre Rames | 3e69f16 | 2014-12-10 10:36:50 +0000 | [diff] [blame] | 276 | ParallelMoveResolverARM64* GetMoveResolver() { return &move_resolver_; } |
Nicolas Geoffray | f0e3937 | 2014-11-12 17:50:07 +0000 | [diff] [blame] | 277 | |
Nicolas Geoffray | 840e546 | 2015-01-07 16:01:24 +0000 | [diff] [blame] | 278 | bool NeedsTwoRegisters(Primitive::Type type ATTRIBUTE_UNUSED) const OVERRIDE { |
| 279 | return false; |
| 280 | } |
| 281 | |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 282 | private: |
| 283 | // Labels for each block that will be compiled. |
| 284 | vixl::Label* block_labels_; |
| 285 | |
| 286 | LocationsBuilderARM64 location_builder_; |
| 287 | InstructionCodeGeneratorARM64 instruction_visitor_; |
Alexandre Rames | 3e69f16 | 2014-12-10 10:36:50 +0000 | [diff] [blame] | 288 | ParallelMoveResolverARM64 move_resolver_; |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 289 | Arm64Assembler assembler_; |
| 290 | |
| 291 | DISALLOW_COPY_AND_ASSIGN(CodeGeneratorARM64); |
| 292 | }; |
| 293 | |
Alexandre Rames | 3e69f16 | 2014-12-10 10:36:50 +0000 | [diff] [blame] | 294 | inline Arm64Assembler* ParallelMoveResolverARM64::GetAssembler() const { |
| 295 | return codegen_->GetAssembler(); |
| 296 | } |
| 297 | |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 298 | } // namespace arm64 |
| 299 | } // namespace art |
| 300 | |
| 301 | #endif // ART_COMPILER_OPTIMIZING_CODE_GENERATOR_ARM64_H_ |