[Darwin][Driver][clang] apple-none-macho orders the resource directory after internal...
[llvm-project.git] / llvm / lib / Target / Mips / MCTargetDesc / MipsMCNaCl.h
blob2722e34b3f624691c70c73915d7365360a8d862a
1 //===-- MipsMCNaCl.h - NaCl-related declarations --------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCNACL_H
10 #define LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCNACL_H
12 #include "llvm/MC/MCELFStreamer.h"
13 #include "llvm/Support/Alignment.h"
15 namespace llvm {
17 // NaCl MIPS sandbox's instruction bundle size.
18 static const Align MIPS_NACL_BUNDLE_ALIGN = Align(16);
20 bool isBasePlusOffsetMemoryAccess(unsigned Opcode, unsigned *AddrIdx,
21 bool *IsStore = nullptr);
22 bool baseRegNeedsLoadStoreMask(unsigned Reg);
24 // This function creates an MCELFStreamer for Mips NaCl.
25 MCELFStreamer *
26 createMipsNaClELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
27 std::unique_ptr<MCObjectWriter> OW,
28 std::unique_ptr<MCCodeEmitter> Emitter);
31 #endif