[llvm] ff617bc - [HLSL] Fix WaveBallot dxil op function name (#174901)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 8 10:17:51 PST 2026


Author: Joshua Batista
Date: 2026-01-08T10:17:47-08:00
New Revision: ff617bce04cc05b1348bd2d68edabbd315a38a22

URL: https://github.com/llvm/llvm-project/commit/ff617bce04cc05b1348bd2d68edabbd315a38a22
DIFF: https://github.com/llvm/llvm-project/commit/ff617bce04cc05b1348bd2d68edabbd315a38a22.diff

LOG: [HLSL] Fix WaveBallot dxil op function name (#174901)

Just fixing a typo from a copy paste.

Added: 
    

Modified: 
    llvm/lib/Target/DirectX/DXIL.td
    llvm/test/CodeGen/DirectX/WaveActiveBallot.ll

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/DirectX/DXIL.td b/llvm/lib/Target/DirectX/DXIL.td
index d84fa4a94f489..6d04732d92ecf 100644
--- a/llvm/lib/Target/DirectX/DXIL.td
+++ b/llvm/lib/Target/DirectX/DXIL.td
@@ -218,6 +218,7 @@ defset list<DXILOpClass> OpClasses = {
   def waveAllOp : DXILOpClass;
   def waveAllTrue : DXILOpClass;
   def waveAnyTrue : DXILOpClass;
+  def waveBallot : DXILOpClass;
   def waveGetLaneCount : DXILOpClass;
   def waveGetLaneIndex : DXILOpClass;
   def waveIsFirstLane : DXILOpClass;
@@ -1071,7 +1072,7 @@ def WaveReadLaneAt : DXILOp<117, waveReadLaneAt> {
   let stages = [Stages<DXIL1_0, [all_stages]>];
 }
 
-def WaveActiveBallot : DXILOp<118, waveAnyTrue> {
+def WaveActiveBallot : DXILOp<118, waveBallot> {
   let Doc = "returns uint4 containing a bitmask of the evaluation of the boolean expression for all active lanes in the current wave.";
   let intrinsics = [IntrinSelect<int_dx_wave_ballot>];
   let arguments = [Int1Ty];

diff  --git a/llvm/test/CodeGen/DirectX/WaveActiveBallot.ll b/llvm/test/CodeGen/DirectX/WaveActiveBallot.ll
index 5c3f8fc2d7643..cf6255de3a734 100644
--- a/llvm/test/CodeGen/DirectX/WaveActiveBallot.ll
+++ b/llvm/test/CodeGen/DirectX/WaveActiveBallot.ll
@@ -2,7 +2,7 @@
 
 define noundef <4 x i32> @wave_ballot_simple(i1 noundef %p1) {
 entry:
-; CHECK: call <4 x i32> @dx.op.waveAnyTrue.void(i32 118, i1 %p1)
+; CHECK: call <4 x i32> @dx.op.waveBallot.void(i32 118, i1 %p1)
   %ret = call <4 x i32> @llvm.dx.wave.ballot(i1 %p1)
   ret <4 x i32> %ret
 }


        


More information about the llvm-commits mailing list