LLVM  8.0.0svn
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]
Collaboration diagram for llvm::AMDGPUTargetAsmStreamer:
Collaboration graph
[legend]

Public Member Functions

 AMDGPUTargetAsmStreamer (MCStreamer &S, formatted_raw_ostream &OS)
 
void EmitDirectiveAMDGCNTarget (StringRef Target) override
 
void EmitDirectiveHSACodeObjectVersion (uint32_t Major, uint32_t Minor) override
 
void EmitDirectiveHSACodeObjectISA (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
 
bool EmitISAVersion (StringRef IsaVersionString) override
 
bool EmitHSAMetadata (std::shared_ptr< msgpack::Node > &HSAMetadata, bool Strict) override
 
bool EmitHSAMetadata (const AMDGPU::HSAMD::Metadata &HSAMetadata) override
 
bool EmitPALMetadata (const AMDGPU::PALMD::Metadata &PALMetadata) override
 
void EmitAmdhsaKernelDescriptor (const MCSubtargetInfo &STI, StringRef KernelName, const amdhsa::kernel_descriptor_t &KernelDescriptor, uint64_t NextVGPR, uint64_t NextSGPR, bool ReserveVCC, bool ReserveFlatScr, bool ReserveXNACK) override
 
- Public Member Functions inherited from llvm::AMDGPUTargetStreamer
 AMDGPUTargetStreamer (MCStreamer &S)
 
virtual bool EmitHSAMetadataV2 (StringRef HSAMetadataString)
 
virtual bool EmitHSAMetadataV3 (StringRef HSAMetadataString)
 
- 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, raw_ostream &OS, const MCInst &Inst, const MCSubtargetInfo &STI)
 
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 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::MCTargetStreamer
MCStreamerStreamer
 

Detailed Description

Definition at line 87 of file AMDGPUTargetStreamer.h.

Constructor & Destructor Documentation

◆ AMDGPUTargetAsmStreamer()

AMDGPUTargetAsmStreamer::AMDGPUTargetAsmStreamer ( MCStreamer S,
formatted_raw_ostream OS 
)

Definition at line 156 of file AMDGPUTargetStreamer.cpp.

Member Function Documentation

◆ EmitAMDGPUSymbolType()

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

◆ 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,
bool  ReserveXNACK 
)
overridevirtual

◆ EmitAMDKernelCodeT()

void AMDGPUTargetAsmStreamer::EmitAMDKernelCodeT ( const amd_kernel_code_t Header)
overridevirtual

Implements llvm::AMDGPUTargetStreamer.

Definition at line 183 of file AMDGPUTargetStreamer.cpp.

References llvm::dumpAmdKernelCode().

◆ EmitDirectiveAMDGCNTarget()

void AMDGPUTargetAsmStreamer::EmitDirectiveAMDGCNTarget ( StringRef  Target)
overridevirtual

Implements llvm::AMDGPUTargetStreamer.

Definition at line 160 of file AMDGPUTargetStreamer.cpp.

◆ EmitDirectiveHSACodeObjectISA()

void AMDGPUTargetAsmStreamer::EmitDirectiveHSACodeObjectISA ( uint32_t  Major,
uint32_t  Minor,
uint32_t  Stepping,
StringRef  VendorName,
StringRef  ArchName 
)
overridevirtual

Implements llvm::AMDGPUTargetStreamer.

Definition at line 171 of file AMDGPUTargetStreamer.cpp.

◆ EmitDirectiveHSACodeObjectVersion()

void AMDGPUTargetAsmStreamer::EmitDirectiveHSACodeObjectVersion ( uint32_t  Major,
uint32_t  Minor 
)
overridevirtual

Implements llvm::AMDGPUTargetStreamer.

Definition at line 164 of file AMDGPUTargetStreamer.cpp.

◆ EmitHSAMetadata() [1/2]

bool AMDGPUTargetAsmStreamer::EmitHSAMetadata ( std::shared_ptr< msgpack::Node > &  HSAMetadata,
bool  Strict 
)
overridevirtual

◆ EmitHSAMetadata() [2/2]

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

◆ EmitISAVersion()

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

Implements llvm::AMDGPUTargetStreamer.

Definition at line 199 of file AMDGPUTargetStreamer.cpp.

◆ EmitPALMetadata()

bool AMDGPUTargetAsmStreamer::EmitPALMetadata ( const AMDGPU::PALMD::Metadata PALMetadata)
overridevirtual
Returns
True on success, false on failure.

Implements llvm::AMDGPUTargetStreamer.

Definition at line 233 of file AMDGPUTargetStreamer.cpp.

References llvm::AMDGPU::PALMD::AssemblerDirective, and llvm::wasm::toString().


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