[all-commits] [llvm/llvm-project] 11b183: [HLSL] Handle WaveActiveBallot struct return type ...

Joshua Batista via All-commits all-commits at lists.llvm.org
Tue Jan 20 10:08:47 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11b18362822759ac1592cee5b857943fa2320f8c
      https://github.com/llvm/llvm-project/commit/11b18362822759ac1592cee5b857943fa2320f8c
  Author: Joshua Batista <jbatista at microsoft.com>
  Date:   2026-01-20 (Tue, 20 Jan 2026)

  Changed paths:
    M clang/lib/CodeGen/CGHLSLBuiltins.cpp
    M clang/lib/CodeGen/CGHLSLRuntime.h
    M clang/test/CodeGenHLSL/builtins/WaveActiveBallot.hlsl
    M clang/test/CodeGenSPIRV/Builtins/subgroup.c
    M clang/test/Headers/gpuintrin.c
    M llvm/include/llvm/IR/IntrinsicsDirectX.td
    M llvm/include/llvm/IR/IntrinsicsSPIRV.td
    M llvm/lib/Target/DirectX/DXIL.td
    M llvm/lib/Target/DirectX/DXILOpBuilder.cpp
    M llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
    M llvm/test/CodeGen/DirectX/WaveActiveBallot.ll
    M llvm/test/CodeGen/SPIRV/hlsl-intrinsics/WaveActiveBallot.ll
    A llvm/test/tools/dxil-dis/waveactiveballot.ll

  Log Message:
  -----------
  [HLSL] Handle WaveActiveBallot struct return type appropriately (#175105)

The previous WaveActiveBallot implementation did not account for the
fact that the DXC implementation of the intrinsic returns a struct type
with 4 uints, rather than a vector of 4 uints. This must be respected,
otherwise the validator will reject the uses of WaveActiveBallot that
return a vector of 4 uints.
This PR updates the return type and adds the DXC-specific return type
`fouri32` to use for the intrinsic.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list