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