[libc-commits] [clang] [libc] [Clang] Add handlers for 'match_any' and 'match_all' to `gpuintrin.h` (PR #127504)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Mon Feb 17 20:33:36 PST 2025
================
@@ -162,6 +162,62 @@ __gpu_shuffle_idx_u64(uint64_t __lane_mask, uint32_t __idx, uint64_t __x,
((uint64_t)__gpu_shuffle_idx_u32(__lane_mask, __idx, __lo, __width));
}
+// Returns a bitmask marking all lanes that have the same value of __x.
+_DEFAULT_FN_ATTRS static __inline__ uint64_t
----------------
jhuber6 wrote:
The typedef would be dependent on the `__AMDGCN_WAVESIZE` thing, which is being deprecated. But it would work between NVPTX and AMDGPU I suppose.
https://github.com/llvm/llvm-project/pull/127504
More information about the libc-commits
mailing list