@@ -303,15 +303,15 @@ def IMad : DXILOpMapping<48, tertiary, int_dx_imad,
303
303
"Signed integer arithmetic multiply/add operation. imad(m,a,b) = m * a + b.">;
304
304
def UMad : DXILOpMapping<49, tertiary, int_dx_umad,
305
305
"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" >;
315
315
def ThreadId : DXILOpMapping<93, threadId, int_dx_thread_id,
316
316
"Reads the thread ID">;
317
317
def GroupId : DXILOpMapping<94, groupId, int_dx_group_id,
0 commit comments