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

Side by Side Diff: src/IceAssemblerARM32.h

Issue 1211863004: Enables llvm dyn_cast for Assemblers. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 5 years, 5 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/IceAssembler.h ('k') | src/IceAssemblerMIPS32.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/IceAssemblerARM32.h - Assembler for ARM32 ----*- C++ -*-===// 1 //===- subzero/src/IceAssemblerARM32.h - Assembler for ARM32 ----*- 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 16 matching lines...) Expand all
27 #include "IceFixups.h" 27 #include "IceFixups.h"
28 28
29 namespace Ice { 29 namespace Ice {
30 namespace ARM32 { 30 namespace ARM32 {
31 31
32 class AssemblerARM32 : public Assembler { 32 class AssemblerARM32 : public Assembler {
33 AssemblerARM32(const AssemblerARM32 &) = delete; 33 AssemblerARM32(const AssemblerARM32 &) = delete;
34 AssemblerARM32 &operator=(const AssemblerARM32 &) = delete; 34 AssemblerARM32 &operator=(const AssemblerARM32 &) = delete;
35 35
36 public: 36 public:
37 explicit AssemblerARM32(bool use_far_branches = false) : Assembler() { 37 explicit AssemblerARM32(bool use_far_branches = false)
38 : Assembler(Asm_ARM32) {
38 // This mode is only needed and implemented for MIPS and ARM. 39 // This mode is only needed and implemented for MIPS and ARM.
39 assert(!use_far_branches); 40 assert(!use_far_branches);
40 (void)use_far_branches; 41 (void)use_far_branches;
41 } 42 }
42 ~AssemblerARM32() override = default; 43 ~AssemblerARM32() override = default;
43 44
44 void alignFunction() override { llvm_unreachable("Not yet implemented."); } 45 void alignFunction() override { llvm_unreachable("Not yet implemented."); }
45 46
46 SizeT getBundleAlignLog2Bytes() const override { return 4; } 47 SizeT getBundleAlignLog2Bytes() const override { return 4; }
47 48
(...skipping 13 matching lines...) Expand all
61 62
62 void bindCfgNodeLabel(SizeT NodeNumber) override { 63 void bindCfgNodeLabel(SizeT NodeNumber) override {
63 (void)NodeNumber; 64 (void)NodeNumber;
64 llvm_unreachable("Not yet implemented."); 65 llvm_unreachable("Not yet implemented.");
65 } 66 }
66 67
67 bool fixupIsPCRel(FixupKind Kind) const override { 68 bool fixupIsPCRel(FixupKind Kind) const override {
68 (void)Kind; 69 (void)Kind;
69 llvm_unreachable("Not yet implemented."); 70 llvm_unreachable("Not yet implemented.");
70 } 71 }
72
73 static bool classof(const Assembler *Asm) {
74 return Asm->getKind() == Asm_ARM32;
75 }
71 }; 76 };
72 77
73 } // end of namespace ARM32 78 } // end of namespace ARM32
74 } // end of namespace Ice 79 } // end of namespace Ice
75 80
76 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H 81 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H
OLDNEW
« no previous file with comments | « src/IceAssembler.h ('k') | src/IceAssemblerMIPS32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698