[all-commits] [llvm/llvm-project] 746d8b: [Clang][AMDGPU] Use 32-bit index for SWMMAC builti...

Shilei Tian via All-commits all-commits at lists.llvm.org
Thu Feb 27 20:29:09 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 746d8b0740095ea3939fef0112a51953ca22cd29
      https://github.com/llvm/llvm-project/commit/746d8b0740095ea3939fef0112a51953ca22cd29
  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:
  -----------
  [Clang][AMDGPU] Use 32-bit index for SWMMAC builtins (#129101)

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