[clang] [llvm] [HLSL][DXIL][SPIRV] Added WaveActiveBitOr HLSL intrinsic (PR #165156)

Sietze Riemersma via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 10 00:02:29 PDT 2026


================
@@ -20,8 +20,8 @@ uint test_uint(uint expr) {
 
 // CHECK-LABEL: test_uint2
 uint2 test_uint2(uint2 expr) {
-  // DXCHECK:  %[[RET:.*]] = call [[TY:.*]] @llvm.[[ICF:dx]].wave.reduce.or.v2i32([[TY]] %[[#]])
-  // SPVCHECK:  %[[RET:.*]] = call spir_func [[TY:.*]] @llvm.[[ICF:spv]].wave.reduce.or.v2i32([[TY]] %[[#]])
+  // DXCHECK:  %[[RET:.*]] = call [[TY:.*]] @llvm.[[ICF]].wave.reduce.or.v2i32([[TY]] %[[#]])
+  // SPVCHECK:  %[[RET:.*]] = call spir_func [[TY:.*]] @llvm.[[ICF]].wave.reduce.or.v2i32([[TY]] %[[#]])
----------------
KungFuDonkey wrote:

Oh yea, I tried that but there is spir_func for spirv which makes it incompatible

Let me see if I can get that into a variable somehow

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


More information about the cfe-commits mailing list