Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/transcoding/annotate_attribute.ll

raw
1 ; RUN: llvm-as -opaque-pointers=0 %s -o %t.bc
2 ; RUN: llvm-spirv %t.bc -opaque-pointers=0 -spirv-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV
3
4 ; RUN: llvm-spirv %t.bc -opaque-pointers=0 -o %t.spv
5 ; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.rev.bc
6 ; RUN: llvm-dis < %t.rev.bc | FileCheck %s --check-prefix=CHECK-LLVM
7
8 ; Check that even when FPGA memory extensions are enabled - yet we have
9 ; UserSemantic decoration be generated
10 ; RUN: llvm-as -opaque-pointers=0 %s -o %t.bc
11 ; RUN: llvm-spirv %t.bc -opaque-pointers=0 --spirv-ext=+SPV_INTEL_fpga_memory_accesses,+SPV_INTEL_fpga_memory_attributes -spirv-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV
12
13 ; Check SPIR-V versions in a format magic number + version
14 ; CHECK-SPIRV: 119734787 66560
15
16 ; CHECK-SPIRV-DAG: Decorate {{[0-9]+}} UserSemantic "42"
17 ; CHECK-SPIRV-DAG: Decorate {{[0-9]+}} UserSemantic "bar"
18 ; CHECK-SPIRV-DAG: Decorate {{[0-9]+}} UserSemantic "{FOO}"
19 ; CHECK-SPIRV-DAG: Decorate {{[0-9]+}} UserSemantic "my_custom_annotations: 30, 60"
20 ; CHECK-SPIRV-DAG: MemberDecorate {{[0-9]+}} 1 UserSemantic "128"
21 ; CHECK-SPIRV-DAG: MemberDecorate {{[0-9]+}} 2 UserSemantic "qux"
22 ; CHECK-SPIRV-DAG: MemberDecorate {{[0-9]+}} 0 UserSemantic "{baz}"
23 ; CHECK-SPIRV-DAG: MemberDecorate {{[0-9]+}} 3 UserSemantic "my_custom_annotations: 20, 60, 80"
24 ; CHECK-SPIRV-DAG: MemberDecorate {{[0-9]+}} 0 UserSemantic "annotation_with_zerointializer: 0, 0, 0"
25 ; CHECK-SPIRV-DAG: MemberDecorate {{[0-9]+}} 0 UserSemantic "annotation_with_false: 0"
26 ; CHECK-SPIRV-DAG: MemberDecorate {{[0-9]+}} 0 UserSemantic "annotation_mixed: 0, 1, 0"
27 ; CHECK-SPIRV-DAG: MemberDecorate {{[0-9]+}} 0 UserSemantic "abc: 1, 2, 3"
28 ; CHECK-SPIRV-DAG: MemberDecorate {{[0-9]+}} 0 UserSemantic "annotation_with_true: 1"
29
30 target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
31 target triple = "spir64-unknown-linux"
32
33 %class.anon = type { i8 }
34 %struct.bar = type { i32, i8, float, i8 }
35 %struct.S = type { i32 }
36 %struct.S.1 = type { i32 }
37 %struct.S.2 = type { i32 }
38 %struct.S.3 = type { i32 }
39 %struct.MyIP = type { i32 addrspace(4)* }
40
41 ; CHECK-LLVM-DAG: [[STR:@[0-9_.]+]] = {{.*}}42
42 ; CHECK-LLVM-DAG: [[STR2:@[0-9_.]+]] = {{.*}}{FOO}
43 ; CHECK-LLVM-DAG: [[STR3:@[0-9_.]+]] = {{.*}}bar
44 ; CHECK-LLVM-DAG: [[STR4:@[0-9_.]+]] = {{.*}}{baz}
45 ; CHECK-LLVM-DAG: [[STR5:@[0-9_.]+]] = {{.*}}128
46 ; CHECK-LLVM-DAG: [[STR6:@[0-9_.]+]] = {{.*}}qux
47 ; CHECK-LLVM-DAG: [[STR7:@[0-9_.]+]] = {{.*}}my_custom_annotations: 30, 60
48 ; CHECK-LLVM-DAG: [[STR8:@[0-9_.]+]] = {{.*}}my_custom_annotations: 20, 60, 80
49 ; CHECK-LLVM-DAG: [[STR9:@[0-9_.]+]] = {{.*}}annotation_with_zerointializer: 0, 0, 0
50 ; CHECK-LLVM-DAG: [[STR10:@[0-9_.]+]] = {{.*}}annotation_with_false: 0
51 ; CHECK-LLVM-DAG: [[STR13:@[0-9_.]+]] = {{.*}}annotation_with_true: 1
52 ; CHECK-LLVM-DAG: [[STR11:@[0-9_.]+]] = {{.*}}"annotation_mixed: 0, 1, 0
53 ; CHECK-LLVM-DAG: [[STR12:@[0-9_.]+]] = {{.*}}"abc: 1, 2, 3
54 @.str = private unnamed_addr constant [3 x i8] c"42\00", section "llvm.metadata"
55 @.str.1 = private unnamed_addr constant [23 x i8] c"annotate_attribute.cpp\00", section "llvm.metadata"
56 @.str.2 = private unnamed_addr constant [6 x i8] c"{FOO}\00", section "llvm.metadata"
57 @.str.3 = private unnamed_addr constant [4 x i8] c"bar\00", section "llvm.metadata"
58 @.str.4 = private unnamed_addr constant [6 x i8] c"{baz}\00", section "llvm.metadata"
59 @.str.5 = private unnamed_addr constant [4 x i8] c"128\00", section "llvm.metadata"
60 @.str.6 = private unnamed_addr constant [4 x i8] c"qux\00", section "llvm.metadata"
61 @.str.7 = private unnamed_addr constant [22 x i8] c"my_custom_annotations\00", section "llvm.metadata"
62 @.str.8 = private unnamed_addr constant [31 x i8] c"annotation_with_zerointializer\00", section "llvm.metadata"
63 @.str.9 = private unnamed_addr constant [22 x i8] c"annotation_with_false\00", section "llvm.metadata"
64 @.str.10 = private unnamed_addr constant [17 x i8] c"annotation_mixed\00", section "llvm.metadata"
65 @.args.0 = private unnamed_addr constant { i32, i32 } { i32 30, i32 60 }, section "llvm.metadata"
66 @.args.1 = private unnamed_addr constant { i32, i32, i32 } { i32 20, i32 60, i32 80 }, section "llvm.metadata"
67 @.args.2 = private unnamed_addr constant { i32, i32, i32 } zeroinitializer, section "llvm.metadata"
68 @.args.3 = private unnamed_addr constant { i1 } zeroinitializer, section "llvm.metadata"
69 @.args.4 = private unnamed_addr constant { i32, i32, i32 } { i32 0, i32 1, i32 0 }, section "llvm.metadata"
70 @.args.5 = private unnamed_addr constant { i1 } {i1 true }, section "llvm.metadata"
71 @.str.11 = private unnamed_addr constant [4 x i8] c"abc\00", section "llvm.metadata"
72 @.str.12 = private unnamed_addr constant [21 x i8] c"annotation_with_true\00", section "llvm.metadata"
73 @.str.1.12 = private unnamed_addr constant [9 x i8] c"test.cpp\00", section "llvm.metadata"
74 @.args = private unnamed_addr constant { i32, i32, i32 } { i32 1, i32 2, i32 3 }, section "llvm.metadata"
75
76
77 ; Function Attrs: nounwind
78 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 {
79 entry:
80 %0 = alloca %class.anon, align 1
81 %1 = bitcast %class.anon* %0 to i8*
82 call void @llvm.lifetime.start.p0i8(i64 1, i8* %1) #4
83 call spir_func void @"_ZZ4mainENK3$_0clEv"(%class.anon* %0)
84 %2 = bitcast %class.anon* %0 to i8*
85 call void @llvm.lifetime.end.p0i8(i64 1, i8* %2) #4
86 ret void
87 }
88
89 ; Function Attrs: argmemonly nounwind
90 declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) #1
91
92 ; Function Attrs: inlinehint nounwind
93 define internal spir_func void @"_ZZ4mainENK3$_0clEv"(%class.anon* %this) #2 align 2 {
94 entry:
95 %this.addr = alloca %class.anon*, align 8
96 store %class.anon* %this, %class.anon** %this.addr, align 8, !tbaa !5
97 %this1 = load %class.anon*, %class.anon** %this.addr, align 8
98 call spir_func void @_Z3foov()
99 call spir_func void @_Z3bazv()
100 ret void
101 }
102
103 ; Function Attrs: argmemonly nounwind
104 declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) #1
105
106 ; Function Attrs: nounwind
107 define spir_func void @_Z3foov() #3 {
108 entry:
109 %var_one = alloca i32, align 4
110 %var_two = alloca i32, align 4
111 %var_three = alloca i8, align 1
112 %var_four = alloca i8, align 1
113 %0 = bitcast i32* %var_one to i8*
114 call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #4
115 %var_one1 = bitcast i32* %var_one to i8*
116 ; CHECK-LLVM: call void @llvm.var.annotation.p0.p0(ptr %{{.*}}, ptr [[STR]], ptr undef, i32 undef, ptr undef)
117 call void @llvm.var.annotation(i8* %var_one1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i32 0, i32 0), i32 2, i8* undef)
118 %1 = bitcast i32* %var_two to i8*
119 call void @llvm.lifetime.start.p0i8(i64 4, i8* %1) #4
120 %var_two2 = bitcast i32* %var_two to i8*
121 ; CHECK-LLVM: call void @llvm.var.annotation.p0.p0(ptr %{{.*}}, ptr [[STR2]], ptr undef, i32 undef, ptr undef)
122 call void @llvm.var.annotation(i8* %var_two2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i32 0, i32 0), i32 3, i8* undef)
123 call void @llvm.lifetime.start.p0i8(i64 1, i8* %var_three) #4
124 ; CHECK-LLVM: call void @llvm.var.annotation.p0.p0(ptr %{{.*}}, ptr [[STR3]], ptr undef, i32 undef, ptr undef)
125 call void @llvm.var.annotation(i8* %var_three, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i32 0, i32 0), i32 4, i8* undef)
126 call void @llvm.lifetime.end.p0i8(i64 1, i8* %var_three) #4
127 call void @llvm.lifetime.start.p0i8(i64 1, i8* %var_four) #4
128 ; CHECK-LLVM: call void @llvm.var.annotation.p0.p0(ptr %{{.*}}, ptr [[STR7]], ptr undef, i32 undef, ptr undef)
129 call void @llvm.var.annotation(i8* %var_four, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i32 0, i32 0), i32 4, i8* bitcast ({ i32, i32 }* @.args.0 to i8*))
130 call void @llvm.lifetime.end.p0i8(i64 1, i8* %var_four) #4
131 %2 = bitcast i32* %var_two to i8*
132 call void @llvm.lifetime.end.p0i8(i64 4, i8* %2) #4
133 %3 = bitcast i32* %var_one to i8*
134 call void @llvm.lifetime.end.p0i8(i64 4, i8* %3) #4
135 ret void
136 }
137
138 ; Function Attrs: nounwind
139 declare void @llvm.var.annotation(i8*, i8*, i8*, i32, i8*) #4
140
141 ; Function Attrs: nounwind
142 define spir_func void @_Z3bazv() #3 {
143 entry:
144 %s1 = alloca %struct.bar, align 4
145 %0 = bitcast %struct.bar* %s1 to i8*
146 call void @llvm.lifetime.start.p0i8(i64 8, i8* %0) #4
147 ; CHECK-LLVM: %[[FIELD1:.*]] = getelementptr inbounds %struct.bar, ptr %{{[a-zA-Z0-9]+}}, i32 0, i32 0
148 ; CHECK-LLVM: call ptr @llvm.ptr.annotation.p0{{.*}}%[[FIELD1]]{{.*}}[[STR4]]
149 %f1 = getelementptr inbounds %struct.bar, %struct.bar* %s1, i32 0, i32 0
150 %1 = call i32* @llvm.ptr.annotation.p0i32.p0i8(i32* %f1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i32 0, i32 0), i32 8, i8* undef)
151 store i32 0, i32* %1, align 4, !tbaa !9
152 ; CHECK-LLVM: %[[FIELD2:.*]] = getelementptr inbounds %struct.bar, ptr %{{[a-zA-Z0-9]+}}, i32 0, i32 1
153 ; CHECK-LLVM: call ptr @llvm.ptr.annotation.p0{{.*}}%[[FIELD2]]{{.*}}[[STR5]]
154 %f2 = getelementptr inbounds %struct.bar, %struct.bar* %s1, i32 0, i32 1
155 %2 = call i8* @llvm.ptr.annotation.p0i8.p0i8(i8* %f2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i32 0, i32 0), i32 9, i8* undef)
156 store i8 0, i8* %2, align 4, !tbaa !13
157 ; CHECK-LLVM: %[[FIELD3:.*]] = getelementptr inbounds %struct.bar, ptr %{{[a-zA-Z0-9]+}}, i32 0, i32 2
158 ; CHECK-LLVM: call ptr @llvm.ptr.annotation.p0{{.*}}%[[FIELD3]]{{.*}}[[STR6]]
159 %f3 = getelementptr inbounds %struct.bar, %struct.bar* %s1, i32 0, i32 2
160 %3 = bitcast float* %f3 to i8*
161 %4 = call i8* @llvm.ptr.annotation.p0i8.p0i8(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i32 0, i32 0), i32 9, i8* undef)
162 %5 = bitcast i8* %4 to float*
163 store float 0.000000e+00, float* %5, align 4, !tbaa !14
164 ; CHECK-LLVM: %[[FIELD4:.*]] = getelementptr inbounds %struct.bar, ptr %{{[a-zA-Z0-9]+}}, i32 0, i32 3
165 ; CHECK-LLVM: call ptr @llvm.ptr.annotation.p0{{.*}}%[[FIELD4]]{{.*}}[[STR8]]
166 %f4 = getelementptr inbounds %struct.bar, %struct.bar* %s1, i32 0, i32 3
167 %6 = call i8* @llvm.ptr.annotation.p0i8.p0i8(i8* %f4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i32 0, i32 0), i32 9, i8* bitcast ({ i32, i32, i32 }* @.args.1 to i8*))
168 store i8 0, i8* %6, align 4, !tbaa !13
169 %7 = bitcast %struct.bar* %s1 to i8*
170 call void @llvm.lifetime.end.p0i8(i64 12, i8* %7) #4
171 ret void
172 }
173
174 ; Function Attrs: mustprogress noinline norecurse optnone uwtable
175 define dso_local noundef i32 @with_zeroinitializer() #0 {
176 entry:
177 %retval = alloca i32, align 4
178 %s = alloca %struct.S, align 4
179 store i32 0, i32* %retval, align 4
180 %a = getelementptr inbounds %struct.S, %struct.S* %s, i32 0, i32 0
181 %0 = call i32* @llvm.ptr.annotation.p0i32.p0i8(i32* %a, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i32 0, i32 0), i32 3, i8* bitcast ({ i32, i32, i32 }* @.args.2 to i8*))
182 ; CHECK-LLVM: %[[FIELD5:.*]] = getelementptr inbounds %struct.S, ptr %{{[a-z]+}}, i32 0, i32 0
183 ; CHECK-LLVM: call ptr @llvm.ptr.annotation.p0.p0{{.*}}%[[FIELD5]]{{.*}}[[STR9]]
184 %1 = load i32, i32* %0, align 4
185 call void @_Z3fooi(i32 noundef %1)
186 ret i32 0
187 }
188
189 ; Function Attrs: mustprogress noinline norecurse optnone uwtable
190 define dso_local noundef i32 @with_false() #0 {
191 entry:
192 %retval = alloca i32, align 4
193 %s = alloca %struct.S.1, align 4
194 store i32 0, i32* %retval, align 4
195 %a = getelementptr inbounds %struct.S.1, %struct.S.1* %s, i32 0, i32 0
196 %0 = call i32* @llvm.ptr.annotation.p0i32.p0i8(i32* %a, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i32 0, i32 0), i32 3, i8* bitcast ({ i1 }* @.args.3 to i8*))
197 ; CHECK-LLVM: %[[FIELD6:.*]] = getelementptr inbounds %struct.S.1, ptr %{{[a-z]+}}, i32 0, i32 0
198 ; CHECK-LLVM: call ptr @llvm.ptr.annotation.p0{{.*}}%[[FIELD6]]{{.*}}[[STR10]]
199 %1 = load i32, i32* %0, align 4
200 call void @_Z3fooi(i32 noundef %1)
201 ret i32 0
202 }
203
204 ; Function Attrs: mustprogress noinline norecurse optnone uwtable
205 define dso_local noundef i32 @mixed() #0 {
206 entry:
207 %retval = alloca i32, align 4
208 %s = alloca %struct.S.2, align 4
209 store i32 0, i32* %retval, align 4
210 %a = getelementptr inbounds %struct.S.2, %struct.S.2* %s, i32 0, i32 0
211 %0 = call i32* @llvm.ptr.annotation.p0i32.p0i8(i32* %a, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i32 0, i32 0), i32 3, i8* bitcast ({ i32, i32, i32 }* @.args.4 to i8*))
212 ; CHECK-LLVM: %[[FIELD7:.*]] = getelementptr inbounds %struct.S.2, ptr %{{[a-z]+}}, i32 0, i32 0
213 ; CHECK-LLVM: call ptr @llvm.ptr.annotation.p0{{.*}}%[[FIELD7]]{{.*}}[[STR11]]
214 %1 = load i32, i32* %0, align 4
215 call void @_Z3fooi(i32 noundef %1)
216 ret i32 0
217 }
218
219 ; Function Attrs: mustprogress norecurse
220 define weak_odr dso_local spir_kernel void @_ZTSZ11TestKernelAvE4MyIP(i32 addrspace(1)* noundef align 4 %0) local_unnamed_addr #5 !kernel_arg_buffer_location !15 !sycl_kernel_omit_args !16 {
221 %2 = alloca %struct.MyIP, align 8
222 %3 = bitcast %struct.MyIP* %2 to i8*
223 call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %3) #4
224 %4 = addrspacecast i8* %3 to i8 addrspace(4)*
225 %5 = call i8 addrspace(4)* @llvm.ptr.annotation.p4i8.p0i8(i8 addrspace(4)* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1.12, i64 0, i64 0), i32 13, i8* bitcast ({ i32, i32, i32 }* @.args to i8*))
226 ; CHECK-LLVM: %[[ALLOCA:.*]] = alloca %struct.MyIP, align 8
227 ; CHECK-LLVM: %[[GEP:.*]] = getelementptr inbounds %struct.MyIP, ptr %[[ALLOCA]], i32 0, i32 0
228 ; CHECK-LLVM: call ptr @llvm.ptr.annotation.p0.p0(ptr %[[GEP]], ptr [[STR12]], ptr undef, i32 undef, ptr undef)
229 %6 = bitcast i8 addrspace(4)* %5 to i32 addrspace(4)* addrspace(4)*
230 %7 = addrspacecast i32 addrspace(1)* %0 to i32 addrspace(4)*
231 store i32 addrspace(4)* %7, i32 addrspace(4)* addrspace(4)* %6, align 8, !tbaa !17
232 %8 = bitcast i8 addrspace(4)* %5 to i32 addrspace(4)* addrspace(4)*
233 %9 = load i32 addrspace(4)*, i32 addrspace(4)* addrspace(4)* %8, align 8, !tbaa !17
234 %10 = load i32, i32 addrspace(4)* %9, align 4, !tbaa !19
235 %11 = shl nsw i32 %10, 1
236 store i32 %11, i32 addrspace(4)* %9, align 4, !tbaa !19
237 call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %3) #4
238 ret void
239 }
240
241 ; Function Attrs: mustprogress noinline norecurse optnone uwtable
242 define dso_local noundef i32 @with_true() #0 {
243 entry:
244 %retval = alloca i32, align 4
245 %s = alloca %struct.S.3, align 4
246 store i32 0, i32* %retval, align 4
247 %a = getelementptr inbounds %struct.S.3, %struct.S.3* %s, i32 0, i32 0
248 %0 = call i32* @llvm.ptr.annotation.p0i32.p0i8(i32* %a, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i32 0, i32 0), i32 3, i8* bitcast ({ i1 }* @.args.5 to i8*))
249 ; CHECK-LLVM: %[[FIELD8:.*]] = getelementptr inbounds %struct.S.3, ptr %{{[a-z]+}}, i32 0, i32 0
250 ; CHECK-LLVM: call ptr @llvm.ptr.annotation.p0{{.*}}%[[FIELD8]]{{.*}}[[STR13]]
251 %1 = load i32, i32* %0, align 4
252 call void @_Z3fooi(i32 noundef %1)
253 ret i32 0
254 }
255
256 declare dso_local void @_Z3fooi(i32 noundef)
257
258 ; Function Attrs: nounwind
259 declare i8* @llvm.ptr.annotation.p0i8.p0i8(i8*, i8*, i8*, i32, i8*) #4
260
261 ; Function Attrs: nounwind
262 declare i32* @llvm.ptr.annotation.p0i32.p0i8(i32*, i8*, i8*, i32, i8*) #4
263
264 ; Function Attrs: nounwind
265 declare i8 addrspace(4)* @llvm.ptr.annotation.p4i8.p0i8(i8 addrspace(4)*, i8*, i8*, i32, i8*) #4
266
267 attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-frame-pointer-elim"="false" "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" "uniform-work-group-size"="true" "unsafe-fp-math"="false" "use-soft-float"="false" }
268 attributes #1 = { argmemonly nounwind }
269 attributes #2 = { inlinehint nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-frame-pointer-elim"="false" "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" }
270 attributes #3 = { nounwind optnone noinline "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-frame-pointer-elim"="false" "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" }
271 attributes #4 = { nounwind }
272 attributes #5 = { mustprogress norecurse "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "sycl-module-id"="test.cpp" "uniform-work-group-size"="true" }
273
274 !llvm.module.flags = !{!0}
275 !opencl.spir.version = !{!1}
276 !spirv.Source = !{!2}
277 !llvm.ident = !{!3}
278
279 !0 = !{i32 1, !"wchar_size", i32 4}
280 !1 = !{i32 1, i32 2}
281 !2 = !{i32 4, i32 100000}
282 !3 = !{!"clang version 9.0.0"}
283 !4 = !{}
284 !5 = !{!6, !6, i64 0}
285 !6 = !{!"any pointer", !7, i64 0}
286 !7 = !{!"omnipotent char", !8, i64 0}
287 !8 = !{!"Simple C++ TBAA"}
288 !9 = !{!10, !11, i64 0}
289 !10 = !{!"_ZTS3bar", !11, i64 0, !7, i64 4, !12, i64 8}
290 !11 = !{!"int", !7, i64 0}
291 !12 = !{!"float", !7, i64 0}
292 !13 = !{!10, !7, i64 4}
293 !14 = !{!10, !12, i64 8}
294 !15 = !{i32 -1}
295 !16 = !{i1 false}
296 !17 = !{!18, !6, i64 0}
297 !18 = !{!"_ZTSZ11TestKernelAvE4MyIP", !6, i64 0}
298 !19 = !{!11, !11, i64 0}