[clang] [llvm] [HLSL] Add WaveActiveBitXor function (PR #185776)

Joshua Batista via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 12 10:16:44 PDT 2026


================
@@ -2809,6 +2809,40 @@ _HLSL_AVAILABILITY(shadermodel, 6.0)
 _HLSL_BUILTIN_ALIAS(__builtin_hlsl_wave_active_bit_or)
 __attribute__((convergent)) uint64_t4 WaveActiveBitOr(uint64_t4);
 
+//===----------------------------------------------------------------------===//
+// WaveActiveBitXor builtins
----------------
bob80905 wrote:

Correct, at least for DXC:
https://godbolt.org/z/xKEoPsP6K

Similarly, WaveActiveBitOr was also implemented in such a way as to not support 16 bit types.
Also, only unsigned int types are allowed.

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


More information about the cfe-commits mailing list