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