Debian Codegraph @

IGC/ocloc_tests/SPIRV-extenstions/SPV_INTEL_fpga_memory_accesses/IntelFPGAMemoryAccesses.ll

raw
1 ; LLVM IR generated by Intel SYCL Clang compiler (https://github.com/intel/llvm)
2 ; SYCL source code can be found below:
3
4 ; #define BURST_COAL 0x1
5 ; #define CACHE_SIZE_FLAG 0x2
6 ; #define DONT_STATICALLY_COAL 0x4
7 ; #define PREFETCH 0x8
8 ; struct State {
9 ; float Field1;
10 ; int Field2;
11 ; };
12 ;
13 ; void foo(float *A, int *B, State *C) {
14 ; float *x;
15 ; int *y;
16 ; State *z;
17 ; double *t;
18 ; x = __builtin_intel_fpga_mem(A, BURST_COAL | CACHE_SIZE_FLAG, 0);
19 ; y = __builtin_intel_fpga_mem(B, DONT_STATICALLY_COAL | PREFETCH, 0);
20 ; z = __builtin_intel_fpga_mem(C, CACHE_SIZE_FLAG, 127);
21 ; x = __builtin_intel_fpga_mem(&C->Field1, BURST_COAL | CACHE_SIZE_FLAG, 127);
22 ; y = __builtin_intel_fpga_mem(&C->Field2, 0, 127);
23 ; z = __builtin_intel_fpga_mem(C, BURST_COAL | CACHE_SIZE_FLAG | DONT_STATICALLY_COAL | PREFETCH, 127);
24 ; t = __builtin_intel_fpga_mem((double *) A, BURST_COAL | CACHE_SIZE_FLAG, 0);
25 ; *__builtin_intel_fpga_mem(A, BURST_COAL | CACHE_SIZE_FLAG, 0) = 5;
26 ; int s = *__builtin_intel_fpga_mem(B, DONT_STATICALLY_COAL | PREFETCH, 0);
27 ; }
28 ;
29 ; template <typename name, typename Func>
30 ; __attribute__((sycl_kernel)) void kernel_single_task(Func kernelFunc) {
31 ; kernelFunc();
32 ; }
33 ;
34 ; int main() {
35 ; kernel_single_task<class fake_kernel>([]() {
36 ; float *A;
37 ; int *B;
38 ; State *C;
39 ; foo(A, B, C);
40 ; });
41 ; return 0;
42 ; }
43
44 ; UNSUPPORTED: system-windows
45 ; REQUIRES: llvm-spirv, regkeys, dg2-supported
46
47 ; RUN: llvm-as %s -o %t.bc
48 ; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_fpga_memory_accesses -o %t.spv
49 ; RUN: ocloc compile -spirv_input -file %t.spv -device dg2 -options " -igc_opts 'ShaderDumpTranslationOnly=1'" 2>&1 | FileCheck %s --check-prefixes=CHECK-LLVM
50
51 target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64"
52 target triple = "spir64-unknown-unknown"
53
54 %"class._ZTSZ4mainE3$_0.anon" = type { i8 }
55 %struct._ZTS5State.State = type { float, i32 }
56
57 ; CHECK-LLVM: [[PARAM_3_CACHE_0:@[a-z0-9_.]+]] = {{.*}}{params:3}{cache-size:0}
58 @.str = private unnamed_addr constant [25 x i8] c"{params:3}{cache-size:0}\00", section "llvm.metadata"
59 @.str.1 = private unnamed_addr constant [14 x i8] c"<invalid loc>\00", section "llvm.metadata"
60 ; "params" bitmask doesn't hold 0x2 (cache size ON), so cache-size can be dropped
61 ; during translation
62 ; CHECK-LLVM: [[PARAM_12_CACHE_0:@[a-z0-9_.]+]] = {{.*}}{params:12}
63 @.str.2 = private unnamed_addr constant [26 x i8] c"{params:12}{cache-size:0}\00", section "llvm.metadata"
64 ; CHECK-LLVM: [[PARAM_2_CACHE_127:@[a-z0-9_.]+]] = {{.*}}{params:2}{cache-size:127}
65 @.str.3 = private unnamed_addr constant [27 x i8] c"{params:2}{cache-size:127}\00", section "llvm.metadata"
66 ; CHECK-LLVM: [[PARAM_3_CACHE_127:@[a-z0-9_.]+]] = {{.*}}{params:3}{cache-size:127}
67 @.str.4 = private unnamed_addr constant [27 x i8] c"{params:3}{cache-size:127}\00", section "llvm.metadata"
68 ; Since "params" bitmask is set to 0, the next string isn't required to be preserved
69 ; during translation. Neither is the corresponding pointer annotation intrinsic.
70 ; CHECK-LLVM: [[PARAM_0_CACHE_127:@[a-z0-9_.]+]] = {{.*}}{params:0}{cache-size:127}
71 @.str.5 = private unnamed_addr constant [27 x i8] c"{params:0}{cache-size:127}\00", section "llvm.metadata"
72 ; CHECK-LLVM: [[PARAM_15_CACHE_127:@[a-z0-9_.]+]] = {{.*}}{params:15}{cache-size:127}
73 @.str.6 = private unnamed_addr constant [28 x i8] c"{params:15}{cache-size:127}\00", section "llvm.metadata"
74
75 ; Function Attrs: norecurse nounwind
76 define spir_kernel void @_ZTSZ4mainE11fake_kernel() #0 !kernel_arg_addr_space !4 !kernel_arg_access_qual !4 !kernel_arg_type !4 !kernel_arg_base_type !4 !kernel_arg_type_qual !4 {
77 entry:
78 %0 = alloca %"class._ZTSZ4mainE3$_0.anon", align 1
79 %1 = bitcast %"class._ZTSZ4mainE3$_0.anon"* %0 to i8*
80 call void @llvm.lifetime.start.p0i8(i64 1, i8* %1) #5
81 %2 = addrspacecast %"class._ZTSZ4mainE3$_0.anon"* %0 to %"class._ZTSZ4mainE3$_0.anon" addrspace(4)*
82 call spir_func void @"_ZZ4mainENK3$_0clEv"(%"class._ZTSZ4mainE3$_0.anon" addrspace(4)* %2)
83 %3 = bitcast %"class._ZTSZ4mainE3$_0.anon"* %0 to i8*
84 call void @llvm.lifetime.end.p0i8(i64 1, i8* %3) #5
85 ret void
86 }
87
88 ; Function Attrs: argmemonly nounwind willreturn
89 declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture) #1
90
91 ; Function Attrs: inlinehint norecurse nounwind
92 define internal spir_func void @"_ZZ4mainENK3$_0clEv"(%"class._ZTSZ4mainE3$_0.anon" addrspace(4)* %this) #2 align 2 {
93 entry:
94 %this.addr = alloca %"class._ZTSZ4mainE3$_0.anon" addrspace(4)*, align 8
95 %A = alloca float addrspace(4)*, align 8
96 %B = alloca i32 addrspace(4)*, align 8
97 %C = alloca %struct._ZTS5State.State addrspace(4)*, align 8
98 store %"class._ZTSZ4mainE3$_0.anon" addrspace(4)* %this, %"class._ZTSZ4mainE3$_0.anon" addrspace(4)** %this.addr, align 8, !tbaa !5
99 %0 = bitcast float addrspace(4)** %A to i8*
100 call void @llvm.lifetime.start.p0i8(i64 8, i8* %0) #5
101 %1 = bitcast i32 addrspace(4)** %B to i8*
102 call void @llvm.lifetime.start.p0i8(i64 8, i8* %1) #5
103 %2 = bitcast %struct._ZTS5State.State addrspace(4)** %C to i8*
104 call void @llvm.lifetime.start.p0i8(i64 8, i8* %2) #5
105 %3 = load float addrspace(4)*, float addrspace(4)** %A, align 8, !tbaa !5
106 %4 = load i32 addrspace(4)*, i32 addrspace(4)** %B, align 8, !tbaa !5
107 %5 = load %struct._ZTS5State.State addrspace(4)*, %struct._ZTS5State.State addrspace(4)** %C, align 8, !tbaa !5
108 call spir_func void @_Z3fooPfPiP5State(float addrspace(4)* %3, i32 addrspace(4)* %4, %struct._ZTS5State.State addrspace(4)* %5)
109 %6 = bitcast %struct._ZTS5State.State addrspace(4)** %C to i8*
110 call void @llvm.lifetime.end.p0i8(i64 8, i8* %6) #5
111 %7 = bitcast i32 addrspace(4)** %B to i8*
112 call void @llvm.lifetime.end.p0i8(i64 8, i8* %7) #5
113 %8 = bitcast float addrspace(4)** %A to i8*
114 call void @llvm.lifetime.end.p0i8(i64 8, i8* %8) #5
115 ret void
116 }
117
118 ; Function Attrs: argmemonly nounwind willreturn
119 declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture) #1
120
121 ; CHECK-LLVM: define spir_func void @{{.*}}foo
122 ; Function Attrs: norecurse nounwind
123 define spir_func void @_Z3fooPfPiP5State(float addrspace(4)* %A, i32 addrspace(4)* %B, %struct._ZTS5State.State addrspace(4)* %C) #3 {
124 entry:
125 ; CHECK-LLVM: %[[FLOAT_FUNC_PARAM:[[:alnum:].]+]] = alloca float addrspace(4)*, align 8
126 ; CHECK-LLVM: %[[INT_FUNC_PARAM:[[:alnum:].]+]] = alloca i32 addrspace(4)*, align 8
127 ; CHECK-LLVM: %[[STRUCT_FUNC_PARAM:[[:alnum:].]+]] = alloca %struct._ZTS5State.State addrspace(4)*, align 8
128 %A.addr = alloca float addrspace(4)*, align 8
129 %B.addr = alloca i32 addrspace(4)*, align 8
130 %C.addr = alloca %struct._ZTS5State.State addrspace(4)*, align 8
131 ; CHECK-LLVM: %[[FLOAT_VAR:[[:alnum:].]+]] = alloca float addrspace(4)*, align 8
132 ; CHECK-LLVM: %[[INT_VAR:[[:alnum:].]+]] = alloca i32 addrspace(4)*, align 8
133 ; CHECK-LLVM: %[[STRUCT_VAR:[[:alnum:].]+]] = alloca %struct._ZTS5State.State addrspace(4)*, align 8
134 ; CHECK-LLVM: %[[DOUBLE_VAR:[[:alnum:].]+]] = alloca double addrspace(4)*, align 8
135 ; CHECK-LLVM: %[[INT_VAR_1:[[:alnum:].]+]] = alloca i32, align 4
136 %x = alloca float addrspace(4)*, align 8
137 %y = alloca i32 addrspace(4)*, align 8
138 %z = alloca %struct._ZTS5State.State addrspace(4)*, align 8
139 %t = alloca double addrspace(4)*, align 8
140 %s = alloca i32, align 4
141 store float addrspace(4)* %A, float addrspace(4)** %A.addr, align 8, !tbaa !5
142 store i32 addrspace(4)* %B, i32 addrspace(4)** %B.addr, align 8, !tbaa !5
143 store %struct._ZTS5State.State addrspace(4)* %C, %struct._ZTS5State.State addrspace(4)** %C.addr, align 8, !tbaa !5
144 ; CHECK-LLVM: %[[FLOAT_BITCAST:[[:alnum:].]+]] = bitcast float addrspace(4)** %[[FLOAT_VAR]] to i8*
145 %0 = bitcast float addrspace(4)** %x to i8*
146 call void @llvm.lifetime.start.p0i8(i64 8, i8* %0) #5
147 ; CHECK-LLVM: %[[INT_BITCAST:[[:alnum:].]+]] = bitcast i32 addrspace(4)** %[[INT_VAR]] to i8*
148 %1 = bitcast i32 addrspace(4)** %y to i8*
149 call void @llvm.lifetime.start.p0i8(i64 8, i8* %1) #5
150 ; CHECK-LLVM: %[[STRUCT_BITCAST:[[:alnum:].]+]] = bitcast %struct._ZTS5State.State addrspace(4)** %[[STRUCT_VAR]] to i8*
151 %2 = bitcast %struct._ZTS5State.State addrspace(4)** %z to i8*
152 call void @llvm.lifetime.start.p0i8(i64 8, i8* %2) #5
153 ; CHECK-LLVM: %[[FLOAT_FUNC_PARAM_LOAD:[[:alnum:].]+]] = load float addrspace(4)*, float addrspace(4)** %[[FLOAT_FUNC_PARAM]]
154 ; CHECK-LLVM: %[[INTRINSIC_CALL:[[:alnum:].]+]] = call float addrspace(4)* @llvm.ptr.annotation.p4f32(float addrspace(4)* %[[FLOAT_FUNC_PARAM_LOAD]], i8* getelementptr inbounds ([25 x i8], [25 x i8]* [[PARAM_3_CACHE_0]], i32 0, i32 0), i8* {{.*}}, i32 {{.*}}, i8* {{.*}})
155 ; CHECK-LLVM: store float addrspace(4)* %[[INTRINSIC_CALL]], float addrspace(4)** %[[FLOAT_VAR]]
156 %3 = load float addrspace(4)*, float addrspace(4)** %A.addr, align 8, !tbaa !5
157 %4 = call float addrspace(4)* @llvm.ptr.annotation.p4f32(float addrspace(4)* %3, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i32 0, i32 0), i32 0, i8* null) #6
158 store float addrspace(4)* %4, float addrspace(4)** %x, align 8, !tbaa !5
159 ; CHECK-LLVM: %[[INT_FUNC_PARAM_LOAD:[[:alnum:].]+]] = load i32 addrspace(4)*, i32 addrspace(4)** %[[INT_FUNC_PARAM]]
160 ; CHECK-LLVM: %[[INTRINSIC_CALL:[[:alnum:].]+]] = call i32 addrspace(4)* @llvm.ptr.annotation.p4i32(i32 addrspace(4)* %[[INT_FUNC_PARAM_LOAD]], i8* getelementptr inbounds ([12 x i8], [12 x i8]* [[PARAM_12_CACHE_0]], i32 0, i32 0), i8* {{.*}}, i32 {{.*}}, i8* {{.*}})
161 ; CHECK-LLVM: store i32 addrspace(4)* %[[INTRINSIC_CALL]], i32 addrspace(4)** %[[INT_VAR]]
162 %5 = load i32 addrspace(4)*, i32 addrspace(4)** %B.addr, align 8, !tbaa !5
163 %6 = call i32 addrspace(4)* @llvm.ptr.annotation.p4i32(i32 addrspace(4)* %5, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i32 0, i32 0), i32 0, i8* null) #6
164 store i32 addrspace(4)* %6, i32 addrspace(4)** %y, align 8, !tbaa !5
165 ; CHECK-LLVM: %[[WHOLE_STRUCT_LOAD:[0-9]+]] = [[WHOLE_STRUCT_LOAD_INST:load\ %struct._ZTS5State.State.*]][[STRUCT_FUNC_PARAM]]
166 ; CHECK-LLVM: %[[INTRINSIC_CALL:[[:alnum:].]+]] = call %struct._ZTS5State.State addrspace(4)* @llvm.ptr.annotation.p4s_struct._ZTS5State.States(%struct._ZTS5State.State addrspace(4)* %[[WHOLE_STRUCT_LOAD]], i8* getelementptr inbounds ([27 x i8], [27 x i8]* [[PARAM_2_CACHE_127]], i32 0, i32 0), i8* {{.*}}, i32 {{.*}}, i8* {{.*}})
167 ; CHECK-LLVM: store %struct._ZTS5State.State addrspace(4)* %[[INTRINSIC_CALL]], %struct._ZTS5State.State addrspace(4)** %[[STRUCT_VAR]]
168 %7 = load %struct._ZTS5State.State addrspace(4)*, %struct._ZTS5State.State addrspace(4)** %C.addr, align 8, !tbaa !5
169 %8 = call %struct._ZTS5State.State addrspace(4)* @llvm.ptr.annotation.p4s_struct._ZTS5State.States(%struct._ZTS5State.State addrspace(4)* %7, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i32 0, i32 0), i32 0, i8* null) #6
170 store %struct._ZTS5State.State addrspace(4)* %8, %struct._ZTS5State.State addrspace(4)** %z, align 8, !tbaa !5
171 ; CHECK-LLVM: %[[WHOLE_STRUCT_LOAD_FOR_FLOAT:[0-9]+]] = [[WHOLE_STRUCT_LOAD_INST]][[STRUCT_FUNC_PARAM]]
172 ; CHECK-LLVM: %[[FLOAT_FIELD_GEP:[[:alnum:].]+]] = getelementptr inbounds %struct._ZTS5State.State, %struct._ZTS5State.State addrspace(4)* %[[WHOLE_STRUCT_LOAD_FOR_FLOAT]], i32 0, i32 0
173 ; CHECK-LLVM: %[[INTRINSIC_CALL:[[:alnum:].]+]] = call float addrspace(4)* @llvm.ptr.annotation.p4f32(float addrspace(4)* %[[FLOAT_FIELD_GEP]], i8* getelementptr inbounds ([27 x i8], [27 x i8]* [[PARAM_3_CACHE_127]], i32 0, i32 0), i8* {{.*}}, i32 {{.*}}, i8* {{.*}})
174 ; CHECK-LLVM: store float addrspace(4)* %[[INTRINSIC_CALL]], float addrspace(4)** %[[FLOAT_VAR]]
175 %9 = load %struct._ZTS5State.State addrspace(4)*, %struct._ZTS5State.State addrspace(4)** %C.addr, align 8, !tbaa !5
176 %Field1 = getelementptr inbounds %struct._ZTS5State.State, %struct._ZTS5State.State addrspace(4)* %9, i32 0, i32 0
177 %10 = call float addrspace(4)* @llvm.ptr.annotation.p4f32(float addrspace(4)* %Field1, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i32 0, i32 0), i32 0, i8* null) #6
178 store float addrspace(4)* %10, float addrspace(4)** %x, align 8, !tbaa !5
179 ; CHECK-LLVM: %[[WHOLE_STRUCT_LOAD_FOR_INT:[0-9]+]] = [[WHOLE_STRUCT_LOAD_INST]][[STRUCT_FUNC_PARAM]]
180 ; CHECK-LLVM: %[[INT_FIELD_GEP:[[:alnum:].]+]] = getelementptr inbounds %struct._ZTS5State.State, %struct._ZTS5State.State addrspace(4)* %[[WHOLE_STRUCT_LOAD_FOR_INT]], i32 0, i32 1
181 ; The annotation for the succeeding intrinsic isn't required to be preserved
182 ; during translation
183 ; CHECK-LLVM: store i32 addrspace(4)* %{{.*}}, i32 addrspace(4)** %[[INT_VAR]]
184 %11 = load %struct._ZTS5State.State addrspace(4)*, %struct._ZTS5State.State addrspace(4)** %C.addr, align 8, !tbaa !5
185 %Field2 = getelementptr inbounds %struct._ZTS5State.State, %struct._ZTS5State.State addrspace(4)* %11, i32 0, i32 1
186 %12 = call i32 addrspace(4)* @llvm.ptr.annotation.p4i32(i32 addrspace(4)* %Field2, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i32 0, i32 0), i32 0, i8* null) #6
187 store i32 addrspace(4)* %12, i32 addrspace(4)** %y, align 8, !tbaa !5
188 ; CHECK-LLVM: %[[WHOLE_STRUCT_LOAD:[0-9]+]] = [[WHOLE_STRUCT_LOAD_INST]][[STRUCT_FUNC_PARAM]]
189 ; CHECK-LLVM: %[[INTRINSIC_CALL:[[:alnum:].]+]] = call %struct._ZTS5State.State addrspace(4)* @llvm.ptr.annotation.p4s_struct._ZTS5State.States(%struct._ZTS5State.State addrspace(4)* %[[WHOLE_STRUCT_LOAD]], i8* getelementptr inbounds ([28 x i8], [28 x i8]* [[PARAM_15_CACHE_127]], i32 0, i32 0), i8* {{.*}}, i32 {{.*}}, i8* {{.*}})
190 ; CHECK-LLVM: store %struct._ZTS5State.State addrspace(4)* %[[INTRINSIC_CALL]], %struct._ZTS5State.State addrspace(4)** %[[STRUCT_VAR]]
191 %13 = load %struct._ZTS5State.State addrspace(4)*, %struct._ZTS5State.State addrspace(4)** %C.addr, align 8, !tbaa !5
192 %14 = call %struct._ZTS5State.State addrspace(4)* @llvm.ptr.annotation.p4s_struct._ZTS5State.States(%struct._ZTS5State.State addrspace(4)* %13, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i32 0, i32 0), i32 0, i8* null) #6
193 store %struct._ZTS5State.State addrspace(4)* %14, %struct._ZTS5State.State addrspace(4)** %z, align 8, !tbaa !5
194 %15 = bitcast double addrspace(4)** %t to i8*
195 call void @llvm.lifetime.start.p0i8(i64 8, i8* %15) #5
196 ; CHECK-LLVM: %[[FLOAT_FUNC_PARAM_LOAD:[[:alnum:].]+]] = load float addrspace(4)*, float addrspace(4)** %[[FLOAT_FUNC_PARAM]]
197 ; CHECK-LLVM: %[[BITCAST_FLOAT_TO_DOUBLE:[[:alnum:].]+]] = bitcast float addrspace(4)* %[[FLOAT_FUNC_PARAM_LOAD]] to double addrspace(4)*
198 ; CHECK-LLVM: %[[INTRINSIC_CALL:[[:alnum:].]+]] = call double addrspace(4)* @llvm.ptr.annotation.p4f64(double addrspace(4)* %24, i8* getelementptr inbounds ([25 x i8], [25 x i8]* [[PARAM_3_CACHE_0]], i32 0, i32 0), i8* {{.*}}, i32 {{.*}}, i8* {{.*}})
199 ; CHECK-LLVM: store double addrspace(4)* %[[INTRINSIC_CALL]], double addrspace(4)** %[[DOUBLE_VAR]]
200 %16 = load float addrspace(4)*, float addrspace(4)** %A.addr, align 8, !tbaa !5
201 %17 = bitcast float addrspace(4)* %16 to double addrspace(4)*
202 %18 = call double addrspace(4)* @llvm.ptr.annotation.p4f64(double addrspace(4)* %17, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i32 0, i32 0), i32 0, i8* null) #6
203 store double addrspace(4)* %18, double addrspace(4)** %t, align 8, !tbaa !5
204 ; CHECK-LLVM: %[[FLOAT_FUNC_PARAM_LOAD:[[:alnum:].]+]] = load float addrspace(4)*, float addrspace(4)** %[[FLOAT_FUNC_PARAM]]
205 ; CHECK-LLVM: %[[INTRINSIC_CALL:[[:alnum:].]+]] = call float addrspace(4)* @llvm.ptr.annotation.p4f32(float addrspace(4)* %[[FLOAT_FUNC_PARAM_LOAD]], i8* getelementptr inbounds ([25 x i8], [25 x i8]* [[PARAM_3_CACHE_0]], i32 0, i32 0), i8* {{.*}}, i32 {{.*}}, i8* {{.*}})
206 ; CHECK-LLVM: store float 5.000000e+00, float addrspace(4)* %[[INTRINSIC_CALL]]
207 %19 = load float addrspace(4)*, float addrspace(4)** %A.addr, align 8, !tbaa !5
208 %20 = call float addrspace(4)* @llvm.ptr.annotation.p4f32(float addrspace(4)* %19, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i32 0, i32 0), i32 0, i8* null) #6
209 store float 5.000000e+00, float addrspace(4)* %20, align 4, !tbaa !5
210 %21 = bitcast i32* %s to i8*
211 call void @llvm.lifetime.start.p0i8(i64 4, i8* %21) #5
212 ; CHECK-LLVM: %[[INT1_FUNC_PARAM_LOAD:[[:alnum:].]+]] = load i32 addrspace(4)*, i32 addrspace(4)** %[[INT_FUNC_PARAM]]
213 ; CHECK-LLVM: %[[INTRINSIC_CALL:[[:alnum:].]+]] = call i32 addrspace(4)* @llvm.ptr.annotation.p4i32(i32 addrspace(4)* %[[INT1_FUNC_PARAM_LOAD]], i8* getelementptr inbounds ([12 x i8], [12 x i8]* [[PARAM_12_CACHE_0]], i32 0, i32 0), i8* {{.*}}, i32 {{.*}}, i8* {{.*}})
214 ; CHECK-LLVM: %[[INTRINSIC_RESULT_LOAD:[[:alnum:].]+]] = load i32, i32 addrspace(4)* %[[INTRINSIC_CALL]]
215 ; CHECK-LLVM: store i32 %[[INTRINSIC_RESULT_LOAD]], i32* %[[INT_VAR_1]]
216 %22 = load i32 addrspace(4)*, i32 addrspace(4)** %B.addr, align 8, !tbaa !5
217 %23 = call i32 addrspace(4)* @llvm.ptr.annotation.p4i32(i32 addrspace(4)* %22, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i32 0, i32 0), i32 0, i8* null) #6
218 %24 = load i32, i32 addrspace(4)* %23, align 4, !tbaa !5
219 store i32 %24, i32* %s, align 4, !tbaa !5
220 %25 = bitcast i32* %s to i8*
221 call void @llvm.lifetime.end.p0i8(i64 4, i8* %25) #5
222 %26 = bitcast double addrspace(4)** %t to i8*
223 call void @llvm.lifetime.end.p0i8(i64 8, i8* %26) #5
224 %27 = bitcast %struct._ZTS5State.State addrspace(4)** %z to i8*
225 call void @llvm.lifetime.end.p0i8(i64 8, i8* %27) #5
226 %28 = bitcast i32 addrspace(4)** %y to i8*
227 call void @llvm.lifetime.end.p0i8(i64 8, i8* %28) #5
228 %29 = bitcast float addrspace(4)** %x to i8*
229 call void @llvm.lifetime.end.p0i8(i64 8, i8* %29) #5
230 ret void
231 }
232
233 ; Function Attrs: nounwind willreturn
234 declare float addrspace(4)* @llvm.ptr.annotation.p4f32(float addrspace(4)*, i8*, i8*, i32, i8*) #4
235
236 ; Function Attrs: nounwind willreturn
237 declare i32 addrspace(4)* @llvm.ptr.annotation.p4i32(i32 addrspace(4)*, i8*, i8*, i32, i8*) #4
238
239 ; Function Attrs: nounwind willreturn
240 declare %struct._ZTS5State.State addrspace(4)* @llvm.ptr.annotation.p4s_struct._ZTS5State.States(%struct._ZTS5State.State addrspace(4)*, i8*, i8*, i32, i8*) #4
241
242 ; Function Attrs: nounwind willreturn
243 declare double addrspace(4)* @llvm.ptr.annotation.p4f64(double addrspace(4)*, i8*, i8*, i32, i8*) #4
244
245 attributes #0 = { norecurse nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="none" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "sycl-module-id"="/tmp/lsu.cpp" "uniform-work-group-size"="true" "unsafe-fp-math"="false" "use-soft-float"="false" }
246 attributes #1 = { argmemonly nounwind willreturn }
247 attributes #2 = { inlinehint norecurse nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="none" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
248 attributes #3 = { norecurse nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="none" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
249 attributes #4 = { nounwind willreturn }
250 attributes #5 = { nounwind }
251 attributes #6 = { readnone }
252
253 !llvm.module.flags = !{!0}
254 !opencl.spir.version = !{!1}
255 !spirv.Source = !{!2}
256 !llvm.ident = !{!3}
257
258 !0 = !{i32 1, !"wchar_size", i32 4}
259 !1 = !{i32 1, i32 2}
260 !2 = !{i32 4, i32 100000}
261 !3 = !{!"clang version 11.0.0"}
262 !4 = !{}
263 !5 = !{!6, !6, i64 0}
264 !6 = !{!"any pointer", !7, i64 0}
265 !7 = !{!"omnipotent char", !8, i64 0}
266 !8 = !{!"Simple C++ TBAA"}