1 //
2 // Copyright (C) 2014-2015 LunarG, Inc.
3 // Modifications Copyright (C) 2020 Advanced Micro Devices, Inc. All rights reserved.
4 //
5 // All rights reserved.
6 //
7 // Redistribution and use in source and binary forms, with or without
8 // modification, are permitted provided that the following conditions
9 // are met:
10 //
11 // Redistributions of source code must retain the above copyright
12 // notice, this list of conditions and the following disclaimer.
13 //
14 // Redistributions in binary form must reproduce the above
15 // copyright notice, this list of conditions and the following
16 // disclaimer in the documentation and/or other materials provided
17 // with the distribution.
18 //
19 // Neither the name of 3Dlabs Inc. Ltd. nor the names of its
20 // contributors may be used to endorse or promote products derived
21 // from this software without specific prior written permission.
22 //
23 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
26 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27 // COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
29 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
33 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 // POSSIBILITY OF SUCH DAMAGE.
35
36 //
37 // 1) Programmatically fill in instruction/operand information.
38 // This can be used for disassembly, printing documentation, etc.
39 //
40 // 2) Print documentation from this parameterization.
41 //
42
43 #include "doc.h"
44
45 #include <cstdio>
46 #include <cstring>
47 #include <algorithm>
48
49 namespace spv {
50 extern "C" {
51 // Include C-based headers that don't have a namespace
52 #include "GLSL.ext.KHR.h"
53 #include "GLSL.ext.EXT.h"
54 #include "GLSL.ext.AMD.h"
55 #include "GLSL.ext.NV.h"
56 }
57 }
58
59 namespace spv {
60
61 //
62 // Whole set of functions that translate enumerants to their text strings for
63 // the specification (or their sanitized versions for auto-generating the
64 // spirv headers.
65 //
66 // Also, for masks the ceilings are declared next to these, to help keep them in sync.
67 // Ceilings should be
68 // - one more than the maximum value an enumerant takes on, for non-mask enumerants
69 // (for non-sparse enums, this is the number of enumerants)
70 // - the number of bits consumed by the set of masks
71 // (for non-sparse mask enums, this is the number of enumerants)
72 //
73
SourceString(int source)74 const char* SourceString(int source)
75 {
76 switch (source) {
77 case 0: return "Unknown";
78 case 1: return "ESSL";
79 case 2: return "GLSL";
80 case 3: return "OpenCL_C";
81 case 4: return "OpenCL_CPP";
82 case 5: return "HLSL";
83
84 default: return "Bad";
85 }
86 }
87
ExecutionModelString(int model)88 const char* ExecutionModelString(int model)
89 {
90 switch (model) {
91 case 0: return "Vertex";
92 case 1: return "TessellationControl";
93 case 2: return "TessellationEvaluation";
94 case 3: return "Geometry";
95 case 4: return "Fragment";
96 case 5: return "GLCompute";
97 case 6: return "Kernel";
98 case ExecutionModelTaskNV: return "TaskNV";
99 case ExecutionModelMeshNV: return "MeshNV";
100
101 default: return "Bad";
102
103 case ExecutionModelRayGenerationKHR: return "RayGenerationKHR";
104 case ExecutionModelIntersectionKHR: return "IntersectionKHR";
105 case ExecutionModelAnyHitKHR: return "AnyHitKHR";
106 case ExecutionModelClosestHitKHR: return "ClosestHitKHR";
107 case ExecutionModelMissKHR: return "MissKHR";
108 case ExecutionModelCallableKHR: return "CallableKHR";
109 }
110 }
111
AddressingString(int addr)112 const char* AddressingString(int addr)
113 {
114 switch (addr) {
115 case 0: return "Logical";
116 case 1: return "Physical32";
117 case 2: return "Physical64";
118
119 case AddressingModelPhysicalStorageBuffer64EXT: return "PhysicalStorageBuffer64EXT";
120
121 default: return "Bad";
122 }
123 }
124
MemoryString(int mem)125 const char* MemoryString(int mem)
126 {
127 switch (mem) {
128 case MemoryModelSimple: return "Simple";
129 case MemoryModelGLSL450: return "GLSL450";
130 case MemoryModelOpenCL: return "OpenCL";
131 case MemoryModelVulkanKHR: return "VulkanKHR";
132
133 default: return "Bad";
134 }
135 }
136
137 const int ExecutionModeCeiling = 33;
138
ExecutionModeString(int mode)139 const char* ExecutionModeString(int mode)
140 {
141 switch (mode) {
142 case 0: return "Invocations";
143 case 1: return "SpacingEqual";
144 case 2: return "SpacingFractionalEven";
145 case 3: return "SpacingFractionalOdd";
146 case 4: return "VertexOrderCw";
147 case 5: return "VertexOrderCcw";
148 case 6: return "PixelCenterInteger";
149 case 7: return "OriginUpperLeft";
150 case 8: return "OriginLowerLeft";
151 case 9: return "EarlyFragmentTests";
152 case 10: return "PointMode";
153 case 11: return "Xfb";
154 case 12: return "DepthReplacing";
155 case 13: return "Bad";
156 case 14: return "DepthGreater";
157 case 15: return "DepthLess";
158 case 16: return "DepthUnchanged";
159 case 17: return "LocalSize";
160 case 18: return "LocalSizeHint";
161 case 19: return "InputPoints";
162 case 20: return "InputLines";
163 case 21: return "InputLinesAdjacency";
164 case 22: return "Triangles";
165 case 23: return "InputTrianglesAdjacency";
166 case 24: return "Quads";
167 case 25: return "Isolines";
168 case 26: return "OutputVertices";
169 case 27: return "OutputPoints";
170 case 28: return "OutputLineStrip";
171 case 29: return "OutputTriangleStrip";
172 case 30: return "VecTypeHint";
173 case 31: return "ContractionOff";
174 case 32: return "Bad";
175
176 case 4446: return "PostDepthCoverage";
177
178 case ExecutionModeOutputLinesNV: return "OutputLinesNV";
179 case ExecutionModeOutputPrimitivesNV: return "OutputPrimitivesNV";
180 case ExecutionModeOutputTrianglesNV: return "OutputTrianglesNV";
181 case ExecutionModeDerivativeGroupQuadsNV: return "DerivativeGroupQuadsNV";
182 case ExecutionModeDerivativeGroupLinearNV: return "DerivativeGroupLinearNV";
183
184 case ExecutionModePixelInterlockOrderedEXT: return "PixelInterlockOrderedEXT";
185 case ExecutionModePixelInterlockUnorderedEXT: return "PixelInterlockUnorderedEXT";
186 case ExecutionModeSampleInterlockOrderedEXT: return "SampleInterlockOrderedEXT";
187 case ExecutionModeSampleInterlockUnorderedEXT: return "SampleInterlockUnorderedEXT";
188 case ExecutionModeShadingRateInterlockOrderedEXT: return "ShadingRateInterlockOrderedEXT";
189 case ExecutionModeShadingRateInterlockUnorderedEXT: return "ShadingRateInterlockUnorderedEXT";
190
191 case ExecutionModeCeiling:
192 default: return "Bad";
193 }
194 }
195
StorageClassString(int StorageClass)196 const char* StorageClassString(int StorageClass)
197 {
198 switch (StorageClass) {
199 case 0: return "UniformConstant";
200 case 1: return "Input";
201 case 2: return "Uniform";
202 case 3: return "Output";
203 case 4: return "Workgroup";
204 case 5: return "CrossWorkgroup";
205 case 6: return "Private";
206 case 7: return "Function";
207 case 8: return "Generic";
208 case 9: return "PushConstant";
209 case 10: return "AtomicCounter";
210 case 11: return "Image";
211 case 12: return "StorageBuffer";
212
213 case StorageClassRayPayloadKHR: return "RayPayloadKHR";
214 case StorageClassHitAttributeKHR: return "HitAttributeKHR";
215 case StorageClassIncomingRayPayloadKHR: return "IncomingRayPayloadKHR";
216 case StorageClassShaderRecordBufferKHR: return "ShaderRecordBufferKHR";
217 case StorageClassCallableDataKHR: return "CallableDataKHR";
218 case StorageClassIncomingCallableDataKHR: return "IncomingCallableDataKHR";
219
220 case StorageClassPhysicalStorageBufferEXT: return "PhysicalStorageBufferEXT";
221
222 default: return "Bad";
223 }
224 }
225
226 const int DecorationCeiling = 45;
227
DecorationString(int decoration)228 const char* DecorationString(int decoration)
229 {
230 switch (decoration) {
231 case 0: return "RelaxedPrecision";
232 case 1: return "SpecId";
233 case 2: return "Block";
234 case 3: return "BufferBlock";
235 case 4: return "RowMajor";
236 case 5: return "ColMajor";
237 case 6: return "ArrayStride";
238 case 7: return "MatrixStride";
239 case 8: return "GLSLShared";
240 case 9: return "GLSLPacked";
241 case 10: return "CPacked";
242 case 11: return "BuiltIn";
243 case 12: return "Bad";
244 case 13: return "NoPerspective";
245 case 14: return "Flat";
246 case 15: return "Patch";
247 case 16: return "Centroid";
248 case 17: return "Sample";
249 case 18: return "Invariant";
250 case 19: return "Restrict";
251 case 20: return "Aliased";
252 case 21: return "Volatile";
253 case 22: return "Constant";
254 case 23: return "Coherent";
255 case 24: return "NonWritable";
256 case 25: return "NonReadable";
257 case 26: return "Uniform";
258 case 27: return "Bad";
259 case 28: return "SaturatedConversion";
260 case 29: return "Stream";
261 case 30: return "Location";
262 case 31: return "Component";
263 case 32: return "Index";
264 case 33: return "Binding";
265 case 34: return "DescriptorSet";
266 case 35: return "Offset";
267 case 36: return "XfbBuffer";
268 case 37: return "XfbStride";
269 case 38: return "FuncParamAttr";
270 case 39: return "FP Rounding Mode";
271 case 40: return "FP Fast Math Mode";
272 case 41: return "Linkage Attributes";
273 case 42: return "NoContraction";
274 case 43: return "InputAttachmentIndex";
275 case 44: return "Alignment";
276
277 case DecorationCeiling:
278 default: return "Bad";
279
280 case DecorationExplicitInterpAMD: return "ExplicitInterpAMD";
281 case DecorationOverrideCoverageNV: return "OverrideCoverageNV";
282 case DecorationPassthroughNV: return "PassthroughNV";
283 case DecorationViewportRelativeNV: return "ViewportRelativeNV";
284 case DecorationSecondaryViewportRelativeNV: return "SecondaryViewportRelativeNV";
285 case DecorationPerPrimitiveNV: return "PerPrimitiveNV";
286 case DecorationPerViewNV: return "PerViewNV";
287 case DecorationPerTaskNV: return "PerTaskNV";
288 case DecorationPerVertexNV: return "PerVertexNV";
289
290 case DecorationNonUniformEXT: return "DecorationNonUniformEXT";
291 case DecorationHlslCounterBufferGOOGLE: return "DecorationHlslCounterBufferGOOGLE";
292 case DecorationHlslSemanticGOOGLE: return "DecorationHlslSemanticGOOGLE";
293 case DecorationRestrictPointerEXT: return "DecorationRestrictPointerEXT";
294 case DecorationAliasedPointerEXT: return "DecorationAliasedPointerEXT";
295 }
296 }
297
BuiltInString(int builtIn)298 const char* BuiltInString(int builtIn)
299 {
300 switch (builtIn) {
301 case 0: return "Position";
302 case 1: return "PointSize";
303 case 2: return "Bad";
304 case 3: return "ClipDistance";
305 case 4: return "CullDistance";
306 case 5: return "VertexId";
307 case 6: return "InstanceId";
308 case 7: return "PrimitiveId";
309 case 8: return "InvocationId";
310 case 9: return "Layer";
311 case 10: return "ViewportIndex";
312 case 11: return "TessLevelOuter";
313 case 12: return "TessLevelInner";
314 case 13: return "TessCoord";
315 case 14: return "PatchVertices";
316 case 15: return "FragCoord";
317 case 16: return "PointCoord";
318 case 17: return "FrontFacing";
319 case 18: return "SampleId";
320 case 19: return "SamplePosition";
321 case 20: return "SampleMask";
322 case 21: return "Bad";
323 case 22: return "FragDepth";
324 case 23: return "HelperInvocation";
325 case 24: return "NumWorkgroups";
326 case 25: return "WorkgroupSize";
327 case 26: return "WorkgroupId";
328 case 27: return "LocalInvocationId";
329 case 28: return "GlobalInvocationId";
330 case 29: return "LocalInvocationIndex";
331 case 30: return "WorkDim";
332 case 31: return "GlobalSize";
333 case 32: return "EnqueuedWorkgroupSize";
334 case 33: return "GlobalOffset";
335 case 34: return "GlobalLinearId";
336 case 35: return "Bad";
337 case 36: return "SubgroupSize";
338 case 37: return "SubgroupMaxSize";
339 case 38: return "NumSubgroups";
340 case 39: return "NumEnqueuedSubgroups";
341 case 40: return "SubgroupId";
342 case 41: return "SubgroupLocalInvocationId";
343 case 42: return "VertexIndex"; // TBD: put next to VertexId?
344 case 43: return "InstanceIndex"; // TBD: put next to InstanceId?
345
346 case 4416: return "SubgroupEqMaskKHR";
347 case 4417: return "SubgroupGeMaskKHR";
348 case 4418: return "SubgroupGtMaskKHR";
349 case 4419: return "SubgroupLeMaskKHR";
350 case 4420: return "SubgroupLtMaskKHR";
351 case 4438: return "DeviceIndex";
352 case 4440: return "ViewIndex";
353 case 4424: return "BaseVertex";
354 case 4425: return "BaseInstance";
355 case 4426: return "DrawIndex";
356 case 5014: return "FragStencilRefEXT";
357
358 case 4992: return "BaryCoordNoPerspAMD";
359 case 4993: return "BaryCoordNoPerspCentroidAMD";
360 case 4994: return "BaryCoordNoPerspSampleAMD";
361 case 4995: return "BaryCoordSmoothAMD";
362 case 4996: return "BaryCoordSmoothCentroidAMD";
363 case 4997: return "BaryCoordSmoothSampleAMD";
364 case 4998: return "BaryCoordPullModelAMD";
365 case BuiltInLaunchIdKHR: return "LaunchIdKHR";
366 case BuiltInLaunchSizeKHR: return "LaunchSizeKHR";
367 case BuiltInWorldRayOriginKHR: return "WorldRayOriginKHR";
368 case BuiltInWorldRayDirectionKHR: return "WorldRayDirectionKHR";
369 case BuiltInObjectRayOriginKHR: return "ObjectRayOriginKHR";
370 case BuiltInObjectRayDirectionKHR: return "ObjectRayDirectionKHR";
371 case BuiltInRayTminKHR: return "RayTminKHR";
372 case BuiltInRayTmaxKHR: return "RayTmaxKHR";
373 case BuiltInInstanceCustomIndexKHR: return "InstanceCustomIndexKHR";
374 case BuiltInRayGeometryIndexKHR: return "RayGeometryIndexKHR";
375 case BuiltInObjectToWorldKHR: return "ObjectToWorldKHR";
376 case BuiltInWorldToObjectKHR: return "WorldToObjectKHR";
377 case BuiltInHitTKHR: return "HitTKHR";
378 case BuiltInHitKindKHR: return "HitKindKHR";
379 case BuiltInIncomingRayFlagsKHR: return "IncomingRayFlagsKHR";
380 case BuiltInViewportMaskNV: return "ViewportMaskNV";
381 case BuiltInSecondaryPositionNV: return "SecondaryPositionNV";
382 case BuiltInSecondaryViewportMaskNV: return "SecondaryViewportMaskNV";
383 case BuiltInPositionPerViewNV: return "PositionPerViewNV";
384 case BuiltInViewportMaskPerViewNV: return "ViewportMaskPerViewNV";
385 // case BuiltInFragmentSizeNV: return "FragmentSizeNV"; // superseded by BuiltInFragSizeEXT
386 // case BuiltInInvocationsPerPixelNV: return "InvocationsPerPixelNV"; // superseded by BuiltInFragInvocationCountEXT
387 case BuiltInBaryCoordNV: return "BaryCoordNV";
388 case BuiltInBaryCoordNoPerspNV: return "BaryCoordNoPerspNV";
389
390 case BuiltInFragSizeEXT: return "FragSizeEXT";
391 case BuiltInFragInvocationCountEXT: return "FragInvocationCountEXT";
392
393 case 5264: return "FullyCoveredEXT";
394
395 case BuiltInTaskCountNV: return "TaskCountNV";
396 case BuiltInPrimitiveCountNV: return "PrimitiveCountNV";
397 case BuiltInPrimitiveIndicesNV: return "PrimitiveIndicesNV";
398 case BuiltInClipDistancePerViewNV: return "ClipDistancePerViewNV";
399 case BuiltInCullDistancePerViewNV: return "CullDistancePerViewNV";
400 case BuiltInLayerPerViewNV: return "LayerPerViewNV";
401 case BuiltInMeshViewCountNV: return "MeshViewCountNV";
402 case BuiltInMeshViewIndicesNV: return "MeshViewIndicesNV";
403 case BuiltInWarpsPerSMNV: return "WarpsPerSMNV";
404 case BuiltInSMCountNV: return "SMCountNV";
405 case BuiltInWarpIDNV: return "WarpIDNV";
406 case BuiltInSMIDNV: return "SMIDNV";
407
408 default: return "Bad";
409 }
410 }
411
DimensionString(int dim)412 const char* DimensionString(int dim)
413 {
414 switch (dim) {
415 case 0: return "1D";
416 case 1: return "2D";
417 case 2: return "3D";
418 case 3: return "Cube";
419 case 4: return "Rect";
420 case 5: return "Buffer";
421 case 6: return "SubpassData";
422
423 default: return "Bad";
424 }
425 }
426
SamplerAddressingModeString(int mode)427 const char* SamplerAddressingModeString(int mode)
428 {
429 switch (mode) {
430 case 0: return "None";
431 case 1: return "ClampToEdge";
432 case 2: return "Clamp";
433 case 3: return "Repeat";
434 case 4: return "RepeatMirrored";
435
436 default: return "Bad";
437 }
438 }
439
SamplerFilterModeString(int mode)440 const char* SamplerFilterModeString(int mode)
441 {
442 switch (mode) {
443 case 0: return "Nearest";
444 case 1: return "Linear";
445
446 default: return "Bad";
447 }
448 }
449
ImageFormatString(int format)450 const char* ImageFormatString(int format)
451 {
452 switch (format) {
453 case 0: return "Unknown";
454
455 // ES/Desktop float
456 case 1: return "Rgba32f";
457 case 2: return "Rgba16f";
458 case 3: return "R32f";
459 case 4: return "Rgba8";
460 case 5: return "Rgba8Snorm";
461
462 // Desktop float
463 case 6: return "Rg32f";
464 case 7: return "Rg16f";
465 case 8: return "R11fG11fB10f";
466 case 9: return "R16f";
467 case 10: return "Rgba16";
468 case 11: return "Rgb10A2";
469 case 12: return "Rg16";
470 case 13: return "Rg8";
471 case 14: return "R16";
472 case 15: return "R8";
473 case 16: return "Rgba16Snorm";
474 case 17: return "Rg16Snorm";
475 case 18: return "Rg8Snorm";
476 case 19: return "R16Snorm";
477 case 20: return "R8Snorm";
478
479 // ES/Desktop int
480 case 21: return "Rgba32i";
481 case 22: return "Rgba16i";
482 case 23: return "Rgba8i";
483 case 24: return "R32i";
484
485 // Desktop int
486 case 25: return "Rg32i";
487 case 26: return "Rg16i";
488 case 27: return "Rg8i";
489 case 28: return "R16i";
490 case 29: return "R8i";
491
492 // ES/Desktop uint
493 case 30: return "Rgba32ui";
494 case 31: return "Rgba16ui";
495 case 32: return "Rgba8ui";
496 case 33: return "R32ui";
497
498 // Desktop uint
499 case 34: return "Rgb10a2ui";
500 case 35: return "Rg32ui";
501 case 36: return "Rg16ui";
502 case 37: return "Rg8ui";
503 case 38: return "R16ui";
504 case 39: return "R8ui";
505
506 default:
507 return "Bad";
508 }
509 }
510
ImageChannelOrderString(int format)511 const char* ImageChannelOrderString(int format)
512 {
513 switch (format) {
514 case 0: return "R";
515 case 1: return "A";
516 case 2: return "RG";
517 case 3: return "RA";
518 case 4: return "RGB";
519 case 5: return "RGBA";
520 case 6: return "BGRA";
521 case 7: return "ARGB";
522 case 8: return "Intensity";
523 case 9: return "Luminance";
524 case 10: return "Rx";
525 case 11: return "RGx";
526 case 12: return "RGBx";
527 case 13: return "Depth";
528 case 14: return "DepthStencil";
529 case 15: return "sRGB";
530 case 16: return "sRGBx";
531 case 17: return "sRGBA";
532 case 18: return "sBGRA";
533
534 default:
535 return "Bad";
536 }
537 }
538
ImageChannelDataTypeString(int type)539 const char* ImageChannelDataTypeString(int type)
540 {
541 switch (type)
542 {
543 case 0: return "SnormInt8";
544 case 1: return "SnormInt16";
545 case 2: return "UnormInt8";
546 case 3: return "UnormInt16";
547 case 4: return "UnormShort565";
548 case 5: return "UnormShort555";
549 case 6: return "UnormInt101010";
550 case 7: return "SignedInt8";
551 case 8: return "SignedInt16";
552 case 9: return "SignedInt32";
553 case 10: return "UnsignedInt8";
554 case 11: return "UnsignedInt16";
555 case 12: return "UnsignedInt32";
556 case 13: return "HalfFloat";
557 case 14: return "Float";
558 case 15: return "UnormInt24";
559 case 16: return "UnormInt101010_2";
560
561 default:
562 return "Bad";
563 }
564 }
565
566 const int ImageOperandsCeiling = 14;
567
ImageOperandsString(int format)568 const char* ImageOperandsString(int format)
569 {
570 switch (format) {
571 case ImageOperandsBiasShift: return "Bias";
572 case ImageOperandsLodShift: return "Lod";
573 case ImageOperandsGradShift: return "Grad";
574 case ImageOperandsConstOffsetShift: return "ConstOffset";
575 case ImageOperandsOffsetShift: return "Offset";
576 case ImageOperandsConstOffsetsShift: return "ConstOffsets";
577 case ImageOperandsSampleShift: return "Sample";
578 case ImageOperandsMinLodShift: return "MinLod";
579 case ImageOperandsMakeTexelAvailableKHRShift: return "MakeTexelAvailableKHR";
580 case ImageOperandsMakeTexelVisibleKHRShift: return "MakeTexelVisibleKHR";
581 case ImageOperandsNonPrivateTexelKHRShift: return "NonPrivateTexelKHR";
582 case ImageOperandsVolatileTexelKHRShift: return "VolatileTexelKHR";
583 case ImageOperandsSignExtendShift: return "SignExtend";
584 case ImageOperandsZeroExtendShift: return "ZeroExtend";
585
586 case ImageOperandsCeiling:
587 default:
588 return "Bad";
589 }
590 }
591
FPFastMathString(int mode)592 const char* FPFastMathString(int mode)
593 {
594 switch (mode) {
595 case 0: return "NotNaN";
596 case 1: return "NotInf";
597 case 2: return "NSZ";
598 case 3: return "AllowRecip";
599 case 4: return "Fast";
600
601 default: return "Bad";
602 }
603 }
604
FPRoundingModeString(int mode)605 const char* FPRoundingModeString(int mode)
606 {
607 switch (mode) {
608 case 0: return "RTE";
609 case 1: return "RTZ";
610 case 2: return "RTP";
611 case 3: return "RTN";
612
613 default: return "Bad";
614 }
615 }
616
LinkageTypeString(int type)617 const char* LinkageTypeString(int type)
618 {
619 switch (type) {
620 case 0: return "Export";
621 case 1: return "Import";
622
623 default: return "Bad";
624 }
625 }
626
FuncParamAttrString(int attr)627 const char* FuncParamAttrString(int attr)
628 {
629 switch (attr) {
630 case 0: return "Zext";
631 case 1: return "Sext";
632 case 2: return "ByVal";
633 case 3: return "Sret";
634 case 4: return "NoAlias";
635 case 5: return "NoCapture";
636 case 6: return "NoWrite";
637 case 7: return "NoReadWrite";
638
639 default: return "Bad";
640 }
641 }
642
AccessQualifierString(int attr)643 const char* AccessQualifierString(int attr)
644 {
645 switch (attr) {
646 case 0: return "ReadOnly";
647 case 1: return "WriteOnly";
648 case 2: return "ReadWrite";
649
650 default: return "Bad";
651 }
652 }
653
654 const int SelectControlCeiling = 2;
655
SelectControlString(int cont)656 const char* SelectControlString(int cont)
657 {
658 switch (cont) {
659 case 0: return "Flatten";
660 case 1: return "DontFlatten";
661
662 case SelectControlCeiling:
663 default: return "Bad";
664 }
665 }
666
667 const int LoopControlCeiling = LoopControlPartialCountShift + 1;
668
LoopControlString(int cont)669 const char* LoopControlString(int cont)
670 {
671 switch (cont) {
672 case LoopControlUnrollShift: return "Unroll";
673 case LoopControlDontUnrollShift: return "DontUnroll";
674 case LoopControlDependencyInfiniteShift: return "DependencyInfinite";
675 case LoopControlDependencyLengthShift: return "DependencyLength";
676 case LoopControlMinIterationsShift: return "MinIterations";
677 case LoopControlMaxIterationsShift: return "MaxIterations";
678 case LoopControlIterationMultipleShift: return "IterationMultiple";
679 case LoopControlPeelCountShift: return "PeelCount";
680 case LoopControlPartialCountShift: return "PartialCount";
681
682 case LoopControlCeiling:
683 default: return "Bad";
684 }
685 }
686
687 const int FunctionControlCeiling = 4;
688
FunctionControlString(int cont)689 const char* FunctionControlString(int cont)
690 {
691 switch (cont) {
692 case 0: return "Inline";
693 case 1: return "DontInline";
694 case 2: return "Pure";
695 case 3: return "Const";
696
697 case FunctionControlCeiling:
698 default: return "Bad";
699 }
700 }
701
MemorySemanticsString(int mem)702 const char* MemorySemanticsString(int mem)
703 {
704 // Note: No bits set (None) means "Relaxed"
705 switch (mem) {
706 case 0: return "Bad"; // Note: this is a placeholder for 'Consume'
707 case 1: return "Acquire";
708 case 2: return "Release";
709 case 3: return "AcquireRelease";
710 case 4: return "SequentiallyConsistent";
711 case 5: return "Bad"; // Note: reserved for future expansion
712 case 6: return "UniformMemory";
713 case 7: return "SubgroupMemory";
714 case 8: return "WorkgroupMemory";
715 case 9: return "CrossWorkgroupMemory";
716 case 10: return "AtomicCounterMemory";
717 case 11: return "ImageMemory";
718
719 default: return "Bad";
720 }
721 }
722
723 const int MemoryAccessCeiling = 6;
724
MemoryAccessString(int mem)725 const char* MemoryAccessString(int mem)
726 {
727 switch (mem) {
728 case MemoryAccessVolatileShift: return "Volatile";
729 case MemoryAccessAlignedShift: return "Aligned";
730 case MemoryAccessNontemporalShift: return "Nontemporal";
731 case MemoryAccessMakePointerAvailableKHRShift: return "MakePointerAvailableKHR";
732 case MemoryAccessMakePointerVisibleKHRShift: return "MakePointerVisibleKHR";
733 case MemoryAccessNonPrivatePointerKHRShift: return "NonPrivatePointerKHR";
734
735 default: return "Bad";
736 }
737 }
738
ScopeString(int mem)739 const char* ScopeString(int mem)
740 {
741 switch (mem) {
742 case 0: return "CrossDevice";
743 case 1: return "Device";
744 case 2: return "Workgroup";
745 case 3: return "Subgroup";
746 case 4: return "Invocation";
747
748 default: return "Bad";
749 }
750 }
751
GroupOperationString(int gop)752 const char* GroupOperationString(int gop)
753 {
754
755 switch (gop)
756 {
757 case GroupOperationReduce: return "Reduce";
758 case GroupOperationInclusiveScan: return "InclusiveScan";
759 case GroupOperationExclusiveScan: return "ExclusiveScan";
760 case GroupOperationClusteredReduce: return "ClusteredReduce";
761 case GroupOperationPartitionedReduceNV: return "PartitionedReduceNV";
762 case GroupOperationPartitionedInclusiveScanNV: return "PartitionedInclusiveScanNV";
763 case GroupOperationPartitionedExclusiveScanNV: return "PartitionedExclusiveScanNV";
764
765 default: return "Bad";
766 }
767 }
768
KernelEnqueueFlagsString(int flag)769 const char* KernelEnqueueFlagsString(int flag)
770 {
771 switch (flag)
772 {
773 case 0: return "NoWait";
774 case 1: return "WaitKernel";
775 case 2: return "WaitWorkGroup";
776
777 default: return "Bad";
778 }
779 }
780
KernelProfilingInfoString(int info)781 const char* KernelProfilingInfoString(int info)
782 {
783 switch (info)
784 {
785 case 0: return "CmdExecTime";
786
787 default: return "Bad";
788 }
789 }
790
CapabilityString(int info)791 const char* CapabilityString(int info)
792 {
793 switch (info)
794 {
795 case 0: return "Matrix";
796 case 1: return "Shader";
797 case 2: return "Geometry";
798 case 3: return "Tessellation";
799 case 4: return "Addresses";
800 case 5: return "Linkage";
801 case 6: return "Kernel";
802 case 7: return "Vector16";
803 case 8: return "Float16Buffer";
804 case 9: return "Float16";
805 case 10: return "Float64";
806 case 11: return "Int64";
807 case 12: return "Int64Atomics";
808 case 13: return "ImageBasic";
809 case 14: return "ImageReadWrite";
810 case 15: return "ImageMipmap";
811 case 16: return "Bad";
812 case 17: return "Pipes";
813 case 18: return "Groups";
814 case 19: return "DeviceEnqueue";
815 case 20: return "LiteralSampler";
816 case 21: return "AtomicStorage";
817 case 22: return "Int16";
818 case 23: return "TessellationPointSize";
819 case 24: return "GeometryPointSize";
820 case 25: return "ImageGatherExtended";
821 case 26: return "Bad";
822 case 27: return "StorageImageMultisample";
823 case 28: return "UniformBufferArrayDynamicIndexing";
824 case 29: return "SampledImageArrayDynamicIndexing";
825 case 30: return "StorageBufferArrayDynamicIndexing";
826 case 31: return "StorageImageArrayDynamicIndexing";
827 case 32: return "ClipDistance";
828 case 33: return "CullDistance";
829 case 34: return "ImageCubeArray";
830 case 35: return "SampleRateShading";
831 case 36: return "ImageRect";
832 case 37: return "SampledRect";
833 case 38: return "GenericPointer";
834 case 39: return "Int8";
835 case 40: return "InputAttachment";
836 case 41: return "SparseResidency";
837 case 42: return "MinLod";
838 case 43: return "Sampled1D";
839 case 44: return "Image1D";
840 case 45: return "SampledCubeArray";
841 case 46: return "SampledBuffer";
842 case 47: return "ImageBuffer";
843 case 48: return "ImageMSArray";
844 case 49: return "StorageImageExtendedFormats";
845 case 50: return "ImageQuery";
846 case 51: return "DerivativeControl";
847 case 52: return "InterpolationFunction";
848 case 53: return "TransformFeedback";
849 case 54: return "GeometryStreams";
850 case 55: return "StorageImageReadWithoutFormat";
851 case 56: return "StorageImageWriteWithoutFormat";
852 case 57: return "MultiViewport";
853 case 61: return "GroupNonUniform";
854 case 62: return "GroupNonUniformVote";
855 case 63: return "GroupNonUniformArithmetic";
856 case 64: return "GroupNonUniformBallot";
857 case 65: return "GroupNonUniformShuffle";
858 case 66: return "GroupNonUniformShuffleRelative";
859 case 67: return "GroupNonUniformClustered";
860 case 68: return "GroupNonUniformQuad";
861
862 case CapabilitySubgroupBallotKHR: return "SubgroupBallotKHR";
863 case CapabilityDrawParameters: return "DrawParameters";
864 case CapabilitySubgroupVoteKHR: return "SubgroupVoteKHR";
865
866 case CapabilityStorageUniformBufferBlock16: return "StorageUniformBufferBlock16";
867 case CapabilityStorageUniform16: return "StorageUniform16";
868 case CapabilityStoragePushConstant16: return "StoragePushConstant16";
869 case CapabilityStorageInputOutput16: return "StorageInputOutput16";
870
871 case CapabilityStorageBuffer8BitAccess: return "StorageBuffer8BitAccess";
872 case CapabilityUniformAndStorageBuffer8BitAccess: return "UniformAndStorageBuffer8BitAccess";
873 case CapabilityStoragePushConstant8: return "StoragePushConstant8";
874
875 case CapabilityDeviceGroup: return "DeviceGroup";
876 case CapabilityMultiView: return "MultiView";
877
878 case CapabilityStencilExportEXT: return "StencilExportEXT";
879
880 case CapabilityFloat16ImageAMD: return "Float16ImageAMD";
881 case CapabilityImageGatherBiasLodAMD: return "ImageGatherBiasLodAMD";
882 case CapabilityFragmentMaskAMD: return "FragmentMaskAMD";
883 case CapabilityImageReadWriteLodAMD: return "ImageReadWriteLodAMD";
884
885 case CapabilityAtomicStorageOps: return "AtomicStorageOps";
886
887 case CapabilitySampleMaskPostDepthCoverage: return "SampleMaskPostDepthCoverage";
888 case CapabilityGeometryShaderPassthroughNV: return "GeometryShaderPassthroughNV";
889 case CapabilityShaderViewportIndexLayerNV: return "ShaderViewportIndexLayerNV";
890 case CapabilityShaderViewportMaskNV: return "ShaderViewportMaskNV";
891 case CapabilityShaderStereoViewNV: return "ShaderStereoViewNV";
892 case CapabilityPerViewAttributesNV: return "PerViewAttributesNV";
893 case CapabilityGroupNonUniformPartitionedNV: return "GroupNonUniformPartitionedNV";
894 case CapabilityRayTracingNV: return "RayTracingNV";
895 case CapabilityRayTracingProvisionalKHR: return "RayTracingProvisionalKHR";
896 case CapabilityRayQueryProvisionalKHR: return "RayQueryProvisionalKHR";
897 case CapabilityRayTraversalPrimitiveCullingProvisionalKHR: return "RayTraversalPrimitiveCullingProvisionalKHR";
898 case CapabilityComputeDerivativeGroupQuadsNV: return "ComputeDerivativeGroupQuadsNV";
899 case CapabilityComputeDerivativeGroupLinearNV: return "ComputeDerivativeGroupLinearNV";
900 case CapabilityFragmentBarycentricNV: return "FragmentBarycentricNV";
901 case CapabilityMeshShadingNV: return "MeshShadingNV";
902 case CapabilityImageFootprintNV: return "ImageFootprintNV";
903 // case CapabilityShadingRateNV: return "ShadingRateNV"; // superseded by FragmentDensityEXT
904 case CapabilitySampleMaskOverrideCoverageNV: return "SampleMaskOverrideCoverageNV";
905 case CapabilityFragmentDensityEXT: return "FragmentDensityEXT";
906
907 case CapabilityFragmentFullyCoveredEXT: return "FragmentFullyCoveredEXT";
908
909 case CapabilityShaderNonUniformEXT: return "ShaderNonUniformEXT";
910 case CapabilityRuntimeDescriptorArrayEXT: return "RuntimeDescriptorArrayEXT";
911 case CapabilityInputAttachmentArrayDynamicIndexingEXT: return "InputAttachmentArrayDynamicIndexingEXT";
912 case CapabilityUniformTexelBufferArrayDynamicIndexingEXT: return "UniformTexelBufferArrayDynamicIndexingEXT";
913 case CapabilityStorageTexelBufferArrayDynamicIndexingEXT: return "StorageTexelBufferArrayDynamicIndexingEXT";
914 case CapabilityUniformBufferArrayNonUniformIndexingEXT: return "UniformBufferArrayNonUniformIndexingEXT";
915 case CapabilitySampledImageArrayNonUniformIndexingEXT: return "SampledImageArrayNonUniformIndexingEXT";
916 case CapabilityStorageBufferArrayNonUniformIndexingEXT: return "StorageBufferArrayNonUniformIndexingEXT";
917 case CapabilityStorageImageArrayNonUniformIndexingEXT: return "StorageImageArrayNonUniformIndexingEXT";
918 case CapabilityInputAttachmentArrayNonUniformIndexingEXT: return "InputAttachmentArrayNonUniformIndexingEXT";
919 case CapabilityUniformTexelBufferArrayNonUniformIndexingEXT: return "UniformTexelBufferArrayNonUniformIndexingEXT";
920 case CapabilityStorageTexelBufferArrayNonUniformIndexingEXT: return "StorageTexelBufferArrayNonUniformIndexingEXT";
921
922 case CapabilityVulkanMemoryModelKHR: return "VulkanMemoryModelKHR";
923 case CapabilityVulkanMemoryModelDeviceScopeKHR: return "VulkanMemoryModelDeviceScopeKHR";
924
925 case CapabilityPhysicalStorageBufferAddressesEXT: return "PhysicalStorageBufferAddressesEXT";
926
927 case CapabilityVariablePointers: return "VariablePointers";
928
929 case CapabilityCooperativeMatrixNV: return "CooperativeMatrixNV";
930 case CapabilityShaderSMBuiltinsNV: return "ShaderSMBuiltinsNV";
931
932 case CapabilityFragmentShaderSampleInterlockEXT: return "CapabilityFragmentShaderSampleInterlockEXT";
933 case CapabilityFragmentShaderPixelInterlockEXT: return "CapabilityFragmentShaderPixelInterlockEXT";
934 case CapabilityFragmentShaderShadingRateInterlockEXT: return "CapabilityFragmentShaderShadingRateInterlockEXT";
935
936 case CapabilityDemoteToHelperInvocationEXT: return "DemoteToHelperInvocationEXT";
937 case CapabilityShaderClockKHR: return "ShaderClockKHR";
938
939 case CapabilityIntegerFunctions2INTEL: return "CapabilityIntegerFunctions2INTEL";
940
941 default: return "Bad";
942 }
943 }
944
OpcodeString(int op)945 const char* OpcodeString(int op)
946 {
947 switch (op) {
948 case 0: return "OpNop";
949 case 1: return "OpUndef";
950 case 2: return "OpSourceContinued";
951 case 3: return "OpSource";
952 case 4: return "OpSourceExtension";
953 case 5: return "OpName";
954 case 6: return "OpMemberName";
955 case 7: return "OpString";
956 case 8: return "OpLine";
957 case 9: return "Bad";
958 case 10: return "OpExtension";
959 case 11: return "OpExtInstImport";
960 case 12: return "OpExtInst";
961 case 13: return "Bad";
962 case 14: return "OpMemoryModel";
963 case 15: return "OpEntryPoint";
964 case 16: return "OpExecutionMode";
965 case 17: return "OpCapability";
966 case 18: return "Bad";
967 case 19: return "OpTypeVoid";
968 case 20: return "OpTypeBool";
969 case 21: return "OpTypeInt";
970 case 22: return "OpTypeFloat";
971 case 23: return "OpTypeVector";
972 case 24: return "OpTypeMatrix";
973 case 25: return "OpTypeImage";
974 case 26: return "OpTypeSampler";
975 case 27: return "OpTypeSampledImage";
976 case 28: return "OpTypeArray";
977 case 29: return "OpTypeRuntimeArray";
978 case 30: return "OpTypeStruct";
979 case 31: return "OpTypeOpaque";
980 case 32: return "OpTypePointer";
981 case 33: return "OpTypeFunction";
982 case 34: return "OpTypeEvent";
983 case 35: return "OpTypeDeviceEvent";
984 case 36: return "OpTypeReserveId";
985 case 37: return "OpTypeQueue";
986 case 38: return "OpTypePipe";
987 case 39: return "OpTypeForwardPointer";
988 case 40: return "Bad";
989 case 41: return "OpConstantTrue";
990 case 42: return "OpConstantFalse";
991 case 43: return "OpConstant";
992 case 44: return "OpConstantComposite";
993 case 45: return "OpConstantSampler";
994 case 46: return "OpConstantNull";
995 case 47: return "Bad";
996 case 48: return "OpSpecConstantTrue";
997 case 49: return "OpSpecConstantFalse";
998 case 50: return "OpSpecConstant";
999 case 51: return "OpSpecConstantComposite";
1000 case 52: return "OpSpecConstantOp";
1001 case 53: return "Bad";
1002 case 54: return "OpFunction";
1003 case 55: return "OpFunctionParameter";
1004 case 56: return "OpFunctionEnd";
1005 case 57: return "OpFunctionCall";
1006 case 58: return "Bad";
1007 case 59: return "OpVariable";
1008 case 60: return "OpImageTexelPointer";
1009 case 61: return "OpLoad";
1010 case 62: return "OpStore";
1011 case 63: return "OpCopyMemory";
1012 case 64: return "OpCopyMemorySized";
1013 case 65: return "OpAccessChain";
1014 case 66: return "OpInBoundsAccessChain";
1015 case 67: return "OpPtrAccessChain";
1016 case 68: return "OpArrayLength";
1017 case 69: return "OpGenericPtrMemSemantics";
1018 case 70: return "OpInBoundsPtrAccessChain";
1019 case 71: return "OpDecorate";
1020 case 72: return "OpMemberDecorate";
1021 case 73: return "OpDecorationGroup";
1022 case 74: return "OpGroupDecorate";
1023 case 75: return "OpGroupMemberDecorate";
1024 case 76: return "Bad";
1025 case 77: return "OpVectorExtractDynamic";
1026 case 78: return "OpVectorInsertDynamic";
1027 case 79: return "OpVectorShuffle";
1028 case 80: return "OpCompositeConstruct";
1029 case 81: return "OpCompositeExtract";
1030 case 82: return "OpCompositeInsert";
1031 case 83: return "OpCopyObject";
1032 case 84: return "OpTranspose";
1033 case OpCopyLogical: return "OpCopyLogical";
1034 case 85: return "Bad";
1035 case 86: return "OpSampledImage";
1036 case 87: return "OpImageSampleImplicitLod";
1037 case 88: return "OpImageSampleExplicitLod";
1038 case 89: return "OpImageSampleDrefImplicitLod";
1039 case 90: return "OpImageSampleDrefExplicitLod";
1040 case 91: return "OpImageSampleProjImplicitLod";
1041 case 92: return "OpImageSampleProjExplicitLod";
1042 case 93: return "OpImageSampleProjDrefImplicitLod";
1043 case 94: return "OpImageSampleProjDrefExplicitLod";
1044 case 95: return "OpImageFetch";
1045 case 96: return "OpImageGather";
1046 case 97: return "OpImageDrefGather";
1047 case 98: return "OpImageRead";
1048 case 99: return "OpImageWrite";
1049 case 100: return "OpImage";
1050 case 101: return "OpImageQueryFormat";
1051 case 102: return "OpImageQueryOrder";
1052 case 103: return "OpImageQuerySizeLod";
1053 case 104: return "OpImageQuerySize";
1054 case 105: return "OpImageQueryLod";
1055 case 106: return "OpImageQueryLevels";
1056 case 107: return "OpImageQuerySamples";
1057 case 108: return "Bad";
1058 case 109: return "OpConvertFToU";
1059 case 110: return "OpConvertFToS";
1060 case 111: return "OpConvertSToF";
1061 case 112: return "OpConvertUToF";
1062 case 113: return "OpUConvert";
1063 case 114: return "OpSConvert";
1064 case 115: return "OpFConvert";
1065 case 116: return "OpQuantizeToF16";
1066 case 117: return "OpConvertPtrToU";
1067 case 118: return "OpSatConvertSToU";
1068 case 119: return "OpSatConvertUToS";
1069 case 120: return "OpConvertUToPtr";
1070 case 121: return "OpPtrCastToGeneric";
1071 case 122: return "OpGenericCastToPtr";
1072 case 123: return "OpGenericCastToPtrExplicit";
1073 case 124: return "OpBitcast";
1074 case 125: return "Bad";
1075 case 126: return "OpSNegate";
1076 case 127: return "OpFNegate";
1077 case 128: return "OpIAdd";
1078 case 129: return "OpFAdd";
1079 case 130: return "OpISub";
1080 case 131: return "OpFSub";
1081 case 132: return "OpIMul";
1082 case 133: return "OpFMul";
1083 case 134: return "OpUDiv";
1084 case 135: return "OpSDiv";
1085 case 136: return "OpFDiv";
1086 case 137: return "OpUMod";
1087 case 138: return "OpSRem";
1088 case 139: return "OpSMod";
1089 case 140: return "OpFRem";
1090 case 141: return "OpFMod";
1091 case 142: return "OpVectorTimesScalar";
1092 case 143: return "OpMatrixTimesScalar";
1093 case 144: return "OpVectorTimesMatrix";
1094 case 145: return "OpMatrixTimesVector";
1095 case 146: return "OpMatrixTimesMatrix";
1096 case 147: return "OpOuterProduct";
1097 case 148: return "OpDot";
1098 case 149: return "OpIAddCarry";
1099 case 150: return "OpISubBorrow";
1100 case 151: return "OpUMulExtended";
1101 case 152: return "OpSMulExtended";
1102 case 153: return "Bad";
1103 case 154: return "OpAny";
1104 case 155: return "OpAll";
1105 case 156: return "OpIsNan";
1106 case 157: return "OpIsInf";
1107 case 158: return "OpIsFinite";
1108 case 159: return "OpIsNormal";
1109 case 160: return "OpSignBitSet";
1110 case 161: return "OpLessOrGreater";
1111 case 162: return "OpOrdered";
1112 case 163: return "OpUnordered";
1113 case 164: return "OpLogicalEqual";
1114 case 165: return "OpLogicalNotEqual";
1115 case 166: return "OpLogicalOr";
1116 case 167: return "OpLogicalAnd";
1117 case 168: return "OpLogicalNot";
1118 case 169: return "OpSelect";
1119 case 170: return "OpIEqual";
1120 case 171: return "OpINotEqual";
1121 case 172: return "OpUGreaterThan";
1122 case 173: return "OpSGreaterThan";
1123 case 174: return "OpUGreaterThanEqual";
1124 case 175: return "OpSGreaterThanEqual";
1125 case 176: return "OpULessThan";
1126 case 177: return "OpSLessThan";
1127 case 178: return "OpULessThanEqual";
1128 case 179: return "OpSLessThanEqual";
1129 case 180: return "OpFOrdEqual";
1130 case 181: return "OpFUnordEqual";
1131 case 182: return "OpFOrdNotEqual";
1132 case 183: return "OpFUnordNotEqual";
1133 case 184: return "OpFOrdLessThan";
1134 case 185: return "OpFUnordLessThan";
1135 case 186: return "OpFOrdGreaterThan";
1136 case 187: return "OpFUnordGreaterThan";
1137 case 188: return "OpFOrdLessThanEqual";
1138 case 189: return "OpFUnordLessThanEqual";
1139 case 190: return "OpFOrdGreaterThanEqual";
1140 case 191: return "OpFUnordGreaterThanEqual";
1141 case 192: return "Bad";
1142 case 193: return "Bad";
1143 case 194: return "OpShiftRightLogical";
1144 case 195: return "OpShiftRightArithmetic";
1145 case 196: return "OpShiftLeftLogical";
1146 case 197: return "OpBitwiseOr";
1147 case 198: return "OpBitwiseXor";
1148 case 199: return "OpBitwiseAnd";
1149 case 200: return "OpNot";
1150 case 201: return "OpBitFieldInsert";
1151 case 202: return "OpBitFieldSExtract";
1152 case 203: return "OpBitFieldUExtract";
1153 case 204: return "OpBitReverse";
1154 case 205: return "OpBitCount";
1155 case 206: return "Bad";
1156 case 207: return "OpDPdx";
1157 case 208: return "OpDPdy";
1158 case 209: return "OpFwidth";
1159 case 210: return "OpDPdxFine";
1160 case 211: return "OpDPdyFine";
1161 case 212: return "OpFwidthFine";
1162 case 213: return "OpDPdxCoarse";
1163 case 214: return "OpDPdyCoarse";
1164 case 215: return "OpFwidthCoarse";
1165 case 216: return "Bad";
1166 case 217: return "Bad";
1167 case 218: return "OpEmitVertex";
1168 case 219: return "OpEndPrimitive";
1169 case 220: return "OpEmitStreamVertex";
1170 case 221: return "OpEndStreamPrimitive";
1171 case 222: return "Bad";
1172 case 223: return "Bad";
1173 case 224: return "OpControlBarrier";
1174 case 225: return "OpMemoryBarrier";
1175 case 226: return "Bad";
1176 case 227: return "OpAtomicLoad";
1177 case 228: return "OpAtomicStore";
1178 case 229: return "OpAtomicExchange";
1179 case 230: return "OpAtomicCompareExchange";
1180 case 231: return "OpAtomicCompareExchangeWeak";
1181 case 232: return "OpAtomicIIncrement";
1182 case 233: return "OpAtomicIDecrement";
1183 case 234: return "OpAtomicIAdd";
1184 case 235: return "OpAtomicISub";
1185 case 236: return "OpAtomicSMin";
1186 case 237: return "OpAtomicUMin";
1187 case 238: return "OpAtomicSMax";
1188 case 239: return "OpAtomicUMax";
1189 case 240: return "OpAtomicAnd";
1190 case 241: return "OpAtomicOr";
1191 case 242: return "OpAtomicXor";
1192 case 243: return "Bad";
1193 case 244: return "Bad";
1194 case 245: return "OpPhi";
1195 case 246: return "OpLoopMerge";
1196 case 247: return "OpSelectionMerge";
1197 case 248: return "OpLabel";
1198 case 249: return "OpBranch";
1199 case 250: return "OpBranchConditional";
1200 case 251: return "OpSwitch";
1201 case 252: return "OpKill";
1202 case 253: return "OpReturn";
1203 case 254: return "OpReturnValue";
1204 case 255: return "OpUnreachable";
1205 case 256: return "OpLifetimeStart";
1206 case 257: return "OpLifetimeStop";
1207 case 258: return "Bad";
1208 case 259: return "OpGroupAsyncCopy";
1209 case 260: return "OpGroupWaitEvents";
1210 case 261: return "OpGroupAll";
1211 case 262: return "OpGroupAny";
1212 case 263: return "OpGroupBroadcast";
1213 case 264: return "OpGroupIAdd";
1214 case 265: return "OpGroupFAdd";
1215 case 266: return "OpGroupFMin";
1216 case 267: return "OpGroupUMin";
1217 case 268: return "OpGroupSMin";
1218 case 269: return "OpGroupFMax";
1219 case 270: return "OpGroupUMax";
1220 case 271: return "OpGroupSMax";
1221 case 272: return "Bad";
1222 case 273: return "Bad";
1223 case 274: return "OpReadPipe";
1224 case 275: return "OpWritePipe";
1225 case 276: return "OpReservedReadPipe";
1226 case 277: return "OpReservedWritePipe";
1227 case 278: return "OpReserveReadPipePackets";
1228 case 279: return "OpReserveWritePipePackets";
1229 case 280: return "OpCommitReadPipe";
1230 case 281: return "OpCommitWritePipe";
1231 case 282: return "OpIsValidReserveId";
1232 case 283: return "OpGetNumPipePackets";
1233 case 284: return "OpGetMaxPipePackets";
1234 case 285: return "OpGroupReserveReadPipePackets";
1235 case 286: return "OpGroupReserveWritePipePackets";
1236 case 287: return "OpGroupCommitReadPipe";
1237 case 288: return "OpGroupCommitWritePipe";
1238 case 289: return "Bad";
1239 case 290: return "Bad";
1240 case 291: return "OpEnqueueMarker";
1241 case 292: return "OpEnqueueKernel";
1242 case 293: return "OpGetKernelNDrangeSubGroupCount";
1243 case 294: return "OpGetKernelNDrangeMaxSubGroupSize";
1244 case 295: return "OpGetKernelWorkGroupSize";
1245 case 296: return "OpGetKernelPreferredWorkGroupSizeMultiple";
1246 case 297: return "OpRetainEvent";
1247 case 298: return "OpReleaseEvent";
1248 case 299: return "OpCreateUserEvent";
1249 case 300: return "OpIsValidEvent";
1250 case 301: return "OpSetUserEventStatus";
1251 case 302: return "OpCaptureEventProfilingInfo";
1252 case 303: return "OpGetDefaultQueue";
1253 case 304: return "OpBuildNDRange";
1254 case 305: return "OpImageSparseSampleImplicitLod";
1255 case 306: return "OpImageSparseSampleExplicitLod";
1256 case 307: return "OpImageSparseSampleDrefImplicitLod";
1257 case 308: return "OpImageSparseSampleDrefExplicitLod";
1258 case 309: return "OpImageSparseSampleProjImplicitLod";
1259 case 310: return "OpImageSparseSampleProjExplicitLod";
1260 case 311: return "OpImageSparseSampleProjDrefImplicitLod";
1261 case 312: return "OpImageSparseSampleProjDrefExplicitLod";
1262 case 313: return "OpImageSparseFetch";
1263 case 314: return "OpImageSparseGather";
1264 case 315: return "OpImageSparseDrefGather";
1265 case 316: return "OpImageSparseTexelsResident";
1266 case 317: return "OpNoLine";
1267 case 318: return "OpAtomicFlagTestAndSet";
1268 case 319: return "OpAtomicFlagClear";
1269 case 320: return "OpImageSparseRead";
1270
1271 case OpModuleProcessed: return "OpModuleProcessed";
1272 case OpDecorateId: return "OpDecorateId";
1273
1274 case 333: return "OpGroupNonUniformElect";
1275 case 334: return "OpGroupNonUniformAll";
1276 case 335: return "OpGroupNonUniformAny";
1277 case 336: return "OpGroupNonUniformAllEqual";
1278 case 337: return "OpGroupNonUniformBroadcast";
1279 case 338: return "OpGroupNonUniformBroadcastFirst";
1280 case 339: return "OpGroupNonUniformBallot";
1281 case 340: return "OpGroupNonUniformInverseBallot";
1282 case 341: return "OpGroupNonUniformBallotBitExtract";
1283 case 342: return "OpGroupNonUniformBallotBitCount";
1284 case 343: return "OpGroupNonUniformBallotFindLSB";
1285 case 344: return "OpGroupNonUniformBallotFindMSB";
1286 case 345: return "OpGroupNonUniformShuffle";
1287 case 346: return "OpGroupNonUniformShuffleXor";
1288 case 347: return "OpGroupNonUniformShuffleUp";
1289 case 348: return "OpGroupNonUniformShuffleDown";
1290 case 349: return "OpGroupNonUniformIAdd";
1291 case 350: return "OpGroupNonUniformFAdd";
1292 case 351: return "OpGroupNonUniformIMul";
1293 case 352: return "OpGroupNonUniformFMul";
1294 case 353: return "OpGroupNonUniformSMin";
1295 case 354: return "OpGroupNonUniformUMin";
1296 case 355: return "OpGroupNonUniformFMin";
1297 case 356: return "OpGroupNonUniformSMax";
1298 case 357: return "OpGroupNonUniformUMax";
1299 case 358: return "OpGroupNonUniformFMax";
1300 case 359: return "OpGroupNonUniformBitwiseAnd";
1301 case 360: return "OpGroupNonUniformBitwiseOr";
1302 case 361: return "OpGroupNonUniformBitwiseXor";
1303 case 362: return "OpGroupNonUniformLogicalAnd";
1304 case 363: return "OpGroupNonUniformLogicalOr";
1305 case 364: return "OpGroupNonUniformLogicalXor";
1306 case 365: return "OpGroupNonUniformQuadBroadcast";
1307 case 366: return "OpGroupNonUniformQuadSwap";
1308
1309 case 4421: return "OpSubgroupBallotKHR";
1310 case 4422: return "OpSubgroupFirstInvocationKHR";
1311 case 4428: return "OpSubgroupAllKHR";
1312 case 4429: return "OpSubgroupAnyKHR";
1313 case 4430: return "OpSubgroupAllEqualKHR";
1314 case 4432: return "OpSubgroupReadInvocationKHR";
1315
1316 case 5000: return "OpGroupIAddNonUniformAMD";
1317 case 5001: return "OpGroupFAddNonUniformAMD";
1318 case 5002: return "OpGroupFMinNonUniformAMD";
1319 case 5003: return "OpGroupUMinNonUniformAMD";
1320 case 5004: return "OpGroupSMinNonUniformAMD";
1321 case 5005: return "OpGroupFMaxNonUniformAMD";
1322 case 5006: return "OpGroupUMaxNonUniformAMD";
1323 case 5007: return "OpGroupSMaxNonUniformAMD";
1324
1325 case 5011: return "OpFragmentMaskFetchAMD";
1326 case 5012: return "OpFragmentFetchAMD";
1327
1328 case OpReadClockKHR: return "OpReadClockKHR";
1329
1330 case OpDecorateStringGOOGLE: return "OpDecorateStringGOOGLE";
1331 case OpMemberDecorateStringGOOGLE: return "OpMemberDecorateStringGOOGLE";
1332
1333 case OpGroupNonUniformPartitionNV: return "OpGroupNonUniformPartitionNV";
1334 case OpReportIntersectionKHR: return "OpReportIntersectionKHR";
1335 case OpIgnoreIntersectionKHR: return "OpIgnoreIntersectionKHR";
1336 case OpTerminateRayKHR: return "OpTerminateRayKHR";
1337 case OpTraceRayKHR: return "OpTraceRayKHR";
1338 case OpTypeAccelerationStructureKHR: return "OpTypeAccelerationStructureKHR";
1339 case OpExecuteCallableKHR: return "OpExecuteCallableKHR";
1340 case OpImageSampleFootprintNV: return "OpImageSampleFootprintNV";
1341 case OpWritePackedPrimitiveIndices4x8NV: return "OpWritePackedPrimitiveIndices4x8NV";
1342
1343 case OpTypeRayQueryProvisionalKHR: return "OpTypeRayQueryProvisionalKHR";
1344 case OpRayQueryInitializeKHR: return "OpRayQueryInitializeKHR";
1345 case OpRayQueryTerminateKHR: return "OpRayQueryTerminateKHR";
1346 case OpRayQueryGenerateIntersectionKHR: return "OpRayQueryGenerateIntersectionKHR";
1347 case OpRayQueryConfirmIntersectionKHR: return "OpRayQueryConfirmIntersectionKHR";
1348 case OpRayQueryProceedKHR: return "OpRayQueryProceedKHR";
1349 case OpRayQueryGetIntersectionTypeKHR: return "OpRayQueryGetIntersectionTypeKHR";
1350 case OpRayQueryGetRayTMinKHR: return "OpRayQueryGetRayTMinKHR";
1351 case OpRayQueryGetRayFlagsKHR: return "OpRayQueryGetRayFlagsKHR";
1352 case OpRayQueryGetIntersectionTKHR: return "OpRayQueryGetIntersectionTKHR";
1353 case OpRayQueryGetIntersectionInstanceCustomIndexKHR: return "OpRayQueryGetIntersectionInstanceCustomIndexKHR";
1354 case OpRayQueryGetIntersectionInstanceIdKHR: return "OpRayQueryGetIntersectionInstanceIdKHR";
1355 case OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR: return "OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR";
1356 case OpRayQueryGetIntersectionGeometryIndexKHR: return "OpRayQueryGetIntersectionGeometryIndexKHR";
1357 case OpRayQueryGetIntersectionPrimitiveIndexKHR: return "OpRayQueryGetIntersectionPrimitiveIndexKHR";
1358 case OpRayQueryGetIntersectionBarycentricsKHR: return "OpRayQueryGetIntersectionBarycentricsKHR";
1359 case OpRayQueryGetIntersectionFrontFaceKHR: return "OpRayQueryGetIntersectionFrontFaceKHR";
1360 case OpRayQueryGetIntersectionCandidateAABBOpaqueKHR: return "OpRayQueryGetIntersectionCandidateAABBOpaqueKHR";
1361 case OpRayQueryGetIntersectionObjectRayDirectionKHR: return "OpRayQueryGetIntersectionObjectRayDirectionKHR";
1362 case OpRayQueryGetIntersectionObjectRayOriginKHR: return "OpRayQueryGetIntersectionObjectRayOriginKHR";
1363 case OpRayQueryGetWorldRayDirectionKHR: return "OpRayQueryGetWorldRayDirectionKHR";
1364 case OpRayQueryGetWorldRayOriginKHR: return "OpRayQueryGetWorldRayOriginKHR";
1365 case OpRayQueryGetIntersectionObjectToWorldKHR: return "OpRayQueryGetIntersectionObjectToWorldKHR";
1366 case OpRayQueryGetIntersectionWorldToObjectKHR: return "OpRayQueryGetIntersectionWorldToObjectKHR";
1367
1368 case OpTypeCooperativeMatrixNV: return "OpTypeCooperativeMatrixNV";
1369 case OpCooperativeMatrixLoadNV: return "OpCooperativeMatrixLoadNV";
1370 case OpCooperativeMatrixStoreNV: return "OpCooperativeMatrixStoreNV";
1371 case OpCooperativeMatrixMulAddNV: return "OpCooperativeMatrixMulAddNV";
1372 case OpCooperativeMatrixLengthNV: return "OpCooperativeMatrixLengthNV";
1373 case OpDemoteToHelperInvocationEXT: return "OpDemoteToHelperInvocationEXT";
1374 case OpIsHelperInvocationEXT: return "OpIsHelperInvocationEXT";
1375
1376 case OpBeginInvocationInterlockEXT: return "OpBeginInvocationInterlockEXT";
1377 case OpEndInvocationInterlockEXT: return "OpEndInvocationInterlockEXT";
1378
1379 default:
1380 return "Bad";
1381 }
1382 }
1383
1384 // The set of objects that hold all the instruction/operand
1385 // parameterization information.
1386 InstructionParameters InstructionDesc[OpCodeMask + 1];
1387 OperandParameters ExecutionModeOperands[ExecutionModeCeiling];
1388 OperandParameters DecorationOperands[DecorationCeiling];
1389
1390 EnumDefinition OperandClassParams[OperandCount];
1391 EnumParameters ExecutionModeParams[ExecutionModeCeiling];
1392 EnumParameters ImageOperandsParams[ImageOperandsCeiling];
1393 EnumParameters DecorationParams[DecorationCeiling];
1394 EnumParameters LoopControlParams[FunctionControlCeiling];
1395 EnumParameters SelectionControlParams[SelectControlCeiling];
1396 EnumParameters FunctionControlParams[FunctionControlCeiling];
1397 EnumParameters MemoryAccessParams[MemoryAccessCeiling];
1398
1399 // Set up all the parameterizing descriptions of the opcodes, operands, etc.
Parameterize()1400 void Parameterize()
1401 {
1402 // only do this once.
1403 static bool initialized = false;
1404 if (initialized)
1405 return;
1406 initialized = true;
1407
1408 // Exceptions to having a result <id> and a resulting type <id>.
1409 // (Everything is initialized to have both).
1410
1411 InstructionDesc[OpNop].setResultAndType(false, false);
1412 InstructionDesc[OpSource].setResultAndType(false, false);
1413 InstructionDesc[OpSourceContinued].setResultAndType(false, false);
1414 InstructionDesc[OpSourceExtension].setResultAndType(false, false);
1415 InstructionDesc[OpExtension].setResultAndType(false, false);
1416 InstructionDesc[OpExtInstImport].setResultAndType(true, false);
1417 InstructionDesc[OpCapability].setResultAndType(false, false);
1418 InstructionDesc[OpMemoryModel].setResultAndType(false, false);
1419 InstructionDesc[OpEntryPoint].setResultAndType(false, false);
1420 InstructionDesc[OpExecutionMode].setResultAndType(false, false);
1421 InstructionDesc[OpTypeVoid].setResultAndType(true, false);
1422 InstructionDesc[OpTypeBool].setResultAndType(true, false);
1423 InstructionDesc[OpTypeInt].setResultAndType(true, false);
1424 InstructionDesc[OpTypeFloat].setResultAndType(true, false);
1425 InstructionDesc[OpTypeVector].setResultAndType(true, false);
1426 InstructionDesc[OpTypeMatrix].setResultAndType(true, false);
1427 InstructionDesc[OpTypeImage].setResultAndType(true, false);
1428 InstructionDesc[OpTypeSampler].setResultAndType(true, false);
1429 InstructionDesc[OpTypeSampledImage].setResultAndType(true, false);
1430 InstructionDesc[OpTypeArray].setResultAndType(true, false);
1431 InstructionDesc[OpTypeRuntimeArray].setResultAndType(true, false);
1432 InstructionDesc[OpTypeStruct].setResultAndType(true, false);
1433 InstructionDesc[OpTypeOpaque].setResultAndType(true, false);
1434 InstructionDesc[OpTypePointer].setResultAndType(true, false);
1435 InstructionDesc[OpTypeForwardPointer].setResultAndType(false, false);
1436 InstructionDesc[OpTypeFunction].setResultAndType(true, false);
1437 InstructionDesc[OpTypeEvent].setResultAndType(true, false);
1438 InstructionDesc[OpTypeDeviceEvent].setResultAndType(true, false);
1439 InstructionDesc[OpTypeReserveId].setResultAndType(true, false);
1440 InstructionDesc[OpTypeQueue].setResultAndType(true, false);
1441 InstructionDesc[OpTypePipe].setResultAndType(true, false);
1442 InstructionDesc[OpFunctionEnd].setResultAndType(false, false);
1443 InstructionDesc[OpStore].setResultAndType(false, false);
1444 InstructionDesc[OpImageWrite].setResultAndType(false, false);
1445 InstructionDesc[OpDecorationGroup].setResultAndType(true, false);
1446 InstructionDesc[OpDecorate].setResultAndType(false, false);
1447 InstructionDesc[OpDecorateId].setResultAndType(false, false);
1448 InstructionDesc[OpDecorateStringGOOGLE].setResultAndType(false, false);
1449 InstructionDesc[OpMemberDecorate].setResultAndType(false, false);
1450 InstructionDesc[OpMemberDecorateStringGOOGLE].setResultAndType(false, false);
1451 InstructionDesc[OpGroupDecorate].setResultAndType(false, false);
1452 InstructionDesc[OpGroupMemberDecorate].setResultAndType(false, false);
1453 InstructionDesc[OpName].setResultAndType(false, false);
1454 InstructionDesc[OpMemberName].setResultAndType(false, false);
1455 InstructionDesc[OpString].setResultAndType(true, false);
1456 InstructionDesc[OpLine].setResultAndType(false, false);
1457 InstructionDesc[OpNoLine].setResultAndType(false, false);
1458 InstructionDesc[OpCopyMemory].setResultAndType(false, false);
1459 InstructionDesc[OpCopyMemorySized].setResultAndType(false, false);
1460 InstructionDesc[OpEmitVertex].setResultAndType(false, false);
1461 InstructionDesc[OpEndPrimitive].setResultAndType(false, false);
1462 InstructionDesc[OpEmitStreamVertex].setResultAndType(false, false);
1463 InstructionDesc[OpEndStreamPrimitive].setResultAndType(false, false);
1464 InstructionDesc[OpControlBarrier].setResultAndType(false, false);
1465 InstructionDesc[OpMemoryBarrier].setResultAndType(false, false);
1466 InstructionDesc[OpAtomicStore].setResultAndType(false, false);
1467 InstructionDesc[OpLoopMerge].setResultAndType(false, false);
1468 InstructionDesc[OpSelectionMerge].setResultAndType(false, false);
1469 InstructionDesc[OpLabel].setResultAndType(true, false);
1470 InstructionDesc[OpBranch].setResultAndType(false, false);
1471 InstructionDesc[OpBranchConditional].setResultAndType(false, false);
1472 InstructionDesc[OpSwitch].setResultAndType(false, false);
1473 InstructionDesc[OpKill].setResultAndType(false, false);
1474 InstructionDesc[OpReturn].setResultAndType(false, false);
1475 InstructionDesc[OpReturnValue].setResultAndType(false, false);
1476 InstructionDesc[OpUnreachable].setResultAndType(false, false);
1477 InstructionDesc[OpLifetimeStart].setResultAndType(false, false);
1478 InstructionDesc[OpLifetimeStop].setResultAndType(false, false);
1479 InstructionDesc[OpCommitReadPipe].setResultAndType(false, false);
1480 InstructionDesc[OpCommitWritePipe].setResultAndType(false, false);
1481 InstructionDesc[OpGroupCommitWritePipe].setResultAndType(false, false);
1482 InstructionDesc[OpGroupCommitReadPipe].setResultAndType(false, false);
1483 InstructionDesc[OpCaptureEventProfilingInfo].setResultAndType(false, false);
1484 InstructionDesc[OpSetUserEventStatus].setResultAndType(false, false);
1485 InstructionDesc[OpRetainEvent].setResultAndType(false, false);
1486 InstructionDesc[OpReleaseEvent].setResultAndType(false, false);
1487 InstructionDesc[OpGroupWaitEvents].setResultAndType(false, false);
1488 InstructionDesc[OpAtomicFlagClear].setResultAndType(false, false);
1489 InstructionDesc[OpModuleProcessed].setResultAndType(false, false);
1490 InstructionDesc[OpTypeCooperativeMatrixNV].setResultAndType(true, false);
1491 InstructionDesc[OpCooperativeMatrixStoreNV].setResultAndType(false, false);
1492 InstructionDesc[OpBeginInvocationInterlockEXT].setResultAndType(false, false);
1493 InstructionDesc[OpEndInvocationInterlockEXT].setResultAndType(false, false);
1494
1495 // Specific additional context-dependent operands
1496
1497 ExecutionModeOperands[ExecutionModeInvocations].push(OperandLiteralNumber, "'Number of <<Invocation,invocations>>'");
1498
1499 ExecutionModeOperands[ExecutionModeLocalSize].push(OperandLiteralNumber, "'x size'");
1500 ExecutionModeOperands[ExecutionModeLocalSize].push(OperandLiteralNumber, "'y size'");
1501 ExecutionModeOperands[ExecutionModeLocalSize].push(OperandLiteralNumber, "'z size'");
1502
1503 ExecutionModeOperands[ExecutionModeLocalSizeHint].push(OperandLiteralNumber, "'x size'");
1504 ExecutionModeOperands[ExecutionModeLocalSizeHint].push(OperandLiteralNumber, "'y size'");
1505 ExecutionModeOperands[ExecutionModeLocalSizeHint].push(OperandLiteralNumber, "'z size'");
1506
1507 ExecutionModeOperands[ExecutionModeOutputVertices].push(OperandLiteralNumber, "'Vertex count'");
1508 ExecutionModeOperands[ExecutionModeVecTypeHint].push(OperandLiteralNumber, "'Vector type'");
1509
1510 DecorationOperands[DecorationStream].push(OperandLiteralNumber, "'Stream Number'");
1511 DecorationOperands[DecorationLocation].push(OperandLiteralNumber, "'Location'");
1512 DecorationOperands[DecorationComponent].push(OperandLiteralNumber, "'Component'");
1513 DecorationOperands[DecorationIndex].push(OperandLiteralNumber, "'Index'");
1514 DecorationOperands[DecorationBinding].push(OperandLiteralNumber, "'Binding Point'");
1515 DecorationOperands[DecorationDescriptorSet].push(OperandLiteralNumber, "'Descriptor Set'");
1516 DecorationOperands[DecorationOffset].push(OperandLiteralNumber, "'Byte Offset'");
1517 DecorationOperands[DecorationXfbBuffer].push(OperandLiteralNumber, "'XFB Buffer Number'");
1518 DecorationOperands[DecorationXfbStride].push(OperandLiteralNumber, "'XFB Stride'");
1519 DecorationOperands[DecorationArrayStride].push(OperandLiteralNumber, "'Array Stride'");
1520 DecorationOperands[DecorationMatrixStride].push(OperandLiteralNumber, "'Matrix Stride'");
1521 DecorationOperands[DecorationBuiltIn].push(OperandLiteralNumber, "See <<BuiltIn,*BuiltIn*>>");
1522 DecorationOperands[DecorationFPRoundingMode].push(OperandFPRoundingMode, "'Floating-Point Rounding Mode'");
1523 DecorationOperands[DecorationFPFastMathMode].push(OperandFPFastMath, "'Fast-Math Mode'");
1524 DecorationOperands[DecorationLinkageAttributes].push(OperandLiteralString, "'Name'");
1525 DecorationOperands[DecorationLinkageAttributes].push(OperandLinkageType, "'Linkage Type'");
1526 DecorationOperands[DecorationFuncParamAttr].push(OperandFuncParamAttr, "'Function Parameter Attribute'");
1527 DecorationOperands[DecorationSpecId].push(OperandLiteralNumber, "'Specialization Constant ID'");
1528 DecorationOperands[DecorationInputAttachmentIndex].push(OperandLiteralNumber, "'Attachment Index'");
1529 DecorationOperands[DecorationAlignment].push(OperandLiteralNumber, "'Alignment'");
1530
1531 OperandClassParams[OperandSource].set(0, SourceString, 0);
1532 OperandClassParams[OperandExecutionModel].set(0, ExecutionModelString, nullptr);
1533 OperandClassParams[OperandAddressing].set(0, AddressingString, nullptr);
1534 OperandClassParams[OperandMemory].set(0, MemoryString, nullptr);
1535 OperandClassParams[OperandExecutionMode].set(ExecutionModeCeiling, ExecutionModeString, ExecutionModeParams);
1536 OperandClassParams[OperandExecutionMode].setOperands(ExecutionModeOperands);
1537 OperandClassParams[OperandStorage].set(0, StorageClassString, nullptr);
1538 OperandClassParams[OperandDimensionality].set(0, DimensionString, nullptr);
1539 OperandClassParams[OperandSamplerAddressingMode].set(0, SamplerAddressingModeString, nullptr);
1540 OperandClassParams[OperandSamplerFilterMode].set(0, SamplerFilterModeString, nullptr);
1541 OperandClassParams[OperandSamplerImageFormat].set(0, ImageFormatString, nullptr);
1542 OperandClassParams[OperandImageChannelOrder].set(0, ImageChannelOrderString, nullptr);
1543 OperandClassParams[OperandImageChannelDataType].set(0, ImageChannelDataTypeString, nullptr);
1544 OperandClassParams[OperandImageOperands].set(ImageOperandsCeiling, ImageOperandsString, ImageOperandsParams, true);
1545 OperandClassParams[OperandFPFastMath].set(0, FPFastMathString, nullptr, true);
1546 OperandClassParams[OperandFPRoundingMode].set(0, FPRoundingModeString, nullptr);
1547 OperandClassParams[OperandLinkageType].set(0, LinkageTypeString, nullptr);
1548 OperandClassParams[OperandFuncParamAttr].set(0, FuncParamAttrString, nullptr);
1549 OperandClassParams[OperandAccessQualifier].set(0, AccessQualifierString, nullptr);
1550 OperandClassParams[OperandDecoration].set(DecorationCeiling, DecorationString, DecorationParams);
1551 OperandClassParams[OperandDecoration].setOperands(DecorationOperands);
1552 OperandClassParams[OperandBuiltIn].set(0, BuiltInString, nullptr);
1553 OperandClassParams[OperandSelect].set(SelectControlCeiling, SelectControlString, SelectionControlParams, true);
1554 OperandClassParams[OperandLoop].set(LoopControlCeiling, LoopControlString, LoopControlParams, true);
1555 OperandClassParams[OperandFunction].set(FunctionControlCeiling, FunctionControlString, FunctionControlParams, true);
1556 OperandClassParams[OperandMemorySemantics].set(0, MemorySemanticsString, nullptr, true);
1557 OperandClassParams[OperandMemoryAccess].set(MemoryAccessCeiling, MemoryAccessString, MemoryAccessParams, true);
1558 OperandClassParams[OperandScope].set(0, ScopeString, nullptr);
1559 OperandClassParams[OperandGroupOperation].set(0, GroupOperationString, nullptr);
1560 OperandClassParams[OperandKernelEnqueueFlags].set(0, KernelEnqueueFlagsString, nullptr);
1561 OperandClassParams[OperandKernelProfilingInfo].set(0, KernelProfilingInfoString, nullptr, true);
1562 OperandClassParams[OperandCapability].set(0, CapabilityString, nullptr);
1563 OperandClassParams[OperandOpcode].set(OpCodeMask + 1, OpcodeString, 0);
1564
1565 // set name of operator, an initial set of <id> style operands, and the description
1566
1567 InstructionDesc[OpSource].operands.push(OperandSource, "");
1568 InstructionDesc[OpSource].operands.push(OperandLiteralNumber, "'Version'");
1569 InstructionDesc[OpSource].operands.push(OperandId, "'File'", true);
1570 InstructionDesc[OpSource].operands.push(OperandLiteralString, "'Source'", true);
1571
1572 InstructionDesc[OpSourceContinued].operands.push(OperandLiteralString, "'Continued Source'");
1573
1574 InstructionDesc[OpSourceExtension].operands.push(OperandLiteralString, "'Extension'");
1575
1576 InstructionDesc[OpName].operands.push(OperandId, "'Target'");
1577 InstructionDesc[OpName].operands.push(OperandLiteralString, "'Name'");
1578
1579 InstructionDesc[OpMemberName].operands.push(OperandId, "'Type'");
1580 InstructionDesc[OpMemberName].operands.push(OperandLiteralNumber, "'Member'");
1581 InstructionDesc[OpMemberName].operands.push(OperandLiteralString, "'Name'");
1582
1583 InstructionDesc[OpString].operands.push(OperandLiteralString, "'String'");
1584
1585 InstructionDesc[OpLine].operands.push(OperandId, "'File'");
1586 InstructionDesc[OpLine].operands.push(OperandLiteralNumber, "'Line'");
1587 InstructionDesc[OpLine].operands.push(OperandLiteralNumber, "'Column'");
1588
1589 InstructionDesc[OpExtension].operands.push(OperandLiteralString, "'Name'");
1590
1591 InstructionDesc[OpExtInstImport].operands.push(OperandLiteralString, "'Name'");
1592
1593 InstructionDesc[OpCapability].operands.push(OperandCapability, "'Capability'");
1594
1595 InstructionDesc[OpMemoryModel].operands.push(OperandAddressing, "");
1596 InstructionDesc[OpMemoryModel].operands.push(OperandMemory, "");
1597
1598 InstructionDesc[OpEntryPoint].operands.push(OperandExecutionModel, "");
1599 InstructionDesc[OpEntryPoint].operands.push(OperandId, "'Entry Point'");
1600 InstructionDesc[OpEntryPoint].operands.push(OperandLiteralString, "'Name'");
1601 InstructionDesc[OpEntryPoint].operands.push(OperandVariableIds, "'Interface'");
1602
1603 InstructionDesc[OpExecutionMode].operands.push(OperandId, "'Entry Point'");
1604 InstructionDesc[OpExecutionMode].operands.push(OperandExecutionMode, "'Mode'");
1605 InstructionDesc[OpExecutionMode].operands.push(OperandOptionalLiteral, "See <<Execution_Mode,Execution Mode>>");
1606
1607 InstructionDesc[OpTypeInt].operands.push(OperandLiteralNumber, "'Width'");
1608 InstructionDesc[OpTypeInt].operands.push(OperandLiteralNumber, "'Signedness'");
1609
1610 InstructionDesc[OpTypeFloat].operands.push(OperandLiteralNumber, "'Width'");
1611
1612 InstructionDesc[OpTypeVector].operands.push(OperandId, "'Component Type'");
1613 InstructionDesc[OpTypeVector].operands.push(OperandLiteralNumber, "'Component Count'");
1614
1615 InstructionDesc[OpTypeMatrix].operands.push(OperandId, "'Column Type'");
1616 InstructionDesc[OpTypeMatrix].operands.push(OperandLiteralNumber, "'Column Count'");
1617
1618 InstructionDesc[OpTypeImage].operands.push(OperandId, "'Sampled Type'");
1619 InstructionDesc[OpTypeImage].operands.push(OperandDimensionality, "");
1620 InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Depth'");
1621 InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Arrayed'");
1622 InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'MS'");
1623 InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Sampled'");
1624 InstructionDesc[OpTypeImage].operands.push(OperandSamplerImageFormat, "");
1625 InstructionDesc[OpTypeImage].operands.push(OperandAccessQualifier, "", true);
1626
1627 InstructionDesc[OpTypeSampledImage].operands.push(OperandId, "'Image Type'");
1628
1629 InstructionDesc[OpTypeArray].operands.push(OperandId, "'Element Type'");
1630 InstructionDesc[OpTypeArray].operands.push(OperandId, "'Length'");
1631
1632 InstructionDesc[OpTypeRuntimeArray].operands.push(OperandId, "'Element Type'");
1633
1634 InstructionDesc[OpTypeStruct].operands.push(OperandVariableIds, "'Member 0 type', +\n'member 1 type', +\n...");
1635
1636 InstructionDesc[OpTypeOpaque].operands.push(OperandLiteralString, "The name of the opaque type.");
1637
1638 InstructionDesc[OpTypePointer].operands.push(OperandStorage, "");
1639 InstructionDesc[OpTypePointer].operands.push(OperandId, "'Type'");
1640
1641 InstructionDesc[OpTypeForwardPointer].operands.push(OperandId, "'Pointer Type'");
1642 InstructionDesc[OpTypeForwardPointer].operands.push(OperandStorage, "");
1643
1644 InstructionDesc[OpTypePipe].operands.push(OperandAccessQualifier, "'Qualifier'");
1645
1646 InstructionDesc[OpTypeFunction].operands.push(OperandId, "'Return Type'");
1647 InstructionDesc[OpTypeFunction].operands.push(OperandVariableIds, "'Parameter 0 Type', +\n'Parameter 1 Type', +\n...");
1648
1649 InstructionDesc[OpConstant].operands.push(OperandVariableLiterals, "'Value'");
1650
1651 InstructionDesc[OpConstantComposite].operands.push(OperandVariableIds, "'Constituents'");
1652
1653 InstructionDesc[OpConstantSampler].operands.push(OperandSamplerAddressingMode, "");
1654 InstructionDesc[OpConstantSampler].operands.push(OperandLiteralNumber, "'Param'");
1655 InstructionDesc[OpConstantSampler].operands.push(OperandSamplerFilterMode, "");
1656
1657 InstructionDesc[OpSpecConstant].operands.push(OperandVariableLiterals, "'Value'");
1658
1659 InstructionDesc[OpSpecConstantComposite].operands.push(OperandVariableIds, "'Constituents'");
1660
1661 InstructionDesc[OpSpecConstantOp].operands.push(OperandLiteralNumber, "'Opcode'");
1662 InstructionDesc[OpSpecConstantOp].operands.push(OperandVariableIds, "'Operands'");
1663
1664 InstructionDesc[OpVariable].operands.push(OperandStorage, "");
1665 InstructionDesc[OpVariable].operands.push(OperandId, "'Initializer'", true);
1666
1667 InstructionDesc[OpFunction].operands.push(OperandFunction, "");
1668 InstructionDesc[OpFunction].operands.push(OperandId, "'Function Type'");
1669
1670 InstructionDesc[OpFunctionCall].operands.push(OperandId, "'Function'");
1671 InstructionDesc[OpFunctionCall].operands.push(OperandVariableIds, "'Argument 0', +\n'Argument 1', +\n...");
1672
1673 InstructionDesc[OpExtInst].operands.push(OperandId, "'Set'");
1674 InstructionDesc[OpExtInst].operands.push(OperandLiteralNumber, "'Instruction'");
1675 InstructionDesc[OpExtInst].operands.push(OperandVariableIds, "'Operand 1', +\n'Operand 2', +\n...");
1676
1677 InstructionDesc[OpLoad].operands.push(OperandId, "'Pointer'");
1678 InstructionDesc[OpLoad].operands.push(OperandMemoryAccess, "", true);
1679 InstructionDesc[OpLoad].operands.push(OperandLiteralNumber, "", true);
1680 InstructionDesc[OpLoad].operands.push(OperandId, "", true);
1681
1682 InstructionDesc[OpStore].operands.push(OperandId, "'Pointer'");
1683 InstructionDesc[OpStore].operands.push(OperandId, "'Object'");
1684 InstructionDesc[OpStore].operands.push(OperandMemoryAccess, "", true);
1685 InstructionDesc[OpStore].operands.push(OperandLiteralNumber, "", true);
1686 InstructionDesc[OpStore].operands.push(OperandId, "", true);
1687
1688 InstructionDesc[OpPhi].operands.push(OperandVariableIds, "'Variable, Parent, ...'");
1689
1690 InstructionDesc[OpDecorate].operands.push(OperandId, "'Target'");
1691 InstructionDesc[OpDecorate].operands.push(OperandDecoration, "");
1692 InstructionDesc[OpDecorate].operands.push(OperandVariableLiterals, "See <<Decoration,'Decoration'>>.");
1693
1694 InstructionDesc[OpDecorateId].operands.push(OperandId, "'Target'");
1695 InstructionDesc[OpDecorateId].operands.push(OperandDecoration, "");
1696 InstructionDesc[OpDecorateId].operands.push(OperandVariableIds, "See <<Decoration,'Decoration'>>.");
1697
1698 InstructionDesc[OpDecorateStringGOOGLE].operands.push(OperandId, "'Target'");
1699 InstructionDesc[OpDecorateStringGOOGLE].operands.push(OperandDecoration, "");
1700 InstructionDesc[OpDecorateStringGOOGLE].operands.push(OperandLiteralString, "'Literal String'");
1701
1702 InstructionDesc[OpMemberDecorate].operands.push(OperandId, "'Structure Type'");
1703 InstructionDesc[OpMemberDecorate].operands.push(OperandLiteralNumber, "'Member'");
1704 InstructionDesc[OpMemberDecorate].operands.push(OperandDecoration, "");
1705 InstructionDesc[OpMemberDecorate].operands.push(OperandVariableLiterals, "See <<Decoration,'Decoration'>>.");
1706
1707 InstructionDesc[OpMemberDecorateStringGOOGLE].operands.push(OperandId, "'Structure Type'");
1708 InstructionDesc[OpMemberDecorateStringGOOGLE].operands.push(OperandLiteralNumber, "'Member'");
1709 InstructionDesc[OpMemberDecorateStringGOOGLE].operands.push(OperandDecoration, "");
1710 InstructionDesc[OpMemberDecorateStringGOOGLE].operands.push(OperandLiteralString, "'Literal String'");
1711
1712 InstructionDesc[OpGroupDecorate].operands.push(OperandId, "'Decoration Group'");
1713 InstructionDesc[OpGroupDecorate].operands.push(OperandVariableIds, "'Targets'");
1714
1715 InstructionDesc[OpGroupMemberDecorate].operands.push(OperandId, "'Decoration Group'");
1716 InstructionDesc[OpGroupMemberDecorate].operands.push(OperandVariableIdLiteral, "'Targets'");
1717
1718 InstructionDesc[OpVectorExtractDynamic].operands.push(OperandId, "'Vector'");
1719 InstructionDesc[OpVectorExtractDynamic].operands.push(OperandId, "'Index'");
1720
1721 InstructionDesc[OpVectorInsertDynamic].operands.push(OperandId, "'Vector'");
1722 InstructionDesc[OpVectorInsertDynamic].operands.push(OperandId, "'Component'");
1723 InstructionDesc[OpVectorInsertDynamic].operands.push(OperandId, "'Index'");
1724
1725 InstructionDesc[OpVectorShuffle].operands.push(OperandId, "'Vector 1'");
1726 InstructionDesc[OpVectorShuffle].operands.push(OperandId, "'Vector 2'");
1727 InstructionDesc[OpVectorShuffle].operands.push(OperandVariableLiterals, "'Components'");
1728
1729 InstructionDesc[OpCompositeConstruct].operands.push(OperandVariableIds, "'Constituents'");
1730
1731 InstructionDesc[OpCompositeExtract].operands.push(OperandId, "'Composite'");
1732 InstructionDesc[OpCompositeExtract].operands.push(OperandVariableLiterals, "'Indexes'");
1733
1734 InstructionDesc[OpCompositeInsert].operands.push(OperandId, "'Object'");
1735 InstructionDesc[OpCompositeInsert].operands.push(OperandId, "'Composite'");
1736 InstructionDesc[OpCompositeInsert].operands.push(OperandVariableLiterals, "'Indexes'");
1737
1738 InstructionDesc[OpCopyObject].operands.push(OperandId, "'Operand'");
1739
1740 InstructionDesc[OpCopyMemory].operands.push(OperandId, "'Target'");
1741 InstructionDesc[OpCopyMemory].operands.push(OperandId, "'Source'");
1742 InstructionDesc[OpCopyMemory].operands.push(OperandMemoryAccess, "", true);
1743
1744 InstructionDesc[OpCopyMemorySized].operands.push(OperandId, "'Target'");
1745 InstructionDesc[OpCopyMemorySized].operands.push(OperandId, "'Source'");
1746 InstructionDesc[OpCopyMemorySized].operands.push(OperandId, "'Size'");
1747 InstructionDesc[OpCopyMemorySized].operands.push(OperandMemoryAccess, "", true);
1748
1749 InstructionDesc[OpSampledImage].operands.push(OperandId, "'Image'");
1750 InstructionDesc[OpSampledImage].operands.push(OperandId, "'Sampler'");
1751
1752 InstructionDesc[OpImage].operands.push(OperandId, "'Sampled Image'");
1753
1754 InstructionDesc[OpImageRead].operands.push(OperandId, "'Image'");
1755 InstructionDesc[OpImageRead].operands.push(OperandId, "'Coordinate'");
1756 InstructionDesc[OpImageRead].operands.push(OperandImageOperands, "", true);
1757 InstructionDesc[OpImageRead].operands.push(OperandVariableIds, "", true);
1758
1759 InstructionDesc[OpImageWrite].operands.push(OperandId, "'Image'");
1760 InstructionDesc[OpImageWrite].operands.push(OperandId, "'Coordinate'");
1761 InstructionDesc[OpImageWrite].operands.push(OperandId, "'Texel'");
1762 InstructionDesc[OpImageWrite].operands.push(OperandImageOperands, "", true);
1763 InstructionDesc[OpImageWrite].operands.push(OperandVariableIds, "", true);
1764
1765 InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandId, "'Sampled Image'");
1766 InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandId, "'Coordinate'");
1767 InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandImageOperands, "", true);
1768 InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandVariableIds, "", true);
1769
1770 InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandId, "'Sampled Image'");
1771 InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandId, "'Coordinate'");
1772 InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandImageOperands, "", true);
1773 InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandVariableIds, "", true);
1774
1775 InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandId, "'Sampled Image'");
1776 InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandId, "'Coordinate'");
1777 InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandId, "'D~ref~'");
1778 InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandImageOperands, "", true);
1779 InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandVariableIds, "", true);
1780
1781 InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandId, "'Sampled Image'");
1782 InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandId, "'Coordinate'");
1783 InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandId, "'D~ref~'");
1784 InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandImageOperands, "", true);
1785 InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandVariableIds, "", true);
1786
1787 InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandId, "'Sampled Image'");
1788 InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandId, "'Coordinate'");
1789 InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandImageOperands, "", true);
1790 InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandVariableIds, "", true);
1791
1792 InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandId, "'Sampled Image'");
1793 InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandId, "'Coordinate'");
1794 InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandImageOperands, "", true);
1795 InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandVariableIds, "", true);
1796
1797 InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandId, "'Sampled Image'");
1798 InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandId, "'Coordinate'");
1799 InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandId, "'D~ref~'");
1800 InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandImageOperands, "", true);
1801 InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandVariableIds, "", true);
1802
1803 InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandId, "'Sampled Image'");
1804 InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandId, "'Coordinate'");
1805 InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandId, "'D~ref~'");
1806 InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandImageOperands, "", true);
1807 InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandVariableIds, "", true);
1808
1809 InstructionDesc[OpImageFetch].operands.push(OperandId, "'Image'");
1810 InstructionDesc[OpImageFetch].operands.push(OperandId, "'Coordinate'");
1811 InstructionDesc[OpImageFetch].operands.push(OperandImageOperands, "", true);
1812 InstructionDesc[OpImageFetch].operands.push(OperandVariableIds, "", true);
1813
1814 InstructionDesc[OpImageGather].operands.push(OperandId, "'Sampled Image'");
1815 InstructionDesc[OpImageGather].operands.push(OperandId, "'Coordinate'");
1816 InstructionDesc[OpImageGather].operands.push(OperandId, "'Component'");
1817 InstructionDesc[OpImageGather].operands.push(OperandImageOperands, "", true);
1818 InstructionDesc[OpImageGather].operands.push(OperandVariableIds, "", true);
1819
1820 InstructionDesc[OpImageDrefGather].operands.push(OperandId, "'Sampled Image'");
1821 InstructionDesc[OpImageDrefGather].operands.push(OperandId, "'Coordinate'");
1822 InstructionDesc[OpImageDrefGather].operands.push(OperandId, "'D~ref~'");
1823 InstructionDesc[OpImageDrefGather].operands.push(OperandImageOperands, "", true);
1824 InstructionDesc[OpImageDrefGather].operands.push(OperandVariableIds, "", true);
1825
1826 InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandId, "'Sampled Image'");
1827 InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandId, "'Coordinate'");
1828 InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandImageOperands, "", true);
1829 InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandVariableIds, "", true);
1830
1831 InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandId, "'Sampled Image'");
1832 InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandId, "'Coordinate'");
1833 InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandImageOperands, "", true);
1834 InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandVariableIds, "", true);
1835
1836 InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandId, "'Sampled Image'");
1837 InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandId, "'Coordinate'");
1838 InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandId, "'D~ref~'");
1839 InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandImageOperands, "", true);
1840 InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandVariableIds, "", true);
1841
1842 InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandId, "'Sampled Image'");
1843 InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandId, "'Coordinate'");
1844 InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandId, "'D~ref~'");
1845 InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandImageOperands, "", true);
1846 InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandVariableIds, "", true);
1847
1848 InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandId, "'Sampled Image'");
1849 InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandId, "'Coordinate'");
1850 InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandImageOperands, "", true);
1851 InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandVariableIds, "", true);
1852
1853 InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandId, "'Sampled Image'");
1854 InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandId, "'Coordinate'");
1855 InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandImageOperands, "", true);
1856 InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandVariableIds, "", true);
1857
1858 InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandId, "'Sampled Image'");
1859 InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandId, "'Coordinate'");
1860 InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandId, "'D~ref~'");
1861 InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandImageOperands, "", true);
1862 InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandVariableIds, "", true);
1863
1864 InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandId, "'Sampled Image'");
1865 InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandId, "'Coordinate'");
1866 InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandId, "'D~ref~'");
1867 InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandImageOperands, "", true);
1868 InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandVariableIds, "", true);
1869
1870 InstructionDesc[OpImageSparseFetch].operands.push(OperandId, "'Image'");
1871 InstructionDesc[OpImageSparseFetch].operands.push(OperandId, "'Coordinate'");
1872 InstructionDesc[OpImageSparseFetch].operands.push(OperandImageOperands, "", true);
1873 InstructionDesc[OpImageSparseFetch].operands.push(OperandVariableIds, "", true);
1874
1875 InstructionDesc[OpImageSparseGather].operands.push(OperandId, "'Sampled Image'");
1876 InstructionDesc[OpImageSparseGather].operands.push(OperandId, "'Coordinate'");
1877 InstructionDesc[OpImageSparseGather].operands.push(OperandId, "'Component'");
1878 InstructionDesc[OpImageSparseGather].operands.push(OperandImageOperands, "", true);
1879 InstructionDesc[OpImageSparseGather].operands.push(OperandVariableIds, "", true);
1880
1881 InstructionDesc[OpImageSparseDrefGather].operands.push(OperandId, "'Sampled Image'");
1882 InstructionDesc[OpImageSparseDrefGather].operands.push(OperandId, "'Coordinate'");
1883 InstructionDesc[OpImageSparseDrefGather].operands.push(OperandId, "'D~ref~'");
1884 InstructionDesc[OpImageSparseDrefGather].operands.push(OperandImageOperands, "", true);
1885 InstructionDesc[OpImageSparseDrefGather].operands.push(OperandVariableIds, "", true);
1886
1887 InstructionDesc[OpImageSparseRead].operands.push(OperandId, "'Image'");
1888 InstructionDesc[OpImageSparseRead].operands.push(OperandId, "'Coordinate'");
1889 InstructionDesc[OpImageSparseRead].operands.push(OperandImageOperands, "", true);
1890 InstructionDesc[OpImageSparseRead].operands.push(OperandVariableIds, "", true);
1891
1892 InstructionDesc[OpImageSparseTexelsResident].operands.push(OperandId, "'Resident Code'");
1893
1894 InstructionDesc[OpImageQuerySizeLod].operands.push(OperandId, "'Image'");
1895 InstructionDesc[OpImageQuerySizeLod].operands.push(OperandId, "'Level of Detail'");
1896
1897 InstructionDesc[OpImageQuerySize].operands.push(OperandId, "'Image'");
1898
1899 InstructionDesc[OpImageQueryLod].operands.push(OperandId, "'Image'");
1900 InstructionDesc[OpImageQueryLod].operands.push(OperandId, "'Coordinate'");
1901
1902 InstructionDesc[OpImageQueryLevels].operands.push(OperandId, "'Image'");
1903
1904 InstructionDesc[OpImageQuerySamples].operands.push(OperandId, "'Image'");
1905
1906 InstructionDesc[OpImageQueryFormat].operands.push(OperandId, "'Image'");
1907
1908 InstructionDesc[OpImageQueryOrder].operands.push(OperandId, "'Image'");
1909
1910 InstructionDesc[OpAccessChain].operands.push(OperandId, "'Base'");
1911 InstructionDesc[OpAccessChain].operands.push(OperandVariableIds, "'Indexes'");
1912
1913 InstructionDesc[OpInBoundsAccessChain].operands.push(OperandId, "'Base'");
1914 InstructionDesc[OpInBoundsAccessChain].operands.push(OperandVariableIds, "'Indexes'");
1915
1916 InstructionDesc[OpPtrAccessChain].operands.push(OperandId, "'Base'");
1917 InstructionDesc[OpPtrAccessChain].operands.push(OperandId, "'Element'");
1918 InstructionDesc[OpPtrAccessChain].operands.push(OperandVariableIds, "'Indexes'");
1919
1920 InstructionDesc[OpInBoundsPtrAccessChain].operands.push(OperandId, "'Base'");
1921 InstructionDesc[OpInBoundsPtrAccessChain].operands.push(OperandId, "'Element'");
1922 InstructionDesc[OpInBoundsPtrAccessChain].operands.push(OperandVariableIds, "'Indexes'");
1923
1924 InstructionDesc[OpSNegate].operands.push(OperandId, "'Operand'");
1925
1926 InstructionDesc[OpFNegate].operands.push(OperandId, "'Operand'");
1927
1928 InstructionDesc[OpNot].operands.push(OperandId, "'Operand'");
1929
1930 InstructionDesc[OpAny].operands.push(OperandId, "'Vector'");
1931
1932 InstructionDesc[OpAll].operands.push(OperandId, "'Vector'");
1933
1934 InstructionDesc[OpConvertFToU].operands.push(OperandId, "'Float Value'");
1935
1936 InstructionDesc[OpConvertFToS].operands.push(OperandId, "'Float Value'");
1937
1938 InstructionDesc[OpConvertSToF].operands.push(OperandId, "'Signed Value'");
1939
1940 InstructionDesc[OpConvertUToF].operands.push(OperandId, "'Unsigned Value'");
1941
1942 InstructionDesc[OpUConvert].operands.push(OperandId, "'Unsigned Value'");
1943
1944 InstructionDesc[OpSConvert].operands.push(OperandId, "'Signed Value'");
1945
1946 InstructionDesc[OpFConvert].operands.push(OperandId, "'Float Value'");
1947
1948 InstructionDesc[OpSatConvertSToU].operands.push(OperandId, "'Signed Value'");
1949
1950 InstructionDesc[OpSatConvertUToS].operands.push(OperandId, "'Unsigned Value'");
1951
1952 InstructionDesc[OpConvertPtrToU].operands.push(OperandId, "'Pointer'");
1953
1954 InstructionDesc[OpConvertUToPtr].operands.push(OperandId, "'Integer Value'");
1955
1956 InstructionDesc[OpPtrCastToGeneric].operands.push(OperandId, "'Pointer'");
1957
1958 InstructionDesc[OpGenericCastToPtr].operands.push(OperandId, "'Pointer'");
1959
1960 InstructionDesc[OpGenericCastToPtrExplicit].operands.push(OperandId, "'Pointer'");
1961 InstructionDesc[OpGenericCastToPtrExplicit].operands.push(OperandStorage, "'Storage'");
1962
1963 InstructionDesc[OpGenericPtrMemSemantics].operands.push(OperandId, "'Pointer'");
1964
1965 InstructionDesc[OpBitcast].operands.push(OperandId, "'Operand'");
1966
1967 InstructionDesc[OpQuantizeToF16].operands.push(OperandId, "'Value'");
1968
1969 InstructionDesc[OpTranspose].operands.push(OperandId, "'Matrix'");
1970
1971 InstructionDesc[OpCopyLogical].operands.push(OperandId, "'Operand'");
1972
1973 InstructionDesc[OpIsNan].operands.push(OperandId, "'x'");
1974
1975 InstructionDesc[OpIsInf].operands.push(OperandId, "'x'");
1976
1977 InstructionDesc[OpIsFinite].operands.push(OperandId, "'x'");
1978
1979 InstructionDesc[OpIsNormal].operands.push(OperandId, "'x'");
1980
1981 InstructionDesc[OpSignBitSet].operands.push(OperandId, "'x'");
1982
1983 InstructionDesc[OpLessOrGreater].operands.push(OperandId, "'x'");
1984 InstructionDesc[OpLessOrGreater].operands.push(OperandId, "'y'");
1985
1986 InstructionDesc[OpOrdered].operands.push(OperandId, "'x'");
1987 InstructionDesc[OpOrdered].operands.push(OperandId, "'y'");
1988
1989 InstructionDesc[OpUnordered].operands.push(OperandId, "'x'");
1990 InstructionDesc[OpUnordered].operands.push(OperandId, "'y'");
1991
1992 InstructionDesc[OpArrayLength].operands.push(OperandId, "'Structure'");
1993 InstructionDesc[OpArrayLength].operands.push(OperandLiteralNumber, "'Array member'");
1994
1995 InstructionDesc[OpIAdd].operands.push(OperandId, "'Operand 1'");
1996 InstructionDesc[OpIAdd].operands.push(OperandId, "'Operand 2'");
1997
1998 InstructionDesc[OpFAdd].operands.push(OperandId, "'Operand 1'");
1999 InstructionDesc[OpFAdd].operands.push(OperandId, "'Operand 2'");
2000
2001 InstructionDesc[OpISub].operands.push(OperandId, "'Operand 1'");
2002 InstructionDesc[OpISub].operands.push(OperandId, "'Operand 2'");
2003
2004 InstructionDesc[OpFSub].operands.push(OperandId, "'Operand 1'");
2005 InstructionDesc[OpFSub].operands.push(OperandId, "'Operand 2'");
2006
2007 InstructionDesc[OpIMul].operands.push(OperandId, "'Operand 1'");
2008 InstructionDesc[OpIMul].operands.push(OperandId, "'Operand 2'");
2009
2010 InstructionDesc[OpFMul].operands.push(OperandId, "'Operand 1'");
2011 InstructionDesc[OpFMul].operands.push(OperandId, "'Operand 2'");
2012
2013 InstructionDesc[OpUDiv].operands.push(OperandId, "'Operand 1'");
2014 InstructionDesc[OpUDiv].operands.push(OperandId, "'Operand 2'");
2015
2016 InstructionDesc[OpSDiv].operands.push(OperandId, "'Operand 1'");
2017 InstructionDesc[OpSDiv].operands.push(OperandId, "'Operand 2'");
2018
2019 InstructionDesc[OpFDiv].operands.push(OperandId, "'Operand 1'");
2020 InstructionDesc[OpFDiv].operands.push(OperandId, "'Operand 2'");
2021
2022 InstructionDesc[OpUMod].operands.push(OperandId, "'Operand 1'");
2023 InstructionDesc[OpUMod].operands.push(OperandId, "'Operand 2'");
2024
2025 InstructionDesc[OpSRem].operands.push(OperandId, "'Operand 1'");
2026 InstructionDesc[OpSRem].operands.push(OperandId, "'Operand 2'");
2027
2028 InstructionDesc[OpSMod].operands.push(OperandId, "'Operand 1'");
2029 InstructionDesc[OpSMod].operands.push(OperandId, "'Operand 2'");
2030
2031 InstructionDesc[OpFRem].operands.push(OperandId, "'Operand 1'");
2032 InstructionDesc[OpFRem].operands.push(OperandId, "'Operand 2'");
2033
2034 InstructionDesc[OpFMod].operands.push(OperandId, "'Operand 1'");
2035 InstructionDesc[OpFMod].operands.push(OperandId, "'Operand 2'");
2036
2037 InstructionDesc[OpVectorTimesScalar].operands.push(OperandId, "'Vector'");
2038 InstructionDesc[OpVectorTimesScalar].operands.push(OperandId, "'Scalar'");
2039
2040 InstructionDesc[OpMatrixTimesScalar].operands.push(OperandId, "'Matrix'");
2041 InstructionDesc[OpMatrixTimesScalar].operands.push(OperandId, "'Scalar'");
2042
2043 InstructionDesc[OpVectorTimesMatrix].operands.push(OperandId, "'Vector'");
2044 InstructionDesc[OpVectorTimesMatrix].operands.push(OperandId, "'Matrix'");
2045
2046 InstructionDesc[OpMatrixTimesVector].operands.push(OperandId, "'Matrix'");
2047 InstructionDesc[OpMatrixTimesVector].operands.push(OperandId, "'Vector'");
2048
2049 InstructionDesc[OpMatrixTimesMatrix].operands.push(OperandId, "'LeftMatrix'");
2050 InstructionDesc[OpMatrixTimesMatrix].operands.push(OperandId, "'RightMatrix'");
2051
2052 InstructionDesc[OpOuterProduct].operands.push(OperandId, "'Vector 1'");
2053 InstructionDesc[OpOuterProduct].operands.push(OperandId, "'Vector 2'");
2054
2055 InstructionDesc[OpDot].operands.push(OperandId, "'Vector 1'");
2056 InstructionDesc[OpDot].operands.push(OperandId, "'Vector 2'");
2057
2058 InstructionDesc[OpIAddCarry].operands.push(OperandId, "'Operand 1'");
2059 InstructionDesc[OpIAddCarry].operands.push(OperandId, "'Operand 2'");
2060
2061 InstructionDesc[OpISubBorrow].operands.push(OperandId, "'Operand 1'");
2062 InstructionDesc[OpISubBorrow].operands.push(OperandId, "'Operand 2'");
2063
2064 InstructionDesc[OpUMulExtended].operands.push(OperandId, "'Operand 1'");
2065 InstructionDesc[OpUMulExtended].operands.push(OperandId, "'Operand 2'");
2066
2067 InstructionDesc[OpSMulExtended].operands.push(OperandId, "'Operand 1'");
2068 InstructionDesc[OpSMulExtended].operands.push(OperandId, "'Operand 2'");
2069
2070 InstructionDesc[OpShiftRightLogical].operands.push(OperandId, "'Base'");
2071 InstructionDesc[OpShiftRightLogical].operands.push(OperandId, "'Shift'");
2072
2073 InstructionDesc[OpShiftRightArithmetic].operands.push(OperandId, "'Base'");
2074 InstructionDesc[OpShiftRightArithmetic].operands.push(OperandId, "'Shift'");
2075
2076 InstructionDesc[OpShiftLeftLogical].operands.push(OperandId, "'Base'");
2077 InstructionDesc[OpShiftLeftLogical].operands.push(OperandId, "'Shift'");
2078
2079 InstructionDesc[OpLogicalOr].operands.push(OperandId, "'Operand 1'");
2080 InstructionDesc[OpLogicalOr].operands.push(OperandId, "'Operand 2'");
2081
2082 InstructionDesc[OpLogicalAnd].operands.push(OperandId, "'Operand 1'");
2083 InstructionDesc[OpLogicalAnd].operands.push(OperandId, "'Operand 2'");
2084
2085 InstructionDesc[OpLogicalEqual].operands.push(OperandId, "'Operand 1'");
2086 InstructionDesc[OpLogicalEqual].operands.push(OperandId, "'Operand 2'");
2087
2088 InstructionDesc[OpLogicalNotEqual].operands.push(OperandId, "'Operand 1'");
2089 InstructionDesc[OpLogicalNotEqual].operands.push(OperandId, "'Operand 2'");
2090
2091 InstructionDesc[OpLogicalNot].operands.push(OperandId, "'Operand'");
2092
2093 InstructionDesc[OpBitwiseOr].operands.push(OperandId, "'Operand 1'");
2094 InstructionDesc[OpBitwiseOr].operands.push(OperandId, "'Operand 2'");
2095
2096 InstructionDesc[OpBitwiseXor].operands.push(OperandId, "'Operand 1'");
2097 InstructionDesc[OpBitwiseXor].operands.push(OperandId, "'Operand 2'");
2098
2099 InstructionDesc[OpBitwiseAnd].operands.push(OperandId, "'Operand 1'");
2100 InstructionDesc[OpBitwiseAnd].operands.push(OperandId, "'Operand 2'");
2101
2102 InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Base'");
2103 InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Insert'");
2104 InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Offset'");
2105 InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Count'");
2106
2107 InstructionDesc[OpBitFieldSExtract].operands.push(OperandId, "'Base'");
2108 InstructionDesc[OpBitFieldSExtract].operands.push(OperandId, "'Offset'");
2109 InstructionDesc[OpBitFieldSExtract].operands.push(OperandId, "'Count'");
2110
2111 InstructionDesc[OpBitFieldUExtract].operands.push(OperandId, "'Base'");
2112 InstructionDesc[OpBitFieldUExtract].operands.push(OperandId, "'Offset'");
2113 InstructionDesc[OpBitFieldUExtract].operands.push(OperandId, "'Count'");
2114
2115 InstructionDesc[OpBitReverse].operands.push(OperandId, "'Base'");
2116
2117 InstructionDesc[OpBitCount].operands.push(OperandId, "'Base'");
2118
2119 InstructionDesc[OpSelect].operands.push(OperandId, "'Condition'");
2120 InstructionDesc[OpSelect].operands.push(OperandId, "'Object 1'");
2121 InstructionDesc[OpSelect].operands.push(OperandId, "'Object 2'");
2122
2123 InstructionDesc[OpIEqual].operands.push(OperandId, "'Operand 1'");
2124 InstructionDesc[OpIEqual].operands.push(OperandId, "'Operand 2'");
2125
2126 InstructionDesc[OpFOrdEqual].operands.push(OperandId, "'Operand 1'");
2127 InstructionDesc[OpFOrdEqual].operands.push(OperandId, "'Operand 2'");
2128
2129 InstructionDesc[OpFUnordEqual].operands.push(OperandId, "'Operand 1'");
2130 InstructionDesc[OpFUnordEqual].operands.push(OperandId, "'Operand 2'");
2131
2132 InstructionDesc[OpINotEqual].operands.push(OperandId, "'Operand 1'");
2133 InstructionDesc[OpINotEqual].operands.push(OperandId, "'Operand 2'");
2134
2135 InstructionDesc[OpFOrdNotEqual].operands.push(OperandId, "'Operand 1'");
2136 InstructionDesc[OpFOrdNotEqual].operands.push(OperandId, "'Operand 2'");
2137
2138 InstructionDesc[OpFUnordNotEqual].operands.push(OperandId, "'Operand 1'");
2139 InstructionDesc[OpFUnordNotEqual].operands.push(OperandId, "'Operand 2'");
2140
2141 InstructionDesc[OpULessThan].operands.push(OperandId, "'Operand 1'");
2142 InstructionDesc[OpULessThan].operands.push(OperandId, "'Operand 2'");
2143
2144 InstructionDesc[OpSLessThan].operands.push(OperandId, "'Operand 1'");
2145 InstructionDesc[OpSLessThan].operands.push(OperandId, "'Operand 2'");
2146
2147 InstructionDesc[OpFOrdLessThan].operands.push(OperandId, "'Operand 1'");
2148 InstructionDesc[OpFOrdLessThan].operands.push(OperandId, "'Operand 2'");
2149
2150 InstructionDesc[OpFUnordLessThan].operands.push(OperandId, "'Operand 1'");
2151 InstructionDesc[OpFUnordLessThan].operands.push(OperandId, "'Operand 2'");
2152
2153 InstructionDesc[OpUGreaterThan].operands.push(OperandId, "'Operand 1'");
2154 InstructionDesc[OpUGreaterThan].operands.push(OperandId, "'Operand 2'");
2155
2156 InstructionDesc[OpSGreaterThan].operands.push(OperandId, "'Operand 1'");
2157 InstructionDesc[OpSGreaterThan].operands.push(OperandId, "'Operand 2'");
2158
2159 InstructionDesc[OpFOrdGreaterThan].operands.push(OperandId, "'Operand 1'");
2160 InstructionDesc[OpFOrdGreaterThan].operands.push(OperandId, "'Operand 2'");
2161
2162 InstructionDesc[OpFUnordGreaterThan].operands.push(OperandId, "'Operand 1'");
2163 InstructionDesc[OpFUnordGreaterThan].operands.push(OperandId, "'Operand 2'");
2164
2165 InstructionDesc[OpULessThanEqual].operands.push(OperandId, "'Operand 1'");
2166 InstructionDesc[OpULessThanEqual].operands.push(OperandId, "'Operand 2'");
2167
2168 InstructionDesc[OpSLessThanEqual].operands.push(OperandId, "'Operand 1'");
2169 InstructionDesc[OpSLessThanEqual].operands.push(OperandId, "'Operand 2'");
2170
2171 InstructionDesc[OpFOrdLessThanEqual].operands.push(OperandId, "'Operand 1'");
2172 InstructionDesc[OpFOrdLessThanEqual].operands.push(OperandId, "'Operand 2'");
2173
2174 InstructionDesc[OpFUnordLessThanEqual].operands.push(OperandId, "'Operand 1'");
2175 InstructionDesc[OpFUnordLessThanEqual].operands.push(OperandId, "'Operand 2'");
2176
2177 InstructionDesc[OpUGreaterThanEqual].operands.push(OperandId, "'Operand 1'");
2178 InstructionDesc[OpUGreaterThanEqual].operands.push(OperandId, "'Operand 2'");
2179
2180 InstructionDesc[OpSGreaterThanEqual].operands.push(OperandId, "'Operand 1'");
2181 InstructionDesc[OpSGreaterThanEqual].operands.push(OperandId, "'Operand 2'");
2182
2183 InstructionDesc[OpFOrdGreaterThanEqual].operands.push(OperandId, "'Operand 1'");
2184 InstructionDesc[OpFOrdGreaterThanEqual].operands.push(OperandId, "'Operand 2'");
2185
2186 InstructionDesc[OpFUnordGreaterThanEqual].operands.push(OperandId, "'Operand 1'");
2187 InstructionDesc[OpFUnordGreaterThanEqual].operands.push(OperandId, "'Operand 2'");
2188
2189 InstructionDesc[OpDPdx].operands.push(OperandId, "'P'");
2190
2191 InstructionDesc[OpDPdy].operands.push(OperandId, "'P'");
2192
2193 InstructionDesc[OpFwidth].operands.push(OperandId, "'P'");
2194
2195 InstructionDesc[OpDPdxFine].operands.push(OperandId, "'P'");
2196
2197 InstructionDesc[OpDPdyFine].operands.push(OperandId, "'P'");
2198
2199 InstructionDesc[OpFwidthFine].operands.push(OperandId, "'P'");
2200
2201 InstructionDesc[OpDPdxCoarse].operands.push(OperandId, "'P'");
2202
2203 InstructionDesc[OpDPdyCoarse].operands.push(OperandId, "'P'");
2204
2205 InstructionDesc[OpFwidthCoarse].operands.push(OperandId, "'P'");
2206
2207 InstructionDesc[OpEmitStreamVertex].operands.push(OperandId, "'Stream'");
2208
2209 InstructionDesc[OpEndStreamPrimitive].operands.push(OperandId, "'Stream'");
2210
2211 InstructionDesc[OpControlBarrier].operands.push(OperandScope, "'Execution'");
2212 InstructionDesc[OpControlBarrier].operands.push(OperandScope, "'Memory'");
2213 InstructionDesc[OpControlBarrier].operands.push(OperandMemorySemantics, "'Semantics'");
2214
2215 InstructionDesc[OpMemoryBarrier].operands.push(OperandScope, "'Memory'");
2216 InstructionDesc[OpMemoryBarrier].operands.push(OperandMemorySemantics, "'Semantics'");
2217
2218 InstructionDesc[OpImageTexelPointer].operands.push(OperandId, "'Image'");
2219 InstructionDesc[OpImageTexelPointer].operands.push(OperandId, "'Coordinate'");
2220 InstructionDesc[OpImageTexelPointer].operands.push(OperandId, "'Sample'");
2221
2222 InstructionDesc[OpAtomicLoad].operands.push(OperandId, "'Pointer'");
2223 InstructionDesc[OpAtomicLoad].operands.push(OperandScope, "'Scope'");
2224 InstructionDesc[OpAtomicLoad].operands.push(OperandMemorySemantics, "'Semantics'");
2225
2226 InstructionDesc[OpAtomicStore].operands.push(OperandId, "'Pointer'");
2227 InstructionDesc[OpAtomicStore].operands.push(OperandScope, "'Scope'");
2228 InstructionDesc[OpAtomicStore].operands.push(OperandMemorySemantics, "'Semantics'");
2229 InstructionDesc[OpAtomicStore].operands.push(OperandId, "'Value'");
2230
2231 InstructionDesc[OpAtomicExchange].operands.push(OperandId, "'Pointer'");
2232 InstructionDesc[OpAtomicExchange].operands.push(OperandScope, "'Scope'");
2233 InstructionDesc[OpAtomicExchange].operands.push(OperandMemorySemantics, "'Semantics'");
2234 InstructionDesc[OpAtomicExchange].operands.push(OperandId, "'Value'");
2235
2236 InstructionDesc[OpAtomicCompareExchange].operands.push(OperandId, "'Pointer'");
2237 InstructionDesc[OpAtomicCompareExchange].operands.push(OperandScope, "'Scope'");
2238 InstructionDesc[OpAtomicCompareExchange].operands.push(OperandMemorySemantics, "'Equal'");
2239 InstructionDesc[OpAtomicCompareExchange].operands.push(OperandMemorySemantics, "'Unequal'");
2240 InstructionDesc[OpAtomicCompareExchange].operands.push(OperandId, "'Value'");
2241 InstructionDesc[OpAtomicCompareExchange].operands.push(OperandId, "'Comparator'");
2242
2243 InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandId, "'Pointer'");
2244 InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandScope, "'Scope'");
2245 InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandMemorySemantics, "'Equal'");
2246 InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandMemorySemantics, "'Unequal'");
2247 InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandId, "'Value'");
2248 InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandId, "'Comparator'");
2249
2250 InstructionDesc[OpAtomicIIncrement].operands.push(OperandId, "'Pointer'");
2251 InstructionDesc[OpAtomicIIncrement].operands.push(OperandScope, "'Scope'");
2252 InstructionDesc[OpAtomicIIncrement].operands.push(OperandMemorySemantics, "'Semantics'");
2253
2254 InstructionDesc[OpAtomicIDecrement].operands.push(OperandId, "'Pointer'");
2255 InstructionDesc[OpAtomicIDecrement].operands.push(OperandScope, "'Scope'");
2256 InstructionDesc[OpAtomicIDecrement].operands.push(OperandMemorySemantics, "'Semantics'");
2257
2258 InstructionDesc[OpAtomicIAdd].operands.push(OperandId, "'Pointer'");
2259 InstructionDesc[OpAtomicIAdd].operands.push(OperandScope, "'Scope'");
2260 InstructionDesc[OpAtomicIAdd].operands.push(OperandMemorySemantics, "'Semantics'");
2261 InstructionDesc[OpAtomicIAdd].operands.push(OperandId, "'Value'");
2262
2263 InstructionDesc[OpAtomicISub].operands.push(OperandId, "'Pointer'");
2264 InstructionDesc[OpAtomicISub].operands.push(OperandScope, "'Scope'");
2265 InstructionDesc[OpAtomicISub].operands.push(OperandMemorySemantics, "'Semantics'");
2266 InstructionDesc[OpAtomicISub].operands.push(OperandId, "'Value'");
2267
2268 InstructionDesc[OpAtomicUMin].operands.push(OperandId, "'Pointer'");
2269 InstructionDesc[OpAtomicUMin].operands.push(OperandScope, "'Scope'");
2270 InstructionDesc[OpAtomicUMin].operands.push(OperandMemorySemantics, "'Semantics'");
2271 InstructionDesc[OpAtomicUMin].operands.push(OperandId, "'Value'");
2272
2273 InstructionDesc[OpAtomicUMax].operands.push(OperandId, "'Pointer'");
2274 InstructionDesc[OpAtomicUMax].operands.push(OperandScope, "'Scope'");
2275 InstructionDesc[OpAtomicUMax].operands.push(OperandMemorySemantics, "'Semantics'");
2276 InstructionDesc[OpAtomicUMax].operands.push(OperandId, "'Value'");
2277
2278 InstructionDesc[OpAtomicSMin].operands.push(OperandId, "'Pointer'");
2279 InstructionDesc[OpAtomicSMin].operands.push(OperandScope, "'Scope'");
2280 InstructionDesc[OpAtomicSMin].operands.push(OperandMemorySemantics, "'Semantics'");
2281 InstructionDesc[OpAtomicSMin].operands.push(OperandId, "'Value'");
2282
2283 InstructionDesc[OpAtomicSMax].operands.push(OperandId, "'Pointer'");
2284 InstructionDesc[OpAtomicSMax].operands.push(OperandScope, "'Scope'");
2285 InstructionDesc[OpAtomicSMax].operands.push(OperandMemorySemantics, "'Semantics'");
2286 InstructionDesc[OpAtomicSMax].operands.push(OperandId, "'Value'");
2287
2288 InstructionDesc[OpAtomicAnd].operands.push(OperandId, "'Pointer'");
2289 InstructionDesc[OpAtomicAnd].operands.push(OperandScope, "'Scope'");
2290 InstructionDesc[OpAtomicAnd].operands.push(OperandMemorySemantics, "'Semantics'");
2291 InstructionDesc[OpAtomicAnd].operands.push(OperandId, "'Value'");
2292
2293 InstructionDesc[OpAtomicOr].operands.push(OperandId, "'Pointer'");
2294 InstructionDesc[OpAtomicOr].operands.push(OperandScope, "'Scope'");
2295 InstructionDesc[OpAtomicOr].operands.push(OperandMemorySemantics, "'Semantics'");
2296 InstructionDesc[OpAtomicOr].operands.push(OperandId, "'Value'");
2297
2298 InstructionDesc[OpAtomicXor].operands.push(OperandId, "'Pointer'");
2299 InstructionDesc[OpAtomicXor].operands.push(OperandScope, "'Scope'");
2300 InstructionDesc[OpAtomicXor].operands.push(OperandMemorySemantics, "'Semantics'");
2301 InstructionDesc[OpAtomicXor].operands.push(OperandId, "'Value'");
2302
2303 InstructionDesc[OpAtomicFlagTestAndSet].operands.push(OperandId, "'Pointer'");
2304 InstructionDesc[OpAtomicFlagTestAndSet].operands.push(OperandScope, "'Scope'");
2305 InstructionDesc[OpAtomicFlagTestAndSet].operands.push(OperandMemorySemantics, "'Semantics'");
2306
2307 InstructionDesc[OpAtomicFlagClear].operands.push(OperandId, "'Pointer'");
2308 InstructionDesc[OpAtomicFlagClear].operands.push(OperandScope, "'Scope'");
2309 InstructionDesc[OpAtomicFlagClear].operands.push(OperandMemorySemantics, "'Semantics'");
2310
2311 InstructionDesc[OpLoopMerge].operands.push(OperandId, "'Merge Block'");
2312 InstructionDesc[OpLoopMerge].operands.push(OperandId, "'Continue Target'");
2313 InstructionDesc[OpLoopMerge].operands.push(OperandLoop, "");
2314 InstructionDesc[OpLoopMerge].operands.push(OperandOptionalLiteral, "");
2315
2316 InstructionDesc[OpSelectionMerge].operands.push(OperandId, "'Merge Block'");
2317 InstructionDesc[OpSelectionMerge].operands.push(OperandSelect, "");
2318
2319 InstructionDesc[OpBranch].operands.push(OperandId, "'Target Label'");
2320
2321 InstructionDesc[OpBranchConditional].operands.push(OperandId, "'Condition'");
2322 InstructionDesc[OpBranchConditional].operands.push(OperandId, "'True Label'");
2323 InstructionDesc[OpBranchConditional].operands.push(OperandId, "'False Label'");
2324 InstructionDesc[OpBranchConditional].operands.push(OperandVariableLiterals, "'Branch weights'");
2325
2326 InstructionDesc[OpSwitch].operands.push(OperandId, "'Selector'");
2327 InstructionDesc[OpSwitch].operands.push(OperandId, "'Default'");
2328 InstructionDesc[OpSwitch].operands.push(OperandVariableLiteralId, "'Target'");
2329
2330
2331 InstructionDesc[OpReturnValue].operands.push(OperandId, "'Value'");
2332
2333 InstructionDesc[OpLifetimeStart].operands.push(OperandId, "'Pointer'");
2334 InstructionDesc[OpLifetimeStart].operands.push(OperandLiteralNumber, "'Size'");
2335
2336 InstructionDesc[OpLifetimeStop].operands.push(OperandId, "'Pointer'");
2337 InstructionDesc[OpLifetimeStop].operands.push(OperandLiteralNumber, "'Size'");
2338
2339 InstructionDesc[OpGroupAsyncCopy].operands.push(OperandScope, "'Execution'");
2340 InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Destination'");
2341 InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Source'");
2342 InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Num Elements'");
2343 InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Stride'");
2344 InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Event'");
2345
2346 InstructionDesc[OpGroupWaitEvents].operands.push(OperandScope, "'Execution'");
2347 InstructionDesc[OpGroupWaitEvents].operands.push(OperandId, "'Num Events'");
2348 InstructionDesc[OpGroupWaitEvents].operands.push(OperandId, "'Events List'");
2349
2350 InstructionDesc[OpGroupAll].operands.push(OperandScope, "'Execution'");
2351 InstructionDesc[OpGroupAll].operands.push(OperandId, "'Predicate'");
2352
2353 InstructionDesc[OpGroupAny].operands.push(OperandScope, "'Execution'");
2354 InstructionDesc[OpGroupAny].operands.push(OperandId, "'Predicate'");
2355
2356 InstructionDesc[OpGroupBroadcast].operands.push(OperandScope, "'Execution'");
2357 InstructionDesc[OpGroupBroadcast].operands.push(OperandId, "'Value'");
2358 InstructionDesc[OpGroupBroadcast].operands.push(OperandId, "'LocalId'");
2359
2360 InstructionDesc[OpGroupIAdd].operands.push(OperandScope, "'Execution'");
2361 InstructionDesc[OpGroupIAdd].operands.push(OperandGroupOperation, "'Operation'");
2362 InstructionDesc[OpGroupIAdd].operands.push(OperandId, "'X'");
2363
2364 InstructionDesc[OpGroupFAdd].operands.push(OperandScope, "'Execution'");
2365 InstructionDesc[OpGroupFAdd].operands.push(OperandGroupOperation, "'Operation'");
2366 InstructionDesc[OpGroupFAdd].operands.push(OperandId, "'X'");
2367
2368 InstructionDesc[OpGroupUMin].operands.push(OperandScope, "'Execution'");
2369 InstructionDesc[OpGroupUMin].operands.push(OperandGroupOperation, "'Operation'");
2370 InstructionDesc[OpGroupUMin].operands.push(OperandId, "'X'");
2371
2372 InstructionDesc[OpGroupSMin].operands.push(OperandScope, "'Execution'");
2373 InstructionDesc[OpGroupSMin].operands.push(OperandGroupOperation, "'Operation'");
2374 InstructionDesc[OpGroupSMin].operands.push(OperandId, "X");
2375
2376 InstructionDesc[OpGroupFMin].operands.push(OperandScope, "'Execution'");
2377 InstructionDesc[OpGroupFMin].operands.push(OperandGroupOperation, "'Operation'");
2378 InstructionDesc[OpGroupFMin].operands.push(OperandId, "X");
2379
2380 InstructionDesc[OpGroupUMax].operands.push(OperandScope, "'Execution'");
2381 InstructionDesc[OpGroupUMax].operands.push(OperandGroupOperation, "'Operation'");
2382 InstructionDesc[OpGroupUMax].operands.push(OperandId, "X");
2383
2384 InstructionDesc[OpGroupSMax].operands.push(OperandScope, "'Execution'");
2385 InstructionDesc[OpGroupSMax].operands.push(OperandGroupOperation, "'Operation'");
2386 InstructionDesc[OpGroupSMax].operands.push(OperandId, "X");
2387
2388 InstructionDesc[OpGroupFMax].operands.push(OperandScope, "'Execution'");
2389 InstructionDesc[OpGroupFMax].operands.push(OperandGroupOperation, "'Operation'");
2390 InstructionDesc[OpGroupFMax].operands.push(OperandId, "X");
2391
2392 InstructionDesc[OpReadPipe].operands.push(OperandId, "'Pipe'");
2393 InstructionDesc[OpReadPipe].operands.push(OperandId, "'Pointer'");
2394 InstructionDesc[OpReadPipe].operands.push(OperandId, "'Packet Size'");
2395 InstructionDesc[OpReadPipe].operands.push(OperandId, "'Packet Alignment'");
2396
2397 InstructionDesc[OpWritePipe].operands.push(OperandId, "'Pipe'");
2398 InstructionDesc[OpWritePipe].operands.push(OperandId, "'Pointer'");
2399 InstructionDesc[OpWritePipe].operands.push(OperandId, "'Packet Size'");
2400 InstructionDesc[OpWritePipe].operands.push(OperandId, "'Packet Alignment'");
2401
2402 InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Pipe'");
2403 InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Reserve Id'");
2404 InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Index'");
2405 InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Pointer'");
2406 InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Packet Size'");
2407 InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Packet Alignment'");
2408
2409 InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Pipe'");
2410 InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Reserve Id'");
2411 InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Index'");
2412 InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Pointer'");
2413 InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Packet Size'");
2414 InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Packet Alignment'");
2415
2416 InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Pipe'");
2417 InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Num Packets'");
2418 InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Packet Size'");
2419 InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Packet Alignment'");
2420
2421 InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Pipe'");
2422 InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Num Packets'");
2423 InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Packet Size'");
2424 InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Packet Alignment'");
2425
2426 InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Pipe'");
2427 InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Reserve Id'");
2428 InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Packet Size'");
2429 InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Packet Alignment'");
2430
2431 InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Pipe'");
2432 InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Reserve Id'");
2433 InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Packet Size'");
2434 InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Packet Alignment'");
2435
2436 InstructionDesc[OpIsValidReserveId].operands.push(OperandId, "'Reserve Id'");
2437
2438 InstructionDesc[OpGetNumPipePackets].operands.push(OperandId, "'Pipe'");
2439 InstructionDesc[OpGetNumPipePackets].operands.push(OperandId, "'Packet Size'");
2440 InstructionDesc[OpGetNumPipePackets].operands.push(OperandId, "'Packet Alignment'");
2441
2442 InstructionDesc[OpGetMaxPipePackets].operands.push(OperandId, "'Pipe'");
2443 InstructionDesc[OpGetMaxPipePackets].operands.push(OperandId, "'Packet Size'");
2444 InstructionDesc[OpGetMaxPipePackets].operands.push(OperandId, "'Packet Alignment'");
2445
2446 InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandScope, "'Execution'");
2447 InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Pipe'");
2448 InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Num Packets'");
2449 InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Packet Size'");
2450 InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Packet Alignment'");
2451
2452 InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandScope, "'Execution'");
2453 InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Pipe'");
2454 InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Num Packets'");
2455 InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Packet Size'");
2456 InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Packet Alignment'");
2457
2458 InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandScope, "'Execution'");
2459 InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Pipe'");
2460 InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Reserve Id'");
2461 InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Packet Size'");
2462 InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Packet Alignment'");
2463
2464 InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandScope, "'Execution'");
2465 InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Pipe'");
2466 InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Reserve Id'");
2467 InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Packet Size'");
2468 InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Packet Alignment'");
2469
2470 InstructionDesc[OpBuildNDRange].operands.push(OperandId, "'GlobalWorkSize'");
2471 InstructionDesc[OpBuildNDRange].operands.push(OperandId, "'LocalWorkSize'");
2472 InstructionDesc[OpBuildNDRange].operands.push(OperandId, "'GlobalWorkOffset'");
2473
2474 InstructionDesc[OpCaptureEventProfilingInfo].operands.push(OperandId, "'Event'");
2475 InstructionDesc[OpCaptureEventProfilingInfo].operands.push(OperandId, "'Profiling Info'");
2476 InstructionDesc[OpCaptureEventProfilingInfo].operands.push(OperandId, "'Value'");
2477
2478 InstructionDesc[OpSetUserEventStatus].operands.push(OperandId, "'Event'");
2479 InstructionDesc[OpSetUserEventStatus].operands.push(OperandId, "'Status'");
2480
2481 InstructionDesc[OpIsValidEvent].operands.push(OperandId, "'Event'");
2482
2483 InstructionDesc[OpRetainEvent].operands.push(OperandId, "'Event'");
2484
2485 InstructionDesc[OpReleaseEvent].operands.push(OperandId, "'Event'");
2486
2487 InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Invoke'");
2488 InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Param'");
2489 InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Param Size'");
2490 InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Param Align'");
2491
2492 InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Invoke'");
2493 InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Param'");
2494 InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Param Size'");
2495 InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Param Align'");
2496
2497 InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'ND Range'");
2498 InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Invoke'");
2499 InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Param'");
2500 InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Param Size'");
2501 InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Param Align'");
2502
2503 InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'ND Range'");
2504 InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Invoke'");
2505 InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Param'");
2506 InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Param Size'");
2507 InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Param Align'");
2508
2509 InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Queue'");
2510 InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Flags'");
2511 InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'ND Range'");
2512 InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Num Events'");
2513 InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Wait Events'");
2514 InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Ret Event'");
2515 InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Invoke'");
2516 InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Param'");
2517 InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Param Size'");
2518 InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Param Align'");
2519 InstructionDesc[OpEnqueueKernel].operands.push(OperandVariableIds, "'Local Size'");
2520
2521 InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Queue'");
2522 InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Num Events'");
2523 InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Wait Events'");
2524 InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Ret Event'");
2525
2526 InstructionDesc[OpGroupNonUniformElect].operands.push(OperandScope, "'Execution'");
2527
2528 InstructionDesc[OpGroupNonUniformAll].operands.push(OperandScope, "'Execution'");
2529 InstructionDesc[OpGroupNonUniformAll].operands.push(OperandId, "X");
2530
2531 InstructionDesc[OpGroupNonUniformAny].operands.push(OperandScope, "'Execution'");
2532 InstructionDesc[OpGroupNonUniformAny].operands.push(OperandId, "X");
2533
2534 InstructionDesc[OpGroupNonUniformAllEqual].operands.push(OperandScope, "'Execution'");
2535 InstructionDesc[OpGroupNonUniformAllEqual].operands.push(OperandId, "X");
2536
2537 InstructionDesc[OpGroupNonUniformBroadcast].operands.push(OperandScope, "'Execution'");
2538 InstructionDesc[OpGroupNonUniformBroadcast].operands.push(OperandId, "X");
2539 InstructionDesc[OpGroupNonUniformBroadcast].operands.push(OperandId, "ID");
2540
2541 InstructionDesc[OpGroupNonUniformBroadcastFirst].operands.push(OperandScope, "'Execution'");
2542 InstructionDesc[OpGroupNonUniformBroadcastFirst].operands.push(OperandId, "X");
2543
2544 InstructionDesc[OpGroupNonUniformBallot].operands.push(OperandScope, "'Execution'");
2545 InstructionDesc[OpGroupNonUniformBallot].operands.push(OperandId, "X");
2546
2547 InstructionDesc[OpGroupNonUniformInverseBallot].operands.push(OperandScope, "'Execution'");
2548 InstructionDesc[OpGroupNonUniformInverseBallot].operands.push(OperandId, "X");
2549
2550 InstructionDesc[OpGroupNonUniformBallotBitExtract].operands.push(OperandScope, "'Execution'");
2551 InstructionDesc[OpGroupNonUniformBallotBitExtract].operands.push(OperandId, "X");
2552 InstructionDesc[OpGroupNonUniformBallotBitExtract].operands.push(OperandId, "Bit");
2553
2554 InstructionDesc[OpGroupNonUniformBallotBitCount].operands.push(OperandScope, "'Execution'");
2555 InstructionDesc[OpGroupNonUniformBallotBitCount].operands.push(OperandGroupOperation, "'Operation'");
2556 InstructionDesc[OpGroupNonUniformBallotBitCount].operands.push(OperandId, "X");
2557
2558 InstructionDesc[OpGroupNonUniformBallotFindLSB].operands.push(OperandScope, "'Execution'");
2559 InstructionDesc[OpGroupNonUniformBallotFindLSB].operands.push(OperandId, "X");
2560
2561 InstructionDesc[OpGroupNonUniformBallotFindMSB].operands.push(OperandScope, "'Execution'");
2562 InstructionDesc[OpGroupNonUniformBallotFindMSB].operands.push(OperandId, "X");
2563
2564 InstructionDesc[OpGroupNonUniformShuffle].operands.push(OperandScope, "'Execution'");
2565 InstructionDesc[OpGroupNonUniformShuffle].operands.push(OperandId, "X");
2566 InstructionDesc[OpGroupNonUniformShuffle].operands.push(OperandId, "'Id'");
2567
2568 InstructionDesc[OpGroupNonUniformShuffleXor].operands.push(OperandScope, "'Execution'");
2569 InstructionDesc[OpGroupNonUniformShuffleXor].operands.push(OperandId, "X");
2570 InstructionDesc[OpGroupNonUniformShuffleXor].operands.push(OperandId, "Mask");
2571
2572 InstructionDesc[OpGroupNonUniformShuffleUp].operands.push(OperandScope, "'Execution'");
2573 InstructionDesc[OpGroupNonUniformShuffleUp].operands.push(OperandId, "X");
2574 InstructionDesc[OpGroupNonUniformShuffleUp].operands.push(OperandId, "Offset");
2575
2576 InstructionDesc[OpGroupNonUniformShuffleDown].operands.push(OperandScope, "'Execution'");
2577 InstructionDesc[OpGroupNonUniformShuffleDown].operands.push(OperandId, "X");
2578 InstructionDesc[OpGroupNonUniformShuffleDown].operands.push(OperandId, "Offset");
2579
2580 InstructionDesc[OpGroupNonUniformIAdd].operands.push(OperandScope, "'Execution'");
2581 InstructionDesc[OpGroupNonUniformIAdd].operands.push(OperandGroupOperation, "'Operation'");
2582 InstructionDesc[OpGroupNonUniformIAdd].operands.push(OperandId, "X");
2583 InstructionDesc[OpGroupNonUniformIAdd].operands.push(OperandId, "'ClusterSize'", true);
2584
2585 InstructionDesc[OpGroupNonUniformFAdd].operands.push(OperandScope, "'Execution'");
2586 InstructionDesc[OpGroupNonUniformFAdd].operands.push(OperandGroupOperation, "'Operation'");
2587 InstructionDesc[OpGroupNonUniformFAdd].operands.push(OperandId, "X");
2588 InstructionDesc[OpGroupNonUniformFAdd].operands.push(OperandId, "'ClusterSize'", true);
2589
2590 InstructionDesc[OpGroupNonUniformIMul].operands.push(OperandScope, "'Execution'");
2591 InstructionDesc[OpGroupNonUniformIMul].operands.push(OperandGroupOperation, "'Operation'");
2592 InstructionDesc[OpGroupNonUniformIMul].operands.push(OperandId, "X");
2593 InstructionDesc[OpGroupNonUniformIMul].operands.push(OperandId, "'ClusterSize'", true);
2594
2595 InstructionDesc[OpGroupNonUniformFMul].operands.push(OperandScope, "'Execution'");
2596 InstructionDesc[OpGroupNonUniformFMul].operands.push(OperandGroupOperation, "'Operation'");
2597 InstructionDesc[OpGroupNonUniformFMul].operands.push(OperandId, "X");
2598 InstructionDesc[OpGroupNonUniformFMul].operands.push(OperandId, "'ClusterSize'", true);
2599
2600 InstructionDesc[OpGroupNonUniformSMin].operands.push(OperandScope, "'Execution'");
2601 InstructionDesc[OpGroupNonUniformSMin].operands.push(OperandGroupOperation, "'Operation'");
2602 InstructionDesc[OpGroupNonUniformSMin].operands.push(OperandId, "X");
2603 InstructionDesc[OpGroupNonUniformSMin].operands.push(OperandId, "'ClusterSize'", true);
2604
2605 InstructionDesc[OpGroupNonUniformUMin].operands.push(OperandScope, "'Execution'");
2606 InstructionDesc[OpGroupNonUniformUMin].operands.push(OperandGroupOperation, "'Operation'");
2607 InstructionDesc[OpGroupNonUniformUMin].operands.push(OperandId, "X");
2608 InstructionDesc[OpGroupNonUniformUMin].operands.push(OperandId, "'ClusterSize'", true);
2609
2610 InstructionDesc[OpGroupNonUniformFMin].operands.push(OperandScope, "'Execution'");
2611 InstructionDesc[OpGroupNonUniformFMin].operands.push(OperandGroupOperation, "'Operation'");
2612 InstructionDesc[OpGroupNonUniformFMin].operands.push(OperandId, "X");
2613 InstructionDesc[OpGroupNonUniformFMin].operands.push(OperandId, "'ClusterSize'", true);
2614
2615 InstructionDesc[OpGroupNonUniformSMax].operands.push(OperandScope, "'Execution'");
2616 InstructionDesc[OpGroupNonUniformSMax].operands.push(OperandGroupOperation, "'Operation'");
2617 InstructionDesc[OpGroupNonUniformSMax].operands.push(OperandId, "X");
2618 InstructionDesc[OpGroupNonUniformSMax].operands.push(OperandId, "'ClusterSize'", true);
2619
2620 InstructionDesc[OpGroupNonUniformUMax].operands.push(OperandScope, "'Execution'");
2621 InstructionDesc[OpGroupNonUniformUMax].operands.push(OperandGroupOperation, "'Operation'");
2622 InstructionDesc[OpGroupNonUniformUMax].operands.push(OperandId, "X");
2623 InstructionDesc[OpGroupNonUniformUMax].operands.push(OperandId, "'ClusterSize'", true);
2624
2625 InstructionDesc[OpGroupNonUniformFMax].operands.push(OperandScope, "'Execution'");
2626 InstructionDesc[OpGroupNonUniformFMax].operands.push(OperandGroupOperation, "'Operation'");
2627 InstructionDesc[OpGroupNonUniformFMax].operands.push(OperandId, "X");
2628 InstructionDesc[OpGroupNonUniformFMax].operands.push(OperandId, "'ClusterSize'", true);
2629
2630 InstructionDesc[OpGroupNonUniformBitwiseAnd].operands.push(OperandScope, "'Execution'");
2631 InstructionDesc[OpGroupNonUniformBitwiseAnd].operands.push(OperandGroupOperation, "'Operation'");
2632 InstructionDesc[OpGroupNonUniformBitwiseAnd].operands.push(OperandId, "X");
2633 InstructionDesc[OpGroupNonUniformBitwiseAnd].operands.push(OperandId, "'ClusterSize'", true);
2634
2635 InstructionDesc[OpGroupNonUniformBitwiseOr].operands.push(OperandScope, "'Execution'");
2636 InstructionDesc[OpGroupNonUniformBitwiseOr].operands.push(OperandGroupOperation, "'Operation'");
2637 InstructionDesc[OpGroupNonUniformBitwiseOr].operands.push(OperandId, "X");
2638 InstructionDesc[OpGroupNonUniformBitwiseOr].operands.push(OperandId, "'ClusterSize'", true);
2639
2640 InstructionDesc[OpGroupNonUniformBitwiseXor].operands.push(OperandScope, "'Execution'");
2641 InstructionDesc[OpGroupNonUniformBitwiseXor].operands.push(OperandGroupOperation, "'Operation'");
2642 InstructionDesc[OpGroupNonUniformBitwiseXor].operands.push(OperandId, "X");
2643 InstructionDesc[OpGroupNonUniformBitwiseXor].operands.push(OperandId, "'ClusterSize'", true);
2644
2645 InstructionDesc[OpGroupNonUniformLogicalAnd].operands.push(OperandScope, "'Execution'");
2646 InstructionDesc[OpGroupNonUniformLogicalAnd].operands.push(OperandGroupOperation, "'Operation'");
2647 InstructionDesc[OpGroupNonUniformLogicalAnd].operands.push(OperandId, "X");
2648 InstructionDesc[OpGroupNonUniformLogicalAnd].operands.push(OperandId, "'ClusterSize'", true);
2649
2650 InstructionDesc[OpGroupNonUniformLogicalOr].operands.push(OperandScope, "'Execution'");
2651 InstructionDesc[OpGroupNonUniformLogicalOr].operands.push(OperandGroupOperation, "'Operation'");
2652 InstructionDesc[OpGroupNonUniformLogicalOr].operands.push(OperandId, "X");
2653 InstructionDesc[OpGroupNonUniformLogicalOr].operands.push(OperandId, "'ClusterSize'", true);
2654
2655 InstructionDesc[OpGroupNonUniformLogicalXor].operands.push(OperandScope, "'Execution'");
2656 InstructionDesc[OpGroupNonUniformLogicalXor].operands.push(OperandGroupOperation, "'Operation'");
2657 InstructionDesc[OpGroupNonUniformLogicalXor].operands.push(OperandId, "X");
2658 InstructionDesc[OpGroupNonUniformLogicalXor].operands.push(OperandId, "'ClusterSize'", true);
2659
2660 InstructionDesc[OpGroupNonUniformQuadBroadcast].operands.push(OperandScope, "'Execution'");
2661 InstructionDesc[OpGroupNonUniformQuadBroadcast].operands.push(OperandId, "X");
2662 InstructionDesc[OpGroupNonUniformQuadBroadcast].operands.push(OperandId, "'Id'");
2663
2664 InstructionDesc[OpGroupNonUniformQuadSwap].operands.push(OperandScope, "'Execution'");
2665 InstructionDesc[OpGroupNonUniformQuadSwap].operands.push(OperandId, "X");
2666 InstructionDesc[OpGroupNonUniformQuadSwap].operands.push(OperandLiteralNumber, "'Direction'");
2667
2668 InstructionDesc[OpSubgroupBallotKHR].operands.push(OperandId, "'Predicate'");
2669
2670 InstructionDesc[OpSubgroupFirstInvocationKHR].operands.push(OperandId, "'Value'");
2671
2672 InstructionDesc[OpSubgroupAnyKHR].operands.push(OperandScope, "'Execution'");
2673 InstructionDesc[OpSubgroupAnyKHR].operands.push(OperandId, "'Predicate'");
2674
2675 InstructionDesc[OpSubgroupAllKHR].operands.push(OperandScope, "'Execution'");
2676 InstructionDesc[OpSubgroupAllKHR].operands.push(OperandId, "'Predicate'");
2677
2678 InstructionDesc[OpSubgroupAllEqualKHR].operands.push(OperandScope, "'Execution'");
2679 InstructionDesc[OpSubgroupAllEqualKHR].operands.push(OperandId, "'Predicate'");
2680
2681 InstructionDesc[OpSubgroupReadInvocationKHR].operands.push(OperandId, "'Value'");
2682 InstructionDesc[OpSubgroupReadInvocationKHR].operands.push(OperandId, "'Index'");
2683
2684 InstructionDesc[OpModuleProcessed].operands.push(OperandLiteralString, "'process'");
2685
2686 InstructionDesc[OpGroupIAddNonUniformAMD].operands.push(OperandScope, "'Execution'");
2687 InstructionDesc[OpGroupIAddNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
2688 InstructionDesc[OpGroupIAddNonUniformAMD].operands.push(OperandId, "'X'");
2689
2690 InstructionDesc[OpGroupFAddNonUniformAMD].operands.push(OperandScope, "'Execution'");
2691 InstructionDesc[OpGroupFAddNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
2692 InstructionDesc[OpGroupFAddNonUniformAMD].operands.push(OperandId, "'X'");
2693
2694 InstructionDesc[OpGroupUMinNonUniformAMD].operands.push(OperandScope, "'Execution'");
2695 InstructionDesc[OpGroupUMinNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
2696 InstructionDesc[OpGroupUMinNonUniformAMD].operands.push(OperandId, "'X'");
2697
2698 InstructionDesc[OpGroupSMinNonUniformAMD].operands.push(OperandScope, "'Execution'");
2699 InstructionDesc[OpGroupSMinNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
2700 InstructionDesc[OpGroupSMinNonUniformAMD].operands.push(OperandId, "X");
2701
2702 InstructionDesc[OpGroupFMinNonUniformAMD].operands.push(OperandScope, "'Execution'");
2703 InstructionDesc[OpGroupFMinNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
2704 InstructionDesc[OpGroupFMinNonUniformAMD].operands.push(OperandId, "X");
2705
2706 InstructionDesc[OpGroupUMaxNonUniformAMD].operands.push(OperandScope, "'Execution'");
2707 InstructionDesc[OpGroupUMaxNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
2708 InstructionDesc[OpGroupUMaxNonUniformAMD].operands.push(OperandId, "X");
2709
2710 InstructionDesc[OpGroupSMaxNonUniformAMD].operands.push(OperandScope, "'Execution'");
2711 InstructionDesc[OpGroupSMaxNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
2712 InstructionDesc[OpGroupSMaxNonUniformAMD].operands.push(OperandId, "X");
2713
2714 InstructionDesc[OpGroupFMaxNonUniformAMD].operands.push(OperandScope, "'Execution'");
2715 InstructionDesc[OpGroupFMaxNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
2716 InstructionDesc[OpGroupFMaxNonUniformAMD].operands.push(OperandId, "X");
2717
2718 InstructionDesc[OpFragmentMaskFetchAMD].operands.push(OperandId, "'Image'");
2719 InstructionDesc[OpFragmentMaskFetchAMD].operands.push(OperandId, "'Coordinate'");
2720
2721 InstructionDesc[OpFragmentFetchAMD].operands.push(OperandId, "'Image'");
2722 InstructionDesc[OpFragmentFetchAMD].operands.push(OperandId, "'Coordinate'");
2723 InstructionDesc[OpFragmentFetchAMD].operands.push(OperandId, "'Fragment Index'");
2724
2725 InstructionDesc[OpGroupNonUniformPartitionNV].operands.push(OperandId, "X");
2726
2727 InstructionDesc[OpTypeAccelerationStructureKHR].setResultAndType(true, false);
2728
2729 InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'NV Acceleration Structure'");
2730 InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'Ray Flags'");
2731 InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'Cull Mask'");
2732 InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'SBT Record Offset'");
2733 InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'SBT Record Stride'");
2734 InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'Miss Index'");
2735 InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'Ray Origin'");
2736 InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'TMin'");
2737 InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'Ray Direction'");
2738 InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'TMax'");
2739 InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'Payload'");
2740 InstructionDesc[OpTraceRayKHR].setResultAndType(false, false);
2741
2742 InstructionDesc[OpReportIntersectionKHR].operands.push(OperandId, "'Hit Parameter'");
2743 InstructionDesc[OpReportIntersectionKHR].operands.push(OperandId, "'Hit Kind'");
2744
2745 InstructionDesc[OpIgnoreIntersectionKHR].setResultAndType(false, false);
2746
2747 InstructionDesc[OpTerminateRayKHR].setResultAndType(false, false);
2748
2749 InstructionDesc[OpExecuteCallableKHR].operands.push(OperandId, "SBT Record Index");
2750 InstructionDesc[OpExecuteCallableKHR].operands.push(OperandId, "CallableData ID");
2751 InstructionDesc[OpExecuteCallableKHR].setResultAndType(false, false);
2752
2753 // Ray Query
2754 InstructionDesc[OpTypeAccelerationStructureKHR].setResultAndType(true, false);
2755 InstructionDesc[OpTypeRayQueryProvisionalKHR].setResultAndType(true, false);
2756
2757 InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'RayQuery'");
2758 InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'AccelerationS'");
2759 InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'RayFlags'");
2760 InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'CullMask'");
2761 InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'Origin'");
2762 InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'Tmin'");
2763 InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'Direction'");
2764 InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'Tmax'");
2765 InstructionDesc[OpRayQueryInitializeKHR].setResultAndType(false, false);
2766
2767 InstructionDesc[OpRayQueryTerminateKHR].operands.push(OperandId, "'RayQuery'");
2768 InstructionDesc[OpRayQueryTerminateKHR].setResultAndType(false, false);
2769
2770 InstructionDesc[OpRayQueryGenerateIntersectionKHR].operands.push(OperandId, "'RayQuery'");
2771 InstructionDesc[OpRayQueryGenerateIntersectionKHR].operands.push(OperandId, "'THit'");
2772 InstructionDesc[OpRayQueryGenerateIntersectionKHR].setResultAndType(false, false);
2773
2774 InstructionDesc[OpRayQueryConfirmIntersectionKHR].operands.push(OperandId, "'RayQuery'");
2775 InstructionDesc[OpRayQueryConfirmIntersectionKHR].setResultAndType(false, false);
2776
2777 InstructionDesc[OpRayQueryProceedKHR].operands.push(OperandId, "'RayQuery'");
2778 InstructionDesc[OpRayQueryProceedKHR].setResultAndType(true, true);
2779
2780 InstructionDesc[OpRayQueryGetIntersectionTypeKHR].operands.push(OperandId, "'RayQuery'");
2781 InstructionDesc[OpRayQueryGetIntersectionTypeKHR].operands.push(OperandId, "'Committed'");
2782 InstructionDesc[OpRayQueryGetIntersectionTypeKHR].setResultAndType(true, true);
2783
2784 InstructionDesc[OpRayQueryGetRayTMinKHR].operands.push(OperandId, "'RayQuery'");
2785 InstructionDesc[OpRayQueryGetRayTMinKHR].setResultAndType(true, true);
2786
2787 InstructionDesc[OpRayQueryGetRayFlagsKHR].operands.push(OperandId, "'RayQuery'");
2788 InstructionDesc[OpRayQueryGetRayFlagsKHR].setResultAndType(true, true);
2789
2790 InstructionDesc[OpRayQueryGetIntersectionTKHR].operands.push(OperandId, "'RayQuery'");
2791 InstructionDesc[OpRayQueryGetIntersectionTKHR].operands.push(OperandId, "'Committed'");
2792 InstructionDesc[OpRayQueryGetIntersectionTKHR].setResultAndType(true, true);
2793
2794 InstructionDesc[OpRayQueryGetIntersectionInstanceCustomIndexKHR].operands.push(OperandId, "'RayQuery'");
2795 InstructionDesc[OpRayQueryGetIntersectionInstanceCustomIndexKHR].operands.push(OperandId, "'Committed'");
2796 InstructionDesc[OpRayQueryGetIntersectionInstanceCustomIndexKHR].setResultAndType(true, true);
2797
2798 InstructionDesc[OpRayQueryGetIntersectionInstanceIdKHR].operands.push(OperandId, "'RayQuery'");
2799 InstructionDesc[OpRayQueryGetIntersectionInstanceIdKHR].operands.push(OperandId, "'Committed'");
2800 InstructionDesc[OpRayQueryGetIntersectionInstanceIdKHR].setResultAndType(true, true);
2801
2802 InstructionDesc[OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR].operands.push(OperandId, "'RayQuery'");
2803 InstructionDesc[OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR].operands.push(OperandId, "'Committed'");
2804 InstructionDesc[OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR].setResultAndType(true, true);
2805
2806 InstructionDesc[OpRayQueryGetIntersectionGeometryIndexKHR].operands.push(OperandId, "'RayQuery'");
2807 InstructionDesc[OpRayQueryGetIntersectionGeometryIndexKHR].operands.push(OperandId, "'Committed'");
2808 InstructionDesc[OpRayQueryGetIntersectionGeometryIndexKHR].setResultAndType(true, true);
2809
2810 InstructionDesc[OpRayQueryGetIntersectionPrimitiveIndexKHR].operands.push(OperandId, "'RayQuery'");
2811 InstructionDesc[OpRayQueryGetIntersectionPrimitiveIndexKHR].operands.push(OperandId, "'Committed'");
2812 InstructionDesc[OpRayQueryGetIntersectionPrimitiveIndexKHR].setResultAndType(true, true);
2813
2814 InstructionDesc[OpRayQueryGetIntersectionBarycentricsKHR].operands.push(OperandId, "'RayQuery'");
2815 InstructionDesc[OpRayQueryGetIntersectionBarycentricsKHR].operands.push(OperandId, "'Committed'");
2816 InstructionDesc[OpRayQueryGetIntersectionBarycentricsKHR].setResultAndType(true, true);
2817
2818 InstructionDesc[OpRayQueryGetIntersectionFrontFaceKHR].operands.push(OperandId, "'RayQuery'");
2819 InstructionDesc[OpRayQueryGetIntersectionFrontFaceKHR].operands.push(OperandId, "'Committed'");
2820 InstructionDesc[OpRayQueryGetIntersectionFrontFaceKHR].setResultAndType(true, true);
2821
2822 InstructionDesc[OpRayQueryGetIntersectionCandidateAABBOpaqueKHR].operands.push(OperandId, "'RayQuery'");
2823 InstructionDesc[OpRayQueryGetIntersectionCandidateAABBOpaqueKHR].setResultAndType(true, true);
2824
2825 InstructionDesc[OpRayQueryGetIntersectionObjectRayDirectionKHR].operands.push(OperandId, "'RayQuery'");
2826 InstructionDesc[OpRayQueryGetIntersectionObjectRayDirectionKHR].operands.push(OperandId, "'Committed'");
2827 InstructionDesc[OpRayQueryGetIntersectionObjectRayDirectionKHR].setResultAndType(true, true);
2828
2829 InstructionDesc[OpRayQueryGetIntersectionObjectRayOriginKHR].operands.push(OperandId, "'RayQuery'");
2830 InstructionDesc[OpRayQueryGetIntersectionObjectRayOriginKHR].operands.push(OperandId, "'Committed'");
2831 InstructionDesc[OpRayQueryGetIntersectionObjectRayOriginKHR].setResultAndType(true, true);
2832
2833 InstructionDesc[OpRayQueryGetWorldRayDirectionKHR].operands.push(OperandId, "'RayQuery'");
2834 InstructionDesc[OpRayQueryGetWorldRayDirectionKHR].setResultAndType(true, true);
2835
2836 InstructionDesc[OpRayQueryGetWorldRayOriginKHR].operands.push(OperandId, "'RayQuery'");
2837 InstructionDesc[OpRayQueryGetWorldRayOriginKHR].setResultAndType(true, true);
2838
2839 InstructionDesc[OpRayQueryGetIntersectionObjectToWorldKHR].operands.push(OperandId, "'RayQuery'");
2840 InstructionDesc[OpRayQueryGetIntersectionObjectToWorldKHR].operands.push(OperandId, "'Committed'");
2841 InstructionDesc[OpRayQueryGetIntersectionObjectToWorldKHR].setResultAndType(true, true);
2842
2843 InstructionDesc[OpRayQueryGetIntersectionWorldToObjectKHR].operands.push(OperandId, "'RayQuery'");
2844 InstructionDesc[OpRayQueryGetIntersectionWorldToObjectKHR].operands.push(OperandId, "'Committed'");
2845 InstructionDesc[OpRayQueryGetIntersectionWorldToObjectKHR].setResultAndType(true, true);
2846
2847 InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandId, "'Sampled Image'");
2848 InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandId, "'Coordinate'");
2849 InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandId, "'Granularity'");
2850 InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandId, "'Coarse'");
2851 InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandImageOperands, "", true);
2852 InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandVariableIds, "", true);
2853
2854 InstructionDesc[OpWritePackedPrimitiveIndices4x8NV].operands.push(OperandId, "'Index Offset'");
2855 InstructionDesc[OpWritePackedPrimitiveIndices4x8NV].operands.push(OperandId, "'Packed Indices'");
2856
2857 InstructionDesc[OpTypeCooperativeMatrixNV].operands.push(OperandId, "'Component Type'");
2858 InstructionDesc[OpTypeCooperativeMatrixNV].operands.push(OperandId, "'Scope'");
2859 InstructionDesc[OpTypeCooperativeMatrixNV].operands.push(OperandId, "'Rows'");
2860 InstructionDesc[OpTypeCooperativeMatrixNV].operands.push(OperandId, "'Columns'");
2861
2862 InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandId, "'Pointer'");
2863 InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandId, "'Stride'");
2864 InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandId, "'Column Major'");
2865 InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandMemoryAccess, "'Memory Access'");
2866 InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandLiteralNumber, "", true);
2867 InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandId, "", true);
2868
2869 InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandId, "'Pointer'");
2870 InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandId, "'Object'");
2871 InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandId, "'Stride'");
2872 InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandId, "'Column Major'");
2873 InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandMemoryAccess, "'Memory Access'");
2874 InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandLiteralNumber, "", true);
2875 InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandId, "", true);
2876
2877 InstructionDesc[OpCooperativeMatrixMulAddNV].operands.push(OperandId, "'A'");
2878 InstructionDesc[OpCooperativeMatrixMulAddNV].operands.push(OperandId, "'B'");
2879 InstructionDesc[OpCooperativeMatrixMulAddNV].operands.push(OperandId, "'C'");
2880
2881 InstructionDesc[OpCooperativeMatrixLengthNV].operands.push(OperandId, "'Type'");
2882
2883 InstructionDesc[OpDemoteToHelperInvocationEXT].setResultAndType(false, false);
2884
2885 InstructionDesc[OpReadClockKHR].operands.push(OperandScope, "'Scope'");
2886 }
2887
2888 }; // end spv namespace
2889