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