LLVM  14.0.0git
PPCXCOFFStreamer.h
Go to the documentation of this file.
1 //===- PPCXCOFFStreamer.h - XCOFF Object Output -----------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This is a custom MCXCOFFStreamer for PowerPC.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_PPC_MCXCOFFSTREAMER_PPCXCOFFSTREAMER_H
15 #define LLVM_LIB_TARGET_PPC_MCXCOFFSTREAMER_PPCXCOFFSTREAMER_H
16 
18 
19 namespace llvm {
20 
22 public:
23  PPCXCOFFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
24  std::unique_ptr<MCObjectWriter> OW,
25  std::unique_ptr<MCCodeEmitter> Emitter);
26 
27  void emitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI) override;
28 
29 private:
30  void emitPrefixedInstruction(const MCInst &Inst, const MCSubtargetInfo &STI);
31 };
32 
34  std::unique_ptr<MCAsmBackend> MAB,
35  std::unique_ptr<MCObjectWriter> OW,
36  std::unique_ptr<MCCodeEmitter> Emitter);
37 } // end namespace llvm
38 
39 #endif // LLVM_LIB_TARGET_PPC_MCXCOFFSTREAMER_PPCXCOFFSTREAMER_H
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
llvm::MCContext
Context object for machine code objects.
Definition: MCContext.h:72
llvm::MCInst
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:184
llvm::createPPCXCOFFStreamer
MCXCOFFStreamer * createPPCXCOFFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
Definition: PPCXCOFFStreamer.cpp:72
Context
LLVMContext & Context
Definition: NVVMIntrRange.cpp:66
llvm::PPCXCOFFStreamer
Definition: PPCXCOFFStreamer.h:21
llvm::MCXCOFFStreamer
Definition: MCXCOFFStreamer.h:16
llvm::PPCXCOFFStreamer::PPCXCOFFStreamer
PPCXCOFFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
Definition: PPCXCOFFStreamer.cpp:34
MCXCOFFStreamer.h
llvm::PPCXCOFFStreamer::emitInstruction
void emitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI) override
Emit the given Instruction into the current section.
Definition: PPCXCOFFStreamer.cpp:58
llvm::MCSubtargetInfo
Generic base class for all target subtargets.
Definition: MCSubtargetInfo.h:75