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

Side by Side Diff: src/IceAssemblerARM32.h

Issue 1257283004: Iasm and obj lowering for advanced switch lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 4 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
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 26 matching lines...) Expand all
37 public: 37 public:
38 explicit AssemblerARM32(bool use_far_branches = false) 38 explicit AssemblerARM32(bool use_far_branches = false)
39 : Assembler(Asm_ARM32) { 39 : Assembler(Asm_ARM32) {
40 // This mode is only needed and implemented for MIPS and ARM. 40 // This mode is only needed and implemented for MIPS 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 ~AssemblerARM32() override = default; 44 ~AssemblerARM32() override = default;
45 45
46 void alignFunction() override { llvm_unreachable("Not yet implemented."); } 46 void alignFunction() override { llvm_unreachable("Not yet implemented."); }
47 void alignCfgNode() override { llvm_unreachable("Not yet implemented."); }
47 48
48 SizeT getBundleAlignLog2Bytes() const override { return 4; } 49 SizeT getBundleAlignLog2Bytes() const override { return 4; }
49 50
50 const char *getNonExecPadDirective() const override { return ".p2alignl"; } 51 const char *getNonExecPadDirective() const override { return ".p2alignl"; }
51 52
52 llvm::ArrayRef<uint8_t> getNonExecBundlePadding() const override { 53 llvm::ArrayRef<uint8_t> getNonExecBundlePadding() const override {
53 // Use a particular UDF encoding -- TRAPNaCl in LLVM: 0xE7FEDEF0 54 // Use a particular UDF encoding -- TRAPNaCl in LLVM: 0xE7FEDEF0
54 // http://llvm.org/viewvc/llvm-project?view=revision&revision=173943 55 // http://llvm.org/viewvc/llvm-project?view=revision&revision=173943
55 static const uint8_t Padding[] = {0xE7, 0xFE, 0xDE, 0xF0}; 56 static const uint8_t Padding[] = {0xE7, 0xFE, 0xDE, 0xF0};
56 return llvm::ArrayRef<uint8_t>(Padding, 4); 57 return llvm::ArrayRef<uint8_t>(Padding, 4);
57 } 58 }
58 59
59 void padWithNop(intptr_t Padding) override { 60 void padWithNop(intptr_t Padding) override {
60 (void)Padding; 61 (void)Padding;
61 llvm_unreachable("Not yet implemented."); 62 llvm_unreachable("Not yet implemented.");
62 } 63 }
63 64
65 Label *getOrCreateCfgNodeLabel(SizeT NodeNumber) override {
66 (void)NodeNumber;
67 llvm_unreachable("Not yet implemented.");
68 }
69
64 void bindCfgNodeLabel(SizeT NodeNumber) override { 70 void bindCfgNodeLabel(SizeT NodeNumber) override {
65 (void)NodeNumber; 71 (void)NodeNumber;
66 llvm_unreachable("Not yet implemented."); 72 llvm_unreachable("Not yet implemented.");
67 } 73 }
68 74
69 bool fixupIsPCRel(FixupKind Kind) const override { 75 bool fixupIsPCRel(FixupKind Kind) const override {
70 (void)Kind; 76 (void)Kind;
71 llvm_unreachable("Not yet implemented."); 77 llvm_unreachable("Not yet implemented.");
72 } 78 }
73 79
74 static bool classof(const Assembler *Asm) { 80 static bool classof(const Assembler *Asm) {
75 return Asm->getKind() == Asm_ARM32; 81 return Asm->getKind() == Asm_ARM32;
76 } 82 }
77 }; 83 };
78 84
79 } // end of namespace ARM32 85 } // end of namespace ARM32
80 } // end of namespace Ice 86 } // end of namespace Ice
81 87
82 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H 88 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698