| OLD | NEW |
| 1 //===- subzero/src/IceAssemblerMIPS32.h - Assembler for MIPS ----*- C++ -*-===// | 1 //===- subzero/src/IceAssemblerMIPS32.h - Assembler for MIPS ----*- 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 17 matching lines...) Expand all Loading... |
| 28 #include "IceFixups.h" | 28 #include "IceFixups.h" |
| 29 | 29 |
| 30 namespace Ice { | 30 namespace Ice { |
| 31 namespace MIPS32 { | 31 namespace MIPS32 { |
| 32 | 32 |
| 33 class AssemblerMIPS32 : public Assembler { | 33 class AssemblerMIPS32 : public Assembler { |
| 34 AssemblerMIPS32(const AssemblerMIPS32 &) = delete; | 34 AssemblerMIPS32(const AssemblerMIPS32 &) = delete; |
| 35 AssemblerMIPS32 &operator=(const AssemblerMIPS32 &) = delete; | 35 AssemblerMIPS32 &operator=(const AssemblerMIPS32 &) = delete; |
| 36 | 36 |
| 37 public: | 37 public: |
| 38 explicit AssemblerMIPS32(GlobalContext *Ctx, bool use_far_branches = false) | 38 explicit AssemblerMIPS32(bool use_far_branches = false) |
| 39 : Assembler(Asm_MIPS32, Ctx) { | 39 : Assembler(Asm_MIPS32) { |
| 40 // This mode is only needed and implemented for MIPS32 and ARM. | 40 // This mode is only needed and implemented for MIPS32 and ARM. |
| 41 assert(!use_far_branches); | 41 assert(!use_far_branches); |
| 42 (void)use_far_branches; | 42 (void)use_far_branches; |
| 43 } | 43 } |
| 44 ~AssemblerMIPS32() override = default; | 44 ~AssemblerMIPS32() override = default; |
| 45 | 45 |
| 46 void alignFunction() override { | 46 void alignFunction() override { |
| 47 llvm::report_fatal_error("Not yet implemented."); | 47 llvm::report_fatal_error("Not yet implemented."); |
| 48 } | 48 } |
| 49 | 49 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 78 | 78 |
| 79 static bool classof(const Assembler *Asm) { | 79 static bool classof(const Assembler *Asm) { |
| 80 return Asm->getKind() == Asm_MIPS32; | 80 return Asm->getKind() == Asm_MIPS32; |
| 81 } | 81 } |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // end of namespace MIPS32 | 84 } // end of namespace MIPS32 |
| 85 } // end of namespace Ice | 85 } // end of namespace Ice |
| 86 | 86 |
| 87 #endif // SUBZERO_SRC_ICEASSEMBLERMIPS32_H | 87 #endif // SUBZERO_SRC_ICEASSEMBLERMIPS32_H |
| OLD | NEW |