[all-commits] [llvm/llvm-project] b31e5b: [AMDGPU] Update code object metadata for kernarg p...

Austin Kerbow via All-commits all-commits at lists.llvm.org
Fri Aug 1 13:13:38 PDT 2025


  Branch: refs/heads/users/kerbowa/preload-kernarg-metadata
  Home:   https://github.com/llvm/llvm-project
  Commit: b31e5bf26c5dff8316612d1b491e07384e4489a6
      https://github.com/llvm/llvm-project/commit/b31e5bf26c5dff8316612d1b491e07384e4489a6
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-08-01 (Fri, 01 Aug 2025)

  Changed paths:
    M llvm/include/llvm/Support/AMDGPUMetadata.h
    M llvm/lib/Target/AMDGPU/AMDGPUArgumentUsageInfo.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUArgumentUsageInfo.h
    M llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.h
    M llvm/lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
    M llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
    A llvm/test/CodeGen/AMDGPU/hsa-metadata-preload-args-v6.ll
    M llvm/test/CodeGen/AMDGPU/tid-mul-func-xnack-all-any.ll
    M llvm/test/CodeGen/AMDGPU/tid-mul-func-xnack-all-not-supported.ll
    M llvm/test/CodeGen/AMDGPU/tid-mul-func-xnack-all-off.ll
    M llvm/test/CodeGen/AMDGPU/tid-mul-func-xnack-all-on.ll
    M llvm/test/CodeGen/AMDGPU/tid-mul-func-xnack-any-off-1.ll
    M llvm/test/CodeGen/AMDGPU/tid-mul-func-xnack-any-off-2.ll
    M llvm/test/CodeGen/AMDGPU/tid-mul-func-xnack-any-on-1.ll
    M llvm/test/CodeGen/AMDGPU/tid-mul-func-xnack-any-on-2.ll
    M llvm/test/CodeGen/AMDGPU/tid-one-func-xnack-not-supported.ll
    M llvm/test/CodeGen/AMDGPU/tid-one-func-xnack-off.ll
    M llvm/test/CodeGen/AMDGPU/tid-one-func-xnack-on.ll

  Log Message:
  -----------
  [AMDGPU] Update code object metadata for kernarg preload

Tracks the registers that explicit and hidden arguments are preloaded to
with new code object metadata.

IR arguments may be split across multiple parts by isel, and SGPR tuple
alignment means that an argument may be spread across multiple
registers.

To support this, some of the utilities for hidden kernel arguments are
moved to `AMDGPUArgumentUsageInfo.h`. Additional bookkeeping is also
needed for tracking purposes.


  Commit: aa57d531f5f654b7b85996cc03b13351e9a85fe4
      https://github.com/llvm/llvm-project/commit/aa57d531f5f654b7b85996cc03b13351e9a85fe4
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-08-01 (Fri, 01 Aug 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUArgumentUsageInfo.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUArgumentUsageInfo.h
    M llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.h
    M llvm/test/CodeGen/AMDGPU/hsa-metadata-preload-args-v6.ll

  Log Message:
  -----------
  Add suggested formatting changes, factor out common parts of emitKenrelArg. Update test.


  Commit: fe526a04c4e735a7f7015945ea72d70f81b868bc
      https://github.com/llvm/llvm-project/commit/fe526a04c4e735a7f7015945ea72d70f81b868bc
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-08-01 (Fri, 01 Aug 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.h

  Log Message:
  -----------
  Factor common emit hidden kernel args metadata.


  Commit: 4dfa396faab22854293832da3a0ce9809a70d0d9
      https://github.com/llvm/llvm-project/commit/4dfa396faab22854293832da3a0ce9809a70d0d9
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-08-01 (Fri, 01 Aug 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUArgumentUsageInfo.h
    M llvm/lib/Target/AMDGPU/AMDGPUPreloadKernelArguments.cpp

  Log Message:
  -----------
  Rebase on changes to move preloading lowering to its own pass.


  Commit: fa8aa6ef95c3788c1d2ec564d18b4cad6e87d655
      https://github.com/llvm/llvm-project/commit/fa8aa6ef95c3788c1d2ec564d18b4cad6e87d655
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-08-01 (Fri, 01 Aug 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUArgumentUsageInfo.h
    M llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp

  Log Message:
  -----------
  Rebase and address review comments.


  Commit: 1f1bb97ce1a3809da68a2f52f4e76ce3ea16bf09
      https://github.com/llvm/llvm-project/commit/1f1bb97ce1a3809da68a2f52f4e76ce3ea16bf09
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-08-01 (Fri, 01 Aug 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUArgumentUsageInfo.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUArgumentUsageInfo.h
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp

  Log Message:
  -----------
  Use IndexMap for PrelaodKernArgs.


Compare: https://github.com/llvm/llvm-project/compare/66d4141655db...1f1bb97ce1a3

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list