Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Side by Side Diff: src/IceAssemblerMIPS32.h

Issue 1397933002: Start incorporating the ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit and add URL. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | src/IceAssemblerX8632.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(bool use_far_branches = false) 38 explicit AssemblerMIPS32(GlobalContext *Ctx, bool use_far_branches = false)
39 : Assembler(Asm_MIPS32) { 39 : Assembler(Asm_MIPS32, Ctx) {
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 29 matching lines...) Expand all
79 79
80 static bool classof(const Assembler *Asm) { 80 static bool classof(const Assembler *Asm) {
81 return Asm->getKind() == Asm_MIPS32; 81 return Asm->getKind() == Asm_MIPS32;
82 } 82 }
83 }; 83 };
84 84
85 } // end of namespace MIPS32 85 } // end of namespace MIPS32
86 } // end of namespace Ice 86 } // end of namespace Ice
87 87
88 #endif // SUBZERO_SRC_ICEASSEMBLERMIPS32_H 88 #endif // SUBZERO_SRC_ICEASSEMBLERMIPS32_H
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | src/IceAssemblerX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698