1139804Simp//===-- MipsMCNaCl.h - NaCl-related declarations --------------------------===//
2185435Sbz//
3185435Sbz// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4191673Sjamie// See https://llvm.org/LICENSE.txt for license information.
5185435Sbz// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6190466Sjamie//
7185404Sbz//===----------------------------------------------------------------------===//
8185404Sbz
9185404Sbz#ifndef LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCNACL_H
10185404Sbz#define LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCNACL_H
11185404Sbz
12185404Sbz#include "llvm/MC/MCELFStreamer.h"
13185404Sbz#include "llvm/Support/Alignment.h"
14185404Sbz
15185404Sbznamespace llvm {
16185404Sbz
17185404Sbz// NaCl MIPS sandbox's instruction bundle size.
18185404Sbzstatic const Align MIPS_NACL_BUNDLE_ALIGN = Align(16);
19185404Sbz
20185404Sbzbool isBasePlusOffsetMemoryAccess(unsigned Opcode, unsigned *AddrIdx,
21185404Sbz                                  bool *IsStore = nullptr);
22185404Sbzbool baseRegNeedsLoadStoreMask(unsigned Reg);
23185404Sbz
24185404Sbz// This function creates an MCELFStreamer for Mips NaCl.
25185404SbzMCELFStreamer *createMipsNaClELFStreamer(MCContext &Context,
26185404Sbz                                         std::unique_ptr<MCAsmBackend> TAB,
2746197Sphk                                         std::unique_ptr<MCObjectWriter> OW,
2846155Sphk                                         std::unique_ptr<MCCodeEmitter> Emitter,
29116182Sobrien                                         bool RelaxAll);
30116182Sobrien}
31116182Sobrien
32193066Sjamie#endif
33185435Sbz