[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
Wed Jun 30 12:04:31 PDT 2021


krzysz00 created this revision.
Herald added subscribers: kerbowa, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
krzysz00 requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

The documentation for the AMDGPU assembler's examples don't show the
.args section, which, if ommitted, will cause arguments to silently
not be passed into the kernel. This commit fixes this issue.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105222

Files:
  llvm/docs/AMDGPUUsage.rst


Index: llvm/docs/AMDGPUUsage.rst
===================================================================
--- llvm/docs/AMDGPUUsage.rst
+++ llvm/docs/AMDGPUUsage.rst
@@ -12188,7 +12188,11 @@
        .sgpr_count: 2
        .vgpr_count: 3
        .max_flat_workgroup_size: 256
-   ...
+       .args:
+         - .size: 8
+           .offset: 0
+           .value_kind: by_value
+   //...
    .end_amdgpu_metadata
 
 If an assembly source file contains multiple kernels and/or functions, the


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105222.355654.patch
Type: text/x-patch
Size: 484 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210630/69857493/attachment.bin>


More information about the llvm-commits mailing list