[all-commits] [llvm/llvm-project] daec69: [AMDGPU] Use 32-bit index for SWMMAC builtins

Shilei Tian via All-commits all-commits at lists.llvm.org
Thu Feb 27 11:00:33 PST 2025


  Branch: refs/heads/users/shiltian/swmmac-index-32-bit
  Home:   https://github.com/llvm/llvm-project
  Commit: daec69f37a9b10f4bcf258f3a6f9e45cee72b64d
      https://github.com/llvm/llvm-project/commit/daec69f37a9b10f4bcf258f3a6f9e45cee72b64d
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2025-02-27 (Thu, 27 Feb 2025)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsAMDGPU.def
    M clang/test/CodeGenOpenCL/builtins-amdgcn-swmmac-w32.cl
    M clang/test/CodeGenOpenCL/builtins-amdgcn-swmmac-w64.cl
    M cross-project-tests/amdgpu/builtins-amdgcn-swmmac-w32.cl

  Log Message:
  -----------
  [AMDGPU] Use 32-bit index for SWMMAC builtins

Currently, the index of SWMMAC builtins is of type `short`, likely based on the
assumption that K can only be up to 32, meaning there are only 16 non-zero
elements. However, this is not future-proof. This patch updates all of them to
`int`.

The intrinsics themselves don't need to be updated since they accept any integer
type, and in the backend, they are already extended to 32-bit. Additionally, the
tests already use various kinds of integers.

Partially fixes SWDEV-518183.



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