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