LLVM 20.0.0git
Public Member Functions | List of all members
llvm::AMDGPUTargetAsmStreamer Class Referencefinal

#include "Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.h"

Inheritance diagram for llvm::AMDGPUTargetAsmStreamer:
Inheritance graph
[legend]

Public Member Functions

 AMDGPUTargetAsmStreamer (MCStreamer &S, formatted_raw_ostream &OS)
 
void finish () override
 
void EmitDirectiveAMDGCNTarget () override
 
void EmitDirectiveAMDHSACodeObjectVersion (unsigned COV) override
 
void EmitAMDKernelCodeT (AMDGPU::AMDGPUMCKernelCodeT &Header) override
 
void EmitAMDGPUSymbolType (StringRef SymbolName, unsigned Type) override
 
void emitAMDGPULDS (MCSymbol *Sym, unsigned Size, Align Alignment) override
 
bool EmitISAVersion () override
 
bool EmitHSAMetadata (msgpack::Document &HSAMetadata, bool Strict) override
 
bool EmitCodeEnd (const MCSubtargetInfo &STI) override
 
bool EmitKernargPreloadHeader (const MCSubtargetInfo &STI, bool TrapEnabled) override
 
void EmitAmdhsaKernelDescriptor (const MCSubtargetInfo &STI, StringRef KernelName, const AMDGPU::MCKernelDescriptor &KernelDescriptor, const MCExpr *NextVGPR, const MCExpr *NextSGPR, const MCExpr *ReserveVCC, const MCExpr *ReserveFlatScr) override
 
- Public Member Functions inherited from llvm::AMDGPUTargetStreamer
 AMDGPUTargetStreamer (MCStreamer &S)
 
AMDGPUPALMetadatagetPALMetadata ()
 
virtual void EmitDirectiveAMDGCNTarget ()
 
virtual void EmitDirectiveAMDHSACodeObjectVersion (unsigned COV)
 
virtual void EmitAMDKernelCodeT (AMDGPU::AMDGPUMCKernelCodeT &Header)
 
virtual void EmitAMDGPUSymbolType (StringRef SymbolName, unsigned Type)
 
virtual void emitAMDGPULDS (MCSymbol *Symbol, unsigned Size, Align Alignment)
 
virtual bool EmitISAVersion ()
 
virtual bool EmitHSAMetadataV3 (StringRef HSAMetadataString)
 
virtual bool EmitHSAMetadata (msgpack::Document &HSAMetadata, bool Strict)
 Emit HSA Metadata.
 
virtual bool EmitHSAMetadata (const AMDGPU::HSAMD::Metadata &HSAMetadata)
 
virtual bool EmitCodeEnd (const MCSubtargetInfo &STI)
 
virtual bool EmitKernargPreloadHeader (const MCSubtargetInfo &STI, bool TrapEnabled)
 
virtual void EmitAmdhsaKernelDescriptor (const MCSubtargetInfo &STI, StringRef KernelName, const AMDGPU::MCKernelDescriptor &KernelDescriptor, const MCExpr *NextVGPR, const MCExpr *NextSGPR, const MCExpr *ReserveVCC, const MCExpr *ReserveFlatScr)
 
const std::optional< AMDGPU::IsaInfo::AMDGPUTargetID > & getTargetID () const
 
std::optional< AMDGPU::IsaInfo::AMDGPUTargetID > & getTargetID ()
 
void initializeTargetID (const MCSubtargetInfo &STI)
 
void initializeTargetID (const MCSubtargetInfo &STI, StringRef FeatureString)
 
- Public Member Functions inherited from llvm::MCTargetStreamer
 MCTargetStreamer (MCStreamer &S)
 
virtual ~MCTargetStreamer ()
 
MCStreamergetStreamer ()
 
virtual void emitLabel (MCSymbol *Symbol)
 
virtual void emitAssignment (MCSymbol *Symbol, const MCExpr *Value)
 
virtual void prettyPrintAsm (MCInstPrinter &InstPrinter, uint64_t Address, const MCInst &Inst, const MCSubtargetInfo &STI, raw_ostream &OS)
 
virtual void emitDwarfFileDirective (StringRef Directive)
 
virtual void changeSection (const MCSection *CurSection, MCSection *Section, uint32_t SubSection, raw_ostream &OS)
 Update streamer for a new active section.
 
virtual void emitValue (const MCExpr *Value)
 
virtual void emitRawBytes (StringRef Data)
 Emit the bytes in Data into the output.
 
virtual void emitConstantPools ()
 
virtual void finish ()
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::AMDGPUTargetStreamer
static StringRef getArchNameFromElfMach (unsigned ElfMach)
 
static unsigned getElfMach (StringRef GPU)
 
