Debian Codegraph @

IGC/ocloc_tests/SPIRV-extenstions/SPV_INTEL_fpga_memory_attributes/IntelFPGAMemoryAttributes.ll

raw
1 ; LLVM IR generated by Intel SYCL Clang compiler (https://github.com/intel/llvm)
2
3 ; SYCL source code for this test:
4 ; void numbanks_attr() {
5 ; [[intelfpga::numbanks(16)]] int numbanks_var;
6 ;
7 ; [[intelfpga::numbanks(2)]] struct numbanks_st {
8 ; int field;
9 ; } s;
10 ; s.field = 0;
11 ; }
12 ;
13 ; template <int A>
14 ; void templ_numbanks_attr() {
15 ; [[intelfpga::numbanks(A)]] int templ_numbanks_var;
16 ;
17 ; [[intelfpga::numbanks(A)]] struct templ_numbanks_st {
18 ; int field;
19 ; } s;
20 ; s.field = 0;
21 ; }
22 ;
23 ; void register_attr() {
24 ; [[intelfpga::register]] int register_var;
25 ;
26 ; [[intelfpga::register]] struct register_st {
27 ; int field;
28 ; } s;
29 ; s.field = 0;
30 ; }
31 ;
32 ; void memory_attr() {
33 ; [[intelfpga::memory("MLAB")]] int memory_var[500];
34 ;
35 ; [[intelfpga::memory("BLOCK_RAM")]] struct memory_st {
36 ; int field[10][2];
37 ; } s;
38 ; s.field[0][0] = {0};
39 ; }
40 ;
41 ; void bankwidth_attr() {
42 ; [[intelfpga::bankwidth(8)]] int bankwidth_var;
43 ;
44 ; [[intelfpga::bankwidth(4)]] struct bankwidth_st {
45 ; int field;
46 ; } s;
47 ; s.field = 0;
48 ; }
49 ;
50 ; template <int A>
51 ; void templ_bankwidth_attr() {
52 ; [[intelfpga::bankwidth(A)]] int templ_bankwidth_var;
53 ;
54 ; [[intelfpga::bankwidth(A)]] struct templ_bankwidth_st {
55 ; int field;
56 ; } s;
57 ; s.field = 0;
58 ; }
59 ;
60 ; void private_copies_attr() {
61 ; [[intelfpga::private_copies(4)]] int priv_copies_var;
62 ;
63 ; [[intelfpga::private_copies(2)]] struct priv_copies_st {
64 ; int field;
65 ; } s;
66 ; s.field = 0;
67 ; }
68 ;
69 ; template <int A>
70 ; void templ_private_copies_attr() {
71 ; [[intelfpga::private_copies(A)]] int templ_priv_copies_var;
72 ;
73 ; [[intelfpga::private_copies(A)]] struct templ_priv_copies_st {
74 ; int field;
75 ; } s;
76 ; s.field = 0;
77 ; }
78 ;
79 ; void singlepump_attr() {
80 ; [[intelfpga::singlepump]] int singlepump_var;
81 ;
82 ; [[intelfpga::singlepump]] struct singlepump_st {
83 ; int field;
84 ; } s;
85 ; s.field = 0;
86 ; }
87 ;
88 ; void doublepump_attr() {
89 ; [[intelfpga::doublepump]] int doublepump_var;
90 ;
91 ; [[intelfpga::doublepump]] struct doublepump_st {
92 ; int field;
93 ; } s;
94 ; s.field = 0;
95 ; }
96 ;
97 ; void merge_attr() {
98 ; [[intelfpga::merge("foo", "depth")]] int merge_var;
99 ;
100 ; [[intelfpga::merge("bar", "width")]] struct merge_st {
101 ; int field;
102 ; } s;
103 ; s.field = 0;
104 ; }
105 ;
106 ; void max_replicates_attr() {
107 ; [[intelfpga::max_replicates(4)]] int max_repl_var;
108 ;
109 ; [[intelfpga::max_replicates(2)]] struct max_repl_st {
110 ; int field;
111 ; } s;
112 ; s.field = 0;
113 ; }
114 ;
115 ; template <int A>
116 ; void templ_max_replicates_attr() {
117 ; [[intelfpga::max_replicates(A)]] int templ_max_repl_var;
118 ;
119 ; [[intelfpga::max_replicates(A)]] struct templ_max_repl_st {
120 ; int field;
121 ; } s;
122 ; s.field = 0;
123 ; }
124 ;
125 ; void simple_dual_port_attr() {
126 ; [[intelfpga::simple_dual_port]] int simple_dual_port_var;
127 ;
128 ; [[intelfpga::simple_dual_port]] struct simple_dual_port_st {
129 ; int field;
130 ; } s;
131 ; s.field = 0;
132 ; }
133 ;
134 ; void bank_bits_attr() {
135 ; [[intelfpga::numbanks(8), intelfpga::bank_bits(2, 1, 0)]] int bank_bits_var;
136 ;
137 ; [[intelfpga::bank_bits(2)]] struct bank_bits_st {
138 ; int field;
139 ; } s;
140 ; s.field = 0;
141 ; }
142 ;
143 ; template <int A, int B>
144 ; void templ_bank_bits_attr() {
145 ; [[intelfpga::bank_bits(A, B)]] int templ_bank_bits_var;
146 ;
147 ; [[intelfpga::bank_bits(B)]] struct templ_bank_bits_st {
148 ; int field;
149 ; } s;
150 ; s.field = 0;
151 ; }
152 ;
153 ; void force_pow2_depth_attr() {
154 ; [[intelfpga::force_pow2_depth(0)]] int fp2d_var;
155 ;
156 ; [[intelfpga::force_pow2_depth(1)]] struct fp2d_st {
157 ; int field;
158 ; } s;
159 ; s.field = 0;
160 ; }
161 ;
162 ; template <int A>
163 ; void templ_force_pow2_depth_attr() {
164 ; [[intelfpga::force_pow2_depth(A)]] int templ_fp2d_var;
165 ;
166 ; [[intelfpga::force_pow2_depth(A)]] struct templ_fp2d_st {
167 ; int field;
168 ; } s;
169 ; s.field = 0;
170 ; }
171 ; void memory_attribute_on_array() {
172 ; [[intelfpga::register]] int register_var[32];
173 ; }
174 ;
175 ; template <typename name, typename Func>
176 ; __attribute__((sycl_kernel)) void kernel_single_task(Func kernelFunc) {
177 ; kernelFunc();
178 ; }
179 ;
180 ; int main() {
181 ; kernel_single_task<class kernel_function>([]() {
182 ; numbanks_attr();
183 ; templ_numbanks_attr<4>();
184 ; register_attr();
185 ; memory_attr();
186 ; bankwidth_attr();
187 ; templ_bankwidth_attr<16>();
188 ; private_copies_attr();
189 ; templ_private_copies_attr<8>();
190 ; singlepump_attr();
191 ; doublepump_attr();
192 ; merge_attr();
193 ; max_replicates_attr();
194 ; templ_max_replicates_attr<8>();
195 ; simple_dual_port_attr();
196 ; bank_bits_attr();
197 ; templ_bank_bits_attr<4, 5>();
198 ; force_pow2_depth_attr();
199 ; templ_force_pow2_depth_attr<1>();
200 ; memory_attribute_on_array();
201 ; });
202 ; return 0;
203 ; }
204
205 ; LLVM IR compilation command:
206 ; clang -cc1 -triple spir -disable-llvm-passes -fsycl-is-device -emit-llvm intel-fpga-local-var.cpp
207
208 ; UNSUPPORTED: system-windows
209 ; REQUIRES: llvm-spirv, regkeys, dg2-supported
210
211 ; RUN: llvm-as %s -o %t.bc
212 ; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_fpga_memory_attributes -o %t.spv
213 ; RUN: ocloc compile -spirv_input -file %t.spv -device dg2 -options " -igc_opts 'ShaderDumpTranslationOnly=1'" 2>&1 | FileCheck %s --check-prefixes=CHECK-LLVM
214
215 target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
216 target triple = "spir"
217
218 %class.anon = type { i8 }
219 %struct.numbanks_st = type { i32 }
220 %struct.templ_numbanks_st = type { i32 }
221 %struct.register_st = type { i32 }
222 %struct.memory_st = type { [10 x [2 x i32]] }
223 %struct.bankwidth_st = type { i32 }
224 %struct.templ_bankwidth_st = type { i32 }
225 %struct.priv_copies_st = type { i32 }
226 %struct.templ_priv_copies_st = type { i32 }
227 %struct.singlepump_st = type { i32 }
228 %struct.doublepump_st = type { i32 }
229 %struct.merge_st = type { i32 }
230 %struct.max_repl_st = type { i32 }
231 %struct.templ_max_repl_st = type { i32 }
232 %struct.simple_dual_port_st = type { i32 }
233 %struct.bank_bits_st = type { i32 }
234 %struct.templ_bank_bits_st = type { i32 }
235 %struct.fp2d_st = type { i32 }
236 %struct.templ_fp2d_st = type { i32 }
237
238 ; CHECK-LLVM: [[STR_NMB_VAR:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{numbanks:16}
239 ; CHECK-LLVM: [[STR_NMB_SCT:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{numbanks:2}
240 ; CHECK-LLVM: [[STR_NMB_TE:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{numbanks:4}
241 ; CHECK-LLVM: [[STR_REG_VAR:@[0-9_.]+]] = {{.*}}{register:1}
242 ; CHECK-LLVM: [[STR_MEM_VAR:@[0-9_.]+]] = {{.*}}{memory:MLAB}
243 ; CHECK-LLVM: [[STR_MEM_SCT:@[0-9_.]+]] = {{.*}}{memory:BLOCK_RAM}
244 ; CHECK-LLVM: [[STR_BWD_VAR:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{bankwidth:8}
245 ; CHECK-LLVM: [[STR_BWD_SCT:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{bankwidth:4}
246 ; CHECK-LLVM: [[STR_BWD_TE:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{bankwidth:16}
247 ; CHECK-LLVM: [[STR_PRC_VAR:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{private_copies:4}
248 ; CHECK-LLVM: [[STR_PRC_SCT:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{private_copies:2}
249 ; CHECK-LLVM: [[STR_PRC_TE:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{private_copies:8}
250 ; CHECK-LLVM: [[STR_SNP_VAR:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{pump:1}
251 ; CHECK-LLVM: [[STR_DBP_VAR:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{pump:2}
252 ; CHECK-LLVM: [[STR_MRG_VAR:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{merge:foo:depth}
253 ; CHECK-LLVM: [[STR_MRG_SCT:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{merge:bar:width}
254 ; CHECK-LLVM: [[STR_MXR_VAR:@[0-9_.]+]] = {{.*}}{max_replicates:4}
255 ; CHECK-LLVM: [[STR_MXR_SCT:@[0-9_.]+]] = {{.*}}{max_replicates:2}
256 ; CHECK-LLVM: [[STR_MXR_TE:@[0-9_.]+]] = {{.*}}{max_replicates:8}
257 ; CHECK-LLVM: [[STR_SDP_VAR:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{simple_dual_port:1}
258 ; CHECK-LLVM: [[STR_BBT_VAR:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{numbanks:8}{bank_bits:2,1,0}
259 ; CHECK-LLVM: [[STR_BBT_SCT:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{numbanks:2}{bank_bits:2}
260 ; CHECK-LLVM: [[STR_BBT_TE1:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{numbanks:4}{bank_bits:4,5}
261 ; CHECK-LLVM: [[STR_BBT_TE2:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{numbanks:2}{bank_bits:5}
262 ; CHECK-LLVM: [[STR_FP2_VAR:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{force_pow2_depth:0}
263 ; CHECK-LLVM: [[STR_FP2_SCT:@[0-9_.]+]] = {{.*}}{memory:DEFAULT}{force_pow2_depth:1}
264 @.str = private unnamed_addr constant [42 x i8] c"{memory:DEFAULT}{sizeinfo:4}{numbanks:16}\00", section "llvm.metadata"
265 @.str.1 = private unnamed_addr constant [25 x i8] c"intel-fpga-local-var.cpp\00", section "llvm.metadata"
266 @.str.2 = private unnamed_addr constant [41 x i8] c"{memory:DEFAULT}{sizeinfo:4}{numbanks:2}\00", section "llvm.metadata"
267 @.str.3 = private unnamed_addr constant [41 x i8] c"{memory:DEFAULT}{sizeinfo:4}{numbanks:4}\00", section "llvm.metadata"
268 @.str.4 = private unnamed_addr constant [13 x i8] c"{register:1}\00", section "llvm.metadata"
269 @.str.5 = private unnamed_addr constant [30 x i8] c"{memory:MLAB}{sizeinfo:4,500}\00", section "llvm.metadata"
270 @.str.6 = private unnamed_addr constant [32 x i8] c"{memory:BLOCK_RAM}{sizeinfo:80}\00", section "llvm.metadata"
271 @.str.7 = private unnamed_addr constant [42 x i8] c"{memory:DEFAULT}{sizeinfo:4}{bankwidth:8}\00", section "llvm.metadata"
272 @.str.8 = private unnamed_addr constant [42 x i8] c"{memory:DEFAULT}{sizeinfo:4}{bankwidth:4}\00", section "llvm.metadata"
273 @.str.9 = private unnamed_addr constant [43 x i8] c"{memory:DEFAULT}{sizeinfo:4}{bankwidth:16}\00", section "llvm.metadata"
274 @.str.10 = private unnamed_addr constant [47 x i8] c"{memory:DEFAULT}{sizeinfo:4}{private_copies:4}\00", section "llvm.metadata"
275 @.str.11 = private unnamed_addr constant [47 x i8] c"{memory:DEFAULT}{sizeinfo:4}{private_copies:2}\00", section "llvm.metadata"
276 @.str.12 = private unnamed_addr constant [47 x i8] c"{memory:DEFAULT}{sizeinfo:4}{private_copies:8}\00", section "llvm.metadata"
277 @.str.13 = private unnamed_addr constant [37 x i8] c"{memory:DEFAULT}{sizeinfo:4}{pump:1}\00", section "llvm.metadata"
278 @.str.14 = private unnamed_addr constant [37 x i8] c"{memory:DEFAULT}{sizeinfo:4}{pump:2}\00", section "llvm.metadata"
279 @.str.15 = private unnamed_addr constant [46 x i8] c"{memory:DEFAULT}{sizeinfo:4}{merge:foo:depth}\00", section "llvm.metadata"
280 @.str.16 = private unnamed_addr constant [46 x i8] c"{memory:DEFAULT}{sizeinfo:4}{merge:bar:width}\00", section "llvm.metadata"
281 @.str.17 = private unnamed_addr constant [19 x i8] c"{max_replicates:4}\00", section "llvm.metadata"
282 @.str.18 = private unnamed_addr constant [19 x i8] c"{max_replicates:2}\00", section "llvm.metadata"
283 @.str.19 = private unnamed_addr constant [19 x i8] c"{max_replicates:8}\00", section "llvm.metadata"
284 @.str.20 = private unnamed_addr constant [49 x i8] c"{memory:DEFAULT}{sizeinfo:4}{simple_dual_port:1}\00", section "llvm.metadata"
285 @.str.21 = private unnamed_addr constant [58 x i8] c"{memory:DEFAULT}{sizeinfo:4}{numbanks:8}{bank_bits:2,1,0}\00", section "llvm.metadata"
286 @.str.22 = private unnamed_addr constant [54 x i8] c"{memory:DEFAULT}{sizeinfo:4}{numbanks:2}{bank_bits:2}\00", section "llvm.metadata"
287 @.str.23 = private unnamed_addr constant [56 x i8] c"{memory:DEFAULT}{sizeinfo:4}{numbanks:4}{bank_bits:4,5}\00", section "llvm.metadata"
288 @.str.24 = private unnamed_addr constant [54 x i8] c"{memory:DEFAULT}{sizeinfo:4}{numbanks:2}{bank_bits:5}\00", section "llvm.metadata"
289 @.str.25 = private unnamed_addr constant [49 x i8] c"{memory:DEFAULT}{sizeinfo:4}{force_pow2_depth:0}\00", section "llvm.metadata"
290 @.str.26 = private unnamed_addr constant [49 x i8] c"{memory:DEFAULT}{sizeinfo:4}{force_pow2_depth:1}\00", section "llvm.metadata"
291
292 ; Function Attrs: norecurse nounwind
293 define spir_kernel void @_ZTSZ4mainE15kernel_function() #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 {
294 entry:
295 %0 = alloca %class.anon, align 1
296 %1 = bitcast %class.anon* %0 to i8*
297 call void @llvm.lifetime.start.p0i8(i64 1, i8* %1) #5
298 call spir_func void @"_ZZ4mainENK3$_0clEv"(%class.anon* %0)
299 %2 = bitcast %class.anon* %0 to i8*
300 call void @llvm.lifetime.end.p0i8(i64 1, i8* %2) #5
301 ret void
302 }
303
304 ; Function Attrs: argmemonly nounwind willreturn
305 declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture) #1
306
307 ; Function Attrs: inlinehint norecurse nounwind
308 define internal spir_func void @"_ZZ4mainENK3$_0clEv"(%class.anon* %this) #2 align 2 {
309 entry:
310 %this.addr = alloca %class.anon*, align 4
311 store %class.anon* %this, %class.anon** %this.addr, align 4, !tbaa !5
312 %this1 = load %class.anon*, %class.anon** %this.addr, align 4
313 call spir_func void @_Z13numbanks_attrv()
314 call spir_func void @_Z19templ_numbanks_attrILi4EEvv()
315 call spir_func void @_Z13register_attrv()
316 call spir_func void @_Z11memory_attrv()
317 call spir_func void @_Z14bankwidth_attrv()
318 call spir_func void @_Z20templ_bankwidth_attrILi16EEvv()
319 call spir_func void @_Z19private_copies_attrv()
320 call spir_func void @_Z25templ_private_copies_attrILi8EEvv()
321 call spir_func void @_Z15singlepump_attrv()
322 call spir_func void @_Z15doublepump_attrv()
323 call spir_func void @_Z10merge_attrv()
324 call spir_func void @_Z19max_replicates_attrv()
325 call spir_func void @_Z25templ_max_replicates_attrILi8EEvv()
326 call spir_func void @_Z21simple_dual_port_attrv()
327 call spir_func void @_Z14bank_bits_attrv()
328 call spir_func void @_Z20templ_bank_bits_attrILi4ELi5EEvv()
329 call spir_func void @_Z21force_pow2_depth_attrv()
330 call spir_func void @_Z27templ_force_pow2_depth_attrILi1EEvv()
331 call spir_func void @_Z25memory_attribute_on_arrayv()
332 ret void
333 }
334
335 ; Function Attrs: argmemonly nounwind willreturn
336 declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture) #1
337
338 ; Function Attrs: nounwind willreturn
339 declare void @llvm.var.annotation(i8*, i8*, i8*, i32, i8*) #4
340
341 ; Function Attrs: norecurse nounwind
342 define spir_func void @_Z13numbanks_attrv() #3 {
343 entry:
344 %numbanks_var = alloca i32, align 4
345 %s = alloca %struct.numbanks_st, align 4
346 %0 = bitcast i32* %numbanks_var to i8*
347 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
348 %numbanks_var1 = bitcast i32* %numbanks_var to i8*
349 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([40 x i8], [40 x i8]* [[STR_NMB_VAR]]
350 call void @llvm.var.annotation(i8* %numbanks_var1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 2, i8* null)
351 %1 = bitcast %struct.numbanks_st* %s to i8*
352 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
353 %s2 = bitcast %struct.numbanks_st* %s to i8*
354 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([39 x i8], [39 x i8]* [[STR_NMB_SCT]]
355 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 6, i8* null)
356 %field = getelementptr inbounds %struct.numbanks_st, %struct.numbanks_st* %s, i32 0, i32 0
357 store i32 0, i32* %field, align 4, !tbaa !9
358 %2 = bitcast %struct.numbanks_st* %s to i8*
359 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
360 %3 = bitcast i32* %numbanks_var to i8*
361 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
362 ret void
363 }
364
365 ; Function Attrs: norecurse nounwind
366 define linkonce_odr spir_func void @_Z19templ_numbanks_attrILi4EEvv() #3 {
367 entry:
368 %templ_numbanks_var = alloca i32, align 4
369 %s = alloca %struct.templ_numbanks_st, align 4
370 %0 = bitcast i32* %templ_numbanks_var to i8*
371 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
372 %templ_numbanks_var1 = bitcast i32* %templ_numbanks_var to i8*
373 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([39 x i8], [39 x i8]* [[STR_NMB_TE]]
374 call void @llvm.var.annotation(i8* %templ_numbanks_var1, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 12, i8* null)
375 %1 = bitcast %struct.templ_numbanks_st* %s to i8*
376 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
377 %s2 = bitcast %struct.templ_numbanks_st* %s to i8*
378 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([39 x i8], [39 x i8]* [[STR_NMB_TE]]
379 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 16, i8* null)
380 %field = getelementptr inbounds %struct.templ_numbanks_st, %struct.templ_numbanks_st* %s, i32 0, i32 0
381 store i32 0, i32* %field, align 4, !tbaa !12
382 %2 = bitcast %struct.templ_numbanks_st* %s to i8*
383 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
384 %3 = bitcast i32* %templ_numbanks_var to i8*
385 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
386 ret void
387 }
388
389 ; Function Attrs: norecurse nounwind
390 define spir_func void @_Z13register_attrv() #3 {
391 entry:
392 %register_var = alloca i32, align 4
393 %s = alloca %struct.register_st, align 4
394 %0 = bitcast i32* %register_var to i8*
395 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
396 %register_var1 = bitcast i32* %register_var to i8*
397 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([13 x i8], [13 x i8]* [[STR_REG_VAR]]
398 call void @llvm.var.annotation(i8* %register_var1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 21, i8* null)
399 %1 = bitcast %struct.register_st* %s to i8*
400 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
401 %s2 = bitcast %struct.register_st* %s to i8*
402 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([13 x i8], [13 x i8]* [[STR_REG_VAR]]
403 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 25, i8* null)
404 %field = getelementptr inbounds %struct.register_st, %struct.register_st* %s, i32 0, i32 0
405 store i32 0, i32* %field, align 4, !tbaa !14
406 %2 = bitcast %struct.register_st* %s to i8*
407 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
408 %3 = bitcast i32* %register_var to i8*
409 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
410 ret void
411 }
412
413 ; Function Attrs: norecurse nounwind
414 define spir_func void @_Z11memory_attrv() #3 {
415 entry:
416 %memory_var = alloca [500 x i32], align 4
417 %s = alloca %struct.memory_st, align 4
418 %0 = bitcast [500 x i32]* %memory_var to i8*
419 call void @llvm.lifetime.start.p0i8(i64 2000, i8* %0) #5
420 %memory_var1 = bitcast [500 x i32]* %memory_var to i8*
421 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([28 x i8], [28 x i8]* [[STR_MEM_VAR]]
422 call void @llvm.var.annotation(i8* %memory_var1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 30, i8* null)
423 %1 = bitcast %struct.memory_st* %s to i8*
424 call void @llvm.lifetime.start.p0i8(i64 80, i8* %1) #5
425 %s2 = bitcast %struct.memory_st* %s to i8*
426 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([30 x i8], [30 x i8]* [[STR_MEM_SCT]]
427 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 34, i8* null)
428 %field = getelementptr inbounds %struct.memory_st, %struct.memory_st* %s, i32 0, i32 0
429 %arrayidx = getelementptr inbounds [10 x [2 x i32]], [10 x [2 x i32]]* %field, i64 0, i64 0
430 %arrayidx3 = getelementptr inbounds [2 x i32], [2 x i32]* %arrayidx, i64 0, i64 0
431 store i32 0, i32* %arrayidx3, align 4, !tbaa !16
432 %2 = bitcast %struct.memory_st* %s to i8*
433 call void @llvm.lifetime.end.p0i8(i64 80, i8* %2) #5
434 %3 = bitcast [500 x i32]* %memory_var to i8*
435 call void @llvm.lifetime.end.p0i8(i64 2000, i8* %3) #5
436 ret void
437 }
438
439 ; Function Attrs: norecurse nounwind
440 define spir_func void @_Z14bankwidth_attrv() #3 {
441 entry:
442 %bankwidth_var = alloca i32, align 4
443 %s = alloca %struct.bankwidth_st, align 4
444 %0 = bitcast i32* %bankwidth_var to i8*
445 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
446 %bankwidth_var1 = bitcast i32* %bankwidth_var to i8*
447 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([40 x i8], [40 x i8]* [[STR_BWD_VAR]]
448 call void @llvm.var.annotation(i8* %bankwidth_var1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 39, i8* null)
449 %1 = bitcast %struct.bankwidth_st* %s to i8*
450 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
451 %s2 = bitcast %struct.bankwidth_st* %s to i8*
452 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([40 x i8], [40 x i8]* [[STR_BWD_SCT]]
453 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 43, i8* null)
454 %field = getelementptr inbounds %struct.bankwidth_st, %struct.bankwidth_st* %s, i32 0, i32 0
455 store i32 0, i32* %field, align 4, !tbaa !17
456 %2 = bitcast %struct.bankwidth_st* %s to i8*
457 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
458 %3 = bitcast i32* %bankwidth_var to i8*
459 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
460 ret void
461 }
462
463 ; Function Attrs: norecurse nounwind
464 define linkonce_odr spir_func void @_Z20templ_bankwidth_attrILi16EEvv() #3 {
465 entry:
466 %templ_bankwidth_var = alloca i32, align 4
467 %s = alloca %struct.templ_bankwidth_st, align 4
468 %0 = bitcast i32* %templ_bankwidth_var to i8*
469 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
470 %templ_bankwidth_var1 = bitcast i32* %templ_bankwidth_var to i8*
471 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([41 x i8], [41 x i8]* [[STR_BWD_TE]]
472 call void @llvm.var.annotation(i8* %templ_bankwidth_var1, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 49, i8* null)
473 %1 = bitcast %struct.templ_bankwidth_st* %s to i8*
474 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
475 %s2 = bitcast %struct.templ_bankwidth_st* %s to i8*
476 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([41 x i8], [41 x i8]* [[STR_BWD_TE]]
477 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 53, i8* null)
478 %field = getelementptr inbounds %struct.templ_bankwidth_st, %struct.templ_bankwidth_st* %s, i32 0, i32 0
479 store i32 0, i32* %field, align 4, !tbaa !19
480 %2 = bitcast %struct.templ_bankwidth_st* %s to i8*
481 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
482 %3 = bitcast i32* %templ_bankwidth_var to i8*
483 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
484 ret void
485 }
486
487 ; Function Attrs: norecurse nounwind
488 define spir_func void @_Z19private_copies_attrv() #3 {
489 entry:
490 %priv_copies_var = alloca i32, align 4
491 %s = alloca %struct.priv_copies_st, align 4
492 %0 = bitcast i32* %priv_copies_var to i8*
493 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
494 %priv_copies_var1 = bitcast i32* %priv_copies_var to i8*
495 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([45 x i8], [45 x i8]* [[STR_PRC_VAR]]
496 call void @llvm.var.annotation(i8* %priv_copies_var1, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 58, i8* null)
497 %1 = bitcast %struct.priv_copies_st* %s to i8*
498 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
499 %s2 = bitcast %struct.priv_copies_st* %s to i8*
500 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([45 x i8], [45 x i8]* [[STR_PRC_SCT]]
501 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 62, i8* null)
502 %field = getelementptr inbounds %struct.priv_copies_st, %struct.priv_copies_st* %s, i32 0, i32 0
503 store i32 0, i32* %field, align 4, !tbaa !21
504 %2 = bitcast %struct.priv_copies_st* %s to i8*
505 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
506 %3 = bitcast i32* %priv_copies_var to i8*
507 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
508 ret void
509 }
510
511 ; Function Attrs: norecurse nounwind
512 define linkonce_odr spir_func void @_Z25templ_private_copies_attrILi8EEvv() #3 {
513 entry:
514 %templ_priv_copies_var = alloca i32, align 4
515 %s = alloca %struct.templ_priv_copies_st, align 4
516 %0 = bitcast i32* %templ_priv_copies_var to i8*
517 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
518 %templ_priv_copies_var1 = bitcast i32* %templ_priv_copies_var to i8*
519 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([45 x i8], [45 x i8]* [[STR_PRC_TE]]
520 call void @llvm.var.annotation(i8* %templ_priv_copies_var1, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 68, i8* null)
521 %1 = bitcast %struct.templ_priv_copies_st* %s to i8*
522 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
523 %s2 = bitcast %struct.templ_priv_copies_st* %s to i8*
524 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([45 x i8], [45 x i8]* [[STR_PRC_TE]]
525 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 72, i8* null)
526 %field = getelementptr inbounds %struct.templ_priv_copies_st, %struct.templ_priv_copies_st* %s, i32 0, i32 0
527 store i32 0, i32* %field, align 4, !tbaa !23
528 %2 = bitcast %struct.templ_priv_copies_st* %s to i8*
529 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
530 %3 = bitcast i32* %templ_priv_copies_var to i8*
531 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
532 ret void
533 }
534
535 ; Function Attrs: norecurse nounwind
536 define spir_func void @_Z15singlepump_attrv() #3 {
537 entry:
538 %singlepump_var = alloca i32, align 4
539 %s = alloca %struct.singlepump_st, align 4
540 %0 = bitcast i32* %singlepump_var to i8*
541 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
542 %singlepump_var1 = bitcast i32* %singlepump_var to i8*
543 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([35 x i8], [35 x i8]* [[STR_SNP_VAR]]
544 call void @llvm.var.annotation(i8* %singlepump_var1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 77, i8* null)
545 %1 = bitcast %struct.singlepump_st* %s to i8*
546 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
547 %s2 = bitcast %struct.singlepump_st* %s to i8*
548 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([35 x i8], [35 x i8]* [[STR_SNP_VAR]]
549 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 81, i8* null)
550 %field = getelementptr inbounds %struct.singlepump_st, %struct.singlepump_st* %s, i32 0, i32 0
551 store i32 0, i32* %field, align 4, !tbaa !25
552 %2 = bitcast %struct.singlepump_st* %s to i8*
553 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
554 %3 = bitcast i32* %singlepump_var to i8*
555 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
556 ret void
557 }
558
559 ; Function Attrs: norecurse nounwind
560 define spir_func void @_Z15doublepump_attrv() #3 {
561 entry:
562 %doublepump_var = alloca i32, align 4
563 %s = alloca %struct.doublepump_st, align 4
564 %0 = bitcast i32* %doublepump_var to i8*
565 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
566 %doublepump_var1 = bitcast i32* %doublepump_var to i8*
567 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([35 x i8], [35 x i8]* [[STR_DBP_VAR]]
568 call void @llvm.var.annotation(i8* %doublepump_var1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 86, i8* null)
569 %1 = bitcast %struct.doublepump_st* %s to i8*
570 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
571 %s2 = bitcast %struct.doublepump_st* %s to i8*
572 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([35 x i8], [35 x i8]* [[STR_DBP_VAR]]
573 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 90, i8* null)
574 %field = getelementptr inbounds %struct.doublepump_st, %struct.doublepump_st* %s, i32 0, i32 0
575 store i32 0, i32* %field, align 4, !tbaa !27
576 %2 = bitcast %struct.doublepump_st* %s to i8*
577 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
578 %3 = bitcast i32* %doublepump_var to i8*
579 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
580 ret void
581 }
582
583 ; Function Attrs: norecurse nounwind
584 define spir_func void @_Z10merge_attrv() #3 {
585 entry:
586 %merge_var = alloca i32, align 4
587 %s = alloca %struct.merge_st, align 4
588 %0 = bitcast i32* %merge_var to i8*
589 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
590 %merge_var1 = bitcast i32* %merge_var to i8*
591 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([44 x i8], [44 x i8]* [[STR_MRG_VAR]]
592 call void @llvm.var.annotation(i8* %merge_var1, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 95, i8* null)
593 %1 = bitcast %struct.merge_st* %s to i8*
594 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
595 %s2 = bitcast %struct.merge_st* %s to i8*
596 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([44 x i8], [44 x i8]* [[STR_MRG_SCT]]
597 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 99, i8* null)
598 %field = getelementptr inbounds %struct.merge_st, %struct.merge_st* %s, i32 0, i32 0
599 store i32 0, i32* %field, align 4, !tbaa !29
600 %2 = bitcast %struct.merge_st* %s to i8*
601 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
602 %3 = bitcast i32* %merge_var to i8*
603 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
604 ret void
605 }
606
607 ; Function Attrs: norecurse nounwind
608 define spir_func void @_Z19max_replicates_attrv() #3 {
609 entry:
610 %max_repl_var = alloca i32, align 4
611 %s = alloca %struct.max_repl_st, align 4
612 %0 = bitcast i32* %max_repl_var to i8*
613 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
614 %max_repl_var1 = bitcast i32* %max_repl_var to i8*
615 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([19 x i8], [19 x i8]* [[STR_MXR_VAR]]
616 call void @llvm.var.annotation(i8* %max_repl_var1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 104, i8* null)
617 %1 = bitcast %struct.max_repl_st* %s to i8*
618 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
619 %s2 = bitcast %struct.max_repl_st* %s to i8*
620 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([19 x i8], [19 x i8]* [[STR_MXR_SCT]]
621 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 108, i8* null)
622 %field = getelementptr inbounds %struct.max_repl_st, %struct.max_repl_st* %s, i32 0, i32 0
623 store i32 0, i32* %field, align 4, !tbaa !31
624 %2 = bitcast %struct.max_repl_st* %s to i8*
625 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
626 %3 = bitcast i32* %max_repl_var to i8*
627 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
628 ret void
629 }
630
631 ; Function Attrs: norecurse nounwind
632 define linkonce_odr spir_func void @_Z25templ_max_replicates_attrILi8EEvv() #3 {
633 entry:
634 %templ_max_repl_var = alloca i32, align 4
635 %s = alloca %struct.templ_max_repl_st, align 4
636 %0 = bitcast i32* %templ_max_repl_var to i8*
637 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
638 %templ_max_repl_var1 = bitcast i32* %templ_max_repl_var to i8*
639 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([19 x i8], [19 x i8]* [[STR_MXR_TE]]
640 call void @llvm.var.annotation(i8* %templ_max_repl_var1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 114, i8* null)
641 %1 = bitcast %struct.templ_max_repl_st* %s to i8*
642 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
643 %s2 = bitcast %struct.templ_max_repl_st* %s to i8*
644 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([19 x i8], [19 x i8]* [[STR_MXR_TE]]
645 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 118, i8* null)
646 %field = getelementptr inbounds %struct.templ_max_repl_st, %struct.templ_max_repl_st* %s, i32 0, i32 0
647 store i32 0, i32* %field, align 4, !tbaa !33
648 %2 = bitcast %struct.templ_max_repl_st* %s to i8*
649 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
650 %3 = bitcast i32* %templ_max_repl_var to i8*
651 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
652 ret void
653 }
654
655 ; Function Attrs: norecurse nounwind
656 define spir_func void @_Z21simple_dual_port_attrv() #3 {
657 entry:
658 %simple_dual_port_var = alloca i32, align 4
659 %s = alloca %struct.simple_dual_port_st, align 4
660 %0 = bitcast i32* %simple_dual_port_var to i8*
661 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
662 %simple_dual_port_var1 = bitcast i32* %simple_dual_port_var to i8*
663 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([47 x i8], [47 x i8]* [[STR_SDP_VAR]]
664 call void @llvm.var.annotation(i8* %simple_dual_port_var1, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 123, i8* null)
665 %1 = bitcast %struct.simple_dual_port_st* %s to i8*
666 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
667 %s2 = bitcast %struct.simple_dual_port_st* %s to i8*
668 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([47 x i8], [47 x i8]* [[STR_SDP_VAR]]
669 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 127, i8* null)
670 %field = getelementptr inbounds %struct.simple_dual_port_st, %struct.simple_dual_port_st* %s, i32 0, i32 0
671 store i32 0, i32* %field, align 4, !tbaa !35
672 %2 = bitcast %struct.simple_dual_port_st* %s to i8*
673 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
674 %3 = bitcast i32* %simple_dual_port_var to i8*
675 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
676 ret void
677 }
678
679 ; Function Attrs: norecurse nounwind
680 define spir_func void @_Z14bank_bits_attrv() #3 {
681 entry:
682 %bank_bits_var = alloca i32, align 4
683 %s = alloca %struct.bank_bits_st, align 4
684 %0 = bitcast i32* %bank_bits_var to i8*
685 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
686 %bank_bits_var1 = bitcast i32* %bank_bits_var to i8*
687 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([56 x i8], [56 x i8]* [[STR_BBT_VAR]]
688 call void @llvm.var.annotation(i8* %bank_bits_var1, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 132, i8* null)
689 %1 = bitcast %struct.bank_bits_st* %s to i8*
690 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
691 %s2 = bitcast %struct.bank_bits_st* %s to i8*
692 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([52 x i8], [52 x i8]* [[STR_BBT_SCT]]
693 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 136, i8* null)
694 %field = getelementptr inbounds %struct.bank_bits_st, %struct.bank_bits_st* %s, i32 0, i32 0
695 store i32 0, i32* %field, align 4, !tbaa !37
696 %2 = bitcast %struct.bank_bits_st* %s to i8*
697 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
698 %3 = bitcast i32* %bank_bits_var to i8*
699 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
700 ret void
701 }
702
703 ; Function Attrs: norecurse nounwind
704 define linkonce_odr spir_func void @_Z20templ_bank_bits_attrILi4ELi5EEvv() #3 {
705 entry:
706 %templ_bank_bits_var = alloca i32, align 4
707 %s = alloca %struct.templ_bank_bits_st, align 4
708 %0 = bitcast i32* %templ_bank_bits_var to i8*
709 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
710 %templ_bank_bits_var1 = bitcast i32* %templ_bank_bits_var to i8*
711 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([54 x i8], [54 x i8]* [[STR_BBT_TE1]]
712 call void @llvm.var.annotation(i8* %templ_bank_bits_var1, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 142, i8* null)
713 %1 = bitcast %struct.templ_bank_bits_st* %s to i8*
714 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
715 %s2 = bitcast %struct.templ_bank_bits_st* %s to i8*
716 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([52 x i8], [52 x i8]* [[STR_BBT_TE2]]
717 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 146, i8* null)
718 %field = getelementptr inbounds %struct.templ_bank_bits_st, %struct.templ_bank_bits_st* %s, i32 0, i32 0
719 store i32 0, i32* %field, align 4, !tbaa !39
720 %2 = bitcast %struct.templ_bank_bits_st* %s to i8*
721 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
722 %3 = bitcast i32* %templ_bank_bits_var to i8*
723 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
724 ret void
725 }
726
727 ; Function Attrs: norecurse nounwind
728 define spir_func void @_Z21force_pow2_depth_attrv() #3 {
729 entry:
730 %fp2d_var = alloca i32, align 4
731 %s = alloca %struct.fp2d_st, align 4
732 %0 = bitcast i32* %fp2d_var to i8*
733 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
734 %fp2d_var1 = bitcast i32* %fp2d_var to i8*
735 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([47 x i8], [47 x i8]* [[STR_FP2_VAR]]
736 call void @llvm.var.annotation(i8* %fp2d_var1, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 151, i8* null)
737 %1 = bitcast %struct.fp2d_st* %s to i8*
738 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
739 %s2 = bitcast %struct.fp2d_st* %s to i8*
740 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([47 x i8], [47 x i8]* [[STR_FP2_SCT]]
741 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 155, i8* null)
742 %field = getelementptr inbounds %struct.fp2d_st, %struct.fp2d_st* %s, i32 0, i32 0
743 store i32 0, i32* %field, align 4, !tbaa !41
744 %2 = bitcast %struct.fp2d_st* %s to i8*
745 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
746 %3 = bitcast i32* %fp2d_var to i8*
747 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
748 ret void
749 }
750
751 ; Function Attrs: norecurse nounwind
752 define linkonce_odr spir_func void @_Z27templ_force_pow2_depth_attrILi1EEvv() #3 {
753 entry:
754 %templ_fp2d_var = alloca i32, align 4
755 %s = alloca %struct.templ_fp2d_st, align 4
756 %0 = bitcast i32* %templ_fp2d_var to i8*
757 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #5
758 %templ_fp2d_var1 = bitcast i32* %templ_fp2d_var to i8*
759 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([47 x i8], [47 x i8]* [[STR_FP2_SCT]]
760 call void @llvm.var.annotation(i8* %templ_fp2d_var1, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 161, i8* null)
761 %1 = bitcast %struct.templ_fp2d_st* %s to i8*
762 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #5
763 %s2 = bitcast %struct.templ_fp2d_st* %s to i8*
764 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_]+}}, i8* getelementptr inbounds ([47 x i8], [47 x i8]* [[STR_FP2_SCT]]
765 call void @llvm.var.annotation(i8* %s2, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 165, i8* null)
766 %field = getelementptr inbounds %struct.templ_fp2d_st, %struct.templ_fp2d_st* %s, i32 0, i32 0
767 store i32 0, i32* %field, align 4, !tbaa !43
768 %2 = bitcast %struct.templ_fp2d_st* %s to i8*
769 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #5
770 %3 = bitcast i32* %templ_fp2d_var to i8*
771 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #5
772 ret void
773 }
774
775 ; Function Attrs: convergent noinline norecurse nounwind optnone mustprogress
776 define dso_local spir_func void @_Z25memory_attribute_on_arrayv() #2 {
777 entry:
778 %register_var = alloca [32 x i32], align 4
779 %register_var.ascast = addrspacecast [32 x i32]* %register_var to [32 x i32] addrspace(4)*
780 %register_var.ascast1 = bitcast [32 x i32] addrspace(4)* %register_var.ascast to i8 addrspace(4)*
781 %register_var.ascast2 = addrspacecast i8 addrspace(4)* %register_var.ascast1 to i8*
782 ; CHECK-LLVM: call void @llvm.var.annotation(i8* %{{[a-zA-Z0-9_.]+}}, i8* getelementptr inbounds ([13 x i8], [13 x i8]* [[STR_REG_VAR]]
783 call void @llvm.var.annotation(i8* %register_var.ascast2, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i32 0, i32 0), i32 2, i8* null)
784 ret void
785 }
786
787 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"="intel-fpga-local-var.cpp" "uniform-work-group-size"="true" "unsafe-fp-math"="false" "use-soft-float"="false" }
788 attributes #1 = { argmemonly nounwind willreturn }
789 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" }
790 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" }
791 attributes #4 = { nounwind willreturn }
792 attributes #5 = { nounwind }
793
794 !llvm.module.flags = !{!0}
795 !opencl.spir.version = !{!1}
796 !spirv.Source = !{!2}
797 !llvm.ident = !{!3}
798
799 !0 = !{i32 1, !"wchar_size", i32 4}
800 !1 = !{i32 1, i32 2}
801 !2 = !{i32 4, i32 100000}
802 !3 = !{!"clang version 11.0.0"}
803 !4 = !{}
804 !5 = !{!6, !6, i64 0}
805 !6 = !{!"any pointer", !7, i64 0}
806 !7 = !{!"omnipotent char", !8, i64 0}
807 !8 = !{!"Simple C++ TBAA"}
808 !9 = !{!10, !11, i64 0}
809 !10 = !{!"_ZTSZ13numbanks_attrvE11numbanks_st", !11, i64 0}
810 !11 = !{!"int", !7, i64 0}
811 !12 = !{!13, !11, i64 0}
812 !13 = !{!"_ZTSZ19templ_numbanks_attrILi4EEvvE17templ_numbanks_st", !11, i64 0}
813 !14 = !{!15, !11, i64 0}
814 !15 = !{!"_ZTSZ13register_attrvE11register_st", !11, i64 0}
815 !16 = !{!11, !11, i64 0}
816 !17 = !{!18, !11, i64 0}
817 !18 = !{!"_ZTSZ14bankwidth_attrvE12bankwidth_st", !11, i64 0}
818 !19 = !{!20, !11, i64 0}
819 !20 = !{!"_ZTSZ20templ_bankwidth_attrILi16EEvvE18templ_bankwidth_st", !11, i64 0}
820 !21 = !{!22, !11, i64 0}
821 !22 = !{!"_ZTSZ19private_copies_attrvE14priv_copies_st", !11, i64 0}
822 !23 = !{!24, !11, i64 0}
823 !24 = !{!"_ZTSZ25templ_private_copies_attrILi8EEvvE20templ_priv_copies_st", !11, i64 0}
824 !25 = !{!26, !11, i64 0}
825 !26 = !{!"_ZTSZ15singlepump_attrvE13singlepump_st", !11, i64 0}
826 !27 = !{!28, !11, i64 0}
827 !28 = !{!"_ZTSZ15doublepump_attrvE13doublepump_st", !11, i64 0}
828 !29 = !{!30, !11, i64 0}
829 !30 = !{!"_ZTSZ10merge_attrvE8merge_st", !11, i64 0}
830 !31 = !{!32, !11, i64 0}
831 !32 = !{!"_ZTSZ19max_replicates_attrvE11max_repl_st", !11, i64 0}
832 !33 = !{!34, !11, i64 0}
833 !34 = !{!"_ZTSZ25templ_max_replicates_attrILi8EEvvE17templ_max_repl_st", !11, i64 0}
834 !35 = !{!36, !11, i64 0}
835 !36 = !{!"_ZTSZ21simple_dual_port_attrvE19simple_dual_port_st", !11, i64 0}
836 !37 = !{!38, !11, i64 0}
837 !38 = !{!"_ZTSZ14bank_bits_attrvE12bank_bits_st", !11, i64 0}
838 !39 = !{!40, !11, i64 0}
839 !40 = !{!"_ZTSZ20templ_bank_bits_attrILi4ELi5EEvvE18templ_bank_bits_st", !11, i64 0}
840 !41 = !{!42, !11, i64 0}
841 !42 = !{!"_ZTSZ21force_pow2_depth_attrvE7fp2d_st", !11, i64 0}
842 !43 = !{!44, !11, i64 0}
843 !44 = !{!"_ZTSZ27templ_force_pow2_depth_attrILi1EEvvE13templ_fp2d_st", !11, i64 0}