[RISCV] Add support for Smepmp 1.0 (#78489)
[llvm-project.git] / llvm / lib / Target / PowerPC / MCTargetDesc / PPCXCOFFStreamer.h
blob5fa35127b70b4da3526080b8358ed4e35312a4a9
1 //===- PPCXCOFFStreamer.h - XCOFF Object Output -----------------*- C++ -*-===//
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 //===----------------------------------------------------------------------===//
8 //
9 // This is a custom MCXCOFFStreamer for PowerPC.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_TARGET_PPC_MCXCOFFSTREAMER_PPCXCOFFSTREAMER_H
14 #define LLVM_LIB_TARGET_PPC_MCXCOFFSTREAMER_PPCXCOFFSTREAMER_H
16 #include "llvm/MC/MCXCOFFStreamer.h"
18 namespace llvm {
20 class PPCXCOFFStreamer : public MCXCOFFStreamer {
21 public:
22 PPCXCOFFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
23 std::unique_ptr<MCObjectWriter> OW,
24 std::unique_ptr<MCCodeEmitter> Emitter);
26 void emitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI) override;
28 private:
29 void emitPrefixedInstruction(const MCInst &Inst, const MCSubtargetInfo &STI);
32 MCXCOFFStreamer *createPPCXCOFFStreamer(MCContext &Context,
33 std::unique_ptr<MCAsmBackend> MAB,
34 std::unique_ptr<MCObjectWriter> OW,
35 std::unique_ptr<MCCodeEmitter> Emitter);
36 } // end namespace llvm
38 #endif // LLVM_LIB_TARGET_PPC_MCXCOFFSTREAMER_PPCXCOFFSTREAMER_H