- Protected Member Functions inherited from llvm::AMDGPUTargetStreamer
MCContextgetContext () const
 
- Protected Attributes inherited from llvm::AMDGPUTargetStreamer
std::optional< AMDGPU::IsaInfo::AMDGPUTargetIDTargetID
 
unsigned CodeObjectVersion
 
- Protected Attributes inherited from llvm::MCTargetStreamer
MCStreamerStreamer
 

Detailed Description

Definition at line 122 of file AMDGPUTargetStreamer.h.

Constructor & Destructor Documentation

◆ AMDGPUTargetAsmStreamer()

AMDGPUTargetAsmStreamer::AMDGPUTargetAsmStreamer ( MCStreamer S,
formatted_raw_ostream OS 
)

Definition at line 219 of file AMDGPUTargetStreamer.cpp.

Member Function Documentation

◆ emitAMDGPULDS()

void AMDGPUTargetAsmStreamer::emitAMDGPULDS ( MCSymbol Sym,
unsigned  Size,
Align  Alignment 
)
overridevirtual

Reimplemented from llvm::AMDGPUTargetStreamer.

Definition at line 262 of file AMDGPUTargetStreamer.cpp.

References Size, and llvm::Align::value().

◆ EmitAMDGPUSymbolType()

void AMDGPUTargetAsmStreamer::EmitAMDGPUSymbolType ( StringRef  SymbolName,
unsigned  Type 
)
overridevirtual

Reimplemented from llvm::AMDGPUTargetStreamer.

Definition at line 252 of file AMDGPUTargetStreamer.cpp.

References llvm_unreachable, and llvm::ELF::STT_AMDGPU_HSA_KERNEL.

◆ EmitAmdhsaKernelDescriptor()

void AMDGPUTargetAsmStreamer::EmitAmdhsaKernelDescriptor ( const MCSubtargetInfo STI,
StringRef  KernelName,
const AMDGPU::MCKernelDescriptor KernelDescriptor,
const MCExpr NextVGPR,
const MCExpr NextSGPR,
const MCExpr ReserveVCC,
const MCExpr ReserveFlatScr 
)
overridevirtual

◆ EmitAMDKernelCodeT()

void AMDGPUTargetAsmStreamer::EmitAMDKernelCodeT ( AMDGPU::AMDGPUMCKernelCodeT Header)
overridevirtual

Reimplemented from llvm::AMDGPUTargetStreamer.

Definition at line 246 of file AMDGPUTargetStreamer.cpp.

References llvm::AMDGPUTargetStreamer::getContext().

◆ EmitCodeEnd()

bool AMDGPUTargetAsmStreamer::EmitCodeEnd ( const MCSubtargetInfo STI)
overridevirtual
Returns
True on success, false on failure.

Reimplemented from llvm::AMDGPUTargetStreamer.

Definition at line 298 of file AMDGPUTargetStreamer.cpp.

References CacheLineSize, llvm::AMDGPU::isGFX11Plus(), and llvm::AMDGPU::isGFX90A().

◆ EmitDirectiveAMDGCNTarget()

void AMDGPUTargetAsmStreamer::EmitDirectiveAMDGCNTarget ( )
overridevirtual

Reimplemented from llvm::AMDGPUTargetStreamer.

Definition at line 236 of file AMDGPUTargetStreamer.cpp.

References llvm::AMDGPUTargetStreamer::getTargetID().

◆ EmitDirectiveAMDHSACodeObjectVersion()

void AMDGPUTargetAsmStreamer::EmitDirectiveAMDHSACodeObjectVersion ( unsigned  COV)
overridevirtual

◆ EmitHSAMetadata()

bool AMDGPUTargetAsmStreamer::EmitHSAMetadata ( msgpack::Document HSAMetadata,
bool  Strict 
)
overridevirtual

◆ EmitISAVersion()

bool AMDGPUTargetAsmStreamer::EmitISAVersion ( )
overridevirtual
Returns
True on success, false on failure.

Reimplemented from llvm::AMDGPUTargetStreamer.

Definition at line 268 of file AMDGPUTargetStreamer.cpp.

References llvm::AMDGPUTargetStreamer::getTargetID().

◆ EmitKernargPreloadHeader()

bool AMDGPUTargetAsmStreamer::EmitKernargPreloadHeader ( const MCSubtargetInfo STI,
bool  TrapEnabled 
)
overridevirtual
Returns
True on success, false on failure.

Reimplemented from llvm::AMDGPUTargetStreamer.

Definition at line 289 of file AMDGPUTargetStreamer.cpp.

◆ finish()

void AMDGPUTargetAsmStreamer::finish ( )
overridevirtual

The documentation for this class was generated from the following files: