LLVM  15.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
Collaboration diagram for llvm::AMDGPUTargetAsmStreamer:
Collaboration graph

Public Member Functions

 AMDGPUTargetAsmStreamer (MCStreamer &S, formatted_raw_ostream &OS)
void finish () override
void EmitDirectiveAMDGCNTarget () override
void EmitDirectiveHSACodeObjectVersion (uint32_t Major, uint32_t Minor) override
void EmitDirectiveHSACodeObjectISAV2 (uint32_t Major, uint32_t Minor, uint32_t Stepping, StringRef VendorName, StringRef ArchName) override
void EmitAMDKernelCodeT (const amd_kernel_code_t &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 EmitHSAMetadata (const AMDGPU::HSAMD::Metadata &HSAMetadata) override
bool EmitCodeEnd (const MCSubtargetInfo &STI) override
void EmitAmdhsaKernelDescriptor (const MCSubtargetInfo &STI, StringRef KernelName, const amdhsa::kernel_descriptor_t &KernelDescriptor, uint64_t NextVGPR, uint64_t NextSGPR, bool ReserveVCC, bool ReserveFlatScr) override
- Public Member Functions inherited from llvm::AMDGPUTargetStreamer
 AMDGPUTargetStreamer (MCStreamer &S)
AMDGPUPALMetadatagetPALMetadata ()
virtual bool EmitHSAMetadataV2 (StringRef HSAMetadataString)
virtual bool EmitHSAMetadataV3 (StringRef HSAMetadataString)
const Optional< AMDGPU::IsaInfo::AMDGPUTargetID > & getTargetID () const
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, const MCExpr *SubSection, raw_ostream &OS)
 Update streamer for a new active section. More...
virtual void emitValue (const MCExpr *Value)
virtual void emitRawBytes (StringRef Data)
 Emit the bytes in Data into the output. More...
virtual void emitConstantPools ()

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
Optional< AMDGPU::IsaInfo::AMDGPUTargetIDTargetID
- Protected Attributes inherited from llvm::MCTargetStreamer

Detailed Description

Definition at line 115 of file AMDGPUTargetStreamer.h.

Constructor & Destructor Documentation

◆ AMDGPUTargetAsmStreamer()

AMDGPUTargetAsmStreamer::AMDGPUTargetAsmStreamer ( MCStreamer S,
formatted_raw_ostream OS 

Definition at line 204 of file AMDGPUTargetStreamer.cpp.

Member Function Documentation


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

◆ EmitAMDGPUSymbolType()

void AMDGPUTargetAsmStreamer::EmitAMDGPUSymbolType ( StringRef  SymbolName,
unsigned  Type 

◆ EmitAmdhsaKernelDescriptor()

void AMDGPUTargetAsmStreamer::EmitAmdhsaKernelDescriptor ( const MCSubtargetInfo STI,
StringRef  KernelName,
const amdhsa::kernel_descriptor_t KernelDescriptor,
uint64_t  NextVGPR,
uint64_t  NextSGPR,
bool  ReserveVCC,
bool  ReserveFlatScr 

◆ EmitAMDKernelCodeT()

void AMDGPUTargetAsmStreamer::EmitAMDKernelCodeT ( const amd_kernel_code_t Header)

Implements llvm::AMDGPUTargetStreamer.

Definition at line 243 of file AMDGPUTargetStreamer.cpp.

References llvm::dumpAmdKernelCode().

◆ EmitCodeEnd()

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

Implements llvm::AMDGPUTargetStreamer.

Definition at line 298 of file AMDGPUTargetStreamer.cpp.

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

◆ EmitDirectiveAMDGCNTarget()

void AMDGPUTargetAsmStreamer::EmitDirectiveAMDGCNTarget ( )

◆ EmitDirectiveHSACodeObjectISAV2()

void AMDGPUTargetAsmStreamer::EmitDirectiveHSACodeObjectISAV2 ( uint32_t  Major,
uint32_t  Minor,
uint32_t  Stepping,
StringRef  VendorName,
StringRef  ArchName 

◆ EmitDirectiveHSACodeObjectVersion()

void AMDGPUTargetAsmStreamer::EmitDirectiveHSACodeObjectVersion ( uint32_t  Major,
uint32_t  Minor 

Implements llvm::AMDGPUTargetStreamer.

Definition at line 225 of file AMDGPUTargetStreamer.cpp.

◆ EmitHSAMetadata() [1/2]

bool AMDGPUTargetAsmStreamer::EmitHSAMetadata ( const AMDGPU::HSAMD::Metadata HSAMetadata)

◆ EmitHSAMetadata() [2/2]

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

◆ EmitISAVersion()

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

Implements llvm::AMDGPUTargetStreamer.

Definition at line 265 of file AMDGPUTargetStreamer.cpp.

References llvm::AMDGPUTargetStreamer::getTargetID().

◆ finish()

void AMDGPUTargetAsmStreamer::finish ( )

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