Add bit width of types to disassembleInstruction

This commit is contained in:
Jeff Bolz 2018-05-22 23:13:30 -05:00
parent c6d255396f
commit af7a94876c
43 changed files with 7980 additions and 7959 deletions

View file

@ -130,32 +130,32 @@ spv.int32.frag
52: TypeVector 18(int) 2
53: TypePointer Function 52(ivec2)
57: TypeInt 64 1
58: TypeVector 57(int) 2
59: TypePointer Function 58(ivec2)
58: TypeVector 57(int64_t) 2
59: TypePointer Function 58(i64vec2)
63: TypeInt 64 0
64: TypeVector 63(int) 2
65: TypePointer Function 64(ivec2)
64: TypeVector 63(int64_t) 2
65: TypePointer Function 64(i64vec2)
75: TypeFloat 32
76: TypeVector 75(float) 2
77: TypePointer Function 76(fvec2)
81: TypeFloat 64
82: TypeVector 81(float) 2
83: TypePointer Function 82(fvec2)
82: TypeVector 81(float64_t) 2
83: TypePointer Function 82(f64vec2)
91: TypeInt 8 1
92: TypeVector 91(int) 2
93: TypePointer Function 92(ivec2)
92: TypeVector 91(int8_t) 2
93: TypePointer Function 92(i8vec2)
100: TypeInt 16 1
101: TypeVector 100(int) 2
102: TypePointer Function 101(ivec2)
101: TypeVector 100(int16_t) 2
102: TypePointer Function 101(i16vec2)
120: TypeInt 8 0
121: TypeVector 120(int) 2
122: TypePointer Function 121(ivec2)
121: TypeVector 120(int8_t) 2
122: TypePointer Function 121(i8vec2)
129: TypeInt 16 0
130: TypeVector 129(int) 2
131: TypePointer Function 130(ivec2)
130: TypeVector 129(int16_t) 2
131: TypePointer Function 130(i16vec2)
149: TypeFloat 16
150: TypeVector 149(float) 2
151: TypePointer Function 150(fvec2)
150: TypeVector 149(float16_t) 2
151: TypePointer Function 150(f16vec2)
165: TypeBool
166: TypeVector 165(bool) 2
167: TypePointer Function 166(bvec2)
@ -169,7 +169,7 @@ spv.int32.frag
184: TypeVector 14(int) 3
185: TypePointer Function 184(ivec3)
188: TypeVector 18(int) 3
226: TypePointer Function 57(int)
226: TypePointer Function 57(int64_t)
251: 14(int) Constant 2
259: TypePointer Function 165(bool)
323: 52(ivec2) ConstantComposite 24 24
@ -179,11 +179,11 @@ spv.int32.frag
382: 166(bvec2) ConstantComposite 381 381
394: TypeVector 165(bool) 3
395: 394(bvec3) ConstantComposite 381 381 381
397: TypeVector 91(int) 4
398: TypePointer Function 397(ivec4)
405: TypeVector 120(int) 4
406: TypePointer Function 405(ivec4)
417: TypePointer Function 63(int)
397: TypeVector 91(int8_t) 4
398: TypePointer Function 397(i8vec4)
405: TypeVector 120(int8_t) 4
406: TypePointer Function 405(i8vec4)
417: TypePointer Function 63(int64_t)
421: TypePointer Function 394(bvec3)
483: TypeVector 18(int) 4
484: TypeVector 14(int) 4
@ -238,44 +238,44 @@ spv.int32.frag
56: 49(ivec2) Bitcast 55
Store 51(u32v) 56
61: 52(ivec2) Load 54(i32v)
62: 58(ivec2) SConvert 61
62: 58(i64vec2) SConvert 61
Store 60(i64v) 62
67: 52(ivec2) Load 54(i32v)
68: 58(ivec2) SConvert 67
69: 64(ivec2) Bitcast 68
68: 58(i64vec2) SConvert 67
69: 64(i64vec2) Bitcast 68
Store 66(u64v) 69
70: 49(ivec2) Load 51(u32v)
71: 58(ivec2) UConvert 70
72: 58(ivec2) Bitcast 71
71: 58(i64vec2) UConvert 70
72: 58(i64vec2) Bitcast 71
Store 60(i64v) 72
73: 49(ivec2) Load 51(u32v)
74: 64(ivec2) UConvert 73
74: 64(i64vec2) UConvert 73
Store 66(u64v) 74
79: 52(ivec2) Load 54(i32v)
80: 76(fvec2) ConvertSToF 79
Store 78(f32v) 80
85: 52(ivec2) Load 54(i32v)
86: 82(fvec2) ConvertSToF 85
86: 82(f64vec2) ConvertSToF 85
Store 84(f64v) 86
87: 49(ivec2) Load 51(u32v)
88: 76(fvec2) ConvertUToF 87
Store 78(f32v) 88
89: 49(ivec2) Load 51(u32v)
90: 82(fvec2) ConvertUToF 89
90: 82(f64vec2) ConvertUToF 89
Store 84(f64v) 90
95: 52(ivec2) Load 54(i32v)
96: 92(ivec2) SConvert 95
96: 92(i8vec2) SConvert 95
Store 94(i8v) 96
97: 49(ivec2) Load 51(u32v)
98: 92(ivec2) UConvert 97
99: 92(ivec2) Bitcast 98
98: 92(i8vec2) UConvert 97
99: 92(i8vec2) Bitcast 98
Store 94(i8v) 99
104: 52(ivec2) Load 54(i32v)
105: 101(ivec2) SConvert 104
105:101(i16vec2) SConvert 104
Store 103(i16v) 105
106: 49(ivec2) Load 51(u32v)
107: 101(ivec2) UConvert 106
108: 101(ivec2) Bitcast 107
107:101(i16vec2) UConvert 106
108:101(i16vec2) Bitcast 107
Store 103(i16v) 108
109: 52(ivec2) Load 54(i32v)
110: 18(int) CompositeExtract 109 0
@ -286,25 +286,25 @@ spv.int32.frag
114: 52(ivec2) Bitcast 113
Store 54(i32v) 114
115: 52(ivec2) Load 54(i32v)
116: 58(ivec2) SConvert 115
116: 58(i64vec2) SConvert 115
Store 60(i64v) 116
117: 49(ivec2) Load 51(u32v)
118: 58(ivec2) UConvert 117
119: 58(ivec2) Bitcast 118
118: 58(i64vec2) UConvert 117
119: 58(i64vec2) Bitcast 118
Store 60(i64v) 119
124: 52(ivec2) Load 54(i32v)
125: 92(ivec2) SConvert 124
126: 121(ivec2) Bitcast 125
125: 92(i8vec2) SConvert 124
126: 121(i8vec2) Bitcast 125
Store 123(u8v) 126
127: 49(ivec2) Load 51(u32v)
128: 121(ivec2) UConvert 127
128: 121(i8vec2) UConvert 127
Store 123(u8v) 128
133: 52(ivec2) Load 54(i32v)
134: 101(ivec2) SConvert 133
135: 130(ivec2) Bitcast 134
134:101(i16vec2) SConvert 133
135:130(i16vec2) Bitcast 134
Store 132(u16v) 135
136: 49(ivec2) Load 51(u32v)
137: 130(ivec2) UConvert 136
137:130(i16vec2) UConvert 136
Store 132(u16v) 137
138: 52(ivec2) Load 54(i32v)
139: 49(ivec2) Bitcast 138
@ -315,29 +315,29 @@ spv.int32.frag
143: 49(ivec2) CompositeConstruct 141 142
Store 51(u32v) 143
144: 52(ivec2) Load 54(i32v)
145: 58(ivec2) SConvert 144
146: 64(ivec2) Bitcast 145
145: 58(i64vec2) SConvert 144
146: 64(i64vec2) Bitcast 145
Store 66(u64v) 146
147: 49(ivec2) Load 51(u32v)
148: 64(ivec2) UConvert 147
148: 64(i64vec2) UConvert 147
Store 66(u64v) 148
153: 52(ivec2) Load 54(i32v)
154: 150(fvec2) ConvertSToF 153
154:150(f16vec2) ConvertSToF 153
Store 152(f16v) 154
155: 52(ivec2) Load 54(i32v)
156: 76(fvec2) ConvertSToF 155
Store 78(f32v) 156
157: 52(ivec2) Load 54(i32v)
158: 82(fvec2) ConvertSToF 157
158: 82(f64vec2) ConvertSToF 157
Store 84(f64v) 158
159: 49(ivec2) Load 51(u32v)
160: 150(fvec2) ConvertUToF 159
160:150(f16vec2) ConvertUToF 159
Store 152(f16v) 160
161: 49(ivec2) Load 51(u32v)
162: 76(fvec2) ConvertUToF 161
Store 78(f32v) 162
163: 49(ivec2) Load 51(u32v)
164: 82(fvec2) ConvertUToF 163
164: 82(f64vec2) ConvertUToF 163
Store 84(f64v) 164
169: 166(bvec2) Load 168(bv)
173: 52(ivec2) Select 169 172 171
@ -410,18 +410,18 @@ spv.int32.frag
225: 184(ivec3) IAdd 223 224
Store 214(uv) 225
228: 18(int) Load 191(i32)
229: 57(int) SConvert 228
230: 57(int) Load 227(i64)
231: 57(int) ISub 229 230
229: 57(int64_t) SConvert 228
230: 57(int64_t) Load 227(i64)
231: 57(int64_t) ISub 229 230
Store 227(i64) 231
232: 184(ivec3) Load 186(u32v)
233: 184(ivec3) Load 214(uv)
234: 184(ivec3) IMul 232 233
Store 214(uv) 234
235: 18(int) Load 191(i32)
236: 57(int) SConvert 235
237: 57(int) Load 227(i64)
238: 57(int) IMul 236 237
236: 57(int64_t) SConvert 235
237: 57(int64_t) Load 227(i64)
238: 57(int64_t) IMul 236 237
Store 227(i64) 238
239: 18(int) Load 191(i32)
240: 18(int) Load 210(i)
@ -437,10 +437,10 @@ spv.int32.frag
248: 18(int) Load 191(i32)
249: 18(int) ShiftRightArithmetic 248 247
Store 191(i32) 249
250: 57(int) Load 227(i64)
250: 57(int64_t) Load 227(i64)
252: 38(ptr) AccessChain 186(u32v) 251
253: 14(int) Load 252
254: 57(int) ShiftLeftLogical 250 253
254: 57(int64_t) ShiftLeftLogical 250 253
Store 227(i64) 254
255: 184(ivec3) Load 186(u32v)
256: 18(int) Load 210(i)
@ -490,9 +490,9 @@ spv.int32.frag
294: 18(int) BitwiseOr 292 293
Store 210(i) 294
295: 18(int) Load 191(i32)
296: 57(int) SConvert 295
297: 57(int) Load 227(i64)
298: 57(int) BitwiseAnd 297 296
296: 57(int64_t) SConvert 295
297: 57(int64_t) Load 227(i64)
298: 57(int64_t) BitwiseAnd 297 296
Store 227(i64) 298
299: 184(ivec3) Load 186(u32v)
300: 184(ivec3) Load 214(uv)
@ -618,22 +618,22 @@ spv.int32.frag
393: 184(ivec3) CompositeConstruct 392 392 392
396: 184(ivec3) Select 395 393 390
Store 325(u32v) 396
400: 397(ivec4) Load 399(i8v4)
400: 397(i8vec4) Load 399(i8v4)
401: 18(int) Bitcast 400
Store 315(i32) 401
403: 101(ivec2) Load 402(i16v2)
403:101(i16vec2) Load 402(i16v2)
404: 18(int) Bitcast 403
Store 315(i32) 404
408: 405(ivec4) Load 407(u8v4)
408: 405(i8vec4) Load 407(u8v4)
409: 14(int) Bitcast 408
Store 327(u32) 409
411: 130(ivec2) Load 410(u16v2)
411:130(i16vec2) Load 410(u16v2)
412: 14(int) Bitcast 411
Store 327(u32) 412
414: 57(int) Load 413(i64)
414: 57(int64_t) Load 413(i64)
415: 52(ivec2) Bitcast 414
Store 312(i32v) 415
419: 63(int) Load 418(u64)
419: 63(int64_t) Load 418(u64)
420: 49(ivec2) Bitcast 419
Store 416(u32v2) 420
423: 184(ivec3) Load 325(u32v)