LLVM  8.0.1
HexagonMCELFStreamer.h
Go to the documentation of this file.
1 //===- HexagonMCELFStreamer.h - Hexagon subclass of MCElfStreamer ---------===//
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 #ifndef LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCELFSTREAMER_H
11 #define LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCELFSTREAMER_H
12 
14 #include "llvm/MC/MCELFStreamer.h"
15 #include "llvm/MC/MCInstrInfo.h"
16 #include <cstdint>
17 #include <memory>
18 
19 namespace llvm {
20 
22  std::unique_ptr<MCInstrInfo> MCII;
23 
24 public:
25  HexagonMCELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
26  std::unique_ptr<MCObjectWriter> OW,
27  std::unique_ptr<MCCodeEmitter> Emitter);
28 
29  HexagonMCELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
30  std::unique_ptr<MCObjectWriter> OW,
31  std::unique_ptr<MCCodeEmitter> Emitter,
32  MCAssembler *Assembler);
33 
34  void EmitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI,
35  bool) override;
36  void EmitSymbol(const MCInst &Inst);
38  unsigned ByteAlignment,
39  unsigned AccessSize);
40  void HexagonMCEmitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
41  unsigned ByteAlignment, unsigned AccessSize);
42 };
43 
45  std::unique_ptr<MCAsmBackend> MAB,
46  std::unique_ptr<MCObjectWriter> OW,
47  std::unique_ptr<MCCodeEmitter> CE);
48 
49 } // end namespace llvm
50 
51 #endif // LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCELFSTREAMER_H
LLVMContext & Context
This class represents lattice values for constants.
Definition: AllocatorList.h:24
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:42
void EmitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI, bool) override
Emit the given Instruction into the current section.
Context object for machine code objects.
Definition: MCContext.h:63
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:161
Streaming machine code generation interface.
Definition: MCStreamer.h:189
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
void HexagonMCEmitLocalCommonSymbol(MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment, unsigned AccessSize)
HexagonMCELFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > TAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
void EmitSymbol(const MCInst &Inst)
Generic base class for all target subtargets.
uint32_t Size
Definition: Profile.cpp:47
MCStreamer * createHexagonELFStreamer(Triple const &TT, MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > CE)
void HexagonMCEmitCommonSymbol(MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment, unsigned AccessSize)