LLVM 19.0.0git
MCGOFFStreamer.h
Go to the documentation of this file.
1//===- MCGOFFStreamer.h - MCStreamer GOFF Object File Interface--*- 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#ifndef LLVM_MC_MCGOFFSTREAMER_H
10#define LLVM_MC_MCGOFFSTREAMER_H
11
14
15namespace llvm {
16
18public:
19 MCGOFFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
20 std::unique_ptr<MCObjectWriter> OW,
21 std::unique_ptr<MCCodeEmitter> Emitter)
22 : MCObjectStreamer(Context, std::move(MAB), std::move(OW),
23 std::move(Emitter)) {}
24
25 ~MCGOFFStreamer() override;
26
28 return false;
29 }
31 Align ByteAlignment) override {}
32 void emitInstToData(const MCInst &Inst, const MCSubtargetInfo &) override {}
33 void emitZerofill(MCSection *Section, MCSymbol *Symbol = nullptr,
34 uint64_t Size = 0, Align ByteAlignment = Align(1),
35 SMLoc Loc = SMLoc()) override {}
36};
37
38} // end namespace llvm
39
40#endif
dxil DXContainer Global Emitter
uint64_t Size
LLVMContext & Context
Context object for machine code objects.
Definition: MCContext.h:76
void emitZerofill(MCSection *Section, MCSymbol *Symbol=nullptr, uint64_t Size=0, Align ByteAlignment=Align(1), SMLoc Loc=SMLoc()) override
Emit the zerofill section and an optional symbol.
void emitInstToData(const MCInst &Inst, const MCSubtargetInfo &) override
bool emitSymbolAttribute(MCSymbol *Symbol, MCSymbolAttr Attribute) override
Add the given Attribute to Symbol.
MCGOFFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
void emitCommonSymbol(MCSymbol *Symbol, uint64_t Size, Align ByteAlignment) override
Emit a common symbol.
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:184
Streaming object file generation interface.
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition: MCSection.h:39
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
Represents a location in source code.
Definition: SMLoc.h:23
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Definition: STLExtras.h:1858
MCSymbolAttr
Definition: MCDirectives.h:18
Implement std::hash so that hash_code can be used in STL containers.
Definition: BitVector.h:858
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition: Alignment.h:39