[all-commits] [llvm/llvm-project] deb851: clang/AMDGPU: Add __builtin_amdgcn_inverse_ballot_...

Nicolai Hähnle via All-commits all-commits at lists.llvm.org
Wed Aug 27 19:40:24 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: deb851c6d01bd34159561c1904e2ac36d4b2f33f
      https://github.com/llvm/llvm-project/commit/deb851c6d01bd34159561c1904e2ac36d4b2f33f
  Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
  Date:   2025-08-27 (Wed, 27 Aug 2025)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/include/clang/Basic/BuiltinsAMDGPU.def
    M clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp
    M clang/test/CodeGenOpenCL/builtins-amdgcn-wave32.cl
    M clang/test/CodeGenOpenCL/builtins-amdgcn-wave64.cl

  Log Message:
  -----------
  clang/AMDGPU: Add __builtin_amdgcn_inverse_ballot_w{32,64} (#155724)

Add builtins that expose the underlying llvm.amdgcn.inverse.ballot
intrinsic that we've had for a while.

This allows more explicitly writing code that selects or branches in
terms of lane masks, which can lead to better code quality.



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