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