2014-02-28 10:00:38 +00:00
|
|
|
//===-- MipsMCNaCl.h - NaCl-related declarations --------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-13 16:26:38 +00:00
|
|
|
#ifndef LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCNACL_H
|
|
|
|
#define LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCNACL_H
|
2014-02-28 10:00:38 +00:00
|
|
|
|
|
|
|
#include "llvm/MC/MCELFStreamer.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
// Log2 of the NaCl MIPS sandbox's instruction bundle size.
|
|
|
|
static const unsigned MIPS_NACL_BUNDLE_ALIGN = 4u;
|
|
|
|
|
2014-03-10 20:34:23 +00:00
|
|
|
bool isBasePlusOffsetMemoryAccess(unsigned Opcode, unsigned *AddrIdx,
|
2014-04-28 04:05:08 +00:00
|
|
|
bool *IsStore = nullptr);
|
2014-03-10 20:34:23 +00:00
|
|
|
bool baseRegNeedsLoadStoreMask(unsigned Reg);
|
|
|
|
|
2014-02-28 10:00:38 +00:00
|
|
|
// This function creates an MCELFStreamer for Mips NaCl.
|
|
|
|
MCELFStreamer *createMipsNaClELFStreamer(MCContext &Context, MCAsmBackend &TAB,
|
|
|
|
raw_ostream &OS,
|
|
|
|
MCCodeEmitter *Emitter,
|
2014-03-27 11:52:20 +00:00
|
|
|
const MCSubtargetInfo &STI,
|
2014-02-28 10:00:38 +00:00
|
|
|
bool RelaxAll, bool NoExecStack);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|