Path: blob/main/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/MipsMCNaCl.h
35294 views
//===-- MipsMCNaCl.h - NaCl-related declarations --------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCNACL_H9#define LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCNACL_H1011#include "llvm/MC/MCELFStreamer.h"12#include "llvm/Support/Alignment.h"1314namespace llvm {1516// NaCl MIPS sandbox's instruction bundle size.17static const Align MIPS_NACL_BUNDLE_ALIGN = Align(16);1819bool isBasePlusOffsetMemoryAccess(unsigned Opcode, unsigned *AddrIdx,20bool *IsStore = nullptr);21bool baseRegNeedsLoadStoreMask(unsigned Reg);2223// This function creates an MCELFStreamer for Mips NaCl.24MCELFStreamer *25createMipsNaClELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,26std::unique_ptr<MCObjectWriter> OW,27std::unique_ptr<MCCodeEmitter> Emitter);28}2930#endif313233