[PATCH] D105222: [AMDGPU][Docs] Update Code Object V3 example to includes args section
Krzysztof Drewniak via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 1 11:45:47 PDT 2021
krzysz00 updated this revision to Diff 355961.
krzysz00 added a comment.
- Update argument type to global_buffer
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105222/new/
https://reviews.llvm.org/D105222
Files:
llvm/docs/AMDGPUUsage.rst
Index: llvm/docs/AMDGPUUsage.rst
===================================================================
--- llvm/docs/AMDGPUUsage.rst
+++ llvm/docs/AMDGPUUsage.rst
@@ -12188,9 +12188,23 @@
.sgpr_count: 2
.vgpr_count: 3
.max_flat_workgroup_size: 256
- ...
+ .args:
+ - .size: 8
+ .offset: 0
+ .value_kind: global_buffer
+ .address_space: global
+ .actual_access: write_only
+ //...
.end_amdgpu_metadata
+This kernel is equivalent to the following HIP program:
+
+.. code::
+ :number-lines:
+ __global__ void hello_world(float *p) {
+ *p = 3.14159f;
+ }
+
If an assembly source file contains multiple kernels and/or functions, the
:ref:`amdgpu-amdhsa-assembler-symbol-next_free_vgpr` and
:ref:`amdgpu-amdhsa-assembler-symbol-next_free_sgpr` symbols may be reset using
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105222.355961.patch
Type: text/x-patch
Size: 866 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210701/766fcd2b/attachment-0001.bin>
More information about the llvm-commits
mailing list