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