[llvm] [AMDGPU] Support preloading hidden kernel arguments (PR #98861)
Austin Kerbow via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 10:44:53 PDT 2024
================
@@ -2534,6 +2535,20 @@ void SITargetLowering::allocatePreloadKernArgSGPRs(
unsigned NumAllocSGPRs =
alignTo(ArgLoc.getLocVT().getFixedSizeInBits(), 32) / 32;
+ // Add padding SPGR to fix alignment for hidden arguments.
+ if (!AlignedForImplictArgs && Arg.hasAttribute("amdgpu-work-group-id")) {
----------------
kerbowa wrote:
Thanks for catching this, it must have become dead at some point in the review process and the tests autoupdated without noticing.
https://github.com/llvm/llvm-project/pull/98861
More information about the llvm-commits
mailing list