LLVM 20.0.0git
Namespaces | Classes | Enumerations | Functions | Variables
llvm::AMDGPU::HSAMD Namespace Reference

Namespaces

namespace  Kernel
 
namespace  Key
 
namespace  V3
 

Classes

struct  Metadata
 In-memory representation of HSA metadata. More...
 
class  MetadataStreamer
 
class  MetadataStreamerMsgPackV4
 
class  MetadataStreamerMsgPackV5
 
class  MetadataStreamerMsgPackV6
 

Enumerations

enum class  AccessQualifier : uint8_t {
  Default = 0 , ReadOnly = 1 , WriteOnly = 2 , ReadWrite = 3 ,
  Unknown = 0xff
}
 Access qualifiers. More...
 
enum class  AddressSpaceQualifier : uint8_t {
  Private = 0 , Global = 1 , Constant = 2 , Local = 3 ,
  Generic = 4 , Region = 5 , Unknown = 0xff
}
 Address space qualifiers. More...
 
enum class  ValueKind : uint8_t {
  ByValue = 0 , GlobalBuffer = 1 , DynamicSharedPointer = 2 , Sampler = 3 ,
  Image = 4 , Pipe = 5 , Queue = 6 , HiddenGlobalOffsetX = 7 ,
  HiddenGlobalOffsetY = 8 , HiddenGlobalOffsetZ = 9 , HiddenNone = 10 , HiddenPrintfBuffer = 11 ,
  HiddenDefaultQueue = 12 , HiddenCompletionAction = 13 , HiddenMultiGridSyncArg = 14 , HiddenHostcallBuffer = 15 ,
  Unknown = 0xff
}
 Value kinds. More...
 
enum class  ValueType : uint8_t {
  Struct = 0 , I8 = 1 , U8 = 2 , I16 = 3 ,
  U16 = 4 , F16 = 5 , I32 = 6 , U32 = 7 ,
  F32 = 8 , I64 = 9 , U64 = 10 , F64 = 11 ,
  Unknown = 0xff
}
 Value types. More...
 

Functions

std::error_code fromString (StringRef String, Metadata &HSAMetadata)
 Converts String to HSAMetadata.
 
std::error_code toString (Metadata HSAMetadata, std::string &String)
 Converts HSAMetadata to String.
 

Variables

constexpr uint32_t VersionMajorV3 = 1
 HSA metadata major version for code object V3.
 
constexpr uint32_t VersionMinorV3 = 0
 HSA metadata minor version for code object V3.
 
constexpr uint32_t VersionMajorV4 = 1
 HSA metadata major version for code object V4.
 
constexpr uint32_t VersionMinorV4 = 1
 HSA metadata minor version for code object V4.
 
constexpr uint32_t VersionMajorV5 = 1
 HSA metadata major version for code object V5.
 
constexpr uint32_t VersionMinorV5 = 2
 HSA metadata minor version for code object V5.
 
constexpr uint32_t VersionMajorV6 = 1
 HSA metadata major version for code object V6.
 
constexpr uint32_t VersionMinorV6 = 2
 HSA metadata minor version for code object V6.
 
constexpr char AssemblerDirectiveBegin [] = ".amd_amdgpu_hsa_metadata"
 Old HSA metadata beginning assembler directive for V2.
 

Enumeration Type Documentation

◆ AccessQualifier

enum class llvm::AMDGPU::HSAMD::AccessQualifier : uint8_t
strong

Access qualifiers.

Enumerator
Default 
ReadOnly 
WriteOnly 
ReadWrite 
Unknown 

Definition at line 59 of file AMDGPUMetadata.h.

◆ AddressSpaceQualifier

enum class llvm::AMDGPU::HSAMD::AddressSpaceQualifier : uint8_t
strong

Address space qualifiers.

Enumerator
Private 
Global 
Constant 
Local 
Generic 
Region 
Unknown 

Definition at line 68 of file AMDGPUMetadata.h.

◆ ValueKind

enum class llvm::AMDGPU::HSAMD::ValueKind : uint8_t
strong

Value kinds.

