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