Skip to content

Commit b68a561

Browse files
committed
[NFC][DXIL] Add WaveActiveOp dxil operation
- lowering target for `WaveActive*` ops
1 parent 0843af1 commit b68a561

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

llvm/lib/Target/DirectX/DXIL.td

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,15 @@ def CreateHandleFromBinding : DXILOp<218, createHandleFromBinding> {
793793
let stages = [Stages<DXIL1_6, [all_stages]>];
794794
}
795795

796+
def WaveActiveOp : DXILOp<119, waveActiveOp> {
797+
let Doc = "returns the result of the operation across waves";
798+
let arguments = [OverloadTy, Int8Ty, Int8Ty];
799+
let result = OverloadTy;
800+
let overloads = [Overloads<DXIL1_0, [HalfTy, FloatTy, DoubleTy, Int16Ty, Int32Ty, Int64Ty]>];
801+
let stages = [Stages<DXIL1_0, [all_stages]>];
802+
let attributes = [Attributes<DXIL1_0, [ReadNone]>];
803+
}
804+
796805
def WaveIsFirstLane : DXILOp<110, waveIsFirstLane> {
797806
let Doc = "returns 1 for the first lane in the wave";
798807
let LLVMIntrinsic = int_dx_wave_is_first_lane;

0 commit comments

Comments
 (0)