From 147395e15c852e7034cb4e2b0f7ac6be7dd8a4de Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Mon, 16 Dec 2024 22:11:57 +0000 Subject: [PATCH] update `DXILProperty` uses - update existing wave ops to specify the `IsWave` property - update the `Barrier` op to specify the `IsBarrier` property --- llvm/lib/Target/DirectX/DXIL.td | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/lib/Target/DirectX/DXIL.td b/llvm/lib/Target/DirectX/DXIL.td index fc60a80dcf114b..aaf094efc1fee7 100644 --- a/llvm/lib/Target/DirectX/DXIL.td +++ b/llvm/lib/Target/DirectX/DXIL.td @@ -949,6 +949,7 @@ def WaveActiveAnyTrue : DXILOp<113, waveAnyTrue> { let arguments = [Int1Ty]; let result = Int1Ty; let stages = [Stages]; + let properties = [IsWave]; } def WaveIsFirstLane : DXILOp<110, waveIsFirstLane> { @@ -957,6 +958,7 @@ def WaveIsFirstLane : DXILOp<110, waveIsFirstLane> { let arguments = []; let result = Int1Ty; let stages = [Stages]; + let properties = [IsWave]; } def WaveReadLaneAt: DXILOp<117, waveReadLaneAt> { @@ -966,6 +968,7 @@ def WaveReadLaneAt: DXILOp<117, waveReadLaneAt> { let result = OverloadTy; let overloads = [Overloads]; let stages = [Stages]; + let properties = [IsWave]; } def WaveGetLaneIndex : DXILOp<111, waveGetLaneIndex> { @@ -975,6 +978,7 @@ def WaveGetLaneIndex : DXILOp<111, waveGetLaneIndex> { let result = Int32Ty; let stages = [Stages]; let attributes = [Attributes]; + let properties = [IsWave]; } def WaveAllBitCount : DXILOp<135, waveAllOp> { @@ -983,6 +987,7 @@ def WaveAllBitCount : DXILOp<135, waveAllOp> { let arguments = [Int1Ty]; let result = Int32Ty; let stages = [Stages]; + let properties = [IsWave]; } def Barrier : DXILOp<80, barrier> { @@ -997,4 +1002,5 @@ def Barrier : DXILOp<80, barrier> { let result = VoidTy; let stages = [Stages]; let attributes = [Attributes]; + let properties = [IsBarrier]; }