LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata Struct Referencefinal

In-memory representation of kernel argument metadata. More...

#include "llvm/Support/AMDGPUMetadata.h"

Public Member Functions

 Metadata ()=default
 Default constructor.
 

Public Attributes

std::string mName = std::string()
 Name. Optional.
 
std::string mTypeName = std::string()
 Type name. Optional.
 
uint32_t mSize = 0
 Size in bytes. Required.
 
uint32_t mOffset = 0
 Offset in bytes. Required for code object v3, unused for code object v2.
 
uint32_t mAlign = 0
 Alignment in bytes. Required.
 
ValueKind mValueKind = ValueKind::Unknown
 Value kind. Required.
 
uint32_t mPointeeAlign = 0
 Pointee alignment in bytes. Optional.
 
AddressSpaceQualifier mAddrSpaceQual = AddressSpaceQualifier::Unknown
 Address space qualifier. Optional.
 
AccessQualifier mAccQual = AccessQualifier::Unknown
 Access qualifier. Optional.
 
AccessQualifier mActualAccQual = AccessQualifier::Unknown
 Actual access qualifier. Optional.
 
bool mIsConst = false
 True if 'const' qualifier is specified. Optional.
 
bool mIsRestrict = false
 True if 'restrict' qualifier is specified. Optional.
 
bool mIsVolatile = false
 True if 'volatile' qualifier is specified. Optional.
 
bool mIsPipe = false
 True if 'pipe' qualifier is specified. Optional.
 

Detailed Description

In-memory representation of kernel argument metadata.

Definition at line 206 of file AMDGPUMetadata.h.

Constructor & Destructor Documentation

◆ Metadata()

llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata::Metadata ( )
default

Default constructor.

Member Data Documentation

◆ mAccQual

AccessQualifier llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata::mAccQual = AccessQualifier::Unknown

Access qualifier. Optional.

Definition at line 224 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Arg::Metadata >::mapping().

◆ mActualAccQual

AccessQualifier llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata::mActualAccQual = AccessQualifier::Unknown

Actual access qualifier. Optional.

Definition at line 226 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Arg::Metadata >::mapping().

◆ mAddrSpaceQual

AddressSpaceQualifier llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata::mAddrSpaceQual = AddressSpaceQualifier::Unknown

Address space qualifier. Optional.

Definition at line 222 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Arg::Metadata >::mapping().

◆ mAlign

uint32_t llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata::mAlign = 0

Alignment in bytes. Required.

Definition at line 216 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Arg::Metadata >::mapping().

◆ mIsConst

bool llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata::mIsConst = false

True if 'const' qualifier is specified. Optional.

Definition at line 228 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Arg::Metadata >::mapping().

◆ mIsPipe

bool llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata::mIsPipe = false

True if 'pipe' qualifier is specified. Optional.

Definition at line 234 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Arg::Metadata >::mapping().

◆ mIsRestrict

bool llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata::mIsRestrict = false

True if 'restrict' qualifier is specified. Optional.

Definition at line 230 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Arg::Metadata >::mapping().

◆ mIsVolatile

bool llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata::mIsVolatile = false

True if 'volatile' qualifier is specified. Optional.

Definition at line 232 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Arg::Metadata >::mapping().

◆ mName

std::string llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata::mName = std::string()

Name. Optional.

Definition at line 208 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Arg::Metadata >::mapping().

◆ mOffset

uint32_t llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata::mOffset = 0

Offset in bytes. Required for code object v3, unused for code object v2.

Definition at line 214 of file AMDGPUMetadata.h.

◆ mPointeeAlign

uint32_t llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata::mPointeeAlign = 0

Pointee alignment in bytes. Optional.

Definition at line 220 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Arg::Metadata >::mapping().

◆ mSize

uint32_t llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata::mSize = 0

Size in bytes. Required.

Definition at line 212 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Arg::Metadata >::mapping().

◆ mTypeName

std::string llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata::mTypeName = std::string()

Type name. Optional.

Definition at line 210 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Arg::Metadata >::mapping().

◆ mValueKind

ValueKind llvm::AMDGPU::HSAMD::Kernel::Arg::Metadata::mValueKind = ValueKind::Unknown

Value kind. Required.

Definition at line 218 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Arg::Metadata >::mapping().


The documentation for this struct was generated from the following file: