Skip to content

Commit 98fa816

Browse files
committed
address pr comments
1 parent db83eff commit 98fa816

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

llvm/lib/Target/DirectX/DXIL.td

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -303,15 +303,15 @@ def IMad : DXILOpMapping<48, tertiary, int_dx_imad,
303303
"Signed integer arithmetic multiply/add operation. imad(m,a,b) = m * a + b.">;
304304
def UMad : DXILOpMapping<49, tertiary, int_dx_umad,
305305
"Unsigned integer arithmetic multiply/add operation. umad(m,a,b) = m * a + b.">;
306-
def Dot2 : DXILOpMapping<54, dot2, int_dx_dot2,
307-
"dot product of two float vectors Dot(a,b) = a[0]*b[0] + ... + a[n]*b[n] where n is between 0 and 1",
308-
[llvm_halforfloat_ty,LLVMMatchType<0>,LLVMMatchType<0>,LLVMMatchType<0>,LLVMMatchType<0>]>;
309-
def Dot3 : DXILOpMapping<55, dot3, int_dx_dot3,
310-
"dot product of two float vectors Dot(a,b) = a[0]*b[0] + ... + a[n]*b[n] where n is between 0 and 2",
311-
[llvm_halforfloat_ty,LLVMMatchType<0>,LLVMMatchType<0>,LLVMMatchType<0>,LLVMMatchType<0>,LLVMMatchType<0>,LLVMMatchType<0>]>;
312-
def Dot4 : DXILOpMapping<56, dot4, int_dx_dot4,
313-
"dot product of two float vectors Dot(a,b) = a[0]*b[0] + ... + a[n]*b[n] where n is between 0 and 3",
314-
[llvm_halforfloat_ty,LLVMMatchType<0>,LLVMMatchType<0>,LLVMMatchType<0>,LLVMMatchType<0>,LLVMMatchType<0>,LLVMMatchType<0>,LLVMMatchType<0>,LLVMMatchType<0>]>;
306+
let OpTypes = !listconcat([llvm_halforfloat_ty], !listsplat(llvm_halforfloat_ty, 4)) in
307+
def Dot2 : DXILOpMapping<54, dot2, int_dx_dot2,
308+
"dot product of two float vectors Dot(a,b) = a[0]*b[0] + ... + a[n]*b[n] where n is between 0 and 1">;
309+
let OpTypes = !listconcat([llvm_halforfloat_ty], !listsplat(llvm_halforfloat_ty, 6)) in
310+
def Dot3 : DXILOpMapping<55, dot3, int_dx_dot3,
311+
"dot product of two float vectors Dot(a,b) = a[0]*b[0] + ... + a[n]*b[n] where n is between 0 and 2">;
312+
let OpTypes = !listconcat([llvm_halforfloat_ty], !listsplat(llvm_halforfloat_ty, 8)) in
313+
def Dot4 : DXILOpMapping<56, dot4, int_dx_dot4,
314+
"dot product of two float vectors Dot(a,b) = a[0]*b[0] + ... + a[n]*b[n] where n is between 0 and 3">;
315315
def ThreadId : DXILOpMapping<93, threadId, int_dx_thread_id,
316316
"Reads the thread ID">;
317317
def GroupId : DXILOpMapping<94, groupId, int_dx_group_id,

0 commit comments

Comments
 (0)