yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Einar HovAdd support for bfloat16 and float8 tensors5ed4003a

main
22.4 KiB453 linesraw
1spv.tensorARM.all_accesses.comp
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 276
5
6                              Capability Shader
7                              Capability Float16
8                              Capability Float64
9                              Capability Int64
10                              Capability Int16
11                              Capability Int8
12                              Capability TensorsARM
13                              Capability Float8EXT
14                              Capability BFloat16TypeKHR
15                              Extension  "SPV_ARM_tensors"
16                              Extension  "SPV_EXT_float8"
17                              Extension  "SPV_KHR_bfloat16"
18               1:             ExtInstImport  "GLSL.std.450"
19                              MemoryModel Logical GLSL450
20                              EntryPoint GLCompute 4  "main"
21                              ExecutionMode 4 LocalSize 1 1 1
22                              Source GLSL 460
23                              SourceExtension  "GL_ARM_tensors"
24                              SourceExtension  "GL_ARM_tensors_bfloat16"
25                              SourceExtension  "GL_ARM_tensors_float_e4m3"
26                              SourceExtension  "GL_ARM_tensors_float_e5m2"
27                              SourceExtension  "GL_EXT_bfloat16"
28                              SourceExtension  "GL_EXT_float_e4m3"
29                              SourceExtension  "GL_EXT_float_e5m2"
30                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types"
31                              Name 4  "main"
32                              Name 10  "coords"
33                              Name 15  "iw8"
34                              Name 19  "iw16"
35                              Name 23  "iw"
36                              Name 27  "iw64"
37                              Name 31  "it8"
38                              Name 37  "it16"
39                              Name 43  "it32"
40                              Name 49  "it64"
41                              Name 56  "iwv"
42                              Name 63  "ir8"
43                              Name 67  "ir16"
44                              Name 71  "ir"
45                              Name 75  "ir64"
46                              Name 79  "irv"
47                              Name 83  "uw8"
48                              Name 87  "uw16"
49                              Name 90  "uw"
50                              Name 93  "uw64"
51                              Name 97  "ut8"
52                              Name 103  "ut16"
53                              Name 109  "ut32"
54                              Name 115  "ut64"
55                              Name 121  "uwv"
56                              Name 128  "ur8"
57                              Name 132  "ur16"
58                              Name 136  "ur"
59                              Name 140  "ur64"
60                              Name 144  "urv"
61                              Name 148  "fw"
62                              Name 152  "fw16"
63                              Name 156  "fw64"
64                              Name 160  "ft16"
65                              Name 166  "ft32"
66                              Name 172  "ft64"
67                              Name 178  "fwv"
68                              Name 185  "fr16"
69                              Name 189  "fr"
70                              Name 193  "fr64"
71                              Name 197  "frv"
72                              Name 201  "bf16w"
73                              Name 205  "fe5m2w"
74                              Name 209  "fe4m3w"
75                              Name 213  "bft16"
76                              Name 219  "fte5m2"
77                              Name 225  "fte4m3"
78                              Name 231  "bf16wv"
79                              Name 238  "fe5m2wv"
80                              Name 243  "fe4m3one"
81                              Name 246  "fe4m3wv"
82                              Name 254  "bf16r"
83                              Name 258  "fe5m2r"
84                              Name 262  "fe4m3r"
85                              Name 266  "bf16rv"
86                              Name 270  "fe5m2rv"
87                              Name 274  "fe4m3rv"
88                              Decorate 31(it8) Binding 0
89                              Decorate 31(it8) DescriptorSet 0
90                              Decorate 37(it16) Binding 1
91                              Decorate 37(it16) DescriptorSet 0
92                              Decorate 43(it32) Binding 2
93                              Decorate 43(it32) DescriptorSet 0
94                              Decorate 49(it64) Binding 3
95                              Decorate 49(it64) DescriptorSet 0
96                              Decorate 97(ut8) Binding 4
97                              Decorate 97(ut8) DescriptorSet 0
98                              Decorate 103(ut16) Binding 5
99                              Decorate 103(ut16) DescriptorSet 0
100                              Decorate 109(ut32) Binding 6
101                              Decorate 109(ut32) DescriptorSet 0
102                              Decorate 115(ut64) Binding 7
103                              Decorate 115(ut64) DescriptorSet 0
104                              Decorate 160(ft16) Binding 8
105                              Decorate 160(ft16) DescriptorSet 0
106                              Decorate 166(ft32) Binding 9
107                              Decorate 166(ft32) DescriptorSet 0
108                              Decorate 172(ft64) Binding 10
109                              Decorate 172(ft64) DescriptorSet 0
110                              Decorate 213(bft16) Binding 11
111                              Decorate 213(bft16) DescriptorSet 0
112                              Decorate 219(fte5m2) Binding 12
113                              Decorate 219(fte5m2) DescriptorSet 0
114                              Decorate 225(fte4m3) Binding 13
115                              Decorate 225(fte4m3) DescriptorSet 0
116               2:             TypeVoid
117               3:             TypeFunction 2
118               6:             TypeInt 32 0
119               7:      6(int) Constant 1
120               8:             TypeArray 6(int) 7
121               9:             TypePointer Function 8
122              11:      6(int) Constant 0
123              12:           8 ConstantComposite 11
124              13:             TypeInt 8 1
125              14:             TypePointer Function 13(int8_t)
126              16:  13(int8_t) Constant 1
127              17:             TypeInt 16 1
128              18:             TypePointer Function 17(int16_t)
129              20: 17(int16_t) Constant 1
130              21:             TypeInt 32 1
131              22:             TypePointer Function 21(int)
132              24:     21(int) Constant 1
133              25:             TypeInt 64 1
134              26:             TypePointer Function 25(int64_t)
135              28: 25(int64_t) Constant 1 0
136              29:             TypeTensorARM 13(int8_t) 7
137              30:             TypePointer UniformConstant 29
138         31(it8):     30(ptr) Variable UniformConstant
139              35:             TypeTensorARM 17(int16_t) 7
140              36:             TypePointer UniformConstant 35
141        37(it16):     36(ptr) Variable UniformConstant
142              41:             TypeTensorARM 21(int) 7
143              42:             TypePointer UniformConstant 41
144        43(it32):     42(ptr) Variable UniformConstant
145              47:             TypeTensorARM 25(int64_t) 7
146              48:             TypePointer UniformConstant 47
147        49(it64):     48(ptr) Variable UniformConstant
148              53:      6(int) Constant 4
149              54:             TypeArray 21(int) 53
150              55:             TypePointer Function 54
151              57:          54 ConstantComposite 24 24 24 24
152              81:             TypeInt 8 0
153              82:             TypePointer Function 81(int8_t)
154              84:  81(int8_t) Constant 1
155              85:             TypeInt 16 0
156              86:             TypePointer Function 85(int16_t)
157              88: 85(int16_t) Constant 1
158              89:             TypePointer Function 6(int)
159              91:             TypeInt 64 0
160              92:             TypePointer Function 91(int64_t)
161              94: 91(int64_t) Constant 1 0
162              95:             TypeTensorARM 81(int8_t) 7
163              96:             TypePointer UniformConstant 95
164         97(ut8):     96(ptr) Variable UniformConstant
165             101:             TypeTensorARM 85(int16_t) 7
166             102:             TypePointer UniformConstant 101
167       103(ut16):    102(ptr) Variable UniformConstant
168             107:             TypeTensorARM 6(int) 7
169             108:             TypePointer UniformConstant 107
170       109(ut32):    108(ptr) Variable UniformConstant
171             113:             TypeTensorARM 91(int64_t) 7
172             114:             TypePointer UniformConstant 113
173       115(ut64):    114(ptr) Variable UniformConstant
174             119:             TypeArray 6(int) 53
175             120:             TypePointer Function 119
176             122:         119 ConstantComposite 7 7 7 7
177             146:             TypeFloat 32
178             147:             TypePointer Function 146(float)
179             149:  146(float) Constant 1065353216
180             150:             TypeFloat 16
181             151:             TypePointer Function 150(float16_t)
182             153:150(float16_t) Constant 15360
183             154:             TypeFloat 64
184             155:             TypePointer Function 154(float64_t)
185             157:154(float64_t) Constant 0 1072693248
186             158:             TypeTensorARM 150(float16_t) 7
187             159:             TypePointer UniformConstant 158
188       160(ft16):    159(ptr) Variable UniformConstant
189             164:             TypeTensorARM 146(float) 7
190             165:             TypePointer UniformConstant 164
191       166(ft32):    165(ptr) Variable UniformConstant
192             170:             TypeTensorARM 154(float64_t) 7
193             171:             TypePointer UniformConstant 170
194       172(ft64):    171(ptr) Variable UniformConstant
195             176:             TypeArray 146(float) 53
196             177:             TypePointer Function 176
197             179:         176 ConstantComposite 149 149 149 149
198             199:             TypeFloat 16 0
199             200:             TypePointer Function 199(bfloat16_t)
200             202:199(bfloat16_t) Constant 16256
201             203:             TypeFloat 8 4215
202             204:             TypePointer Function 203(floate5m2_t)
203             206:203(floate5m2_t) Constant 60
204             207:             TypeFloat 8 4214
205             208:             TypePointer Function 207(floate4m3_t)
206             210:207(floate4m3_t) Constant 56
207             211:             TypeTensorARM 199(bfloat16_t) 7
208             212:             TypePointer UniformConstant 211
209      213(bft16):    212(ptr) Variable UniformConstant
210             217:             TypeTensorARM 203(floate5m2_t) 7
211             218:             TypePointer UniformConstant 217
212     219(fte5m2):    218(ptr) Variable UniformConstant
213             223:             TypeTensorARM 207(floate4m3_t) 7
214             224:             TypePointer UniformConstant 223
215     225(fte4m3):    224(ptr) Variable UniformConstant
216             229:             TypeArray 199(bfloat16_t) 53
217             230:             TypePointer Function 229
218             232:         229 ConstantComposite 202 202 202 202
219             236:             TypeArray 203(floate5m2_t) 53
220             237:             TypePointer Function 236
221             239:         236 ConstantComposite 206 206 206 206
222             244:             TypeArray 207(floate4m3_t) 53
223             245:             TypePointer Function 244
224         4(main):           2 Function None 3
225               5:             Label
226      10(coords):      9(ptr) Variable Function
227         15(iw8):     14(ptr) Variable Function
228        19(iw16):     18(ptr) Variable Function
229          23(iw):     22(ptr) Variable Function
230        27(iw64):     26(ptr) Variable Function
231         56(iwv):     55(ptr) Variable Function
232         63(ir8):     14(ptr) Variable Function
233        67(ir16):     18(ptr) Variable Function
234          71(ir):     22(ptr) Variable Function
235        75(ir64):     26(ptr) Variable Function
236         79(irv):     55(ptr) Variable Function
237         83(uw8):     82(ptr) Variable Function
238        87(uw16):     86(ptr) Variable Function
239          90(uw):     89(ptr) Variable Function
240        93(uw64):     92(ptr) Variable Function
241        121(uwv):    120(ptr) Variable Function
242        128(ur8):     82(ptr) Variable Function
243       132(ur16):     86(ptr) Variable Function
244         136(ur):     89(ptr) Variable Function
245       140(ur64):     92(ptr) Variable Function
246        144(urv):    120(ptr) Variable Function
247         148(fw):    147(ptr) Variable Function
248       152(fw16):    151(ptr) Variable Function
249       156(fw64):    155(ptr) Variable Function
250        178(fwv):    177(ptr) Variable Function
251       185(fr16):    151(ptr) Variable Function
252         189(fr):    147(ptr) Variable Function
253       193(fr64):    155(ptr) Variable Function
254        197(frv):    177(ptr) Variable Function
255      201(bf16w):    200(ptr) Variable Function
256     205(fe5m2w):    204(ptr) Variable Function
257     209(fe4m3w):    208(ptr) Variable Function
258     231(bf16wv):    230(ptr) Variable Function
259    238(fe5m2wv):    237(ptr) Variable Function
260   243(fe4m3one):    208(ptr) Variable Function
261    246(fe4m3wv):    245(ptr) Variable Function
262      254(bf16r):    200(ptr) Variable Function
263     258(fe5m2r):    204(ptr) Variable Function
264     262(fe4m3r):    208(ptr) Variable Function
265     266(bf16rv):    230(ptr) Variable Function
266    270(fe5m2rv):    237(ptr) Variable Function
267    274(fe4m3rv):    245(ptr) Variable Function
268                              Store 10(coords) 12
269                              Store 15(iw8) 16
270                              Store 19(iw16) 20
271                              Store 23(iw) 24
272                              Store 27(iw64) 28
273              32:          29 Load 31(it8)
274              33:           8 Load 10(coords)
275              34:  13(int8_t) Load 15(iw8)
276                              TensorWriteARM 32 33 34
277              38:          35 Load 37(it16)
278              39:           8 Load 10(coords)
279              40: 17(int16_t) Load 19(iw16)
280                              TensorWriteARM 38 39 40
281              44:          41 Load 43(it32)
282              45:           8 Load 10(coords)
283              46:     21(int) Load 23(iw)
284                              TensorWriteARM 44 45 46
285              50:          47 Load 49(it64)
286              51:           8 Load 10(coords)
287              52: 25(int64_t) Load 27(iw64)
288                              TensorWriteARM 50 51 52
289                              Store 56(iwv) 57
290              58:          41 Load 43(it32)
291              59:           8 Load 10(coords)
292              60:          54 Load 56(iwv)
293                              TensorWriteARM 58 59 60
294              61:          29 Load 31(it8)
295              62:           8 Load 10(coords)
296              64:  13(int8_t) TensorReadARM 61 62
297                              Store 63(ir8) 64
298              65:          35 Load 37(it16)
299              66:           8 Load 10(coords)
300              68: 17(int16_t) TensorReadARM 65 66
301                              Store 67(ir16) 68
302              69:          41 Load 43(it32)
303              70:           8 Load 10(coords)
304              72:     21(int) TensorReadARM 69 70
305                              Store 71(ir) 72
306              73:          47 Load 49(it64)
307              74:           8 Load 10(coords)
308              76: 25(int64_t) TensorReadARM 73 74
309                              Store 75(ir64) 76
310              77:          41 Load 43(it32)
311              78:           8 Load 10(coords)
312              80:          54 TensorReadARM 77 78
313                              Store 79(irv) 80
314                              Store 83(uw8) 84
315                              Store 87(uw16) 88
316                              Store 90(uw) 7
317                              Store 93(uw64) 94
318              98:          95 Load 97(ut8)
319              99:           8 Load 10(coords)
320             100:  81(int8_t) Load 83(uw8)
321                              TensorWriteARM 98 99 100
322             104:         101 Load 103(ut16)
323             105:           8 Load 10(coords)
324             106: 85(int16_t) Load 87(uw16)
325                              TensorWriteARM 104 105 106
326             110:         107 Load 109(ut32)
327             111:           8 Load 10(coords)
328             112:      6(int) Load 90(uw)
329                              TensorWriteARM 110 111 112
330             116:         113 Load 115(ut64)
331             117:           8 Load 10(coords)
332             118: 91(int64_t) Load 93(uw64)
333                              TensorWriteARM 116 117 118
334                              Store 121(uwv) 122
335             123:         107 Load 109(ut32)
336             124:           8 Load 10(coords)
337             125:         119 Load 121(uwv)
338                              TensorWriteARM 123 124 125
339             126:          95 Load 97(ut8)
340             127:           8 Load 10(coords)
341             129:  81(int8_t) TensorReadARM 126 127
342                              Store 128(ur8) 129
343             130:         101 Load 103(ut16)
344             131:           8 Load 10(coords)
345             133: 85(int16_t) TensorReadARM 130 131
346                              Store 132(ur16) 133
347             134:         107 Load 109(ut32)
348             135:           8 Load 10(coords)
349             137:      6(int) TensorReadARM 134 135
350                              Store 136(ur) 137
351             138:         113 Load 115(ut64)
352             139:           8 Load 10(coords)
353             141: 91(int64_t) TensorReadARM 138 139
354                              Store 140(ur64) 141
355             142:         107 Load 109(ut32)
356             143:           8 Load 10(coords)
357             145:         119 TensorReadARM 142 143
358                              Store 144(urv) 145
359                              Store 148(fw) 149
360                              Store 152(fw16) 153
361                              Store 156(fw64) 157
362             161:         158 Load 160(ft16)
363             162:           8 Load 10(coords)
364             163:150(float16_t) Load 152(fw16)
365                              TensorWriteARM 161 162 163
366             167:         164 Load 166(ft32)
367             168:           8 Load 10(coords)
368             169:  146(float) Load 148(fw)
369                              TensorWriteARM 167 168 169
370             173:         170 Load 172(ft64)
371             174:           8 Load 10(coords)
372             175:154(float64_t) Load 156(fw64)
373                              TensorWriteARM 173 174 175
374                              Store 178(fwv) 179
375             180:         164 Load 166(ft32)
376             181:           8 Load 10(coords)
377             182:         176 Load 178(fwv)
378                              TensorWriteARM 180 181 182
379             183:         158 Load 160(ft16)
380             184:           8 Load 10(coords)
381             186:150(float16_t) TensorReadARM 183 184
382                              Store 185(fr16) 186
383             187:         164 Load 166(ft32)
384             188:           8 Load 10(coords)
385             190:  146(float) TensorReadARM 187 188
386                              Store 189(fr) 190
387             191:         170 Load 172(ft64)
388             192:           8 Load 10(coords)
389             194:154(float64_t) TensorReadARM 191 192
390                              Store 193(fr64) 194
391             195:         164 Load 166(ft32)
392             196:           8 Load 10(coords)
393             198:         176 TensorReadARM 195 196
394                              Store 197(frv) 198
395                              Store 201(bf16w) 202
396                              Store 205(fe5m2w) 206
397                              Store 209(fe4m3w) 210
398             214:         211 Load 213(bft16)
399             215:           8 Load 10(coords)
400             216:199(bfloat16_t) Load 201(bf16w)
401                              TensorWriteARM 214 215 216
402             220:         217 Load 219(fte5m2)
403             221:           8 Load 10(coords)
404             222:203(floate5m2_t) Load 205(fe5m2w)
405                              TensorWriteARM 220 221 222
406             226:         223 Load 225(fte4m3)
407             227:           8 Load 10(coords)
408             228:207(floate4m3_t) Load 209(fe4m3w)
409                              TensorWriteARM 226 227 228
410                              Store 231(bf16wv) 232
411             233:         211 Load 213(bft16)
412             234:           8 Load 10(coords)
413             235:         229 Load 231(bf16wv)
414                              TensorWriteARM 233 234 235
415                              Store 238(fe5m2wv) 239
416             240:         217 Load 219(fte5m2)
417             241:           8 Load 10(coords)
418             242:         236 Load 238(fe5m2wv)
419                              TensorWriteARM 240 241 242
420                              Store 243(fe4m3one) 210
421             247:207(floate4m3_t) Load 243(fe4m3one)
422             248:         244 CompositeConstruct 247 247 247 247
423                              Store 246(fe4m3wv) 248
424             249:         223 Load 225(fte4m3)
425             250:           8 Load 10(coords)
426             251:         244 Load 246(fe4m3wv)
427                              TensorWriteARM 249 250 251
428             252:         211 Load 213(bft16)
429             253:           8 Load 10(coords)
430             255:199(bfloat16_t) TensorReadARM 252 253
431                              Store 254(bf16r) 255
432             256:         217 Load 219(fte5m2)
433             257:           8 Load 10(coords)
434             259:203(floate5m2_t) TensorReadARM 256 257
435                              Store 258(fe5m2r) 259
436             260:         223 Load 225(fte4m3)
437             261:           8 Load 10(coords)
438             263:207(floate4m3_t) TensorReadARM 260 261
439                              Store 262(fe4m3r) 263
440             264:         211 Load 213(bft16)
441             265:           8 Load 10(coords)
442             267:         229 TensorReadARM 264 265
443                              Store 266(bf16rv) 267
444             268:         217 Load 219(fte5m2)
445             269:           8 Load 10(coords)
446             271:         236 TensorReadARM 268 269
447                              Store 270(fe5m2rv) 271
448             272:         223 Load 225(fte4m3)
449             273:           8 Load 10(coords)
450             275:         244 TensorReadARM 272 273
451                              Store 274(fe4m3rv) 275
452                              Return
453                              FunctionEnd