@@ -13,19 +13,19 @@ target triple = "spir64-unknown-unknown"
13
13
@imageSampler = addrspace (2 ) constant i32 36 , align 4
14
14
15
15
; Function Attrs: nounwind
16
- define spir_kernel void @sample_kernel (target ("spirv.Image" , void , 1 , 0 , 0 , 0 , 0 , 0 , 1 ) %input , ptr addrspace (1 ) nocapture %xOffsets , ptr addrspace (1 ) nocapture %yOffsets , ptr addrspace (1 ) nocapture %results ) #0 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3 !kernel_arg_base_type !5 !kernel_arg_type_qual !4 {
16
+ define spir_kernel void @sample_kernel (target ("spirv.Image" , void , 1 , 0 , 0 , 0 , 0 , 0 , 0 ) %input , ptr addrspace (1 ) nocapture %xOffsets , ptr addrspace (1 ) nocapture %yOffsets , ptr addrspace (1 ) nocapture %results ) #0 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3 !kernel_arg_base_type !5 !kernel_arg_type_qual !4 {
17
17
%1 = tail call spir_func i64 @_Z13get_global_idj (i32 0 ) #1
18
18
%2 = trunc i64 %1 to i32
19
19
%3 = tail call spir_func i64 @_Z13get_global_idj (i32 1 ) #1
20
20
%4 = trunc i64 %3 to i32
21
- %5 = tail call spir_func i32 @_Z15get_image_width11ocl_image2d (target ("spirv.Image" , void , 1 , 0 , 0 , 0 , 0 , 0 , 1 ) %input ) #1
21
+ %5 = tail call spir_func i32 @_Z15get_image_width11ocl_image2d (target ("spirv.Image" , void , 1 , 0 , 0 , 0 , 0 , 0 , 0 ) %input ) #1
22
22
%6 = mul nsw i32 %4 , %5
23
23
%7 = add nsw i32 %6 , %2
24
24
%8 = sitofp i32 %2 to float
25
25
%9 = insertelement <2 x float > undef , float %8 , i32 0
26
26
%10 = sitofp i32 %4 to float
27
27
%11 = insertelement <2 x float > %9 , float %10 , i32 1
28
- %12 = tail call spir_func <4 x float > @_Z11read_imagef11ocl_image2d11ocl_samplerDv2_f (target ("spirv.Image" , void , 1 , 0 , 0 , 0 , 0 , 0 , 1 ) %input , i32 36 , <2 x float > %11 ) #1
28
+ %12 = tail call spir_func <4 x float > @_Z11read_imagef11ocl_image2d11ocl_samplerDv2_f (target ("spirv.Image" , void , 1 , 0 , 0 , 0 , 0 , 0 , 0 ) %input , i32 36 , <2 x float > %11 ) #1
29
29
%13 = sext i32 %7 to i64
30
30
%14 = getelementptr inbounds <4 x float >, ptr addrspace (1 ) %results , i64 %13
31
31
store <4 x float > %12 , ptr addrspace (1 ) %14 , align 16 , !tbaa !11
@@ -36,10 +36,10 @@ define spir_kernel void @sample_kernel(target("spirv.Image", void, 1, 0, 0, 0, 0
36
36
declare spir_func i64 @_Z13get_global_idj (i32 ) #1
37
37
38
38
; Function Attrs: nounwind readnone
39
- declare spir_func i32 @_Z15get_image_width11ocl_image2d (target ("spirv.Image" , void , 1 , 0 , 0 , 0 , 0 , 0 , 1 )) #1
39
+ declare spir_func i32 @_Z15get_image_width11ocl_image2d (target ("spirv.Image" , void , 1 , 0 , 0 , 0 , 0 , 0 , 0 )) #1
40
40
41
41
; Function Attrs: nounwind readnone
42
- declare spir_func <4 x float > @_Z11read_imagef11ocl_image2d11ocl_samplerDv2_f (target ("spirv.Image" , void , 1 , 0 , 0 , 0 , 0 , 0 , 1 ), i32 , <2 x float >) #1
42
+ declare spir_func <4 x float > @_Z11read_imagef11ocl_image2d11ocl_samplerDv2_f (target ("spirv.Image" , void , 1 , 0 , 0 , 0 , 0 , 0 , 0 ), i32 , <2 x float >) #1
43
43
44
44
attributes #0 = { nounwind }
45
45
attributes #1 = { nounwind readnone }
0 commit comments