LLVM  5.0.0
AMDGPUCodeObjectMetadata.h
Go to the documentation of this file.
1 //===--- AMDGPUCodeObjectMetadata.h -----------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 /// \file
11 /// \brief AMDGPU Code Object Metadata definitions and in-memory
12 /// representations.
13 ///
14 //
15 //===----------------------------------------------------------------------===//
16 
17 #ifndef LLVM_SUPPORT_AMDGPUCODEOBJECTMETADATA_H
18 #define LLVM_SUPPORT_AMDGPUCODEOBJECTMETADATA_H
19 
20 #include <cstdint>
21 #include <string>
22 #include <system_error>
23 #include <vector>
24 
25 namespace llvm {
26 namespace AMDGPU {
27 
28 //===----------------------------------------------------------------------===//
29 // Code Object Metadata.
30 //===----------------------------------------------------------------------===//
31 namespace CodeObject {
32 
33 /// \brief Code object metadata major version.
35 /// \brief Code object metadata minor version.
37 
38 /// \brief Code object metadata beginning assembler directive.
40  ".amdgpu_code_object_metadata";
41 /// \brief Code object metadata ending assembler directive.
43  ".end_amdgpu_code_object_metadata";
44 
45 /// \brief Access qualifiers.
46 enum class AccessQualifier : uint8_t {
47  Default = 0,
48  ReadOnly = 1,
49  WriteOnly = 2,
50  ReadWrite = 3,
51  Unknown = 0xff
52 };
53 
54 /// \brief Address space qualifiers.
55 enum class AddressSpaceQualifier : uint8_t {
56  Private = 0,
57  Global = 1,
58  Constant = 2,
59  Local = 3,
60  Generic = 4,
61  Region = 5,
62  Unknown = 0xff
63 };
64 
65 /// \brief Value kinds.
66 enum class ValueKind : uint8_t {
67  ByValue = 0,
68  GlobalBuffer = 1,
70  Sampler = 3,
71  Image = 4,
72  Pipe = 5,
73  Queue = 6,
77  HiddenNone = 10,
78  HiddenPrintfBuffer = 11,
79  HiddenDefaultQueue = 12,
81  Unknown = 0xff
82 };
83 
84 /// \brief Value types.
85 enum class ValueType : uint8_t {
86  Struct = 0,
87  I8 = 1,
88  U8 = 2,
89  I16 = 3,
90  U16 = 4,
91  F16 = 5,
92  I32 = 6,
93  U32 = 7,
94  F32 = 8,
95  I64 = 9,
96  U64 = 10,
97  F64 = 11,
98  Unknown = 0xff
99 };
100 
101 //===----------------------------------------------------------------------===//
102 // Kernel Metadata.
103 //===----------------------------------------------------------------------===//
104 namespace Kernel {
105 
106 //===----------------------------------------------------------------------===//
107 // Kernel Attributes Metadata.
108 //===----------------------------------------------------------------------===//
109 namespace Attrs {
110 
111 namespace Key {
112 /// \brief Key for Kernel::Attr::Metadata::mReqdWorkGroupSize.
113 constexpr char ReqdWorkGroupSize[] = "ReqdWorkGroupSize";
114 /// \brief Key for Kernel::Attr::Metadata::mWorkGroupSizeHint.
115 constexpr char WorkGroupSizeHint[] = "WorkGroupSizeHint";
116 /// \brief Key for Kernel::Attr::Metadata::mVecTypeHint.
117 constexpr char VecTypeHint[] = "VecTypeHint";
118 } // end namespace Key
119 
120 /// \brief In-memory representation of kernel attributes metadata.
121 struct Metadata final {
122  /// \brief 'reqd_work_group_size' attribute. Optional.
123  std::vector<uint32_t> mReqdWorkGroupSize = std::vector<uint32_t>();
124  /// \brief 'work_group_size_hint' attribute. Optional.
125  std::vector<uint32_t> mWorkGroupSizeHint = std::vector<uint32_t>();
126  /// \brief 'vec_type_hint' attribute. Optional.
127  std::string mVecTypeHint = std::string();
128 
129  /// \brief Default constructor.
130  Metadata() = default;
131 
132  /// \returns True if kernel attributes metadata is empty, false otherwise.
133  bool empty() const {
134  return mReqdWorkGroupSize.empty() &&
135  mWorkGroupSizeHint.empty() &&
136  mVecTypeHint.empty();
137  }
138 
139  /// \returns True if kernel attributes metadata is not empty, false otherwise.
140  bool notEmpty() const {
141  return !empty();
142  }
143 };
144 
145 } // end namespace Attrs
146 
147 //===----------------------------------------------------------------------===//
148 // Kernel Argument Metadata.
149 //===----------------------------------------------------------------------===//
150 namespace Arg {
151 
152 namespace Key {
153 /// \brief Key for Kernel::Arg::Metadata::mSize.
154 constexpr char Size[] = "Size";
155 /// \brief Key for Kernel::Arg::Metadata::mAlign.
156 constexpr char Align[] = "Align";
157 /// \brief Key for Kernel::Arg::Metadata::mValueKind.
158 constexpr char ValueKind[] = "ValueKind";
159 /// \brief Key for Kernel::Arg::Metadata::mValueType.
160 constexpr char ValueType[] = "ValueType";
161 /// \brief Key for Kernel::Arg::Metadata::mPointeeAlign.
162 constexpr char PointeeAlign[] = "PointeeAlign";
163 /// \brief Key for Kernel::Arg::Metadata::mAccQual.
164 constexpr char AccQual[] = "AccQual";
165 /// \brief Key for Kernel::Arg::Metadata::mAddrSpaceQual.
166 constexpr char AddrSpaceQual[] = "AddrSpaceQual";
167 /// \brief Key for Kernel::Arg::Metadata::mIsConst.
168 constexpr char IsConst[] = "IsConst";
169 /// \brief Key for Kernel::Arg::Metadata::mIsPipe.
170 constexpr char IsPipe[] = "IsPipe";
171 /// \brief Key for Kernel::Arg::Metadata::mIsRestrict.
172 constexpr char IsRestrict[] = "IsRestrict";
173 /// \brief Key for Kernel::Arg::Metadata::mIsVolatile.
174 constexpr char IsVolatile[] = "IsVolatile";
175 /// \brief Key for Kernel::Arg::Metadata::mName.
176 constexpr char Name[] = "Name";
177 /// \brief Key for Kernel::Arg::Metadata::mTypeName.
178 constexpr char TypeName[] = "TypeName";
179 } // end namespace Key
180 
181 /// \brief In-memory representation of kernel argument metadata.
182 struct Metadata final {
183  /// \brief Size in bytes. Required.
185  /// \brief Alignment in bytes. Required.
187  /// \brief Value kind. Required.
189  /// \brief Value type. Required.
191  /// \brief Pointee alignment in bytes. Optional.
193  /// \brief Access qualifier. Optional.
195  /// \brief Address space qualifier. Optional.
197  /// \brief True if 'const' qualifier is specified. Optional.
198  bool mIsConst = false;
199  /// \brief True if 'pipe' qualifier is specified. Optional.
200  bool mIsPipe = false;
201  /// \brief True if 'restrict' qualifier is specified. Optional.
202  bool mIsRestrict = false;
203  /// \brief True if 'volatile' qualifier is specified. Optional.
204  bool mIsVolatile = false;
205  /// \brief Name. Optional.
206  std::string mName = std::string();
207  /// \brief Type name. Optional.
208  std::string mTypeName = std::string();
209 
210  /// \brief Default constructor.
211  Metadata() = default;
212 };
213 
214 } // end namespace Arg
215 
216 //===----------------------------------------------------------------------===//
217 // Kernel Code Properties Metadata.
218 //===----------------------------------------------------------------------===//
219 namespace CodeProps {
220 
221 namespace Key {
222 /// \brief Key for Kernel::CodeProps::Metadata::mKernargSegmentSize.
223 constexpr char KernargSegmentSize[] = "KernargSegmentSize";
224 /// \brief Key for Kernel::CodeProps::Metadata::mWorkgroupGroupSegmentSize.
225 constexpr char WorkgroupGroupSegmentSize[] = "WorkgroupGroupSegmentSize";
226 /// \brief Key for Kernel::CodeProps::Metadata::mWorkitemPrivateSegmentSize.
227 constexpr char WorkitemPrivateSegmentSize[] = "WorkitemPrivateSegmentSize";
228 /// \brief Key for Kernel::CodeProps::Metadata::mWavefrontNumSGPRs.
229 constexpr char WavefrontNumSGPRs[] = "WavefrontNumSGPRs";
230 /// \brief Key for Kernel::CodeProps::Metadata::mWorkitemNumVGPRs.
231 constexpr char WorkitemNumVGPRs[] = "WorkitemNumVGPRs";
232 /// \brief Key for Kernel::CodeProps::Metadata::mKernargSegmentAlign.
233 constexpr char KernargSegmentAlign[] = "KernargSegmentAlign";
234 /// \brief Key for Kernel::CodeProps::Metadata::mGroupSegmentAlign.
235 constexpr char GroupSegmentAlign[] = "GroupSegmentAlign";
236 /// \brief Key for Kernel::CodeProps::Metadata::mPrivateSegmentAlign.
237 constexpr char PrivateSegmentAlign[] = "PrivateSegmentAlign";
238 /// \brief Key for Kernel::CodeProps::Metadata::mWavefrontSize.
239 constexpr char WavefrontSize[] = "WavefrontSize";
240 } // end namespace Key
241 
242 /// \brief In-memory representation of kernel code properties metadata.
243 struct Metadata final {
244  /// \brief Size in bytes of the kernarg segment memory. Kernarg segment memory
245  /// holds the values of the arguments to the kernel. Optional.
246  uint64_t mKernargSegmentSize = 0;
247  /// \brief Size in bytes of the group segment memory required by a workgroup.
248  /// This value does not include any dynamically allocated group segment memory
249  /// that may be added when the kernel is dispatched. Optional.
251  /// \brief Size in bytes of the private segment memory required by a workitem.
252  /// Private segment memory includes arg, spill and private segments. Optional.
254  /// \brief Total number of SGPRs used by a wavefront. Optional.
255  uint16_t mWavefrontNumSGPRs = 0;
256  /// \brief Total number of VGPRs used by a workitem. Optional.
257  uint16_t mWorkitemNumVGPRs = 0;
258  /// \brief Maximum byte alignment of variables used by the kernel in the
259  /// kernarg memory segment. Expressed as a power of two. Optional.
260  uint8_t mKernargSegmentAlign = 0;
261  /// \brief Maximum byte alignment of variables used by the kernel in the
262  /// group memory segment. Expressed as a power of two. Optional.
263  uint8_t mGroupSegmentAlign = 0;
264  /// \brief Maximum byte alignment of variables used by the kernel in the
265  /// private memory segment. Expressed as a power of two. Optional.
266  uint8_t mPrivateSegmentAlign = 0;
267  /// \brief Wavefront size. Expressed as a power of two. Optional.
268  uint8_t mWavefrontSize = 0;
269 
270  /// \brief Default constructor.
271  Metadata() = default;
272 
273  /// \returns True if kernel code properties metadata is empty, false
274  /// otherwise.
275  bool empty() const {
276  return !notEmpty();
277  }
278 
279  /// \returns True if kernel code properties metadata is not empty, false
280  /// otherwise.
281  bool notEmpty() const {
286  }
287 };
288 
289 } // end namespace CodeProps
290 
291 //===----------------------------------------------------------------------===//
292 // Kernel Debug Properties Metadata.
293 //===----------------------------------------------------------------------===//
294 namespace DebugProps {
295 
296 namespace Key {
297 /// \brief Key for Kernel::DebugProps::Metadata::mDebuggerABIVersion.
298 constexpr char DebuggerABIVersion[] = "DebuggerABIVersion";
299 /// \brief Key for Kernel::DebugProps::Metadata::mReservedNumVGPRs.
300 constexpr char ReservedNumVGPRs[] = "ReservedNumVGPRs";
301 /// \brief Key for Kernel::DebugProps::Metadata::mReservedFirstVGPR.
302 constexpr char ReservedFirstVGPR[] = "ReservedFirstVGPR";
303 /// \brief Key for Kernel::DebugProps::Metadata::mPrivateSegmentBufferSGPR.
304 constexpr char PrivateSegmentBufferSGPR[] = "PrivateSegmentBufferSGPR";
305 /// \brief Key for
306 /// Kernel::DebugProps::Metadata::mWavefrontPrivateSegmentOffsetSGPR.
308  "WavefrontPrivateSegmentOffsetSGPR";
309 } // end namespace Key
310 
311 /// \brief In-memory representation of kernel debug properties metadata.
312 struct Metadata final {
313  /// \brief Debugger ABI version. Optional.
314  std::vector<uint32_t> mDebuggerABIVersion = std::vector<uint32_t>();
315  /// \brief Consecutive number of VGPRs reserved for debugger use. Must be 0 if
316  /// mDebuggerABIVersion is not set. Optional.
317  uint16_t mReservedNumVGPRs = 0;
318  /// \brief First fixed VGPR reserved. Must be uint16_t(-1) if
319  /// mDebuggerABIVersion is not set or mReservedFirstVGPR is 0. Optional.
320  uint16_t mReservedFirstVGPR = uint16_t(-1);
321  /// \brief Fixed SGPR of the first of 4 SGPRs used to hold the scratch V# used
322  /// for the entire kernel execution. Must be uint16_t(-1) if
323  /// mDebuggerABIVersion is not set or SGPR not used or not known. Optional.
324  uint16_t mPrivateSegmentBufferSGPR = uint16_t(-1);
325  /// \brief Fixed SGPR used to hold the wave scratch offset for the entire
326  /// kernel execution. Must be uint16_t(-1) if mDebuggerABIVersion is not set
327  /// or SGPR is not used or not known. Optional.
328  uint16_t mWavefrontPrivateSegmentOffsetSGPR = uint16_t(-1);
329 
330  /// \brief Default constructor.
331  Metadata() = default;
332 
333  /// \returns True if kernel debug properties metadata is empty, false
334  /// otherwise.
335  bool empty() const {
336  return !notEmpty();
337  }
338 
339  /// \returns True if kernel debug properties metadata is not empty, false
340  /// otherwise.
341  bool notEmpty() const {
342  return !mDebuggerABIVersion.empty();
343  }
344 };
345 
346 } // end namespace DebugProps
347 
348 namespace Key {
349 /// \brief Key for Kernel::Metadata::mName.
350 constexpr char Name[] = "Name";
351 /// \brief Key for Kernel::Metadata::mLanguage.
352 constexpr char Language[] = "Language";
353 /// \brief Key for Kernel::Metadata::mLanguageVersion.
354 constexpr char LanguageVersion[] = "LanguageVersion";
355 /// \brief Key for Kernel::Metadata::mAttrs.
356 constexpr char Attrs[] = "Attrs";
357 /// \brief Key for Kernel::Metadata::mArgs.
358 constexpr char Args[] = "Args";
359 /// \brief Key for Kernel::Metadata::mCodeProps.
360 constexpr char CodeProps[] = "CodeProps";
361 /// \brief Key for Kernel::Metadata::mDebugProps.
362 constexpr char DebugProps[] = "DebugProps";
363 } // end namespace Key
364 
365 /// \brief In-memory representation of kernel metadata.
366 struct Metadata final {
367  /// \brief Name. Required.
368  std::string mName = std::string();
369  /// \brief Language. Optional.
370  std::string mLanguage = std::string();
371  /// \brief Language version. Optional.
372  std::vector<uint32_t> mLanguageVersion = std::vector<uint32_t>();
373  /// \brief Attributes metadata. Optional.
375  /// \brief Arguments metadata. Optional.
376  std::vector<Arg::Metadata> mArgs = std::vector<Arg::Metadata>();
377  /// \brief Code properties metadata. Optional.
379  /// \brief Debug properties metadata. Optional.
381 
382  /// \brief Default constructor.
383  Metadata() = default;
384 };
385 
386 } // end namespace Kernel
387 
388 namespace Key {
389 /// \brief Key for CodeObject::Metadata::mVersion.
390 constexpr char Version[] = "Version";
391 /// \brief Key for CodeObject::Metadata::mPrintf.
392 constexpr char Printf[] = "Printf";
393 /// \brief Key for CodeObject::Metadata::mKernels.
394 constexpr char Kernels[] = "Kernels";
395 } // end namespace Key
396 
397 /// \brief In-memory representation of code object metadata.
398 struct Metadata final {
399  /// \brief Code object metadata version. Required.
400  std::vector<uint32_t> mVersion = std::vector<uint32_t>();
401  /// \brief Printf metadata. Optional.
402  std::vector<std::string> mPrintf = std::vector<std::string>();
403  /// \brief Kernels metadata. Optional.
404  std::vector<Kernel::Metadata> mKernels = std::vector<Kernel::Metadata>();
405 
406  /// \brief Default constructor.
407  Metadata() = default;
408 
409  /// \brief Converts \p YamlString to \p CodeObjectMetadata.
410  static std::error_code fromYamlString(std::string YamlString,
411  Metadata &CodeObjectMetadata);
412 
413  /// \brief Converts \p CodeObjectMetadata to \p YamlString.
414  static std::error_code toYamlString(Metadata CodeObjectMetadata,
415  std::string &YamlString);
416 };
417 
418 } // end namespace CodeObject
419 } // end namespace AMDGPU
420 } // end namespace llvm
421 
422 #endif // LLVM_SUPPORT_AMDGPUCODEOBJECTMETADATA_H
std::vector< uint32_t > mDebuggerABIVersion
Debugger ABI version. Optional.
static std::error_code toYamlString(Metadata CodeObjectMetadata, std::string &YamlString)
Converts CodeObjectMetadata to YamlString.
constexpr char WorkgroupGroupSegmentSize[]
Key for Kernel::CodeProps::Metadata::mWorkgroupGroupSegmentSize.
In-memory representation of kernel debug properties metadata.
uint8_t mKernargSegmentAlign
Maximum byte alignment of variables used by the kernel in the kernarg memory segment.
uint16_t mReservedNumVGPRs
Consecutive number of VGPRs reserved for debugger use.
uint32_t mAlign
Alignment in bytes. Required.
uint32_t mWorkgroupGroupSegmentSize
Size in bytes of the group segment memory required by a workgroup.
constexpr char Version[]
Key for CodeObject::Metadata::mVersion.
constexpr char Printf[]
Key for CodeObject::Metadata::mPrintf.
uint8_t mGroupSegmentAlign
Maximum byte alignment of variables used by the kernel in the group memory segment.
constexpr char IsVolatile[]
Key for Kernel::Arg::Metadata::mIsVolatile.
constexpr char IsConst[]
Key for Kernel::Arg::Metadata::mIsConst.
constexpr char IsRestrict[]
Key for Kernel::Arg::Metadata::mIsRestrict.
uint16_t mPrivateSegmentBufferSGPR
Fixed SGPR of the first of 4 SGPRs used to hold the scratch V# used for the entire kernel execution...
In-memory representation of kernel attributes metadata.
Metadata()=default
Default constructor.
bool mIsConst
True if 'const' qualifier is specified. Optional.
uint8_t mPrivateSegmentAlign
Maximum byte alignment of variables used by the kernel in the private memory segment.
constexpr char ReservedNumVGPRs[]
Key for Kernel::DebugProps::Metadata::mReservedNumVGPRs.
constexpr char PointeeAlign[]
Key for Kernel::Arg::Metadata::mPointeeAlign.
uint32_t mPointeeAlign
Pointee alignment in bytes. Optional.
std::vector< uint32_t > mVersion
Code object metadata version. Required.
constexpr char MetadataAssemblerDirectiveBegin[]
Code object metadata beginning assembler directive.
uint8_t mWavefrontSize
Wavefront size. Expressed as a power of two. Optional.
constexpr char LanguageVersion[]
Key for Kernel::Metadata::mLanguageVersion.
Metadata()=default
Default constructor.
uint16_t mWavefrontPrivateSegmentOffsetSGPR
Fixed SGPR used to hold the wave scratch offset for the entire kernel execution.
constexpr char WorkitemPrivateSegmentSize[]
Key for Kernel::CodeProps::Metadata::mWorkitemPrivateSegmentSize.
DebugProps::Metadata mDebugProps
Debug properties metadata. Optional.
static std::error_code fromYamlString(std::string YamlString, Metadata &CodeObjectMetadata)
Converts YamlString to CodeObjectMetadata.
constexpr char ReqdWorkGroupSize[]
Key for Kernel::Attr::Metadata::mReqdWorkGroupSize.
std::vector< uint32_t > mLanguageVersion
Language version. Optional.
constexpr char MetadataAssemblerDirectiveEnd[]
Code object metadata ending assembler directive.
Attrs::Metadata mAttrs
Attributes metadata. Optional.
constexpr char Attrs[]
Key for Kernel::Metadata::mAttrs.
This is an important base class in LLVM.
Definition: Constant.h:42
In-memory representation of kernel code properties metadata.
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
In-memory representation of kernel metadata.
constexpr char Name[]
Key for Kernel::Arg::Metadata::mName.
constexpr char WorkitemNumVGPRs[]
Key for Kernel::CodeProps::Metadata::mWorkitemNumVGPRs.
Metadata()=default
Default constructor.
std::vector< Arg::Metadata > mArgs
Arguments metadata. Optional.
uint32_t mWorkitemPrivateSegmentSize
Size in bytes of the private segment memory required by a workitem.
bool mIsRestrict
True if 'restrict' qualifier is specified. Optional.
In-memory representation of kernel argument metadata.
constexpr char Name[]
Key for Kernel::Metadata::mName.
std::vector< std::string > mPrintf
Printf metadata. Optional.
uint16_t mWavefrontNumSGPRs
Total number of SGPRs used by a wavefront. Optional.
constexpr char Language[]
Key for Kernel::Metadata::mLanguage.
constexpr char KernargSegmentSize[]
Key for Kernel::CodeProps::Metadata::mKernargSegmentSize.
constexpr char WavefrontNumSGPRs[]
Key for Kernel::CodeProps::Metadata::mWavefrontNumSGPRs.
constexpr char CodeProps[]
Key for Kernel::Metadata::mCodeProps.
constexpr char PrivateSegmentAlign[]
Key for Kernel::CodeProps::Metadata::mPrivateSegmentAlign.
constexpr char ReservedFirstVGPR[]
Key for Kernel::DebugProps::Metadata::mReservedFirstVGPR.
std::vector< uint32_t > mWorkGroupSizeHint
'work_group_size_hint' attribute. Optional.
std::vector< Kernel::Metadata > mKernels
Kernels metadata. Optional.
AccessQualifier mAccQual
Access qualifier. Optional.
constexpr char VecTypeHint[]
Key for Kernel::Attr::Metadata::mVecTypeHint.
AddressSpaceQualifier mAddrSpaceQual
Address space qualifier. Optional.
bool mIsVolatile
True if 'volatile' qualifier is specified. Optional.
uint16_t mWorkitemNumVGPRs
Total number of VGPRs used by a workitem. Optional.
constexpr char AddrSpaceQual[]
Key for Kernel::Arg::Metadata::mAddrSpaceQual.
constexpr char KernargSegmentAlign[]
Key for Kernel::CodeProps::Metadata::mKernargSegmentAlign.
constexpr char DebuggerABIVersion[]
Key for Kernel::DebugProps::Metadata::mDebuggerABIVersion.
uint64_t mKernargSegmentSize
Size in bytes of the kernarg segment memory.
CodeProps::Metadata mCodeProps
Code properties metadata. Optional.
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
constexpr char WavefrontPrivateSegmentOffsetSGPR[]
Key for Kernel::DebugProps::Metadata::mWavefrontPrivateSegmentOffsetSGPR.
constexpr char AccQual[]
Key for Kernel::Arg::Metadata::mAccQual.
constexpr char Kernels[]
Key for CodeObject::Metadata::mKernels.
constexpr uint32_t MetadataVersionMinor
Code object metadata minor version.
In-memory representation of code object metadata.
constexpr char Align[]
Key for Kernel::Arg::Metadata::mAlign.
std::string mVecTypeHint
'vec_type_hint' attribute. Optional.
constexpr char IsPipe[]
Key for Kernel::Arg::Metadata::mIsPipe.
constexpr char WavefrontSize[]
Key for Kernel::CodeProps::Metadata::mWavefrontSize.
constexpr char TypeName[]
Key for Kernel::Arg::Metadata::mTypeName.
bool mIsPipe
True if 'pipe' qualifier is specified. Optional.
constexpr char GroupSegmentAlign[]
Key for Kernel::CodeProps::Metadata::mGroupSegmentAlign.
AddressSpaceQualifier
Address space qualifiers.
std::vector< uint32_t > mReqdWorkGroupSize
'reqd_work_group_size' attribute. Optional.
constexpr uint32_t MetadataVersionMajor
Code object metadata major version.
constexpr char DebugProps[]
Key for Kernel::Metadata::mDebugProps.
constexpr char PrivateSegmentBufferSGPR[]
Key for Kernel::DebugProps::Metadata::mPrivateSegmentBufferSGPR.
constexpr char WorkGroupSizeHint[]
Key for Kernel::Attr::Metadata::mWorkGroupSizeHint.