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

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

#include "llvm/Support/AMDGPUMetadata.h"

Collaboration diagram for llvm::AMDGPU::HSAMD::Kernel::Attrs::Metadata:
Collaboration graph
[legend]

Public Member Functions

 Metadata ()=default
 Default constructor. More...
 
bool empty () const
 
bool notEmpty () const
 

Public Attributes

std::vector< uint32_tmReqdWorkGroupSize = std::vector<uint32_t>()
 'reqd_work_group_size' attribute. Optional. More...
 
std::vector< uint32_tmWorkGroupSizeHint = std::vector<uint32_t>()
 'work_group_size_hint' attribute. Optional. More...
 
std::string mVecTypeHint = std::string()
 'vec_type_hint' attribute. Optional. More...
 
std::string mRuntimeHandle = std::string()
 External symbol created by runtime to store the kernel address for enqueued blocks. More...
 

Detailed Description

In-memory representation of kernel attributes metadata.

Definition at line 133 of file AMDGPUMetadata.h.

Constructor & Destructor Documentation

◆ Metadata()

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

Default constructor.

Member Function Documentation

◆ empty()

bool llvm::AMDGPU::HSAMD::Kernel::Attrs::Metadata::empty ( ) const
inline
Returns
True if kernel attributes metadata is empty, false otherwise.

Definition at line 148 of file AMDGPUMetadata.h.

References notEmpty().

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

◆ notEmpty()

bool llvm::AMDGPU::HSAMD::Kernel::Attrs::Metadata::notEmpty ( ) const
inline
Returns
True if kernel attributes metadata is not empty, false otherwise.

Definition at line 153 of file AMDGPUMetadata.h.

References mReqdWorkGroupSize, mRuntimeHandle, mVecTypeHint, and mWorkGroupSizeHint.

Referenced by empty().

Member Data Documentation

◆ mReqdWorkGroupSize

std::vector<uint32_t> llvm::AMDGPU::HSAMD::Kernel::Attrs::Metadata::mReqdWorkGroupSize = std::vector<uint32_t>()

'reqd_work_group_size' attribute. Optional.

Definition at line 135 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Attrs::Metadata >::mapping(), and notEmpty().

◆ mRuntimeHandle

std::string llvm::AMDGPU::HSAMD::Kernel::Attrs::Metadata::mRuntimeHandle = std::string()

External symbol created by runtime to store the kernel address for enqueued blocks.

Definition at line 142 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Attrs::Metadata >::mapping(), and notEmpty().

◆ mVecTypeHint

std::string llvm::AMDGPU::HSAMD::Kernel::Attrs::Metadata::mVecTypeHint = std::string()

'vec_type_hint' attribute. Optional.

Definition at line 139 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Attrs::Metadata >::mapping(), and notEmpty().

◆ mWorkGroupSizeHint

std::vector<uint32_t> llvm::AMDGPU::HSAMD::Kernel::Attrs::Metadata::mWorkGroupSizeHint = std::vector<uint32_t>()

'work_group_size_hint' attribute. Optional.

Definition at line 137 of file AMDGPUMetadata.h.

Referenced by llvm::yaml::MappingTraits< Kernel::Attrs::Metadata >::mapping(), and notEmpty().


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