[llvm-branch-commits] [clang] [AMDGPU][Clang] add __builtin_amdgcn_av_(load|store)_b128 (PR #199176)

Shilei Tian via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat May 23 17:02:49 PDT 2026


================
@@ -5754,6 +5756,32 @@ returns the bit at the position of the current lane. It is almost equivalent to
 ``(mask & (1 << lane_id)) != 0``, except that its behavior is only defined if
 the given mask has the same value for all active lanes of the current wave.
 
+
+__builtin_amdgcn_av_{load,store}_b128
----------------
shiltian wrote:

AMDGPU's builtins need to be documented in `clang/include/clang/Basic/BuiltinsAMDGPUDocs.td` at least.

https://llvm.org/docs/AMDGPU/DeveloperGuideline.html#document-new-builtins

https://github.com/llvm/llvm-project/pull/199176


More information about the llvm-branch-commits mailing list