[PATCH] D151996: [AMDGPU] Start documenting calling conventions. NFC

Nicolai Hähnle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 12:03:00 PDT 2023


nhaehnle added a comment.

There could probably be a general section here to state that in the graphics calling conventions, `inreg` is used to denote arguments mapped to SGPRs, while other arguments are mapped to VGPRs.



================
Comment at: llvm/docs/AMDGPUUsage.rst:1050-1054
+     ``amdgpu_vs``                   Used for Mesa vertex shaders, or AMDPAL last shader stage before
+                                     rasterization (vertex shader if tessellation and geometry are not in
+                                     use, or otherwise copy shader if one is needed).
+                                     ..TODO::
+                                     Describe.
----------------
The logic between Mesa and AMDPAL here is actually the same.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D151996/new/

https://reviews.llvm.org/D151996



More information about the llvm-commits mailing list