Enumerator
ByValue 
GlobalBuffer 
DynamicSharedPointer 
Sampler 
Image 
Pipe 
Queue 
HiddenGlobalOffsetX 
HiddenGlobalOffsetY 
HiddenGlobalOffsetZ 
HiddenNone 
HiddenPrintfBuffer 
HiddenDefaultQueue 
HiddenCompletionAction 
HiddenMultiGridSyncArg 
HiddenHostcallBuffer 
Unknown 

Definition at line 79 of file AMDGPUMetadata.h.

◆ ValueType

enum class llvm::AMDGPU::HSAMD::ValueType : uint8_t
strong

Value types.

This is deprecated and only remains for compatibility parsing of old metadata.

Enumerator
Struct 
I8 
U8 
I16 
U16 
F16 
I32 
U32 
F32 
I64 
U64 
F64 
Unknown 

Definition at line 101 of file AMDGPUMetadata.h.

Function Documentation

◆ fromString()

std::error_code llvm::AMDGPU::HSAMD::fromString ( StringRef  String,
Metadata HSAMetadata 
)

Converts String to HSAMetadata.

Definition at line 214 of file AMDGPUMetadata.cpp.

References llvm::String.

◆ toString()

std::error_code llvm::AMDGPU::HSAMD::toString ( Metadata  HSAMetadata,
std::string &  String 
)

Converts HSAMetadata to String.

Definition at line 220 of file AMDGPUMetadata.cpp.

References llvm::String.

Variable Documentation

◆ AssemblerDirectiveBegin

constexpr char llvm::AMDGPU::HSAMD::AssemblerDirectiveBegin[] = ".amd_amdgpu_hsa_metadata"
constexpr

Old HSA metadata beginning assembler directive for V2.

This is only used for diagnostics now. HSA metadata beginning assembler directive.

Definition at line 56 of file AMDGPUMetadata.h.

◆ VersionMajorV3

constexpr uint32_t llvm::AMDGPU::HSAMD::VersionMajorV3 = 1
constexpr

HSA metadata major version for code object V3.

Definition at line 33 of file AMDGPUMetadata.h.

◆ VersionMajorV4

constexpr uint32_t llvm::AMDGPU::HSAMD::VersionMajorV4 = 1
constexpr

HSA metadata major version for code object V4.

Definition at line 38 of file AMDGPUMetadata.h.

Referenced by llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV4::emitVersion().

◆ VersionMajorV5

constexpr uint32_t llvm::AMDGPU::HSAMD::VersionMajorV5 = 1
constexpr

HSA metadata major version for code object V5.

Definition at line 43 of file AMDGPUMetadata.h.

Referenced by llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV5::emitVersion().

◆ VersionMajorV6

constexpr uint32_t llvm::AMDGPU::HSAMD::VersionMajorV6 = 1
constexpr

HSA metadata major version for code object V6.

Definition at line 48 of file AMDGPUMetadata.h.

Referenced by llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV6::emitVersion().

◆ VersionMinorV3

constexpr uint32_t llvm::AMDGPU::HSAMD::VersionMinorV3 = 0
constexpr

HSA metadata minor version for code object V3.

Definition at line 35 of file AMDGPUMetadata.h.

◆ VersionMinorV4

constexpr uint32_t llvm::AMDGPU::HSAMD::VersionMinorV4 = 1
constexpr

HSA metadata minor version for code object V4.

Definition at line 40 of file AMDGPUMetadata.h.

Referenced by llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV4::emitVersion().

◆ VersionMinorV5

constexpr uint32_t llvm::AMDGPU::HSAMD::VersionMinorV5 = 2
constexpr

HSA metadata minor version for code object V5.

Definition at line 45 of file AMDGPUMetadata.h.

Referenced by llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV5::emitVersion().

◆ VersionMinorV6

constexpr uint32_t llvm::AMDGPU::HSAMD::VersionMinorV6 = 2
constexpr

HSA metadata minor version for code object V6.

Definition at line 50 of file AMDGPUMetadata.h.

Referenced by llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV6::emitVersion().