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