[clang] [llvm] [HLSL] Implement WaveActiveAnyTrue intrinsic (PR #115902)
Finn Plummer via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 12 14:23:13 PST 2024
================
@@ -93,6 +93,7 @@ def int_dx_rsqrt : DefaultAttrsIntrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>]
def int_dx_wave_active_countbits : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i1_ty], [IntrConvergent, IntrNoMem]>;
def int_dx_wave_getlaneindex : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrConvergent, IntrNoMem]>;
def int_dx_wave_is_first_lane : DefaultAttrsIntrinsic<[llvm_i1_ty], [], [IntrConvergent]>;
+def int_dx_wave_activeanytrue : DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_i1_ty], [IntrConvergent]>;
----------------
inbelic wrote:
We could rename this to `int_dx_wave_any` to keep in line with https://github.com/llvm/wg-hlsl/pull/99. Same for spirv intrinsic and uses in SPIRVInstructionSelector
https://github.com/llvm/llvm-project/pull/115902
More information about the cfe-commits
mailing list