LLVM 19.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
14#include "llvm/MC/MCInstrInfo.h"
15#include <cstdint>
16#include <memory>
17
18namespace llvm {
19
21 std::unique_ptr<MCInstrInfo> MCII;
22
23public:
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 Align ByteAlignment, unsigned AccessSize);
38 Align ByteAlignment, unsigned AccessSize);
39};
40
42 std::unique_ptr<MCAsmBackend> MAB,
43 std::unique_ptr<MCObjectWriter> OW,
44 std::unique_ptr<MCCodeEmitter> CE);
45
46} // end namespace llvm
47
48#endif // LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCELFSTREAMER_H
dxil DXContainer Global Emitter
uint64_t Size
LLVMContext & Context
void HexagonMCEmitLocalCommonSymbol(MCSymbol *Symbol, uint64_t Size, Align ByteAlignment, unsigned AccessSize)
void HexagonMCEmitCommonSymbol(MCSymbol *Symbol, uint64_t Size, Align ByteAlignment, unsigned AccessSize)
void emitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI) override
Emit the given Instruction into the current section.
void EmitSymbol(const MCInst &Inst)
Context object for machine code objects.
Definition: MCContext.h:81
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:184
Streaming machine code generation interface.
Definition: MCStreamer.h:212
Generic base class for all target subtargets.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:40
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
MCStreamer * createHexagonELFStreamer(Triple const &TT, MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > CE)
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition: Alignment.h:39