LLVM  7.0.0svn
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
llvm::AMDGPUTargetStreamer Class Referenceabstract

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

Inheritance diagram for llvm::AMDGPUTargetStreamer:
Inheritance graph
[legend]
Collaboration diagram for llvm::AMDGPUTargetStreamer:
Collaboration graph
[legend]

Public Member Functions

 AMDGPUTargetStreamer (MCStreamer &S)
 
virtual void EmitDirectiveHSACodeObjectVersion (uint32_t Major, uint32_t Minor)=0
 
virtual void EmitDirectiveHSACodeObjectISA (uint32_t Major, uint32_t Minor, uint32_t Stepping, StringRef VendorName, StringRef ArchName)=0
 
virtual void EmitAMDKernelCodeT (const amd_kernel_code_t &Header)=0
 
virtual void EmitAMDGPUSymbolType (StringRef SymbolName, unsigned Type)=0
 
virtual bool EmitISAVersion (StringRef IsaVersionString)=0
 
virtual bool EmitHSAMetadata (StringRef HSAMetadataString)
 
virtual bool EmitHSAMetadata (const AMDGPU::HSAMD::Metadata &HSAMetadata)=0
 
virtual bool EmitPALMetadata (const AMDGPU::PALMD::Metadata &PALMetadata)=0
 
- 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 finish ()
 

Static Public Member Functions

static const chargetMachName (unsigned Mach)
 

Protected Member Functions

MCContextgetContext () const
 
unsigned getMACH (StringRef GPU) const
 

Additional Inherited Members

- Protected Attributes inherited from llvm::MCTargetStreamer
MCStreamerStreamer
 

Detailed Description

Definition at line 29 of file AMDGPUTargetStreamer.h.

Constructor & Destructor Documentation

◆ AMDGPUTargetStreamer()

llvm::AMDGPUTargetStreamer::AMDGPUTargetStreamer ( MCStreamer S)
inline

Member Function Documentation

◆ EmitAMDGPUSymbolType()

virtual void llvm::AMDGPUTargetStreamer::EmitAMDGPUSymbolType ( StringRef  SymbolName,
unsigned  Type 
)
pure virtual

◆ EmitAMDKernelCodeT()

virtual void llvm::AMDGPUTargetStreamer::EmitAMDKernelCodeT ( const amd_kernel_code_t Header)
pure virtual

◆ EmitDirectiveHSACodeObjectISA()

virtual void llvm::AMDGPUTargetStreamer::EmitDirectiveHSACodeObjectISA ( uint32_t  Major,
uint32_t  Minor,
uint32_t  Stepping,
StringRef  VendorName,
StringRef  ArchName 
)
pure virtual

◆ EmitDirectiveHSACodeObjectVersion()

virtual void llvm::AMDGPUTargetStreamer::EmitDirectiveHSACodeObjectVersion ( uint32_t  Major,
uint32_t  Minor 
)
pure virtual

◆ EmitHSAMetadata() [1/2]

bool AMDGPUTargetStreamer::EmitHSAMetadata ( StringRef  HSAMetadataString)
virtual
Returns
True on success, false on failure.

Definition at line 120 of file AMDGPUTargetStreamer.cpp.

References llvm::AMDGPU::HSAMD::fromString().

Referenced by AMDGPUTargetStreamer(), and llvm::AMDGPUAsmPrinter::EmitEndOfAsmFile().

◆ EmitHSAMetadata() [2/2]

virtual bool llvm::AMDGPUTargetStreamer::EmitHSAMetadata ( const AMDGPU::HSAMD::Metadata HSAMetadata)
pure virtual
Returns
True on success, false on failure.

Implemented in llvm::AMDGPUTargetELFStreamer, and llvm::AMDGPUTargetAsmStreamer.

◆ EmitISAVersion()

virtual bool llvm::AMDGPUTargetStreamer::EmitISAVersion ( StringRef  IsaVersionString)
pure virtual
Returns
True on success, false on failure.

Implemented in llvm::AMDGPUTargetELFStreamer, and llvm::AMDGPUTargetAsmStreamer.

Referenced by AMDGPUTargetStreamer(), and llvm::AMDGPUAsmPrinter::EmitEndOfAsmFile().

◆ EmitPALMetadata()

virtual bool llvm::AMDGPUTargetStreamer::EmitPALMetadata ( const AMDGPU::PALMD::Metadata PALMetadata)
pure virtual
Returns
True on success, false on failure.

Implemented in llvm::AMDGPUTargetELFStreamer, and llvm::AMDGPUTargetAsmStreamer.

Referenced by AMDGPUTargetStreamer(), and llvm::AMDGPUAsmPrinter::EmitEndOfAsmFile().

◆ getContext()

MCContext& llvm::AMDGPUTargetStreamer::getContext ( ) const
inlineprotected

◆ getMACH()

unsigned AMDGPUTargetStreamer::getMACH ( StringRef  GPU) const
protected
Returns
Equivalent EF_AMDGPU_MACH_* value for given GPU name.

Definition at line 106 of file AMDGPUTargetStreamer.cpp.

References MachTable.

Referenced by llvm::AMDGPUTargetELFStreamer::AMDGPUTargetELFStreamer(), and getContext().

◆ getMachName()

const char * AMDGPUTargetStreamer::getMachName ( unsigned  Mach)
static
Returns
Equivalent GPU name for an EF_AMDGPU_MACH_* value.

Definition at line 113 of file AMDGPUTargetStreamer.cpp.

References MachTable.

Referenced by getContext().


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