LLVM 20.0.0git
Public Attributes | Static Public Attributes | List of all members
llvm::offloading::amdgpu::AMDGPUKernelMetaData Struct Reference

Struct for holding metadata related to AMDGPU kernels, for more information about the metadata and its meaning see: https://llvm.org/docs/AMDGPUUsage.html#code-object-v3. More...

#include "llvm/Frontend/Offloading/Utility.h"

Public Attributes

uint32_t GroupSegmentList = KInvalidValue
 The amount of group segment memory required by a work-group in bytes.
 
uint32_t PrivateSegmentSize = KInvalidValue
 The amount of fixed private address space memory required for a work-item in bytes.
 
uint32_t SGPRCount = KInvalidValue
 Number of scalar registers required by a wavefront.
 
uint32_t VGPRCount = KInvalidValue
 Number of vector registers required by each work-item.
 
uint32_t SGPRSpillCount = KInvalidValue
 Number of stores from a scalar register to a register allocator created spill location.
 
uint32_t VGPRSpillCount = KInvalidValue
 Number of stores from a vector register to a register allocator created spill location.
 
uint32_t AGPRCount = KInvalidValue
 Number of accumulator registers required by each work-item.
 
uint32_t RequestedWorkgroupSize [3]
 Corresponds to the OpenCL reqd_work_group_size attribute.
 
uint32_t WorkgroupSizeHint [3] = {KInvalidValue, KInvalidValue, KInvalidValue}
 Corresponds to the OpenCL work_group_size_hint attribute.
 
uint32_t WavefrontSize = KInvalidValue
 Wavefront size.
 
uint32_t MaxFlatWorkgroupSize = KInvalidValue
 Maximum flat work-group size supported by the kernel in work-items.
 

Static Public Attributes

static constexpr uint32_t KInvalidValue
 Constant indicating that a value is invalid.
 

Detailed Description

Struct for holding metadata related to AMDGPU kernels, for more information about the metadata and its meaning see: https://llvm.org/docs/AMDGPUUsage.html#code-object-v3.

Definition at line 98 of file Utility.h.

Member Data Documentation

◆ AGPRCount

uint32_t llvm::offloading::amdgpu::AMDGPUKernelMetaData::AGPRCount = KInvalidValue

Number of accumulator registers required by each work-item.

Definition at line 118 of file Utility.h.

◆ GroupSegmentList

uint32_t llvm::offloading::amdgpu::AMDGPUKernelMetaData::GroupSegmentList = KInvalidValue

The amount of group segment memory required by a work-group in bytes.

Definition at line 103 of file Utility.h.

◆ KInvalidValue

constexpr uint32_t llvm::offloading::amdgpu::AMDGPUKernelMetaData::KInvalidValue
staticconstexpr
Initial value:
=
std::numeric_limits<uint32_t>::max()

Constant indicating that a value is invalid.

Definition at line 100 of file Utility.h.

◆ MaxFlatWorkgroupSize

uint32_t llvm::offloading::amdgpu::AMDGPUKernelMetaData::MaxFlatWorkgroupSize = KInvalidValue

Maximum flat work-group size supported by the kernel in work-items.

Definition at line 127 of file Utility.h.

◆ PrivateSegmentSize

uint32_t llvm::offloading::amdgpu::AMDGPUKernelMetaData::PrivateSegmentSize = KInvalidValue

The amount of fixed private address space memory required for a work-item in bytes.

Definition at line 106 of file Utility.h.

◆ RequestedWorkgroupSize

uint32_t llvm::offloading::amdgpu::AMDGPUKernelMetaData::RequestedWorkgroupSize[3]
Initial value:
static constexpr uint32_t KInvalidValue
Constant indicating that a value is invalid.
Definition: Utility.h:100

Corresponds to the OpenCL reqd_work_group_size attribute.

Definition at line 120 of file Utility.h.

◆ SGPRCount

uint32_t llvm::offloading::amdgpu::AMDGPUKernelMetaData::SGPRCount = KInvalidValue

Number of scalar registers required by a wavefront.

Definition at line 108 of file Utility.h.

◆ SGPRSpillCount

uint32_t llvm::offloading::amdgpu::AMDGPUKernelMetaData::SGPRSpillCount = KInvalidValue

Number of stores from a scalar register to a register allocator created spill location.

Definition at line 113 of file Utility.h.

◆ VGPRCount

uint32_t llvm::offloading::amdgpu::AMDGPUKernelMetaData::VGPRCount = KInvalidValue

Number of vector registers required by each work-item.

Definition at line 110 of file Utility.h.

◆ VGPRSpillCount

uint32_t llvm::offloading::amdgpu::AMDGPUKernelMetaData::VGPRSpillCount = KInvalidValue

Number of stores from a vector register to a register allocator created spill location.

Definition at line 116 of file Utility.h.

◆ WavefrontSize

uint32_t llvm::offloading::amdgpu::AMDGPUKernelMetaData::WavefrontSize = KInvalidValue

Wavefront size.

Definition at line 125 of file Utility.h.

◆ WorkgroupSizeHint

uint32_t llvm::offloading::amdgpu::AMDGPUKernelMetaData::WorkgroupSizeHint[3] = {KInvalidValue, KInvalidValue, KInvalidValue}

Corresponds to the OpenCL work_group_size_hint attribute.

Definition at line 123 of file Utility.h.


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