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

Austin Kerbow via All-commits all-commits at lists.llvm.org
Sat Jun 28 23:28:51 PDT 2025


  Branch: refs/heads/users/kerbowa/preload-kernarg-metadata
  Home:   https://github.com/llvm/llvm-project
  Commit: e5497f905103211a77cdb1a77359343188aba513
      https://github.com/llvm/llvm-project/commit/e5497f905103211a77cdb1a77359343188aba513
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-06-28 (Sat, 28 Jun 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: 209bf8bb01dce2d7d0bfb7fe205edd117215cc12
      https://github.com/llvm/llvm-project/commit/209bf8bb01dce2d7d0bfb7fe205edd117215cc12
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-06-28 (Sat, 28 Jun 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: f70a0bd9b94975333e24aee7c8558d6286069967
      https://github.com/llvm/llvm-project/commit/f70a0bd9b94975333e24aee7c8558d6286069967
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-06-28 (Sat, 28 Jun 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: b79ca55329a2d4f39689ee0d985892ca0f8e55ae
      https://github.com/llvm/llvm-project/commit/b79ca55329a2d4f39689ee0d985892ca0f8e55ae
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-06-28 (Sat, 28 Jun 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: 93830146d9b82a820de101f2891ce1c2e06af1db
      https://github.com/llvm/llvm-project/commit/93830146d9b82a820de101f2891ce1c2e06af1db
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-06-28 (Sat, 28 Jun 2025)

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

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


Compare: https://github.com/llvm/llvm-project/compare/a2e299e1f7b3...93830146d9b8

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