[llvm] [AMDGPU] Support preloading hidden kernel arguments (PR #98861)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 4 06:45:13 PDT 2024
================
@@ -5856,6 +5860,11 @@ may insert a trap instruction at the start of the kernel prologue to manage
situations where kernarg preloading is attempted on hardware with incompatible
firmware.
+With code object V5 and later, hidden kernel arguments that are normally accessed
+through the Implicit Argument Ptr, may be preloaded into User SGPRs. These
+arguments are added to the kernel function signature and are marked with the
+attribute "amdgpu-hidden-argument". (See :ref:`amdgpu-llvm-ir-attributes-table`).
----------------
arsenm wrote:
Also inreg
https://github.com/llvm/llvm-project/pull/98861
More information about the llvm-commits
mailing list