struct Metadata
Declaration
struct Metadata { /* full declaration omitted */ };
Description
In-memory representation of kernel code properties metadata.
Declared at: llvm/include/llvm/Support/AMDGPUMetadata.h:259
Member Variables
- public uint64_t mKernargSegmentSize = 0
- Size in bytes of the kernarg segment memory. Kernarg segment memory holds the values of the arguments to the kernel. Required.
- public uint32_t mGroupSegmentFixedSize = 0
- Size in bytes of the group segment memory required by a workgroup. This value does not include any dynamically allocated group segment memory that may be added when the kernel is dispatched. Required.
- public uint32_t mPrivateSegmentFixedSize = 0
- Size in bytes of the private segment memory required by a workitem. Private segment memory includes arg, spill and private segments. Required.
- public uint32_t mKernargSegmentAlign = 0
- Maximum byte alignment of variables used by the kernel in the kernarg memory segment. Required.
- public uint32_t mWavefrontSize = 0
- Wavefront size. Required.
- public uint16_t mNumSGPRs = 0
- Total number of SGPRs used by a wavefront. Optional.
- public uint16_t mNumVGPRs = 0
- Total number of VGPRs used by a workitem. Optional.
- public uint32_t mMaxFlatWorkGroupSize = 0
- Maximum flat work-group size supported by the kernel. Optional.
- public bool mIsDynamicCallStack = false
- True if the generated machine code is using a dynamically sized call stack. Optional.
- public bool mIsXNACKEnabled = false
- True if the generated machine code is capable of supporting XNACK. Optional.
- public uint16_t mNumSpilledSGPRs = 0
- Number of SGPRs spilled by a wavefront. Optional.
- public uint16_t mNumSpilledVGPRs = 0
- Number of VGPRs spilled by a workitem. Optional.
Method Overview
Methods
¶Metadata()
Metadata()
Description
Default constructor.
Declared at: llvm/include/llvm/Support/AMDGPUMetadata.h:293
¶bool empty() const
bool empty() const
Declared at: llvm/include/llvm/Support/AMDGPUMetadata.h:297
Returns
True if kernel code properties metadata is empty, false otherwise.
¶bool notEmpty() const
bool notEmpty() const
Declared at: llvm/include/llvm/Support/AMDGPUMetadata.h:303
Returns
True if kernel code properties metadata is not empty, false otherwise.