[all-commits] [llvm/llvm-project] f4bcd7: AMDGPU/clang: Add builtins for llvm.amdgcn.ballot

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Dec 29 14:59:08 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f4bcd7f598331457cfe74e459b489d4098369511
      https://github.com/llvm/llvm-project/commit/f4bcd7f598331457cfe74e459b489d4098369511
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2022-12-29 (Thu, 29 Dec 2022)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsAMDGPU.def
    M clang/lib/Basic/Targets/AMDGPU.cpp
    M clang/lib/CodeGen/CGBuiltin.cpp
    A clang/test/CodeGenOpenCL/amdgpu-features-illegal.cl
    M clang/test/CodeGenOpenCL/amdgpu-features.cl
    M clang/test/CodeGenOpenCL/builtins-amdgcn-gfx10.cl
    A clang/test/CodeGenOpenCL/builtins-amdgcn-wave32.cl
    A clang/test/CodeGenOpenCL/builtins-amdgcn-wave64.cl
    M clang/test/OpenMP/amdgcn-attributes.cpp
    A clang/test/SemaOpenCL/builtins-amdgcn-error-wave32.cl
    A clang/test/SemaOpenCL/builtins-amdgcn-error-wave64.cl

  Log Message:
  -----------
  AMDGPU/clang: Add builtins for llvm.amdgcn.ballot

Use explicit _w32/_w64 suffixes for the wave size to be consistent
with the existing other wave dependent intrinsics. Also start
diagnosing trying to use both wave32 and wave64.

I would have preferred to avoid the +wavefrontsize64 spam on targets
where that's the only option, but avoiding this seems to be more work
than I expected.




More information about the All-commits mailing list