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

Side by Side Diff: src/IceAssemblerX8664.h

Issue 1199043006: Subzero. Adds x86-64 to the list of supported Subzero targets. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes unused variable warnings. 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 | « Makefile.standalone ('k') | src/IceAssemblerX8664.cpp » ('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/IceAssemberX8664.h - Assembler for x86-64 ----*- C++ -*-===// 1 //===- subzero/src/IceAssemblerX8664.h - Assembler for x86-64 -*- C++ -*---===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file implements the Assembler class for x86-64.h. 10 // This file implements the Assembler class for x86-64.
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 #ifndef SUBZERO_SRC_ICEASSEMBLERX8664_H 14 #ifndef SUBZERO_SRC_ICEASSEMBLERX8664_H
15 #define SUBZERO_SRC_ICEASSEMBLERX8664_H 15 #define SUBZERO_SRC_ICEASSEMBLERX8664_H
16 16
17 #include "IceAssembler.h" 17 #include "IceAssembler.h"
18 #include "IceDefs.h"
18 19
19 namespace Ice { 20 namespace Ice {
20 namespace X8664 { 21 namespace X8664 {
21 22
22 class AssemblerX8664 final : public Assembler { 23 class AssemblerX8664 final : public Assembler {
23 AssemblerX8664(const AssemblerX8664 &) = delete; 24 AssemblerX8664(const AssemblerX8664 &) = delete;
24 AssemblerX8664 &operator=(const AssemblerX8664 &) = delete; 25 AssemblerX8664 &operator=(const AssemblerX8664 &) = delete;
25 26
26 public: 27 public:
27 explicit AssemblerX8664(bool use_far_branches = false) : Assembler() { 28 explicit AssemblerX8664(bool use_far_branches = false) : Assembler() {
29 assert(!use_far_branches);
30 (void)use_far_branches;
28 llvm::report_fatal_error("Not yet implemented"); 31 llvm::report_fatal_error("Not yet implemented");
29 } 32 }
30 33
31 void alignFunction() override { 34 ~AssemblerX8664() override = default;
32 llvm::report_fatal_error("Not yet implemented");
33 }
34 35
35 void padWithNop(intptr_t Padding) override { 36 void alignFunction() override;
36 llvm::report_fatal_error("Not yet implemented"); 37 void padWithNop(intptr_t Padding) override;
37 } 38 SizeT getBundleAlignLog2Bytes() const override;
38 39 const char *getNonExecPadDirective() const override;
39 SizeT getBundleAlignLog2Bytes() const override { 40 llvm::ArrayRef<uint8_t> getNonExecBundlePadding() const override;
40 llvm::report_fatal_error("Not yet implemented"); 41 void bindCfgNodeLabel(SizeT NodeNumber) override;
41 } 42 bool fixupIsPCRel(FixupKind Kind) const override;
42
43 const char *getNonExecPadDirective() const override {
44 llvm::report_fatal_error("Not yet implemented");
45 }
46
47 llvm::ArrayRef<uint8_t> getNonExecBundlePadding() const override {
48 llvm::report_fatal_error("Not yet implemented");
49 }
50
51 void bindCfgNodeLabel(SizeT NodeNumber) override {
52 llvm::report_fatal_error("Not yet implemented");
53 }
54
55 bool fixupIsPCRel(FixupKind Kind) const override {
56 llvm::report_fatal_error("Not yet implemented");
57 }
58 }; 43 };
59 44
60 } // end of namespace X8664 45 } // end of namespace X8664
61 } // end of namespace Ice 46 } // end of namespace Ice
62 47
63 #endif // SUBZERO_SRC_ICEASSEMBLERX8664_H 48 #endif // SUBZERO_SRC_ICEASSEMBLERX8664_H
OLDNEW
« no previous file with comments | « Makefile.standalone ('k') | src/IceAssemblerX8664.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698