22
22
; CHECK-SPIRV-DAG: TypeCooperativeMatrixKHR [[#MatTy1:]] [[#Int32Ty]] [[#Const3]] [[#Const12]] [[#Const12]] [[#Const2]]
23
23
; CHECK-SPIRV-DAG: TypeCooperativeMatrixKHR [[#MatTy2:]] [[#Int8Ty]] [[#Const3]] [[#Const12]] [[#Const48]] [[#Const0]]
24
24
; CHECK-SPIRV-DAG: TypeCooperativeMatrixKHR [[#MatTy3:]] [[#Int8Ty]] [[#Const2]] [[#Const48]] [[#Const12]] [[#Const1]]
25
- ; CHECK-SPIRV: CompositeConstruct [[#MatTy1]]
25
+ ; CHECK-SPIRV: CooperativeMatrixConstructCheckedINTEL [[#MatTy1]]
26
26
; CHECK-SPIRV: CooperativeMatrixLoadCheckedINTEL [[#MatTy2]] [[#Load1:]]
27
27
; TODO: Pass Matrix Type Id instead of Matrix Id to CooperativeMatrixLengthKHR.
28
28
; CHECK-SPIRV: CooperativeMatrixLengthKHR [[#Int32Ty]] [[#]] [[#Load1]]
29
29
; CHECK-SPIRV: CooperativeMatrixLoadCheckedINTEL [[#MatTy3]]
30
30
; CHECK-SPIRV: CooperativeMatrixMulAddKHR [[#MatTy1]]
31
31
; CHECK-SPIRV: CooperativeMatrixStoreCheckedINTEL
32
32
33
- ; CHECK-LLVM: call spir_func target("spirv.CooperativeMatrixKHR", i32, 3, 12, 12, 2) @_Z26__spirv_CompositeConstructi (i32 0 )
33
+ ; CHECK-LLVM: call spir_func target("spirv.CooperativeMatrixKHR", i32, 3, 12, 12, 2) @_Z46__spirv_CooperativeMatrixConstructCheckedINTELiilli (i32 4, i32 4, i64 12, i64 12, i32 %_arg_Initvalue )
34
34
; CHECK-LLVM: call spir_func target("spirv.CooperativeMatrixKHR", i8, 3, 12, 48, 0) @_Z41__spirv_CooperativeMatrixLoadCheckedINTELPU3AS4ciiillli(ptr addrspace(4) %[[MatrixPtr:[%0-9a-z.]+]], i32 0, i32 0, i32 0, i64 12, i64 48, i64 %_arg_K, i32 1)
35
35
; CHECK-LLVM: call spir_func i32 @_Z34__spirv_CooperativeMatrixLengthKHRPU3AS144__spirv_CooperativeMatrixKHR__char_3_12_48_0(target("spirv.CooperativeMatrixKHR", i8, 3, 12, 48, 0)
36
36
; CHECK-LLVM: call spir_func target("spirv.CooperativeMatrixKHR", i8, 2, 48, 12, 1) @_Z41__spirv_CooperativeMatrixLoadCheckedINTELPU3AS4ciiilll
@@ -52,7 +52,7 @@ $_ZTSZZ15matrix_multiply = comdat any
52
52
@__spirv_BuiltInLocalInvocationId = external dso_local local_unnamed_addr addrspace (1 ) constant <3 x i64 >, align 32
53
53
54
54
; Function Attrs: convergent norecurse
55
- define weak_odr dso_local spir_kernel void @_ZTSZZ15matrix_multiply (ptr addrspace (1 ) noundef align 1 %_arg_accA , ptr addrspace (1 ) noundef align 1 %_arg_accB , ptr noundef byval (%"class.sycl::_V1::range" ) align 8 %_arg_accB5 , ptr noundef byval (%"class.sycl::_V1::id" ) align 8 %_arg_accB6 , ptr addrspace (1 ) noundef align 4 %_arg_accC , i64 noundef %_arg_N , i64 noundef %_arg_K ) local_unnamed_addr #0 comdat {
55
+ define weak_odr dso_local spir_kernel void @_ZTSZZ15matrix_multiply (ptr addrspace (1 ) noundef align 1 %_arg_accA , ptr addrspace (1 ) noundef align 1 %_arg_accB , ptr noundef byval (%"class.sycl::_V1::range" ) align 8 %_arg_accB5 , ptr noundef byval (%"class.sycl::_V1::id" ) align 8 %_arg_accB6 , ptr addrspace (1 ) noundef align 4 %_arg_accC , i64 noundef %_arg_N , i64 noundef %_arg_K , i32 noundef %_arg_Initvalue ) local_unnamed_addr #0 comdat {
56
56
entry:
57
57
%sub_c.sroa.0.i = alloca target ("spirv.CooperativeMatrixKHR" , i32 , 3 , 12 , 12 , 2 ), align 8
58
58
%ref.tmp29.sroa.0.i = alloca target ("spirv.CooperativeMatrixKHR" , i32 , 3 , 12 , 12 , 2 ), align 8
77
77
%cmp.i58.i = icmp ult i64 %5 , 2147483648
78
78
%sub5.i = sub nsw i64 %2 , %5
79
79
call void @llvm.lifetime.start.p0 (i64 8 , ptr nonnull %sub_c.sroa.0.i )
80
- %call.i.i = tail call spir_func noundef target ("spirv.CooperativeMatrixKHR" , i32 , 3 , 12 , 12 , 2 ) @_Z26__spirv_CompositeConstruct (i32 noundef 0 ) #4
80
+ %call.i.i = tail call spir_func noundef target ("spirv.CooperativeMatrixKHR" , i32 , 3 , 12 , 12 , 2 ) @_Z46__spirv_CooperativeMatrixConstructCheckedINTEL (i32 noundef 4 , i32 noundef 4 , i64 noundef 12 , i64 noundef 12 , i32 noundef %_arg_Initvalue ) #4
81
81
store target ("spirv.CooperativeMatrixKHR" , i32 , 3 , 12 , 12 , 2 ) %call.i.i , ptr %sub_c.sroa.0.i , align 8
82
82
%mul.i = mul nsw i64 %sub.i , 12
83
83
%div2452.i = lshr i64 %sub5.i , 4
@@ -133,7 +133,7 @@ _ZZZ15matrix_multiplyIiaLm24ELm96ELm24ELm96ELm24ELm24EEvR10big_matrixIT_XT5_EXT6
133
133
}
134
134
135
135
; Function Attrs: convergent
136
- declare dso_local spir_func noundef target ("spirv.CooperativeMatrixKHR" , i32 , 3 , 12 , 12 , 2 ) @_Z26__spirv_CompositeConstruct ( i32 noundef) local_unnamed_addr #2
136
+ declare dso_local spir_func noundef target ("spirv.CooperativeMatrixKHR" , i32 , 3 , 12 , 12 , 2 ) @_Z46__spirv_CooperativeMatrixConstructCheckedINTEL ( i32 noundef, i32 noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
137
137
138
138
declare dso_local spir_func noundef i32 @_Z34__spirv_CooperativeMatrixLengthKHR (target ("spirv.CooperativeMatrixKHR" , i8 , 3 , 12 , 48 , 0 ) noundef)
139
139
0 commit comments