yum-mirror/glslang

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

Diego NovilloFix inconsistent labeling of capability strings7a5308f4

main
19.1 KiB381 linesraw
1spv.coopvec.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 250
5
6                              Capability Shader
7                              Capability Float16
8                              Capability Int8
9                              Capability StorageUniformBufferBlock16
10                              Capability StorageBuffer8BitAccess
11                              Capability VulkanMemoryModelKHR
12                              Capability CooperativeVectorNV
13                              Capability ReplicatedCompositesEXT
14                              Extension  "SPV_EXT_replicated_composites"
15                              Extension  "SPV_KHR_8bit_storage"
16                              Extension  "SPV_KHR_vulkan_memory_model"
17                              Extension  "SPV_NV_cooperative_vector"
18               1:             ExtInstImport  "GLSL.std.450"
19                              MemoryModel Logical VulkanKHR
20                              EntryPoint GLCompute 4  "main"
21                              ExecutionMode 4 LocalSize 64 1 1
22                              Source GLSL 450
23                              SourceExtension  "GL_EXT_buffer_reference"
24                              SourceExtension  "GL_EXT_nonuniform_qualifier"
25                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types"
26                              SourceExtension  "GL_KHR_memory_scope_semantics"
27                              SourceExtension  "GL_NV_cooperative_vector"
28                              Name 4  "main"
29                              Name 13  "foo(coopvecf161<1>;"
30                              Name 12  "x"
31                              Name 20  "foo(coopvecf161<2>;"
32                              Name 19  "x"
33                              Name 26  "v"
34                              Name 31  "x"
35                              Name 34  "y"
36                              Name 37  "v2"
37                              Name 46  "v3"
38                              Name 48  "x3"
39                              Name 53  "y3"
40                              Name 58  "v4"
41                              Name 71  "v5"
42                              Name 74  "v6"
43                              Name 100  "f"
44                              Name 108  "len"
45                              Name 125  "tempArg"
46                              Name 129  "v7"
47                              Name 132  "MatrixBuf"
48                              MemberName 132(MatrixBuf) 0  "matrixData"
49                              Name 134  "matrixBuf"
50                              Name 142  "v8"
51                              Name 145  "matrixOffset"
52                              Name 148  "tempArg"
53                              Name 152  "v9"
54                              Name 156  "MatrixBuf2"
55                              MemberName 156(MatrixBuf2) 0  "matrixData"
56                              Name 158  "matrixBuf2"
57                              Name 165  "v10"
58                              Name 167  "f162"
59                              Name 171  "f161"
60                              Name 173  "f16"
61                              Name 179  "v11"
62                              Name 181  "v12"
63                              Name 192  "v13"
64                              Name 207  "tempArg"
65                              Name 214  "biasOffset"
66                              Name 215  "tempArg"
67                              Name 223  "tempArg"
68                              Name 226  "v14"
69                              Name 231  "matrixLayout"
70                              Decorate 131 ArrayStride 2
71                              Decorate 132(MatrixBuf) Block
72                              MemberDecorate 132(MatrixBuf) 0 Offset 0
73                              Decorate 134(matrixBuf) Binding 0
74                              Decorate 134(matrixBuf) DescriptorSet 0
75                              Decorate 155 ArrayStride 1
76                              Decorate 156(MatrixBuf2) Block
77                              MemberDecorate 156(MatrixBuf2) 0 Offset 0
78                              Decorate 158(matrixBuf2) Binding 0
79                              Decorate 158(matrixBuf2) DescriptorSet 0
80                              Decorate 231(matrixLayout) SpecId 0
81                              Decorate 249 BuiltIn WorkgroupSize
82               2:             TypeVoid
83               3:             TypeFunction 2
84               6:             TypeFloat 16
85               7:             TypeInt 32 0
86               8:      7(int) Constant 1
87               9:             TypeCooperativeVectorNV 6(float16_t) 8
88              10:             TypePointer Function 9
89              11:             TypeFunction 9 10(ptr)
90              15:      7(int) Constant 2
91              16:             TypeCooperativeVectorNV 6(float16_t) 15
92              17:             TypePointer Function 16
93              18:             TypeFunction 16 17(ptr)
94              22:             TypeFloat 32
95              23:      7(int) Constant 5
96              24:             TypeCooperativeVectorNV 22(float) 23
97              25:             TypePointer Function 24
98              27:   22(float) Constant 0
99              28:          24 ConstantCompositeReplicateEXT 27
100              29:             TypeVector 22(float) 3
101              30:             TypePointer Function 29(fvec3)
102              32:   22(float) Constant 1065353216
103              33:   29(fvec3) ConstantComposite 32 32 32
104              35:   22(float) Constant 1073741824
105              36:   29(fvec3) ConstantComposite 35 35 35
106              47:          24 ConstantComposite 32 32 32 35 35
107              49:   22(float) Constant 1082130432
108              50:   22(float) Constant 1084227584
109              51:   22(float) Constant 1086324736
110              52:   29(fvec3) ConstantComposite 49 50 51
111              54:   22(float) Constant 1088421888
112              55:   22(float) Constant 1090519040
113              56:   22(float) Constant 1091567616
114              57:   29(fvec3) ConstantComposite 54 55 56
115              69:             TypeCooperativeVectorNV 6(float16_t) 23
116              70:             TypePointer Function 69
117              99:             TypePointer Function 22(float)
118             106:             TypeInt 32 1
119             107:             TypePointer Function 106(int)
120             110:    106(int) Constant 0
121             113:    106(int) Constant 4
122             122:      7(int) Constant 100
123             123:             TypeCooperativeVectorNV 22(float) 122
124             124:             TypePointer Function 123
125             126:      7(int) Constant 20
126             127:             TypeCooperativeVectorNV 22(float) 126
127             128:             TypePointer Function 127
128             131:             TypeRuntimeArray 6(float16_t)
129  132(MatrixBuf):             TypeStruct 131
130             133:             TypePointer StorageBuffer 132(MatrixBuf)
131  134(matrixBuf):    133(ptr) Variable StorageBuffer
132             135:             TypePointer StorageBuffer 131
133             137:      7(int) Constant 11
134             138:             TypeBool
135             139:   138(bool) ConstantFalse
136             140:      7(int) Constant 300
137             144:             TypePointer Function 7(int)
138             146:             TypeCooperativeVectorNV 106(int) 122
139             147:             TypePointer Function 146
140             149:             TypeInt 8 1
141             150:             TypeCooperativeVectorNV 149(int8_t) 126
142             151:             TypePointer Function 150
143             154:    106(int) Constant 3
144             155:             TypeRuntimeArray 149(int8_t)
145 156(MatrixBuf2):             TypeStruct 155
146             157:             TypePointer StorageBuffer 156(MatrixBuf2)
147 158(matrixBuf2):    157(ptr) Variable StorageBuffer
148             159:             TypePointer StorageBuffer 155
149             162:    106(int) Constant 1
150             163:   138(bool) ConstantTrue
151             172:             TypePointer Function 6(float16_t)
152             176:      7(int) Constant 7
153             177:             TypeCooperativeVectorNV 6(float16_t) 176
154             178:             TypePointer Function 177
155             211:      7(int) Constant 50
156             224:             TypeCooperativeVectorNV 7(int) 126
157             225:             TypePointer Function 224
158             228:    106(int) Constant 1000491000
159231(matrixLayout):    106(int) SpecConstant 1
160             247:             TypeVector 7(int) 3
161             248:      7(int) Constant 64
162             249:  247(ivec3) ConstantComposite 248 8 8
163         4(main):           2 Function None 3
164               5:             Label
165           26(v):     25(ptr) Variable Function
166           31(x):     30(ptr) Variable Function
167           34(y):     30(ptr) Variable Function
168          37(v2):     25(ptr) Variable Function
169          46(v3):     25(ptr) Variable Function
170          48(x3):     30(ptr) Variable Function
171          53(y3):     30(ptr) Variable Function
172          58(v4):     25(ptr) Variable Function
173          71(v5):     70(ptr) Variable Function
174          74(v6):     25(ptr) Variable Function
175          100(f):     99(ptr) Variable Function
176        108(len):    107(ptr) Variable Function
177    125(tempArg):    124(ptr) Variable Function
178         129(v7):    128(ptr) Variable Function
179         142(v8):    124(ptr) Variable Function
180145(matrixOffset):    144(ptr) Variable Function
181    148(tempArg):    147(ptr) Variable Function
182         152(v9):    151(ptr) Variable Function
183        165(v10):    147(ptr) Variable Function
184       167(f162):     17(ptr) Variable Function
185       171(f161):     10(ptr) Variable Function
186        173(f16):    172(ptr) Variable Function
187        179(v11):    178(ptr) Variable Function
188        181(v12):    178(ptr) Variable Function
189        192(v13):    178(ptr) Variable Function
190    207(tempArg):    124(ptr) Variable Function
191 214(biasOffset):    144(ptr) Variable Function
192    215(tempArg):    147(ptr) Variable Function
193    223(tempArg):    147(ptr) Variable Function
194        226(v14):    225(ptr) Variable Function
195                              Store 26(v) 28
196                              Store 31(x) 33
197                              Store 34(y) 36
198              38:   29(fvec3) Load 31(x)
199              39:   29(fvec3) Load 34(y)
200              40:   22(float) CompositeExtract 38 0
201              41:   22(float) CompositeExtract 38 1
202              42:   22(float) CompositeExtract 38 2
203              43:   22(float) CompositeExtract 39 0
204              44:   22(float) CompositeExtract 39 1
205              45:          24 CompositeConstruct 40 41 42 43 44
206                              Store 37(v2) 45
207                              Store 46(v3) 47
208                              Store 48(x3) 52
209                              Store 53(y3) 57
210              59:   29(fvec3) Load 48(x3)
211              60:   29(fvec3) VectorShuffle 59 59 2 1 0
212              61:   29(fvec3) Load 53(y3)
213              62:   29(fvec3) VectorShuffle 61 61 2 2 1
214              63:   22(float) CompositeExtract 60 0
215              64:   22(float) CompositeExtract 60 1
216              65:   22(float) CompositeExtract 60 2
217              66:   22(float) CompositeExtract 62 0
218              67:   22(float) CompositeExtract 62 1
219              68:          24 CompositeConstruct 63 64 65 66 67
220                              Store 58(v4) 68
221              72:          24 Load 58(v4)
222              73:          69 FConvert 72
223                              Store 71(v5) 73
224              75:          24 Load 26(v)
225              76:          24 Load 37(v2)
226              77:          24 FAdd 75 76
227                              Store 74(v6) 77
228              78:          24 Load 26(v)
229              79:          24 Load 37(v2)
230              80:          24 FSub 78 79
231                              Store 74(v6) 80
232              81:          24 Load 26(v)
233              82:          24 Load 37(v2)
234              83:          24 FMul 81 82
235                              Store 74(v6) 83
236              84:          24 Load 26(v)
237              85:          24 Load 37(v2)
238              86:          24 FDiv 84 85
239                              Store 74(v6) 86
240              87:          24 Load 26(v)
241              88:          24 Load 74(v6)
242              89:          24 FAdd 88 87
243                              Store 74(v6) 89
244              90:          24 Load 26(v)
245              91:          24 Load 74(v6)
246              92:          24 FSub 91 90
247                              Store 74(v6) 92
248              93:          24 Load 26(v)
249              94:          24 Load 74(v6)
250              95:          24 FMul 94 93
251                              Store 74(v6) 95
252              96:          24 Load 26(v)
253              97:          24 Load 74(v6)
254              98:          24 FDiv 97 96
255                              Store 74(v6) 98
256             101:   22(float) Load 100(f)
257             102:          24 Load 74(v6)
258             103:          24 VectorTimesScalar 102 101
259                              Store 74(v6) 103
260             104:          24 Load 74(v6)
261             105:          24 VectorTimesScalar 104 50
262                              Store 74(v6) 105
263             109:    106(int) Bitcast 23
264                              Store 108(len) 109
265             111:   22(float) Load 100(f)
266             112:     99(ptr) AccessChain 74(v6) 110
267                              Store 112 111
268             114:     99(ptr) AccessChain 74(v6) 113
269                              Store 114 50
270             115:          24 Load 26(v)
271             116:          24 Load 26(v)
272             117:          24 FAdd 116 115
273                              Store 26(v) 117
274             118:   22(float) CompositeExtract 117 4
275             119:   22(float) Load 100(f)
276             120:   22(float) FAdd 119 118
277                              Store 100(f) 120
278             121:          24 Load 26(v)
279                              Store 74(v6) 121
280             130:         127 Load 129(v7)
281             136:    135(ptr) AccessChain 134(matrixBuf) 110
282             141:         123 CooperativeVectorMatrixMulNV 130 110 136 137 110 122 126 110 139 140
283                              Store 125(tempArg) 141
284             143:         123 Load 125(tempArg)
285                              Store 142(v8) 143
286                              Store 145(matrixOffset) 137
287             153:         150 Load 152(v9)
288             160:    159(ptr) AccessChain 158(matrixBuf2) 110
289             161:      7(int) Load 145(matrixOffset)
290             164:         146 CooperativeVectorMatrixMulNV 153 154 160 161 154 122 126 162 163 140 BSignedComponentsKHR ResultSignedComponentsKHR 
291                              Store 148(tempArg) 164
292             166:         146 Load 148(tempArg)
293                              Store 165(v10) 166
294             168:    106(int) Bitcast 126
295             169:6(float16_t) ConvertSToF 168
296             170:          16 CompositeConstructReplicateEXT 169
297                              Store 167(f162) 170
298             174:6(float16_t) Load 173(f16)
299             175:           9 CompositeConstructReplicateEXT 174
300                              Store 171(f161) 175
301             180:         177 Load 179(v11)
302             182:         177 Load 181(v12)
303             183:         177 ExtInst 1(GLSL.std.450) 40(FMax) 180 182
304                              Store 179(v11) 183
305             184:         177 Load 179(v11)
306             185:         177 Load 181(v12)
307             186:         177 ExtInst 1(GLSL.std.450) 37(FMin) 184 185
308                              Store 179(v11) 186
309             187:         177 Load 179(v11)
310             188:         177 Load 181(v12)
311             189:         177 ExtInst 1(GLSL.std.450) 48(Step) 187 188
312                              Store 179(v11) 189
313             190:         177 Load 179(v11)
314             191:         177 Load 181(v12)
315             193:         177 Load 192(v13)
316             194:         177 ExtInst 1(GLSL.std.450) 43(FClamp) 190 191 193
317                              Store 179(v11) 194
318             195:         177 Load 179(v11)
319             196:         177 ExtInst 1(GLSL.std.450) 27(Exp) 195
320                              Store 179(v11) 196
321             197:         177 Load 179(v11)
322             198:         177 ExtInst 1(GLSL.std.450) 28(Log) 197
323                              Store 179(v11) 198
324             199:         177 Load 179(v11)
325             200:         177 ExtInst 1(GLSL.std.450) 21(Tanh) 199
326                              Store 179(v11) 200
327             201:         177 Load 179(v11)
328             202:         177 ExtInst 1(GLSL.std.450) 18(Atan) 201
329                              Store 179(v11) 202
330             203:         177 Load 179(v11)
331             204:         177 Load 181(v12)
332             205:         177 Load 192(v13)
333             206:         177 ExtInst 1(GLSL.std.450) 50(Fma) 203 204 205
334                              Store 179(v11) 206
335             208:         127 Load 129(v7)
336             209:    135(ptr) AccessChain 134(matrixBuf) 110
337             210:    135(ptr) AccessChain 134(matrixBuf) 110
338             212:         123 CooperativeVectorMatrixMulAddNV 208 110 209 137 110 210 211 110 122 126 110 139 140
339                              Store 207(tempArg) 212
340             213:         123 Load 207(tempArg)
341                              Store 142(v8) 213
342                              Store 214(biasOffset) 137
343             216:         150 Load 152(v9)
344             217:    159(ptr) AccessChain 158(matrixBuf2) 110
345             218:      7(int) Load 145(matrixOffset)
346             219:    159(ptr) AccessChain 158(matrixBuf2) 110
347             220:      7(int) Load 214(biasOffset)
348             221:         146 CooperativeVectorMatrixMulAddNV 216 154 217 218 154 219 220 154 122 126 162 163 140 BSignedComponentsKHR ResultSignedComponentsKHR 
349                              Store 215(tempArg) 221
350             222:         146 Load 215(tempArg)
351                              Store 165(v10) 222
352             227:         224 Load 226(v14)
353             229:    159(ptr) AccessChain 158(matrixBuf2) 110
354             230:      7(int) Load 145(matrixOffset)
355             232:         146 CooperativeVectorMatrixMulNV 227 228 229 230 154 122 126 231(matrixLayout) 163 140 ResultSignedComponentsKHR 
356                              Store 223(tempArg) 232
357             233:         146 Load 223(tempArg)
358                              Store 165(v10) 233
359             234:          24 Load 26(v)
360             235:          24 Load 26(v)
361             236:          24 FAdd 235 234
362                              Store 26(v) 236
363             237:    106(int) Load 108(len)
364             238:   22(float) VectorExtractDynamic 236 237
365             239:   22(float) Load 100(f)
366             240:   22(float) FAdd 239 238
367                              Store 100(f) 240
368                              Return
369                              FunctionEnd
37013(foo(coopvecf161<1>;):           9 Function None 11
371           12(x):     10(ptr) FunctionParameter
372              14:             Label
373             241:           9 Load 12(x)
374                              ReturnValue 241
375                              FunctionEnd
37620(foo(coopvecf161<2>;):          16 Function None 18
377           19(x):     17(ptr) FunctionParameter
378              21:             Label
379             244:          16 Load 19(x)
380                              ReturnValue 244
381                              FunctionEnd