[clang] [llvm] [HLSL][DXIL][SPRIV] Added WaveActiveProduct intrinsic #164385 (PR #165109)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 23 11:53:10 PST 2026
================
@@ -847,6 +865,17 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID,
&CGM.getModule(), IID, {OpExpr->getType()}),
ArrayRef{OpExpr}, "hlsl.wave.active.sum");
}
+ case Builtin::BI__builtin_hlsl_wave_active_product: {
+ // Due to the use of variadic arguments, explicitly retreive argument
+ Value *OpExpr = EmitScalarExpr(E->getArg(0));
+ Intrinsic::ID IID = getWaveActiveProductIntrinsic(
+ getTarget().getTriple().getArch(), CGM.getHLSLRuntime(),
----------------
farzonl wrote:
remove `CGM.getHLSLRuntime()` `getWaveActiveProductIntrinsic` doesn't need it.
https://github.com/llvm/llvm-project/pull/165109
More information about the cfe-commits
mailing list