[clang] [libc] [Clang] Add handlers for 'match_any' and 'match_all' to `gpuintrin.h` (PR #127504)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 17 09:18:41 PST 2025
================
@@ -92,6 +92,14 @@ LIBC_INLINE uint32_t shuffle(uint64_t lane_mask, uint32_t idx, uint32_t x,
return __gpu_shuffle_idx_u32(lane_mask, idx, x, width);
}
+LIBC_INLINE uint64_t match_any(uint64_t lane_mask, uint32_t x) {
+ return __gpu_match_any_u32(lane_mask, x);
+}
+
+LIBC_INLINE uint64_t match_all(uint64_t lane_mask, uint32_t x) {
----------------
jhuber6 wrote:
Yes, this is just a wrapper used internally by the `libc`.
https://github.com/llvm/llvm-project/pull/127504
More information about the cfe-commits
mailing list