Revert r354244 "[DAGCombiner] Eliminate dead stores to stack."
[llvm-complete.git] / lib / Target / Mips / MCTargetDesc / MipsMCNaCl.h
blobad5aff6552f64a349645970d650ec6ad902eb9ec
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"
14 namespace llvm {
16 // Log2 of the NaCl MIPS sandbox's instruction bundle size.
17 static const unsigned MIPS_NACL_BUNDLE_ALIGN = 4u;
19 bool isBasePlusOffsetMemoryAccess(unsigned Opcode, unsigned *AddrIdx,
20 bool *IsStore = nullptr);
21 bool baseRegNeedsLoadStoreMask(unsigned Reg);
23 // This function creates an MCELFStreamer for Mips NaCl.
24 MCELFStreamer *createMipsNaClELFStreamer(MCContext &Context,
25 std::unique_ptr<MCAsmBackend> TAB,
26 std::unique_ptr<MCObjectWriter> OW,
27 std::unique_ptr<MCCodeEmitter> Emitter,
28 bool RelaxAll);
31 #endif