LLVM  14.0.0git
HexagonMCELFStreamer.h
Go to the documentation of this file.
1 //===- HexagonMCELFStreamer.h - Hexagon subclass of MCElfStreamer ---------===//
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 #ifndef LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCELFSTREAMER_H
10 #define LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCELFSTREAMER_H
11 
13 #include "llvm/MC/MCELFStreamer.h"
14 #include "llvm/MC/MCInstrInfo.h"
15 #include <cstdint>
16 #include <memory>
17 
18 namespace llvm {
19 
21  std::unique_ptr<MCInstrInfo> MCII;
22 
23 public:
24  HexagonMCELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
25  std::unique_ptr<MCObjectWriter> OW,
26  std::unique_ptr<MCCodeEmitter> Emitter);
27 
28  HexagonMCELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
29  std::unique_ptr<MCObjectWriter> OW,
30  std::unique_ptr<MCCodeEmitter> Emitter,
31  MCAssembler *Assembler);
32 
33  void emitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI) override;
34  void EmitSymbol(const MCInst &Inst);
36  unsigned ByteAlignment,
37  unsigned AccessSize);
39  unsigned ByteAlignment, unsigned AccessSize);
40 };
41 
43  std::unique_ptr<MCAsmBackend> MAB,
44  std::unique_ptr<MCObjectWriter> OW,
45  std::unique_ptr<MCCodeEmitter> CE);
46 
47 } // end namespace llvm
48 
49 #endif // LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCELFSTREAMER_H
llvm::Check::Size
@ Size
Definition: FileCheck.h:73
HexagonMCTargetDesc.h
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:41
llvm::HexagonMCELFStreamer::emitInstruction
void emitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI) override
Emit the given Instruction into the current section.
Definition: HexagonMCELFStreamer.cpp:62
llvm::MCContext
Context object for machine code objects.
Definition: MCContext.h:72
llvm::Triple
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:45
llvm::MCInst
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:184
MCELFStreamer.h
Context
LLVMContext & Context
Definition: NVVMIntrRange.cpp:66
llvm::MCStreamer
Streaming machine code generation interface.
Definition: MCStreamer.h:199
llvm::createHexagonELFStreamer
MCStreamer * createHexagonELFStreamer(Triple const &TT, MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > CE)
Definition: HexagonMCELFStreamer.cpp:153
llvm::MCELFStreamer
Definition: MCELFStreamer.h:24
MCInstrInfo.h
llvm::MCAssembler
Definition: MCAssembler.h:60
uint64_t
llvm::HexagonMCELFStreamer::HexagonMCELFStreamer
HexagonMCELFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > TAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
Definition: HexagonMCELFStreamer.cpp:49
llvm::HexagonMCELFStreamer
Definition: HexagonMCELFStreamer.h:20
llvm::LCOMM::ByteAlignment
@ ByteAlignment
Definition: MCAsmInfo.h:50
llvm::HexagonMCELFStreamer::EmitSymbol
void EmitSymbol(const MCInst &Inst)
Definition: HexagonMCELFStreamer.cpp:78
llvm::ARMBuildAttrs::Symbol
@ Symbol
Definition: ARMBuildAttributes.h:79
llvm::HexagonMCELFStreamer::HexagonMCEmitLocalCommonSymbol
void HexagonMCEmitLocalCommonSymbol(MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment, unsigned AccessSize)
Definition: HexagonMCELFStreamer.cpp:140
llvm::MCSubtargetInfo
Generic base class for all target subtargets.
Definition: MCSubtargetInfo.h:75
llvm::HexagonMCELFStreamer::HexagonMCEmitCommonSymbol
void HexagonMCEmitCommonSymbol(MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment, unsigned AccessSize)
Definition: HexagonMCELFStreamer.cpp:88