LLVM 20.0.0git
MCXCOFFStreamer.h
Go to the documentation of this file.
1//===- MCXCOFFObjectStreamer.h - MCStreamer XCOFF Object File Interface ---===//
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_MCXCOFFSTREAMER_H
10#define LLVM_MC_MCXCOFFSTREAMER_H
11
13
14namespace llvm {
15class XCOFFObjectWriter;
16
18public:
19 MCXCOFFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
20 std::unique_ptr<MCObjectWriter> OW,
21 std::unique_ptr<MCCodeEmitter> Emitter);
22
24
25 bool emitSymbolAttribute(MCSymbol *Symbol, MCSymbolAttr Attribute) override;
27 Align ByteAlignment) override;
28 void emitZerofill(MCSection *Section, MCSymbol *Symbol = nullptr,
29 uint64_t Size = 0, Align ByteAlignment = Align(1),
30 SMLoc Loc = SMLoc()) override;
31 void emitInstToData(const MCInst &Inst, const MCSubtargetInfo &) override;
33 MCSymbol *CsectSym, Align Alignment) override;
36 MCSymbolAttr Visibility) override;
37 void emitXCOFFRefDirective(const MCSymbol *Symbol) override;
39 StringRef Rename) override;
40 void emitXCOFFExceptDirective(const MCSymbol *Symbol, const MCSymbol *Trap,
41 unsigned Lang, unsigned Reason,
42 unsigned FunctionSize, bool hasDebug) override;
44};
45
46} // end namespace llvm
47
48#endif // LLVM_MC_MCXCOFFSTREAMER_H
dxil DXContainer Global Emitter
DXIL Finalize Linkage
std::string Name
uint64_t Size
Context object for machine code objects.
Definition: MCContext.h:83
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:185
Streaming object file generation interface.
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition: MCSection.h:36
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:41
void emitCommonSymbol(MCSymbol *Symbol, uint64_t Size, Align ByteAlignment) override
Emit a common symbol.
XCOFFObjectWriter & getWriter()
void emitXCOFFLocalCommonSymbol(MCSymbol *LabelSym, uint64_t Size, MCSymbol *CsectSym, Align Alignment) override
Emits an lcomm directive with XCOFF csect information.
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
void emitXCOFFRefDirective(const MCSymbol *Symbol) override
Emit a XCOFF .ref directive which creates R_REF type entry in the relocation table for one or more sy...
void emitXCOFFExceptDirective(const MCSymbol *Symbol, const MCSymbol *Trap, unsigned Lang, unsigned Reason, unsigned FunctionSize, bool hasDebug) override
Emit an XCOFF .except directive which adds information about a trap instruction to the object file ex...
void emitXCOFFRenameDirective(const MCSymbol *Name, StringRef Rename) override
Emit a XCOFF .rename directive which creates a synonym for an illegal or undesirable name.
void emitXCOFFCInfoSym(StringRef Name, StringRef Metadata) override
Emit a C_INFO symbol with XCOFF embedded metadata to the .info section.
void emitXCOFFSymbolLinkageWithVisibility(MCSymbol *Symbol, MCSymbolAttr Linkage, MCSymbolAttr Visibility) override
Emit a symbol's linkage and visibility with a linkage directive for XCOFF.
bool emitSymbolAttribute(MCSymbol *Symbol, MCSymbolAttr Attribute) override
Add the given Attribute to Symbol.
Root of the metadata hierarchy.
Definition: Metadata.h:62
Represents a location in source code.
Definition: SMLoc.h:23
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:51
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
MCSymbolAttr
Definition: MCDirectives.h:18
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition: Alignment.h:39