Chromium Code Reviews| Index: src/assembler_arm32.h |
| diff --git a/src/assembler_arm32.h b/src/assembler_arm32.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9484d15084d9a9b234001e0f07698996bbf30eb2 |
| --- /dev/null |
| +++ b/src/assembler_arm32.h |
| @@ -0,0 +1,68 @@ |
| +//===- 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.
|
| +// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| +// for details. All rights reserved. Use of this source code is governed by a |
| +// BSD-style license that can be found in the LICENSE file. |
| +// |
| +// Modified by the Subzero authors. |
| +// |
| +//===----------------------------------------------------------------------===// |
| +// |
| +// The Subzero Code Generator |
| +// |
| +// This file is distributed under the University of Illinois Open Source |
| +// License. See LICENSE.TXT for details. |
| +// |
| +//===----------------------------------------------------------------------===// |
| +// |
| +// This file implements the Assembler class for ARM32. |
| +// |
| +//===----------------------------------------------------------------------===// |
| + |
| +#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.
|
| +#define SUBZERO_SRC_ASSEMBLER_ARM32_H_ |
| + |
| +#include "IceDefs.h" |
| +#include "IceFixups.h" |
| + |
| +#include "assembler.h" |
| + |
| +namespace Ice { |
| + |
| +class AssemblerARM32 : public Assembler { |
| + AssemblerARM32(const AssemblerARM32 &) = delete; |
| + AssemblerARM32 &operator=(const AssemblerARM32 &) = delete; |
| + |
| +public: |
| + explicit AssemblerARM32(bool use_far_branches = false) : Assembler() { |
| + // This mode is only needed and implemented for MIPS and ARM. |
| + assert(!use_far_branches); |
| + (void)use_far_branches; |
| + } |
| + ~AssemblerARM32() override = default; |
| + |
| + void alignFunction() override { |
| + llvm::report_fatal_error("Not yet implemented."); |
| + } |
| + |
| + SizeT getBundleAlignLog2Bytes() const override { return 4; } |
| + |
| + llvm::ArrayRef<uint8_t> getNonExecBundlePadding() const override { |
| + llvm::report_fatal_error("Not yet implemented."); |
| + } |
| + |
| + void padWithNop(intptr_t Padding) override { |
| + llvm::report_fatal_error("Not yet implemented."); |
| + } |
| + |
| + void BindCfgNodeLabel(SizeT NodeNumber) override { |
| + llvm::report_fatal_error("Not yet implemented."); |
| + } |
| + |
| + bool fixupIsPCRel(FixupKind Kind) const override { |
| + llvm::report_fatal_error("Not yet implemented."); |
| + } |
| +}; |
| + |
| +} // end of namespace Ice |
| + |
| +#endif // SUBZERO_SRC_ASSEMBLER_ARM32_H_ |