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

Austin Kerbow via All-commits all-commits at lists.llvm.org
Wed May 28 20:56:59 PDT 2025


  Branch: refs/heads/users/kerbowa/preload-kernarg-metadata
  Home:   https://github.com/llvm/llvm-project
  Commit: 1742b90e940361ff739f6bb3f958afd997995e3e
      https://github.com/llvm/llvm-project/commit/1742b90e940361ff739f6bb3f958afd997995e3e
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-05-28 (Wed, 28 May 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: c4bc0cd0fb80e9ea273f2b5888054206eb0aa8d0
      https://github.com/llvm/llvm-project/commit/c4bc0cd0fb80e9ea273f2b5888054206eb0aa8d0
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-05-28 (Wed, 28 May 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: d00833e09dda1c89bd9885a456bb663e19ddcfc0
      https://github.com/llvm/llvm-project/commit/d00833e09dda1c89bd9885a456bb663e19ddcfc0
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-05-28 (Wed, 28 May 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: 82c8a97a698c8e5800d390a0337adbfe949d9ea3
      https://github.com/llvm/llvm-project/commit/82c8a97a698c8e5800d390a0337adbfe949d9ea3
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2025-05-28 (Wed, 28 May 2025)

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

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


Compare: https://github.com/llvm/llvm-project/compare/e130ee1c7022...82c8a97a698c

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