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

Side by Side Diff: src/assembler_arm32.h

Issue 1075363002: Add a basic TargetARM32 skeleton which knows nothing. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: typos Created 5 years, 8 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
(Empty)
1 //===- subzero/src/assembler_arm32.h - Assembler for ARM32 ------*- C++ -*-===//
Jim Stichnoth 2015/04/17 19:16:02 Blank line after the first line, to match other .h
jvoung (off chromium) 2015/04/21 17:05:30 Done.
2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file.
5 //
6 // Modified by the Subzero authors.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // The Subzero Code Generator
11 //
12 // This file is distributed under the University of Illinois Open Source
13 // License. See LICENSE.TXT for details.
14 //
15 //===----------------------------------------------------------------------===//
16 //
17 // This file implements the Assembler class for ARM32.
18 //
19 //===----------------------------------------------------------------------===//
20
21 #ifndef SUBZERO_SRC_ASSEMBLER_ARM32_H_
Jim Stichnoth 2015/04/17 19:16:02 Trailing underscore or not? assembler_ia32.h uses
jvoung (off chromium) 2015/04/21 17:05:30 Done.
22 #define SUBZERO_SRC_ASSEMBLER_ARM32_H_
23
24 #include "IceDefs.h"
25 #include "IceFixups.h"
26
27 #include "assembler.h"
28
29 namespace Ice {
30
31 class AssemblerARM32 : public Assembler {
32 AssemblerARM32(const AssemblerARM32 &) = delete;
33 AssemblerARM32 &operator=(const AssemblerARM32 &) = delete;
34
35 public:
36 explicit AssemblerARM32(bool use_far_branches = false) : Assembler() {
37 // This mode is only needed and implemented for MIPS and ARM.
38 assert(!use_far_branches);
39 (void)use_far_branches;
40 }
41 ~AssemblerARM32() override = default;
42
43 void alignFunction() override {
44 llvm::report_fatal_error("Not yet implemented.");
45 }
46
47 SizeT getBundleAlignLog2Bytes() const override { return 4; }
48
49 llvm::ArrayRef<uint8_t> getNonExecBundlePadding() const override {
50 llvm::report_fatal_error("Not yet implemented.");
51 }
52
53 void padWithNop(intptr_t Padding) override {
54 llvm::report_fatal_error("Not yet implemented.");
55 }
56
57 void BindCfgNodeLabel(SizeT NodeNumber) override {
58 llvm::report_fatal_error("Not yet implemented.");
59 }
60
61 bool fixupIsPCRel(FixupKind Kind) const override {
62 llvm::report_fatal_error("Not yet implemented.");
63 }
64 };
65
66 } // end of namespace Ice
67
68 #endif // SUBZERO_SRC_ASSEMBLER_ARM32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698