LLVM  14.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 
14 namespace llvm {
15 
17 public:
18  MCXCOFFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
19  std::unique_ptr<MCObjectWriter> OW,
20  std::unique_ptr<MCCodeEmitter> Emitter);
21 
24  unsigned ByteAlignment) override;
25  void emitZerofill(MCSection *Section, MCSymbol *Symbol = nullptr,
26  uint64_t Size = 0, unsigned ByteAlignment = 0,
27  SMLoc Loc = SMLoc()) override;
28  void emitInstToData(const MCInst &Inst, const MCSubtargetInfo &) override;
30  MCSymbol *CsectSym,
31  unsigned ByteAlign) override;
34  MCSymbolAttr Visibility) override;
36  StringRef Rename) override {
37  report_fatal_error("emitXCOFFRenameDirective is not implemented yet on "
38  "object generation path");
39  }
40 };
41 
42 } // end namespace llvm
43 
44 #endif // LLVM_MC_MCXCOFFSTREAMER_H
llvm::Check::Size
@ Size
Definition: FileCheck.h:73
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::MCXCOFFStreamer::emitXCOFFSymbolLinkageWithVisibility
void emitXCOFFSymbolLinkageWithVisibility(MCSymbol *Symbol, MCSymbolAttr Linkage, MCSymbolAttr Visibility) override
Emit a symbol's linkage and visibility with a linkage directive for XCOFF.
Definition: MCXCOFFStreamer.cpp:63
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:41
llvm::MCContext
Context object for machine code objects.
Definition: MCContext.h:72
llvm::Attribute
Definition: Attributes.h:52
llvm::MCXCOFFStreamer::emitCommonSymbol
void emitCommonSymbol(MCSymbol *Symbol, uint64_t Size, unsigned ByteAlignment) override
Emit a common symbol.
Definition: MCXCOFFStreamer.cpp:75
llvm::MCXCOFFStreamer::emitSymbolAttribute
bool emitSymbolAttribute(MCSymbol *Symbol, MCSymbolAttr Attribute) override
Add the given Attribute to Symbol.
Definition: MCXCOFFStreamer.cpp:32
llvm::MCInst
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:184
llvm::MCSymbolAttr
MCSymbolAttr
Definition: MCDirectives.h:18
llvm::MCXCOFFStreamer::emitXCOFFRenameDirective
void emitXCOFFRenameDirective(const MCSymbol *Name, StringRef Rename) override
Emit a XCOFF .rename directive which creates a synonym for an illegal or undesirable name.
Definition: MCXCOFFStreamer.h:35
Context
LLVMContext & Context
Definition: NVVMIntrRange.cpp:66
llvm::ARMBuildAttrs::Section
@ Section
Legacy Tags.
Definition: ARMBuildAttributes.h:78
MCObjectStreamer.h
llvm::MCXCOFFStreamer::emitZerofill
void emitZerofill(MCSection *Section, MCSymbol *Symbol=nullptr, uint64_t Size=0, unsigned ByteAlignment=0, SMLoc Loc=SMLoc()) override
Emit the zerofill section and an optional symbol.
Definition: MCXCOFFStreamer.cpp:92
llvm::SMLoc
Represents a location in source code.
Definition: SMLoc.h:23
llvm::MCObjectStreamer
Streaming object file generation interface.
Definition: MCObjectStreamer.h:36
llvm::report_fatal_error
void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
Definition: Error.cpp:140
llvm::MCXCOFFStreamer::MCXCOFFStreamer
MCXCOFFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
Definition: MCXCOFFStreamer.cpp:25
uint64_t
llvm::MCXCOFFStreamer::emitXCOFFLocalCommonSymbol
void emitXCOFFLocalCommonSymbol(MCSymbol *LabelSym, uint64_t Size, MCSymbol *CsectSym, unsigned ByteAlign) override
Emits an lcomm directive with XCOFF csect information.
Definition: MCXCOFFStreamer.cpp:131
llvm::MCXCOFFStreamer::emitInstToData
void emitInstToData(const MCInst &Inst, const MCSubtargetInfo &) override
Definition: MCXCOFFStreamer.cpp:98
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:58
llvm::MCSection
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition: MCSection.h:39
llvm::MCXCOFFStreamer
Definition: MCXCOFFStreamer.h:16
llvm::GraphProgram::Name
Name
Definition: GraphWriter.h:52
llvm::LCOMM::ByteAlignment
@ ByteAlignment
Definition: MCAsmInfo.h:50
llvm::ARMBuildAttrs::Symbol
@ Symbol
Definition: ARMBuildAttributes.h:79
llvm::MCSubtargetInfo
Generic base class for all target subtargets.
Definition: MCSubtargetInfo.h:75