doc.cpp 133 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764
  1. //
  2. // Copyright (C) 2014-2015 LunarG, Inc.
  3. //
  4. // All rights reserved.
  5. //
  6. // Redistribution and use in source and binary forms, with or without
  7. // modification, are permitted provided that the following conditions
  8. // are met:
  9. //
  10. // Redistributions of source code must retain the above copyright
  11. // notice, this list of conditions and the following disclaimer.
  12. //
  13. // Redistributions in binary form must reproduce the above
  14. // copyright notice, this list of conditions and the following
  15. // disclaimer in the documentation and/or other materials provided
  16. // with the distribution.
  17. //
  18. // Neither the name of 3Dlabs Inc. Ltd. nor the names of its
  19. // contributors may be used to endorse or promote products derived
  20. // from this software without specific prior written permission.
  21. //
  22. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  23. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  24. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  25. // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  26. // COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  27. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  28. // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  29. // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  30. // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  31. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  32. // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  33. // POSSIBILITY OF SUCH DAMAGE.
  34. //
  35. // 1) Programmatically fill in instruction/operand information.
  36. // This can be used for disassembly, printing documentation, etc.
  37. //
  38. // 2) Print documentation from this parameterization.
  39. //
  40. #include "doc.h"
  41. #include <cstdio>
  42. #include <cstring>
  43. #include <algorithm>
  44. namespace spv {
  45. extern "C" {
  46. // Include C-based headers that don't have a namespace
  47. #include "GLSL.ext.KHR.h"
  48. #include "GLSL.ext.EXT.h"
  49. #include "GLSL.ext.AMD.h"
  50. #include "GLSL.ext.NV.h"
  51. }
  52. }
  53. namespace spv {
  54. //
  55. // Whole set of functions that translate enumerants to their text strings for
  56. // the specification (or their sanitized versions for auto-generating the
  57. // spirv headers.
  58. //
  59. // Also, for masks the ceilings are declared next to these, to help keep them in sync.
  60. // Ceilings should be
  61. // - one more than the maximum value an enumerant takes on, for non-mask enumerants
  62. // (for non-sparse enums, this is the number of enumerants)
  63. // - the number of bits consumed by the set of masks
  64. // (for non-sparse mask enums, this is the number of enumerants)
  65. //
  66. const char* SourceString(int source)
  67. {
  68. switch (source) {
  69. case 0: return "Unknown";
  70. case 1: return "ESSL";
  71. case 2: return "GLSL";
  72. case 3: return "OpenCL_C";
  73. case 4: return "OpenCL_CPP";
  74. case 5: return "HLSL";
  75. default: return "Bad";
  76. }
  77. }
  78. const char* ExecutionModelString(int model)
  79. {
  80. switch (model) {
  81. case 0: return "Vertex";
  82. case 1: return "TessellationControl";
  83. case 2: return "TessellationEvaluation";
  84. case 3: return "Geometry";
  85. case 4: return "Fragment";
  86. case 5: return "GLCompute";
  87. case 6: return "Kernel";
  88. case ExecutionModelTaskNV: return "TaskNV";
  89. case ExecutionModelMeshNV: return "MeshNV";
  90. default: return "Bad";
  91. case ExecutionModelRayGenerationNV: return "RayGenerationNV";
  92. case ExecutionModelIntersectionNV: return "IntersectionNV";
  93. case ExecutionModelAnyHitNV: return "AnyHitNV";
  94. case ExecutionModelClosestHitNV: return "ClosestHitNV";
  95. case ExecutionModelMissNV: return "MissNV";
  96. case ExecutionModelCallableNV: return "CallableNV";
  97. }
  98. }
  99. const char* AddressingString(int addr)
  100. {
  101. switch (addr) {
  102. case 0: return "Logical";
  103. case 1: return "Physical32";
  104. case 2: return "Physical64";
  105. case AddressingModelPhysicalStorageBuffer64EXT: return "PhysicalStorageBuffer64EXT";
  106. default: return "Bad";
  107. }
  108. }
  109. const char* MemoryString(int mem)
  110. {
  111. switch (mem) {
  112. case MemoryModelSimple: return "Simple";
  113. case MemoryModelGLSL450: return "GLSL450";
  114. case MemoryModelOpenCL: return "OpenCL";
  115. case MemoryModelVulkanKHR: return "VulkanKHR";
  116. default: return "Bad";
  117. }
  118. }
  119. const int ExecutionModeCeiling = 33;
  120. const char* ExecutionModeString(int mode)
  121. {
  122. switch (mode) {
  123. case 0: return "Invocations";
  124. case 1: return "SpacingEqual";
  125. case 2: return "SpacingFractionalEven";
  126. case 3: return "SpacingFractionalOdd";
  127. case 4: return "VertexOrderCw";
  128. case 5: return "VertexOrderCcw";
  129. case 6: return "PixelCenterInteger";
  130. case 7: return "OriginUpperLeft";
  131. case 8: return "OriginLowerLeft";
  132. case 9: return "EarlyFragmentTests";
  133. case 10: return "PointMode";
  134. case 11: return "Xfb";
  135. case 12: return "DepthReplacing";
  136. case 13: return "Bad";
  137. case 14: return "DepthGreater";
  138. case 15: return "DepthLess";
  139. case 16: return "DepthUnchanged";
  140. case 17: return "LocalSize";
  141. case 18: return "LocalSizeHint";
  142. case 19: return "InputPoints";
  143. case 20: return "InputLines";
  144. case 21: return "InputLinesAdjacency";
  145. case 22: return "Triangles";
  146. case 23: return "InputTrianglesAdjacency";
  147. case 24: return "Quads";
  148. case 25: return "Isolines";
  149. case 26: return "OutputVertices";
  150. case 27: return "OutputPoints";
  151. case 28: return "OutputLineStrip";
  152. case 29: return "OutputTriangleStrip";
  153. case 30: return "VecTypeHint";
  154. case 31: return "ContractionOff";
  155. case 32: return "Bad";
  156. case 4446: return "PostDepthCoverage";
  157. case ExecutionModeOutputLinesNV: return "OutputLinesNV";
  158. case ExecutionModeOutputPrimitivesNV: return "OutputPrimitivesNV";
  159. case ExecutionModeOutputTrianglesNV: return "OutputTrianglesNV";
  160. case ExecutionModeDerivativeGroupQuadsNV: return "DerivativeGroupQuadsNV";
  161. case ExecutionModeDerivativeGroupLinearNV: return "DerivativeGroupLinearNV";
  162. case ExecutionModePixelInterlockOrderedEXT: return "PixelInterlockOrderedEXT";
  163. case ExecutionModePixelInterlockUnorderedEXT: return "PixelInterlockUnorderedEXT";
  164. case ExecutionModeSampleInterlockOrderedEXT: return "SampleInterlockOrderedEXT";
  165. case ExecutionModeSampleInterlockUnorderedEXT: return "SampleInterlockUnorderedEXT";
  166. case ExecutionModeShadingRateInterlockOrderedEXT: return "ShadingRateInterlockOrderedEXT";
  167. case ExecutionModeShadingRateInterlockUnorderedEXT: return "ShadingRateInterlockUnorderedEXT";
  168. case ExecutionModeCeiling:
  169. default: return "Bad";
  170. }
  171. }
  172. const char* StorageClassString(int StorageClass)
  173. {
  174. switch (StorageClass) {
  175. case 0: return "UniformConstant";
  176. case 1: return "Input";
  177. case 2: return "Uniform";
  178. case 3: return "Output";
  179. case 4: return "Workgroup";
  180. case 5: return "CrossWorkgroup";
  181. case 6: return "Private";
  182. case 7: return "Function";
  183. case 8: return "Generic";
  184. case 9: return "PushConstant";
  185. case 10: return "AtomicCounter";
  186. case 11: return "Image";
  187. case 12: return "StorageBuffer";
  188. case StorageClassRayPayloadNV: return "RayPayloadNV";
  189. case StorageClassHitAttributeNV: return "HitAttributeNV";
  190. case StorageClassIncomingRayPayloadNV: return "IncomingRayPayloadNV";
  191. case StorageClassShaderRecordBufferNV: return "ShaderRecordBufferNV";
  192. case StorageClassCallableDataNV: return "CallableDataNV";
  193. case StorageClassIncomingCallableDataNV: return "IncomingCallableDataNV";
  194. case StorageClassPhysicalStorageBufferEXT: return "PhysicalStorageBufferEXT";
  195. default: return "Bad";
  196. }
  197. }
  198. const int DecorationCeiling = 45;
  199. const char* DecorationString(int decoration)
  200. {
  201. switch (decoration) {
  202. case 0: return "RelaxedPrecision";
  203. case 1: return "SpecId";
  204. case 2: return "Block";
  205. case 3: return "BufferBlock";
  206. case 4: return "RowMajor";
  207. case 5: return "ColMajor";
  208. case 6: return "ArrayStride";
  209. case 7: return "MatrixStride";
  210. case 8: return "GLSLShared";
  211. case 9: return "GLSLPacked";
  212. case 10: return "CPacked";
  213. case 11: return "BuiltIn";
  214. case 12: return "Bad";
  215. case 13: return "NoPerspective";
  216. case 14: return "Flat";
  217. case 15: return "Patch";
  218. case 16: return "Centroid";
  219. case 17: return "Sample";
  220. case 18: return "Invariant";
  221. case 19: return "Restrict";
  222. case 20: return "Aliased";
  223. case 21: return "Volatile";
  224. case 22: return "Constant";
  225. case 23: return "Coherent";
  226. case 24: return "NonWritable";
  227. case 25: return "NonReadable";
  228. case 26: return "Uniform";
  229. case 27: return "Bad";
  230. case 28: return "SaturatedConversion";
  231. case 29: return "Stream";
  232. case 30: return "Location";
  233. case 31: return "Component";
  234. case 32: return "Index";
  235. case 33: return "Binding";
  236. case 34: return "DescriptorSet";
  237. case 35: return "Offset";
  238. case 36: return "XfbBuffer";
  239. case 37: return "XfbStride";
  240. case 38: return "FuncParamAttr";
  241. case 39: return "FP Rounding Mode";
  242. case 40: return "FP Fast Math Mode";
  243. case 41: return "Linkage Attributes";
  244. case 42: return "NoContraction";
  245. case 43: return "InputAttachmentIndex";
  246. case 44: return "Alignment";
  247. case DecorationCeiling:
  248. default: return "Bad";
  249. case DecorationExplicitInterpAMD: return "ExplicitInterpAMD";
  250. case DecorationOverrideCoverageNV: return "OverrideCoverageNV";
  251. case DecorationPassthroughNV: return "PassthroughNV";
  252. case DecorationViewportRelativeNV: return "ViewportRelativeNV";
  253. case DecorationSecondaryViewportRelativeNV: return "SecondaryViewportRelativeNV";
  254. case DecorationPerPrimitiveNV: return "PerPrimitiveNV";
  255. case DecorationPerViewNV: return "PerViewNV";
  256. case DecorationPerTaskNV: return "PerTaskNV";
  257. case DecorationPerVertexNV: return "PerVertexNV";
  258. case DecorationNonUniformEXT: return "DecorationNonUniformEXT";
  259. case DecorationHlslCounterBufferGOOGLE: return "DecorationHlslCounterBufferGOOGLE";
  260. case DecorationHlslSemanticGOOGLE: return "DecorationHlslSemanticGOOGLE";
  261. case DecorationRestrictPointerEXT: return "DecorationRestrictPointerEXT";
  262. case DecorationAliasedPointerEXT: return "DecorationAliasedPointerEXT";
  263. }
  264. }
  265. const char* BuiltInString(int builtIn)
  266. {
  267. switch (builtIn) {
  268. case 0: return "Position";
  269. case 1: return "PointSize";
  270. case 2: return "Bad";
  271. case 3: return "ClipDistance";
  272. case 4: return "CullDistance";
  273. case 5: return "VertexId";
  274. case 6: return "InstanceId";
  275. case 7: return "PrimitiveId";
  276. case 8: return "InvocationId";
  277. case 9: return "Layer";
  278. case 10: return "ViewportIndex";
  279. case 11: return "TessLevelOuter";
  280. case 12: return "TessLevelInner";
  281. case 13: return "TessCoord";
  282. case 14: return "PatchVertices";
  283. case 15: return "FragCoord";
  284. case 16: return "PointCoord";
  285. case 17: return "FrontFacing";
  286. case 18: return "SampleId";
  287. case 19: return "SamplePosition";
  288. case 20: return "SampleMask";
  289. case 21: return "Bad";
  290. case 22: return "FragDepth";
  291. case 23: return "HelperInvocation";
  292. case 24: return "NumWorkgroups";
  293. case 25: return "WorkgroupSize";
  294. case 26: return "WorkgroupId";
  295. case 27: return "LocalInvocationId";
  296. case 28: return "GlobalInvocationId";
  297. case 29: return "LocalInvocationIndex";
  298. case 30: return "WorkDim";
  299. case 31: return "GlobalSize";
  300. case 32: return "EnqueuedWorkgroupSize";
  301. case 33: return "GlobalOffset";
  302. case 34: return "GlobalLinearId";
  303. case 35: return "Bad";
  304. case 36: return "SubgroupSize";
  305. case 37: return "SubgroupMaxSize";
  306. case 38: return "NumSubgroups";
  307. case 39: return "NumEnqueuedSubgroups";
  308. case 40: return "SubgroupId";
  309. case 41: return "SubgroupLocalInvocationId";
  310. case 42: return "VertexIndex"; // TBD: put next to VertexId?
  311. case 43: return "InstanceIndex"; // TBD: put next to InstanceId?
  312. case 4416: return "SubgroupEqMaskKHR";
  313. case 4417: return "SubgroupGeMaskKHR";
  314. case 4418: return "SubgroupGtMaskKHR";
  315. case 4419: return "SubgroupLeMaskKHR";
  316. case 4420: return "SubgroupLtMaskKHR";
  317. case 4438: return "DeviceIndex";
  318. case 4440: return "ViewIndex";
  319. case 4424: return "BaseVertex";
  320. case 4425: return "BaseInstance";
  321. case 4426: return "DrawIndex";
  322. case 5014: return "FragStencilRefEXT";
  323. case 4992: return "BaryCoordNoPerspAMD";
  324. case 4993: return "BaryCoordNoPerspCentroidAMD";
  325. case 4994: return "BaryCoordNoPerspSampleAMD";
  326. case 4995: return "BaryCoordSmoothAMD";
  327. case 4996: return "BaryCoordSmoothCentroidAMD";
  328. case 4997: return "BaryCoordSmoothSampleAMD";
  329. case 4998: return "BaryCoordPullModelAMD";
  330. case BuiltInLaunchIdNV: return "LaunchIdNV";
  331. case BuiltInLaunchSizeNV: return "LaunchSizeNV";
  332. case BuiltInWorldRayOriginNV: return "WorldRayOriginNV";
  333. case BuiltInWorldRayDirectionNV: return "WorldRayDirectionNV";
  334. case BuiltInObjectRayOriginNV: return "ObjectRayOriginNV";
  335. case BuiltInObjectRayDirectionNV: return "ObjectRayDirectionNV";
  336. case BuiltInRayTminNV: return "RayTminNV";
  337. case BuiltInRayTmaxNV: return "RayTmaxNV";
  338. case BuiltInInstanceCustomIndexNV: return "InstanceCustomIndexNV";
  339. case BuiltInObjectToWorldNV: return "ObjectToWorldNV";
  340. case BuiltInWorldToObjectNV: return "WorldToObjectNV";
  341. case BuiltInHitTNV: return "HitTNV";
  342. case BuiltInHitKindNV: return "HitKindNV";
  343. case BuiltInIncomingRayFlagsNV: return "IncomingRayFlagsNV";
  344. case BuiltInViewportMaskNV: return "ViewportMaskNV";
  345. case BuiltInSecondaryPositionNV: return "SecondaryPositionNV";
  346. case BuiltInSecondaryViewportMaskNV: return "SecondaryViewportMaskNV";
  347. case BuiltInPositionPerViewNV: return "PositionPerViewNV";
  348. case BuiltInViewportMaskPerViewNV: return "ViewportMaskPerViewNV";
  349. // case BuiltInFragmentSizeNV: return "FragmentSizeNV"; // superseded by BuiltInFragSizeEXT
  350. // case BuiltInInvocationsPerPixelNV: return "InvocationsPerPixelNV"; // superseded by BuiltInFragInvocationCountEXT
  351. case BuiltInBaryCoordNV: return "BaryCoordNV";
  352. case BuiltInBaryCoordNoPerspNV: return "BaryCoordNoPerspNV";
  353. case BuiltInFragSizeEXT: return "FragSizeEXT";
  354. case BuiltInFragInvocationCountEXT: return "FragInvocationCountEXT";
  355. case 5264: return "FullyCoveredEXT";
  356. case BuiltInTaskCountNV: return "TaskCountNV";
  357. case BuiltInPrimitiveCountNV: return "PrimitiveCountNV";
  358. case BuiltInPrimitiveIndicesNV: return "PrimitiveIndicesNV";
  359. case BuiltInClipDistancePerViewNV: return "ClipDistancePerViewNV";
  360. case BuiltInCullDistancePerViewNV: return "CullDistancePerViewNV";
  361. case BuiltInLayerPerViewNV: return "LayerPerViewNV";
  362. case BuiltInMeshViewCountNV: return "MeshViewCountNV";
  363. case BuiltInMeshViewIndicesNV: return "MeshViewIndicesNV";
  364. case BuiltInWarpsPerSMNV: return "WarpsPerSMNV";
  365. case BuiltInSMCountNV: return "SMCountNV";
  366. case BuiltInWarpIDNV: return "WarpIDNV";
  367. case BuiltInSMIDNV: return "SMIDNV";
  368. default: return "Bad";
  369. }
  370. }
  371. const char* DimensionString(int dim)
  372. {
  373. switch (dim) {
  374. case 0: return "1D";
  375. case 1: return "2D";
  376. case 2: return "3D";
  377. case 3: return "Cube";
  378. case 4: return "Rect";
  379. case 5: return "Buffer";
  380. case 6: return "SubpassData";
  381. default: return "Bad";
  382. }
  383. }
  384. const char* SamplerAddressingModeString(int mode)
  385. {
  386. switch (mode) {
  387. case 0: return "None";
  388. case 1: return "ClampToEdge";
  389. case 2: return "Clamp";
  390. case 3: return "Repeat";
  391. case 4: return "RepeatMirrored";
  392. default: return "Bad";
  393. }
  394. }
  395. const char* SamplerFilterModeString(int mode)
  396. {
  397. switch (mode) {
  398. case 0: return "Nearest";
  399. case 1: return "Linear";
  400. default: return "Bad";
  401. }
  402. }
  403. const char* ImageFormatString(int format)
  404. {
  405. switch (format) {
  406. case 0: return "Unknown";
  407. // ES/Desktop float
  408. case 1: return "Rgba32f";
  409. case 2: return "Rgba16f";
  410. case 3: return "R32f";
  411. case 4: return "Rgba8";
  412. case 5: return "Rgba8Snorm";
  413. // Desktop float
  414. case 6: return "Rg32f";
  415. case 7: return "Rg16f";
  416. case 8: return "R11fG11fB10f";
  417. case 9: return "R16f";
  418. case 10: return "Rgba16";
  419. case 11: return "Rgb10A2";
  420. case 12: return "Rg16";
  421. case 13: return "Rg8";
  422. case 14: return "R16";
  423. case 15: return "R8";
  424. case 16: return "Rgba16Snorm";
  425. case 17: return "Rg16Snorm";
  426. case 18: return "Rg8Snorm";
  427. case 19: return "R16Snorm";
  428. case 20: return "R8Snorm";
  429. // ES/Desktop int
  430. case 21: return "Rgba32i";
  431. case 22: return "Rgba16i";
  432. case 23: return "Rgba8i";
  433. case 24: return "R32i";
  434. // Desktop int
  435. case 25: return "Rg32i";
  436. case 26: return "Rg16i";
  437. case 27: return "Rg8i";
  438. case 28: return "R16i";
  439. case 29: return "R8i";
  440. // ES/Desktop uint
  441. case 30: return "Rgba32ui";
  442. case 31: return "Rgba16ui";
  443. case 32: return "Rgba8ui";
  444. case 33: return "R32ui";
  445. // Desktop uint
  446. case 34: return "Rgb10a2ui";
  447. case 35: return "Rg32ui";
  448. case 36: return "Rg16ui";
  449. case 37: return "Rg8ui";
  450. case 38: return "R16ui";
  451. case 39: return "R8ui";
  452. default:
  453. return "Bad";
  454. }
  455. }
  456. const char* ImageChannelOrderString(int format)
  457. {
  458. switch (format) {
  459. case 0: return "R";
  460. case 1: return "A";
  461. case 2: return "RG";
  462. case 3: return "RA";
  463. case 4: return "RGB";
  464. case 5: return "RGBA";
  465. case 6: return "BGRA";
  466. case 7: return "ARGB";
  467. case 8: return "Intensity";
  468. case 9: return "Luminance";
  469. case 10: return "Rx";
  470. case 11: return "RGx";
  471. case 12: return "RGBx";
  472. case 13: return "Depth";
  473. case 14: return "DepthStencil";
  474. case 15: return "sRGB";
  475. case 16: return "sRGBx";
  476. case 17: return "sRGBA";
  477. case 18: return "sBGRA";
  478. default:
  479. return "Bad";
  480. }
  481. }
  482. const char* ImageChannelDataTypeString(int type)
  483. {
  484. switch (type)
  485. {
  486. case 0: return "SnormInt8";
  487. case 1: return "SnormInt16";
  488. case 2: return "UnormInt8";
  489. case 3: return "UnormInt16";
  490. case 4: return "UnormShort565";
  491. case 5: return "UnormShort555";
  492. case 6: return "UnormInt101010";
  493. case 7: return "SignedInt8";
  494. case 8: return "SignedInt16";
  495. case 9: return "SignedInt32";
  496. case 10: return "UnsignedInt8";
  497. case 11: return "UnsignedInt16";
  498. case 12: return "UnsignedInt32";
  499. case 13: return "HalfFloat";
  500. case 14: return "Float";
  501. case 15: return "UnormInt24";
  502. case 16: return "UnormInt101010_2";
  503. default:
  504. return "Bad";
  505. }
  506. }
  507. const int ImageOperandsCeiling = 14;
  508. const char* ImageOperandsString(int format)
  509. {
  510. switch (format) {
  511. case ImageOperandsBiasShift: return "Bias";
  512. case ImageOperandsLodShift: return "Lod";
  513. case ImageOperandsGradShift: return "Grad";
  514. case ImageOperandsConstOffsetShift: return "ConstOffset";
  515. case ImageOperandsOffsetShift: return "Offset";
  516. case ImageOperandsConstOffsetsShift: return "ConstOffsets";
  517. case ImageOperandsSampleShift: return "Sample";
  518. case ImageOperandsMinLodShift: return "MinLod";
  519. case ImageOperandsMakeTexelAvailableKHRShift: return "MakeTexelAvailableKHR";
  520. case ImageOperandsMakeTexelVisibleKHRShift: return "MakeTexelVisibleKHR";
  521. case ImageOperandsNonPrivateTexelKHRShift: return "NonPrivateTexelKHR";
  522. case ImageOperandsVolatileTexelKHRShift: return "VolatileTexelKHR";
  523. case ImageOperandsSignExtendShift: return "SignExtend";
  524. case ImageOperandsZeroExtendShift: return "ZeroExtend";
  525. case ImageOperandsCeiling:
  526. default:
  527. return "Bad";
  528. }
  529. }
  530. const char* FPFastMathString(int mode)
  531. {
  532. switch (mode) {
  533. case 0: return "NotNaN";
  534. case 1: return "NotInf";
  535. case 2: return "NSZ";
  536. case 3: return "AllowRecip";
  537. case 4: return "Fast";
  538. default: return "Bad";
  539. }
  540. }
  541. const char* FPRoundingModeString(int mode)
  542. {
  543. switch (mode) {
  544. case 0: return "RTE";
  545. case 1: return "RTZ";
  546. case 2: return "RTP";
  547. case 3: return "RTN";
  548. default: return "Bad";
  549. }
  550. }
  551. const char* LinkageTypeString(int type)
  552. {
  553. switch (type) {
  554. case 0: return "Export";
  555. case 1: return "Import";
  556. default: return "Bad";
  557. }
  558. }
  559. const char* FuncParamAttrString(int attr)
  560. {
  561. switch (attr) {
  562. case 0: return "Zext";
  563. case 1: return "Sext";
  564. case 2: return "ByVal";
  565. case 3: return "Sret";
  566. case 4: return "NoAlias";
  567. case 5: return "NoCapture";
  568. case 6: return "NoWrite";
  569. case 7: return "NoReadWrite";
  570. default: return "Bad";
  571. }
  572. }
  573. const char* AccessQualifierString(int attr)
  574. {
  575. switch (attr) {
  576. case 0: return "ReadOnly";
  577. case 1: return "WriteOnly";
  578. case 2: return "ReadWrite";
  579. default: return "Bad";
  580. }
  581. }
  582. const int SelectControlCeiling = 2;
  583. const char* SelectControlString(int cont)
  584. {
  585. switch (cont) {
  586. case 0: return "Flatten";
  587. case 1: return "DontFlatten";
  588. case SelectControlCeiling:
  589. default: return "Bad";
  590. }
  591. }
  592. const int LoopControlCeiling = LoopControlPartialCountShift + 1;
  593. const char* LoopControlString(int cont)
  594. {
  595. switch (cont) {
  596. case LoopControlUnrollShift: return "Unroll";
  597. case LoopControlDontUnrollShift: return "DontUnroll";
  598. case LoopControlDependencyInfiniteShift: return "DependencyInfinite";
  599. case LoopControlDependencyLengthShift: return "DependencyLength";
  600. case LoopControlMinIterationsShift: return "MinIterations";
  601. case LoopControlMaxIterationsShift: return "MaxIterations";
  602. case LoopControlIterationMultipleShift: return "IterationMultiple";
  603. case LoopControlPeelCountShift: return "PeelCount";
  604. case LoopControlPartialCountShift: return "PartialCount";
  605. case LoopControlCeiling:
  606. default: return "Bad";
  607. }
  608. }
  609. const int FunctionControlCeiling = 4;
  610. const char* FunctionControlString(int cont)
  611. {
  612. switch (cont) {
  613. case 0: return "Inline";
  614. case 1: return "DontInline";
  615. case 2: return "Pure";
  616. case 3: return "Const";
  617. case FunctionControlCeiling:
  618. default: return "Bad";
  619. }
  620. }
  621. const char* MemorySemanticsString(int mem)
  622. {
  623. // Note: No bits set (None) means "Relaxed"
  624. switch (mem) {
  625. case 0: return "Bad"; // Note: this is a placeholder for 'Consume'
  626. case 1: return "Acquire";
  627. case 2: return "Release";
  628. case 3: return "AcquireRelease";
  629. case 4: return "SequentiallyConsistent";
  630. case 5: return "Bad"; // Note: reserved for future expansion
  631. case 6: return "UniformMemory";
  632. case 7: return "SubgroupMemory";
  633. case 8: return "WorkgroupMemory";
  634. case 9: return "CrossWorkgroupMemory";
  635. case 10: return "AtomicCounterMemory";
  636. case 11: return "ImageMemory";
  637. default: return "Bad";
  638. }
  639. }
  640. const int MemoryAccessCeiling = 6;
  641. const char* MemoryAccessString(int mem)
  642. {
  643. switch (mem) {
  644. case MemoryAccessVolatileShift: return "Volatile";
  645. case MemoryAccessAlignedShift: return "Aligned";
  646. case MemoryAccessNontemporalShift: return "Nontemporal";
  647. case MemoryAccessMakePointerAvailableKHRShift: return "MakePointerAvailableKHR";
  648. case MemoryAccessMakePointerVisibleKHRShift: return "MakePointerVisibleKHR";
  649. case MemoryAccessNonPrivatePointerKHRShift: return "NonPrivatePointerKHR";
  650. default: return "Bad";
  651. }
  652. }
  653. const char* ScopeString(int mem)
  654. {
  655. switch (mem) {
  656. case 0: return "CrossDevice";
  657. case 1: return "Device";
  658. case 2: return "Workgroup";
  659. case 3: return "Subgroup";
  660. case 4: return "Invocation";
  661. default: return "Bad";
  662. }
  663. }
  664. const char* GroupOperationString(int gop)
  665. {
  666. switch (gop)
  667. {
  668. case GroupOperationReduce: return "Reduce";
  669. case GroupOperationInclusiveScan: return "InclusiveScan";
  670. case GroupOperationExclusiveScan: return "ExclusiveScan";
  671. case GroupOperationClusteredReduce: return "ClusteredReduce";
  672. case GroupOperationPartitionedReduceNV: return "PartitionedReduceNV";
  673. case GroupOperationPartitionedInclusiveScanNV: return "PartitionedInclusiveScanNV";
  674. case GroupOperationPartitionedExclusiveScanNV: return "PartitionedExclusiveScanNV";
  675. default: return "Bad";
  676. }
  677. }
  678. const char* KernelEnqueueFlagsString(int flag)
  679. {
  680. switch (flag)
  681. {
  682. case 0: return "NoWait";
  683. case 1: return "WaitKernel";
  684. case 2: return "WaitWorkGroup";
  685. default: return "Bad";
  686. }
  687. }
  688. const char* KernelProfilingInfoString(int info)
  689. {
  690. switch (info)
  691. {
  692. case 0: return "CmdExecTime";
  693. default: return "Bad";
  694. }
  695. }
  696. const char* CapabilityString(int info)
  697. {
  698. switch (info)
  699. {
  700. case 0: return "Matrix";
  701. case 1: return "Shader";
  702. case 2: return "Geometry";
  703. case 3: return "Tessellation";
  704. case 4: return "Addresses";
  705. case 5: return "Linkage";
  706. case 6: return "Kernel";
  707. case 7: return "Vector16";
  708. case 8: return "Float16Buffer";
  709. case 9: return "Float16";
  710. case 10: return "Float64";
  711. case 11: return "Int64";
  712. case 12: return "Int64Atomics";
  713. case 13: return "ImageBasic";
  714. case 14: return "ImageReadWrite";
  715. case 15: return "ImageMipmap";
  716. case 16: return "Bad";
  717. case 17: return "Pipes";
  718. case 18: return "Groups";
  719. case 19: return "DeviceEnqueue";
  720. case 20: return "LiteralSampler";
  721. case 21: return "AtomicStorage";
  722. case 22: return "Int16";
  723. case 23: return "TessellationPointSize";
  724. case 24: return "GeometryPointSize";
  725. case 25: return "ImageGatherExtended";
  726. case 26: return "Bad";
  727. case 27: return "StorageImageMultisample";
  728. case 28: return "UniformBufferArrayDynamicIndexing";
  729. case 29: return "SampledImageArrayDynamicIndexing";
  730. case 30: return "StorageBufferArrayDynamicIndexing";
  731. case 31: return "StorageImageArrayDynamicIndexing";
  732. case 32: return "ClipDistance";
  733. case 33: return "CullDistance";
  734. case 34: return "ImageCubeArray";
  735. case 35: return "SampleRateShading";
  736. case 36: return "ImageRect";
  737. case 37: return "SampledRect";
  738. case 38: return "GenericPointer";
  739. case 39: return "Int8";
  740. case 40: return "InputAttachment";
  741. case 41: return "SparseResidency";
  742. case 42: return "MinLod";
  743. case 43: return "Sampled1D";
  744. case 44: return "Image1D";
  745. case 45: return "SampledCubeArray";
  746. case 46: return "SampledBuffer";
  747. case 47: return "ImageBuffer";
  748. case 48: return "ImageMSArray";
  749. case 49: return "StorageImageExtendedFormats";
  750. case 50: return "ImageQuery";
  751. case 51: return "DerivativeControl";
  752. case 52: return "InterpolationFunction";
  753. case 53: return "TransformFeedback";
  754. case 54: return "GeometryStreams";
  755. case 55: return "StorageImageReadWithoutFormat";
  756. case 56: return "StorageImageWriteWithoutFormat";
  757. case 57: return "MultiViewport";
  758. case 61: return "GroupNonUniform";
  759. case 62: return "GroupNonUniformVote";
  760. case 63: return "GroupNonUniformArithmetic";
  761. case 64: return "GroupNonUniformBallot";
  762. case 65: return "GroupNonUniformShuffle";
  763. case 66: return "GroupNonUniformShuffleRelative";
  764. case 67: return "GroupNonUniformClustered";
  765. case 68: return "GroupNonUniformQuad";
  766. case CapabilitySubgroupBallotKHR: return "SubgroupBallotKHR";
  767. case CapabilityDrawParameters: return "DrawParameters";
  768. case CapabilitySubgroupVoteKHR: return "SubgroupVoteKHR";
  769. case CapabilityStorageUniformBufferBlock16: return "StorageUniformBufferBlock16";
  770. case CapabilityStorageUniform16: return "StorageUniform16";
  771. case CapabilityStoragePushConstant16: return "StoragePushConstant16";
  772. case CapabilityStorageInputOutput16: return "StorageInputOutput16";
  773. case CapabilityStorageBuffer8BitAccess: return "StorageBuffer8BitAccess";
  774. case CapabilityUniformAndStorageBuffer8BitAccess: return "UniformAndStorageBuffer8BitAccess";
  775. case CapabilityStoragePushConstant8: return "StoragePushConstant8";
  776. case CapabilityDeviceGroup: return "DeviceGroup";
  777. case CapabilityMultiView: return "MultiView";
  778. case CapabilityStencilExportEXT: return "StencilExportEXT";
  779. case CapabilityFloat16ImageAMD: return "Float16ImageAMD";
  780. case CapabilityImageGatherBiasLodAMD: return "ImageGatherBiasLodAMD";
  781. case CapabilityFragmentMaskAMD: return "FragmentMaskAMD";
  782. case CapabilityImageReadWriteLodAMD: return "ImageReadWriteLodAMD";
  783. case CapabilityAtomicStorageOps: return "AtomicStorageOps";
  784. case CapabilitySampleMaskPostDepthCoverage: return "SampleMaskPostDepthCoverage";
  785. case CapabilityGeometryShaderPassthroughNV: return "GeometryShaderPassthroughNV";
  786. case CapabilityShaderViewportIndexLayerNV: return "ShaderViewportIndexLayerNV";
  787. case CapabilityShaderViewportMaskNV: return "ShaderViewportMaskNV";
  788. case CapabilityShaderStereoViewNV: return "ShaderStereoViewNV";
  789. case CapabilityPerViewAttributesNV: return "PerViewAttributesNV";
  790. case CapabilityGroupNonUniformPartitionedNV: return "GroupNonUniformPartitionedNV";
  791. case CapabilityRayTracingNV: return "RayTracingNV";
  792. case CapabilityComputeDerivativeGroupQuadsNV: return "ComputeDerivativeGroupQuadsNV";
  793. case CapabilityComputeDerivativeGroupLinearNV: return "ComputeDerivativeGroupLinearNV";
  794. case CapabilityFragmentBarycentricNV: return "FragmentBarycentricNV";
  795. case CapabilityMeshShadingNV: return "MeshShadingNV";
  796. case CapabilityImageFootprintNV: return "ImageFootprintNV";
  797. // case CapabilityShadingRateNV: return "ShadingRateNV"; // superseded by FragmentDensityEXT
  798. case CapabilitySampleMaskOverrideCoverageNV: return "SampleMaskOverrideCoverageNV";
  799. case CapabilityFragmentDensityEXT: return "FragmentDensityEXT";
  800. case CapabilityFragmentFullyCoveredEXT: return "FragmentFullyCoveredEXT";
  801. case CapabilityShaderNonUniformEXT: return "ShaderNonUniformEXT";
  802. case CapabilityRuntimeDescriptorArrayEXT: return "RuntimeDescriptorArrayEXT";
  803. case CapabilityInputAttachmentArrayDynamicIndexingEXT: return "InputAttachmentArrayDynamicIndexingEXT";
  804. case CapabilityUniformTexelBufferArrayDynamicIndexingEXT: return "UniformTexelBufferArrayDynamicIndexingEXT";
  805. case CapabilityStorageTexelBufferArrayDynamicIndexingEXT: return "StorageTexelBufferArrayDynamicIndexingEXT";
  806. case CapabilityUniformBufferArrayNonUniformIndexingEXT: return "UniformBufferArrayNonUniformIndexingEXT";
  807. case CapabilitySampledImageArrayNonUniformIndexingEXT: return "SampledImageArrayNonUniformIndexingEXT";
  808. case CapabilityStorageBufferArrayNonUniformIndexingEXT: return "StorageBufferArrayNonUniformIndexingEXT";
  809. case CapabilityStorageImageArrayNonUniformIndexingEXT: return "StorageImageArrayNonUniformIndexingEXT";
  810. case CapabilityInputAttachmentArrayNonUniformIndexingEXT: return "InputAttachmentArrayNonUniformIndexingEXT";
  811. case CapabilityUniformTexelBufferArrayNonUniformIndexingEXT: return "UniformTexelBufferArrayNonUniformIndexingEXT";
  812. case CapabilityStorageTexelBufferArrayNonUniformIndexingEXT: return "StorageTexelBufferArrayNonUniformIndexingEXT";
  813. case CapabilityVulkanMemoryModelKHR: return "VulkanMemoryModelKHR";
  814. case CapabilityVulkanMemoryModelDeviceScopeKHR: return "VulkanMemoryModelDeviceScopeKHR";
  815. case CapabilityPhysicalStorageBufferAddressesEXT: return "PhysicalStorageBufferAddressesEXT";
  816. case CapabilityVariablePointers: return "VariablePointers";
  817. case CapabilityCooperativeMatrixNV: return "CooperativeMatrixNV";
  818. case CapabilityShaderSMBuiltinsNV: return "ShaderSMBuiltinsNV";
  819. case CapabilityFragmentShaderSampleInterlockEXT: return "CapabilityFragmentShaderSampleInterlockEXT";
  820. case CapabilityFragmentShaderPixelInterlockEXT: return "CapabilityFragmentShaderPixelInterlockEXT";
  821. case CapabilityFragmentShaderShadingRateInterlockEXT: return "CapabilityFragmentShaderShadingRateInterlockEXT";
  822. case CapabilityDemoteToHelperInvocationEXT: return "DemoteToHelperInvocationEXT";
  823. case CapabilityShaderClockKHR: return "ShaderClockKHR";
  824. case CapabilityIntegerFunctions2INTEL: return "CapabilityIntegerFunctions2INTEL";
  825. default: return "Bad";
  826. }
  827. }
  828. const char* OpcodeString(int op)
  829. {
  830. switch (op) {
  831. case 0: return "OpNop";
  832. case 1: return "OpUndef";
  833. case 2: return "OpSourceContinued";
  834. case 3: return "OpSource";
  835. case 4: return "OpSourceExtension";
  836. case 5: return "OpName";
  837. case 6: return "OpMemberName";
  838. case 7: return "OpString";
  839. case 8: return "OpLine";
  840. case 9: return "Bad";
  841. case 10: return "OpExtension";
  842. case 11: return "OpExtInstImport";
  843. case 12: return "OpExtInst";
  844. case 13: return "Bad";
  845. case 14: return "OpMemoryModel";
  846. case 15: return "OpEntryPoint";
  847. case 16: return "OpExecutionMode";
  848. case 17: return "OpCapability";
  849. case 18: return "Bad";
  850. case 19: return "OpTypeVoid";
  851. case 20: return "OpTypeBool";
  852. case 21: return "OpTypeInt";
  853. case 22: return "OpTypeFloat";
  854. case 23: return "OpTypeVector";
  855. case 24: return "OpTypeMatrix";
  856. case 25: return "OpTypeImage";
  857. case 26: return "OpTypeSampler";
  858. case 27: return "OpTypeSampledImage";
  859. case 28: return "OpTypeArray";
  860. case 29: return "OpTypeRuntimeArray";
  861. case 30: return "OpTypeStruct";
  862. case 31: return "OpTypeOpaque";
  863. case 32: return "OpTypePointer";
  864. case 33: return "OpTypeFunction";
  865. case 34: return "OpTypeEvent";
  866. case 35: return "OpTypeDeviceEvent";
  867. case 36: return "OpTypeReserveId";
  868. case 37: return "OpTypeQueue";
  869. case 38: return "OpTypePipe";
  870. case 39: return "OpTypeForwardPointer";
  871. case 40: return "Bad";
  872. case 41: return "OpConstantTrue";
  873. case 42: return "OpConstantFalse";
  874. case 43: return "OpConstant";
  875. case 44: return "OpConstantComposite";
  876. case 45: return "OpConstantSampler";
  877. case 46: return "OpConstantNull";
  878. case 47: return "Bad";
  879. case 48: return "OpSpecConstantTrue";
  880. case 49: return "OpSpecConstantFalse";
  881. case 50: return "OpSpecConstant";
  882. case 51: return "OpSpecConstantComposite";
  883. case 52: return "OpSpecConstantOp";
  884. case 53: return "Bad";
  885. case 54: return "OpFunction";
  886. case 55: return "OpFunctionParameter";
  887. case 56: return "OpFunctionEnd";
  888. case 57: return "OpFunctionCall";
  889. case 58: return "Bad";
  890. case 59: return "OpVariable";
  891. case 60: return "OpImageTexelPointer";
  892. case 61: return "OpLoad";
  893. case 62: return "OpStore";
  894. case 63: return "OpCopyMemory";
  895. case 64: return "OpCopyMemorySized";
  896. case 65: return "OpAccessChain";
  897. case 66: return "OpInBoundsAccessChain";
  898. case 67: return "OpPtrAccessChain";
  899. case 68: return "OpArrayLength";
  900. case 69: return "OpGenericPtrMemSemantics";
  901. case 70: return "OpInBoundsPtrAccessChain";
  902. case 71: return "OpDecorate";
  903. case 72: return "OpMemberDecorate";
  904. case 73: return "OpDecorationGroup";
  905. case 74: return "OpGroupDecorate";
  906. case 75: return "OpGroupMemberDecorate";
  907. case 76: return "Bad";
  908. case 77: return "OpVectorExtractDynamic";
  909. case 78: return "OpVectorInsertDynamic";
  910. case 79: return "OpVectorShuffle";
  911. case 80: return "OpCompositeConstruct";
  912. case 81: return "OpCompositeExtract";
  913. case 82: return "OpCompositeInsert";
  914. case 83: return "OpCopyObject";
  915. case 84: return "OpTranspose";
  916. case OpCopyLogical: return "OpCopyLogical";
  917. case 85: return "Bad";
  918. case 86: return "OpSampledImage";
  919. case 87: return "OpImageSampleImplicitLod";
  920. case 88: return "OpImageSampleExplicitLod";
  921. case 89: return "OpImageSampleDrefImplicitLod";
  922. case 90: return "OpImageSampleDrefExplicitLod";
  923. case 91: return "OpImageSampleProjImplicitLod";
  924. case 92: return "OpImageSampleProjExplicitLod";
  925. case 93: return "OpImageSampleProjDrefImplicitLod";
  926. case 94: return "OpImageSampleProjDrefExplicitLod";
  927. case 95: return "OpImageFetch";
  928. case 96: return "OpImageGather";
  929. case 97: return "OpImageDrefGather";
  930. case 98: return "OpImageRead";
  931. case 99: return "OpImageWrite";
  932. case 100: return "OpImage";
  933. case 101: return "OpImageQueryFormat";
  934. case 102: return "OpImageQueryOrder";
  935. case 103: return "OpImageQuerySizeLod";
  936. case 104: return "OpImageQuerySize";
  937. case 105: return "OpImageQueryLod";
  938. case 106: return "OpImageQueryLevels";
  939. case 107: return "OpImageQuerySamples";
  940. case 108: return "Bad";
  941. case 109: return "OpConvertFToU";
  942. case 110: return "OpConvertFToS";
  943. case 111: return "OpConvertSToF";
  944. case 112: return "OpConvertUToF";
  945. case 113: return "OpUConvert";
  946. case 114: return "OpSConvert";
  947. case 115: return "OpFConvert";
  948. case 116: return "OpQuantizeToF16";
  949. case 117: return "OpConvertPtrToU";
  950. case 118: return "OpSatConvertSToU";
  951. case 119: return "OpSatConvertUToS";
  952. case 120: return "OpConvertUToPtr";
  953. case 121: return "OpPtrCastToGeneric";
  954. case 122: return "OpGenericCastToPtr";
  955. case 123: return "OpGenericCastToPtrExplicit";
  956. case 124: return "OpBitcast";
  957. case 125: return "Bad";
  958. case 126: return "OpSNegate";
  959. case 127: return "OpFNegate";
  960. case 128: return "OpIAdd";
  961. case 129: return "OpFAdd";
  962. case 130: return "OpISub";
  963. case 131: return "OpFSub";
  964. case 132: return "OpIMul";
  965. case 133: return "OpFMul";
  966. case 134: return "OpUDiv";
  967. case 135: return "OpSDiv";
  968. case 136: return "OpFDiv";
  969. case 137: return "OpUMod";
  970. case 138: return "OpSRem";
  971. case 139: return "OpSMod";
  972. case 140: return "OpFRem";
  973. case 141: return "OpFMod";
  974. case 142: return "OpVectorTimesScalar";
  975. case 143: return "OpMatrixTimesScalar";
  976. case 144: return "OpVectorTimesMatrix";
  977. case 145: return "OpMatrixTimesVector";
  978. case 146: return "OpMatrixTimesMatrix";
  979. case 147: return "OpOuterProduct";
  980. case 148: return "OpDot";
  981. case 149: return "OpIAddCarry";
  982. case 150: return "OpISubBorrow";
  983. case 151: return "OpUMulExtended";
  984. case 152: return "OpSMulExtended";
  985. case 153: return "Bad";
  986. case 154: return "OpAny";
  987. case 155: return "OpAll";
  988. case 156: return "OpIsNan";
  989. case 157: return "OpIsInf";
  990. case 158: return "OpIsFinite";
  991. case 159: return "OpIsNormal";
  992. case 160: return "OpSignBitSet";
  993. case 161: return "OpLessOrGreater";
  994. case 162: return "OpOrdered";
  995. case 163: return "OpUnordered";
  996. case 164: return "OpLogicalEqual";
  997. case 165: return "OpLogicalNotEqual";
  998. case 166: return "OpLogicalOr";
  999. case 167: return "OpLogicalAnd";
  1000. case 168: return "OpLogicalNot";
  1001. case 169: return "OpSelect";
  1002. case 170: return "OpIEqual";
  1003. case 171: return "OpINotEqual";
  1004. case 172: return "OpUGreaterThan";
  1005. case 173: return "OpSGreaterThan";
  1006. case 174: return "OpUGreaterThanEqual";
  1007. case 175: return "OpSGreaterThanEqual";
  1008. case 176: return "OpULessThan";
  1009. case 177: return "OpSLessThan";
  1010. case 178: return "OpULessThanEqual";
  1011. case 179: return "OpSLessThanEqual";
  1012. case 180: return "OpFOrdEqual";
  1013. case 181: return "OpFUnordEqual";
  1014. case 182: return "OpFOrdNotEqual";
  1015. case 183: return "OpFUnordNotEqual";
  1016. case 184: return "OpFOrdLessThan";
  1017. case 185: return "OpFUnordLessThan";
  1018. case 186: return "OpFOrdGreaterThan";
  1019. case 187: return "OpFUnordGreaterThan";
  1020. case 188: return "OpFOrdLessThanEqual";
  1021. case 189: return "OpFUnordLessThanEqual";
  1022. case 190: return "OpFOrdGreaterThanEqual";
  1023. case 191: return "OpFUnordGreaterThanEqual";
  1024. case 192: return "Bad";
  1025. case 193: return "Bad";
  1026. case 194: return "OpShiftRightLogical";
  1027. case 195: return "OpShiftRightArithmetic";
  1028. case 196: return "OpShiftLeftLogical";
  1029. case 197: return "OpBitwiseOr";
  1030. case 198: return "OpBitwiseXor";
  1031. case 199: return "OpBitwiseAnd";
  1032. case 200: return "OpNot";
  1033. case 201: return "OpBitFieldInsert";
  1034. case 202: return "OpBitFieldSExtract";
  1035. case 203: return "OpBitFieldUExtract";
  1036. case 204: return "OpBitReverse";
  1037. case 205: return "OpBitCount";
  1038. case 206: return "Bad";
  1039. case 207: return "OpDPdx";
  1040. case 208: return "OpDPdy";
  1041. case 209: return "OpFwidth";
  1042. case 210: return "OpDPdxFine";
  1043. case 211: return "OpDPdyFine";
  1044. case 212: return "OpFwidthFine";
  1045. case 213: return "OpDPdxCoarse";
  1046. case 214: return "OpDPdyCoarse";
  1047. case 215: return "OpFwidthCoarse";
  1048. case 216: return "Bad";
  1049. case 217: return "Bad";
  1050. case 218: return "OpEmitVertex";
  1051. case 219: return "OpEndPrimitive";
  1052. case 220: return "OpEmitStreamVertex";
  1053. case 221: return "OpEndStreamPrimitive";
  1054. case 222: return "Bad";
  1055. case 223: return "Bad";
  1056. case 224: return "OpControlBarrier";
  1057. case 225: return "OpMemoryBarrier";
  1058. case 226: return "Bad";
  1059. case 227: return "OpAtomicLoad";
  1060. case 228: return "OpAtomicStore";
  1061. case 229: return "OpAtomicExchange";
  1062. case 230: return "OpAtomicCompareExchange";
  1063. case 231: return "OpAtomicCompareExchangeWeak";
  1064. case 232: return "OpAtomicIIncrement";
  1065. case 233: return "OpAtomicIDecrement";
  1066. case 234: return "OpAtomicIAdd";
  1067. case 235: return "OpAtomicISub";
  1068. case 236: return "OpAtomicSMin";
  1069. case 237: return "OpAtomicUMin";
  1070. case 238: return "OpAtomicSMax";
  1071. case 239: return "OpAtomicUMax";
  1072. case 240: return "OpAtomicAnd";
  1073. case 241: return "OpAtomicOr";
  1074. case 242: return "OpAtomicXor";
  1075. case 243: return "Bad";
  1076. case 244: return "Bad";
  1077. case 245: return "OpPhi";
  1078. case 246: return "OpLoopMerge";
  1079. case 247: return "OpSelectionMerge";
  1080. case 248: return "OpLabel";
  1081. case 249: return "OpBranch";
  1082. case 250: return "OpBranchConditional";
  1083. case 251: return "OpSwitch";
  1084. case 252: return "OpKill";
  1085. case 253: return "OpReturn";
  1086. case 254: return "OpReturnValue";
  1087. case 255: return "OpUnreachable";
  1088. case 256: return "OpLifetimeStart";
  1089. case 257: return "OpLifetimeStop";
  1090. case 258: return "Bad";
  1091. case 259: return "OpGroupAsyncCopy";
  1092. case 260: return "OpGroupWaitEvents";
  1093. case 261: return "OpGroupAll";
  1094. case 262: return "OpGroupAny";
  1095. case 263: return "OpGroupBroadcast";
  1096. case 264: return "OpGroupIAdd";
  1097. case 265: return "OpGroupFAdd";
  1098. case 266: return "OpGroupFMin";
  1099. case 267: return "OpGroupUMin";
  1100. case 268: return "OpGroupSMin";
  1101. case 269: return "OpGroupFMax";
  1102. case 270: return "OpGroupUMax";
  1103. case 271: return "OpGroupSMax";
  1104. case 272: return "Bad";
  1105. case 273: return "Bad";
  1106. case 274: return "OpReadPipe";
  1107. case 275: return "OpWritePipe";
  1108. case 276: return "OpReservedReadPipe";
  1109. case 277: return "OpReservedWritePipe";
  1110. case 278: return "OpReserveReadPipePackets";
  1111. case 279: return "OpReserveWritePipePackets";
  1112. case 280: return "OpCommitReadPipe";
  1113. case 281: return "OpCommitWritePipe";
  1114. case 282: return "OpIsValidReserveId";
  1115. case 283: return "OpGetNumPipePackets";
  1116. case 284: return "OpGetMaxPipePackets";
  1117. case 285: return "OpGroupReserveReadPipePackets";
  1118. case 286: return "OpGroupReserveWritePipePackets";
  1119. case 287: return "OpGroupCommitReadPipe";
  1120. case 288: return "OpGroupCommitWritePipe";
  1121. case 289: return "Bad";
  1122. case 290: return "Bad";
  1123. case 291: return "OpEnqueueMarker";
  1124. case 292: return "OpEnqueueKernel";
  1125. case 293: return "OpGetKernelNDrangeSubGroupCount";
  1126. case 294: return "OpGetKernelNDrangeMaxSubGroupSize";
  1127. case 295: return "OpGetKernelWorkGroupSize";
  1128. case 296: return "OpGetKernelPreferredWorkGroupSizeMultiple";
  1129. case 297: return "OpRetainEvent";
  1130. case 298: return "OpReleaseEvent";
  1131. case 299: return "OpCreateUserEvent";
  1132. case 300: return "OpIsValidEvent";
  1133. case 301: return "OpSetUserEventStatus";
  1134. case 302: return "OpCaptureEventProfilingInfo";
  1135. case 303: return "OpGetDefaultQueue";
  1136. case 304: return "OpBuildNDRange";
  1137. case 305: return "OpImageSparseSampleImplicitLod";
  1138. case 306: return "OpImageSparseSampleExplicitLod";
  1139. case 307: return "OpImageSparseSampleDrefImplicitLod";
  1140. case 308: return "OpImageSparseSampleDrefExplicitLod";
  1141. case 309: return "OpImageSparseSampleProjImplicitLod";
  1142. case 310: return "OpImageSparseSampleProjExplicitLod";
  1143. case 311: return "OpImageSparseSampleProjDrefImplicitLod";
  1144. case 312: return "OpImageSparseSampleProjDrefExplicitLod";
  1145. case 313: return "OpImageSparseFetch";
  1146. case 314: return "OpImageSparseGather";
  1147. case 315: return "OpImageSparseDrefGather";
  1148. case 316: return "OpImageSparseTexelsResident";
  1149. case 317: return "OpNoLine";
  1150. case 318: return "OpAtomicFlagTestAndSet";
  1151. case 319: return "OpAtomicFlagClear";
  1152. case 320: return "OpImageSparseRead";
  1153. case OpModuleProcessed: return "OpModuleProcessed";
  1154. case OpDecorateId: return "OpDecorateId";
  1155. case 333: return "OpGroupNonUniformElect";
  1156. case 334: return "OpGroupNonUniformAll";
  1157. case 335: return "OpGroupNonUniformAny";
  1158. case 336: return "OpGroupNonUniformAllEqual";
  1159. case 337: return "OpGroupNonUniformBroadcast";
  1160. case 338: return "OpGroupNonUniformBroadcastFirst";
  1161. case 339: return "OpGroupNonUniformBallot";
  1162. case 340: return "OpGroupNonUniformInverseBallot";
  1163. case 341: return "OpGroupNonUniformBallotBitExtract";
  1164. case 342: return "OpGroupNonUniformBallotBitCount";
  1165. case 343: return "OpGroupNonUniformBallotFindLSB";
  1166. case 344: return "OpGroupNonUniformBallotFindMSB";
  1167. case 345: return "OpGroupNonUniformShuffle";
  1168. case 346: return "OpGroupNonUniformShuffleXor";
  1169. case 347: return "OpGroupNonUniformShuffleUp";
  1170. case 348: return "OpGroupNonUniformShuffleDown";
  1171. case 349: return "OpGroupNonUniformIAdd";
  1172. case 350: return "OpGroupNonUniformFAdd";
  1173. case 351: return "OpGroupNonUniformIMul";
  1174. case 352: return "OpGroupNonUniformFMul";
  1175. case 353: return "OpGroupNonUniformSMin";
  1176. case 354: return "OpGroupNonUniformUMin";
  1177. case 355: return "OpGroupNonUniformFMin";
  1178. case 356: return "OpGroupNonUniformSMax";
  1179. case 357: return "OpGroupNonUniformUMax";
  1180. case 358: return "OpGroupNonUniformFMax";
  1181. case 359: return "OpGroupNonUniformBitwiseAnd";
  1182. case 360: return "OpGroupNonUniformBitwiseOr";
  1183. case 361: return "OpGroupNonUniformBitwiseXor";
  1184. case 362: return "OpGroupNonUniformLogicalAnd";
  1185. case 363: return "OpGroupNonUniformLogicalOr";
  1186. case 364: return "OpGroupNonUniformLogicalXor";
  1187. case 365: return "OpGroupNonUniformQuadBroadcast";
  1188. case 366: return "OpGroupNonUniformQuadSwap";
  1189. case 4421: return "OpSubgroupBallotKHR";
  1190. case 4422: return "OpSubgroupFirstInvocationKHR";
  1191. case 4428: return "OpSubgroupAllKHR";
  1192. case 4429: return "OpSubgroupAnyKHR";
  1193. case 4430: return "OpSubgroupAllEqualKHR";
  1194. case 4432: return "OpSubgroupReadInvocationKHR";
  1195. case 5000: return "OpGroupIAddNonUniformAMD";
  1196. case 5001: return "OpGroupFAddNonUniformAMD";
  1197. case 5002: return "OpGroupFMinNonUniformAMD";
  1198. case 5003: return "OpGroupUMinNonUniformAMD";
  1199. case 5004: return "OpGroupSMinNonUniformAMD";
  1200. case 5005: return "OpGroupFMaxNonUniformAMD";
  1201. case 5006: return "OpGroupUMaxNonUniformAMD";
  1202. case 5007: return "OpGroupSMaxNonUniformAMD";
  1203. case 5011: return "OpFragmentMaskFetchAMD";
  1204. case 5012: return "OpFragmentFetchAMD";
  1205. case OpReadClockKHR: return "OpReadClockKHR";
  1206. case OpDecorateStringGOOGLE: return "OpDecorateStringGOOGLE";
  1207. case OpMemberDecorateStringGOOGLE: return "OpMemberDecorateStringGOOGLE";
  1208. case OpGroupNonUniformPartitionNV: return "OpGroupNonUniformPartitionNV";
  1209. case OpReportIntersectionNV: return "OpReportIntersectionNV";
  1210. case OpIgnoreIntersectionNV: return "OpIgnoreIntersectionNV";
  1211. case OpTerminateRayNV: return "OpTerminateRayNV";
  1212. case OpTraceNV: return "OpTraceNV";
  1213. case OpTypeAccelerationStructureNV: return "OpTypeAccelerationStructureNV";
  1214. case OpExecuteCallableNV: return "OpExecuteCallableNV";
  1215. case OpImageSampleFootprintNV: return "OpImageSampleFootprintNV";
  1216. case OpWritePackedPrimitiveIndices4x8NV: return "OpWritePackedPrimitiveIndices4x8NV";
  1217. case OpTypeCooperativeMatrixNV: return "OpTypeCooperativeMatrixNV";
  1218. case OpCooperativeMatrixLoadNV: return "OpCooperativeMatrixLoadNV";
  1219. case OpCooperativeMatrixStoreNV: return "OpCooperativeMatrixStoreNV";
  1220. case OpCooperativeMatrixMulAddNV: return "OpCooperativeMatrixMulAddNV";
  1221. case OpCooperativeMatrixLengthNV: return "OpCooperativeMatrixLengthNV";
  1222. case OpDemoteToHelperInvocationEXT: return "OpDemoteToHelperInvocationEXT";
  1223. case OpIsHelperInvocationEXT: return "OpIsHelperInvocationEXT";
  1224. case OpBeginInvocationInterlockEXT: return "OpBeginInvocationInterlockEXT";
  1225. case OpEndInvocationInterlockEXT: return "OpEndInvocationInterlockEXT";
  1226. default:
  1227. return "Bad";
  1228. }
  1229. }
  1230. // The set of objects that hold all the instruction/operand
  1231. // parameterization information.
  1232. InstructionParameters InstructionDesc[OpCodeMask + 1];
  1233. OperandParameters ExecutionModeOperands[ExecutionModeCeiling];
  1234. OperandParameters DecorationOperands[DecorationCeiling];
  1235. EnumDefinition OperandClassParams[OperandCount];
  1236. EnumParameters ExecutionModeParams[ExecutionModeCeiling];
  1237. EnumParameters ImageOperandsParams[ImageOperandsCeiling];
  1238. EnumParameters DecorationParams[DecorationCeiling];
  1239. EnumParameters LoopControlParams[FunctionControlCeiling];
  1240. EnumParameters SelectionControlParams[SelectControlCeiling];
  1241. EnumParameters FunctionControlParams[FunctionControlCeiling];
  1242. EnumParameters MemoryAccessParams[MemoryAccessCeiling];
  1243. // Set up all the parameterizing descriptions of the opcodes, operands, etc.
  1244. void Parameterize()
  1245. {
  1246. // only do this once.
  1247. static bool initialized = false;
  1248. if (initialized)
  1249. return;
  1250. initialized = true;
  1251. // Exceptions to having a result <id> and a resulting type <id>.
  1252. // (Everything is initialized to have both).
  1253. InstructionDesc[OpNop].setResultAndType(false, false);
  1254. InstructionDesc[OpSource].setResultAndType(false, false);
  1255. InstructionDesc[OpSourceContinued].setResultAndType(false, false);
  1256. InstructionDesc[OpSourceExtension].setResultAndType(false, false);
  1257. InstructionDesc[OpExtension].setResultAndType(false, false);
  1258. InstructionDesc[OpExtInstImport].setResultAndType(true, false);
  1259. InstructionDesc[OpCapability].setResultAndType(false, false);
  1260. InstructionDesc[OpMemoryModel].setResultAndType(false, false);
  1261. InstructionDesc[OpEntryPoint].setResultAndType(false, false);
  1262. InstructionDesc[OpExecutionMode].setResultAndType(false, false);
  1263. InstructionDesc[OpTypeVoid].setResultAndType(true, false);
  1264. InstructionDesc[OpTypeBool].setResultAndType(true, false);
  1265. InstructionDesc[OpTypeInt].setResultAndType(true, false);
  1266. InstructionDesc[OpTypeFloat].setResultAndType(true, false);
  1267. InstructionDesc[OpTypeVector].setResultAndType(true, false);
  1268. InstructionDesc[OpTypeMatrix].setResultAndType(true, false);
  1269. InstructionDesc[OpTypeImage].setResultAndType(true, false);
  1270. InstructionDesc[OpTypeSampler].setResultAndType(true, false);
  1271. InstructionDesc[OpTypeSampledImage].setResultAndType(true, false);
  1272. InstructionDesc[OpTypeArray].setResultAndType(true, false);
  1273. InstructionDesc[OpTypeRuntimeArray].setResultAndType(true, false);
  1274. InstructionDesc[OpTypeStruct].setResultAndType(true, false);
  1275. InstructionDesc[OpTypeOpaque].setResultAndType(true, false);
  1276. InstructionDesc[OpTypePointer].setResultAndType(true, false);
  1277. InstructionDesc[OpTypeForwardPointer].setResultAndType(false, false);
  1278. InstructionDesc[OpTypeFunction].setResultAndType(true, false);
  1279. InstructionDesc[OpTypeEvent].setResultAndType(true, false);
  1280. InstructionDesc[OpTypeDeviceEvent].setResultAndType(true, false);
  1281. InstructionDesc[OpTypeReserveId].setResultAndType(true, false);
  1282. InstructionDesc[OpTypeQueue].setResultAndType(true, false);
  1283. InstructionDesc[OpTypePipe].setResultAndType(true, false);
  1284. InstructionDesc[OpFunctionEnd].setResultAndType(false, false);
  1285. InstructionDesc[OpStore].setResultAndType(false, false);
  1286. InstructionDesc[OpImageWrite].setResultAndType(false, false);
  1287. InstructionDesc[OpDecorationGroup].setResultAndType(true, false);
  1288. InstructionDesc[OpDecorate].setResultAndType(false, false);
  1289. InstructionDesc[OpDecorateId].setResultAndType(false, false);
  1290. InstructionDesc[OpDecorateStringGOOGLE].setResultAndType(false, false);
  1291. InstructionDesc[OpMemberDecorate].setResultAndType(false, false);
  1292. InstructionDesc[OpMemberDecorateStringGOOGLE].setResultAndType(false, false);
  1293. InstructionDesc[OpGroupDecorate].setResultAndType(false, false);
  1294. InstructionDesc[OpGroupMemberDecorate].setResultAndType(false, false);
  1295. InstructionDesc[OpName].setResultAndType(false, false);
  1296. InstructionDesc[OpMemberName].setResultAndType(false, false);
  1297. InstructionDesc[OpString].setResultAndType(true, false);
  1298. InstructionDesc[OpLine].setResultAndType(false, false);
  1299. InstructionDesc[OpNoLine].setResultAndType(false, false);
  1300. InstructionDesc[OpCopyMemory].setResultAndType(false, false);
  1301. InstructionDesc[OpCopyMemorySized].setResultAndType(false, false);
  1302. InstructionDesc[OpEmitVertex].setResultAndType(false, false);
  1303. InstructionDesc[OpEndPrimitive].setResultAndType(false, false);
  1304. InstructionDesc[OpEmitStreamVertex].setResultAndType(false, false);
  1305. InstructionDesc[OpEndStreamPrimitive].setResultAndType(false, false);
  1306. InstructionDesc[OpControlBarrier].setResultAndType(false, false);
  1307. InstructionDesc[OpMemoryBarrier].setResultAndType(false, false);
  1308. InstructionDesc[OpAtomicStore].setResultAndType(false, false);
  1309. InstructionDesc[OpLoopMerge].setResultAndType(false, false);
  1310. InstructionDesc[OpSelectionMerge].setResultAndType(false, false);
  1311. InstructionDesc[OpLabel].setResultAndType(true, false);
  1312. InstructionDesc[OpBranch].setResultAndType(false, false);
  1313. InstructionDesc[OpBranchConditional].setResultAndType(false, false);
  1314. InstructionDesc[OpSwitch].setResultAndType(false, false);
  1315. InstructionDesc[OpKill].setResultAndType(false, false);
  1316. InstructionDesc[OpReturn].setResultAndType(false, false);
  1317. InstructionDesc[OpReturnValue].setResultAndType(false, false);
  1318. InstructionDesc[OpUnreachable].setResultAndType(false, false);
  1319. InstructionDesc[OpLifetimeStart].setResultAndType(false, false);
  1320. InstructionDesc[OpLifetimeStop].setResultAndType(false, false);
  1321. InstructionDesc[OpCommitReadPipe].setResultAndType(false, false);
  1322. InstructionDesc[OpCommitWritePipe].setResultAndType(false, false);
  1323. InstructionDesc[OpGroupCommitWritePipe].setResultAndType(false, false);
  1324. InstructionDesc[OpGroupCommitReadPipe].setResultAndType(false, false);
  1325. InstructionDesc[OpCaptureEventProfilingInfo].setResultAndType(false, false);
  1326. InstructionDesc[OpSetUserEventStatus].setResultAndType(false, false);
  1327. InstructionDesc[OpRetainEvent].setResultAndType(false, false);
  1328. InstructionDesc[OpReleaseEvent].setResultAndType(false, false);
  1329. InstructionDesc[OpGroupWaitEvents].setResultAndType(false, false);
  1330. InstructionDesc[OpAtomicFlagClear].setResultAndType(false, false);
  1331. InstructionDesc[OpModuleProcessed].setResultAndType(false, false);
  1332. InstructionDesc[OpTypeCooperativeMatrixNV].setResultAndType(true, false);
  1333. InstructionDesc[OpCooperativeMatrixStoreNV].setResultAndType(false, false);
  1334. InstructionDesc[OpBeginInvocationInterlockEXT].setResultAndType(false, false);
  1335. InstructionDesc[OpEndInvocationInterlockEXT].setResultAndType(false, false);
  1336. // Specific additional context-dependent operands
  1337. ExecutionModeOperands[ExecutionModeInvocations].push(OperandLiteralNumber, "'Number of <<Invocation,invocations>>'");
  1338. ExecutionModeOperands[ExecutionModeLocalSize].push(OperandLiteralNumber, "'x size'");
  1339. ExecutionModeOperands[ExecutionModeLocalSize].push(OperandLiteralNumber, "'y size'");
  1340. ExecutionModeOperands[ExecutionModeLocalSize].push(OperandLiteralNumber, "'z size'");
  1341. ExecutionModeOperands[ExecutionModeLocalSizeHint].push(OperandLiteralNumber, "'x size'");
  1342. ExecutionModeOperands[ExecutionModeLocalSizeHint].push(OperandLiteralNumber, "'y size'");
  1343. ExecutionModeOperands[ExecutionModeLocalSizeHint].push(OperandLiteralNumber, "'z size'");
  1344. ExecutionModeOperands[ExecutionModeOutputVertices].push(OperandLiteralNumber, "'Vertex count'");
  1345. ExecutionModeOperands[ExecutionModeVecTypeHint].push(OperandLiteralNumber, "'Vector type'");
  1346. DecorationOperands[DecorationStream].push(OperandLiteralNumber, "'Stream Number'");
  1347. DecorationOperands[DecorationLocation].push(OperandLiteralNumber, "'Location'");
  1348. DecorationOperands[DecorationComponent].push(OperandLiteralNumber, "'Component'");
  1349. DecorationOperands[DecorationIndex].push(OperandLiteralNumber, "'Index'");
  1350. DecorationOperands[DecorationBinding].push(OperandLiteralNumber, "'Binding Point'");
  1351. DecorationOperands[DecorationDescriptorSet].push(OperandLiteralNumber, "'Descriptor Set'");
  1352. DecorationOperands[DecorationOffset].push(OperandLiteralNumber, "'Byte Offset'");
  1353. DecorationOperands[DecorationXfbBuffer].push(OperandLiteralNumber, "'XFB Buffer Number'");
  1354. DecorationOperands[DecorationXfbStride].push(OperandLiteralNumber, "'XFB Stride'");
  1355. DecorationOperands[DecorationArrayStride].push(OperandLiteralNumber, "'Array Stride'");
  1356. DecorationOperands[DecorationMatrixStride].push(OperandLiteralNumber, "'Matrix Stride'");
  1357. DecorationOperands[DecorationBuiltIn].push(OperandLiteralNumber, "See <<BuiltIn,*BuiltIn*>>");
  1358. DecorationOperands[DecorationFPRoundingMode].push(OperandFPRoundingMode, "'Floating-Point Rounding Mode'");
  1359. DecorationOperands[DecorationFPFastMathMode].push(OperandFPFastMath, "'Fast-Math Mode'");
  1360. DecorationOperands[DecorationLinkageAttributes].push(OperandLiteralString, "'Name'");
  1361. DecorationOperands[DecorationLinkageAttributes].push(OperandLinkageType, "'Linkage Type'");
  1362. DecorationOperands[DecorationFuncParamAttr].push(OperandFuncParamAttr, "'Function Parameter Attribute'");
  1363. DecorationOperands[DecorationSpecId].push(OperandLiteralNumber, "'Specialization Constant ID'");
  1364. DecorationOperands[DecorationInputAttachmentIndex].push(OperandLiteralNumber, "'Attachment Index'");
  1365. DecorationOperands[DecorationAlignment].push(OperandLiteralNumber, "'Alignment'");
  1366. OperandClassParams[OperandSource].set(0, SourceString, 0);
  1367. OperandClassParams[OperandExecutionModel].set(0, ExecutionModelString, nullptr);
  1368. OperandClassParams[OperandAddressing].set(0, AddressingString, nullptr);
  1369. OperandClassParams[OperandMemory].set(0, MemoryString, nullptr);
  1370. OperandClassParams[OperandExecutionMode].set(ExecutionModeCeiling, ExecutionModeString, ExecutionModeParams);
  1371. OperandClassParams[OperandExecutionMode].setOperands(ExecutionModeOperands);
  1372. OperandClassParams[OperandStorage].set(0, StorageClassString, nullptr);
  1373. OperandClassParams[OperandDimensionality].set(0, DimensionString, nullptr);
  1374. OperandClassParams[OperandSamplerAddressingMode].set(0, SamplerAddressingModeString, nullptr);
  1375. OperandClassParams[OperandSamplerFilterMode].set(0, SamplerFilterModeString, nullptr);
  1376. OperandClassParams[OperandSamplerImageFormat].set(0, ImageFormatString, nullptr);
  1377. OperandClassParams[OperandImageChannelOrder].set(0, ImageChannelOrderString, nullptr);
  1378. OperandClassParams[OperandImageChannelDataType].set(0, ImageChannelDataTypeString, nullptr);
  1379. OperandClassParams[OperandImageOperands].set(ImageOperandsCeiling, ImageOperandsString, ImageOperandsParams, true);
  1380. OperandClassParams[OperandFPFastMath].set(0, FPFastMathString, nullptr, true);
  1381. OperandClassParams[OperandFPRoundingMode].set(0, FPRoundingModeString, nullptr);
  1382. OperandClassParams[OperandLinkageType].set(0, LinkageTypeString, nullptr);
  1383. OperandClassParams[OperandFuncParamAttr].set(0, FuncParamAttrString, nullptr);
  1384. OperandClassParams[OperandAccessQualifier].set(0, AccessQualifierString, nullptr);
  1385. OperandClassParams[OperandDecoration].set(DecorationCeiling, DecorationString, DecorationParams);
  1386. OperandClassParams[OperandDecoration].setOperands(DecorationOperands);
  1387. OperandClassParams[OperandBuiltIn].set(0, BuiltInString, nullptr);
  1388. OperandClassParams[OperandSelect].set(SelectControlCeiling, SelectControlString, SelectionControlParams, true);
  1389. OperandClassParams[OperandLoop].set(LoopControlCeiling, LoopControlString, LoopControlParams, true);
  1390. OperandClassParams[OperandFunction].set(FunctionControlCeiling, FunctionControlString, FunctionControlParams, true);
  1391. OperandClassParams[OperandMemorySemantics].set(0, MemorySemanticsString, nullptr, true);
  1392. OperandClassParams[OperandMemoryAccess].set(MemoryAccessCeiling, MemoryAccessString, MemoryAccessParams, true);
  1393. OperandClassParams[OperandScope].set(0, ScopeString, nullptr);
  1394. OperandClassParams[OperandGroupOperation].set(0, GroupOperationString, nullptr);
  1395. OperandClassParams[OperandKernelEnqueueFlags].set(0, KernelEnqueueFlagsString, nullptr);
  1396. OperandClassParams[OperandKernelProfilingInfo].set(0, KernelProfilingInfoString, nullptr, true);
  1397. OperandClassParams[OperandCapability].set(0, CapabilityString, nullptr);
  1398. OperandClassParams[OperandOpcode].set(OpCodeMask + 1, OpcodeString, 0);
  1399. // set name of operator, an initial set of <id> style operands, and the description
  1400. InstructionDesc[OpSource].operands.push(OperandSource, "");
  1401. InstructionDesc[OpSource].operands.push(OperandLiteralNumber, "'Version'");
  1402. InstructionDesc[OpSource].operands.push(OperandId, "'File'", true);
  1403. InstructionDesc[OpSource].operands.push(OperandLiteralString, "'Source'", true);
  1404. InstructionDesc[OpSourceContinued].operands.push(OperandLiteralString, "'Continued Source'");
  1405. InstructionDesc[OpSourceExtension].operands.push(OperandLiteralString, "'Extension'");
  1406. InstructionDesc[OpName].operands.push(OperandId, "'Target'");
  1407. InstructionDesc[OpName].operands.push(OperandLiteralString, "'Name'");
  1408. InstructionDesc[OpMemberName].operands.push(OperandId, "'Type'");
  1409. InstructionDesc[OpMemberName].operands.push(OperandLiteralNumber, "'Member'");
  1410. InstructionDesc[OpMemberName].operands.push(OperandLiteralString, "'Name'");
  1411. InstructionDesc[OpString].operands.push(OperandLiteralString, "'String'");
  1412. InstructionDesc[OpLine].operands.push(OperandId, "'File'");
  1413. InstructionDesc[OpLine].operands.push(OperandLiteralNumber, "'Line'");
  1414. InstructionDesc[OpLine].operands.push(OperandLiteralNumber, "'Column'");
  1415. InstructionDesc[OpExtension].operands.push(OperandLiteralString, "'Name'");
  1416. InstructionDesc[OpExtInstImport].operands.push(OperandLiteralString, "'Name'");
  1417. InstructionDesc[OpCapability].operands.push(OperandCapability, "'Capability'");
  1418. InstructionDesc[OpMemoryModel].operands.push(OperandAddressing, "");
  1419. InstructionDesc[OpMemoryModel].operands.push(OperandMemory, "");
  1420. InstructionDesc[OpEntryPoint].operands.push(OperandExecutionModel, "");
  1421. InstructionDesc[OpEntryPoint].operands.push(OperandId, "'Entry Point'");
  1422. InstructionDesc[OpEntryPoint].operands.push(OperandLiteralString, "'Name'");
  1423. InstructionDesc[OpEntryPoint].operands.push(OperandVariableIds, "'Interface'");
  1424. InstructionDesc[OpExecutionMode].operands.push(OperandId, "'Entry Point'");
  1425. InstructionDesc[OpExecutionMode].operands.push(OperandExecutionMode, "'Mode'");
  1426. InstructionDesc[OpExecutionMode].operands.push(OperandOptionalLiteral, "See <<Execution_Mode,Execution Mode>>");
  1427. InstructionDesc[OpTypeInt].operands.push(OperandLiteralNumber, "'Width'");
  1428. InstructionDesc[OpTypeInt].operands.push(OperandLiteralNumber, "'Signedness'");
  1429. InstructionDesc[OpTypeFloat].operands.push(OperandLiteralNumber, "'Width'");
  1430. InstructionDesc[OpTypeVector].operands.push(OperandId, "'Component Type'");
  1431. InstructionDesc[OpTypeVector].operands.push(OperandLiteralNumber, "'Component Count'");
  1432. InstructionDesc[OpTypeMatrix].operands.push(OperandId, "'Column Type'");
  1433. InstructionDesc[OpTypeMatrix].operands.push(OperandLiteralNumber, "'Column Count'");
  1434. InstructionDesc[OpTypeImage].operands.push(OperandId, "'Sampled Type'");
  1435. InstructionDesc[OpTypeImage].operands.push(OperandDimensionality, "");
  1436. InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Depth'");
  1437. InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Arrayed'");
  1438. InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'MS'");
  1439. InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Sampled'");
  1440. InstructionDesc[OpTypeImage].operands.push(OperandSamplerImageFormat, "");
  1441. InstructionDesc[OpTypeImage].operands.push(OperandAccessQualifier, "", true);
  1442. InstructionDesc[OpTypeSampledImage].operands.push(OperandId, "'Image Type'");
  1443. InstructionDesc[OpTypeArray].operands.push(OperandId, "'Element Type'");
  1444. InstructionDesc[OpTypeArray].operands.push(OperandId, "'Length'");
  1445. InstructionDesc[OpTypeRuntimeArray].operands.push(OperandId, "'Element Type'");
  1446. InstructionDesc[OpTypeStruct].operands.push(OperandVariableIds, "'Member 0 type', +\n'member 1 type', +\n...");
  1447. InstructionDesc[OpTypeOpaque].operands.push(OperandLiteralString, "The name of the opaque type.");
  1448. InstructionDesc[OpTypePointer].operands.push(OperandStorage, "");
  1449. InstructionDesc[OpTypePointer].operands.push(OperandId, "'Type'");
  1450. InstructionDesc[OpTypeForwardPointer].operands.push(OperandId, "'Pointer Type'");
  1451. InstructionDesc[OpTypeForwardPointer].operands.push(OperandStorage, "");
  1452. InstructionDesc[OpTypePipe].operands.push(OperandAccessQualifier, "'Qualifier'");
  1453. InstructionDesc[OpTypeFunction].operands.push(OperandId, "'Return Type'");
  1454. InstructionDesc[OpTypeFunction].operands.push(OperandVariableIds, "'Parameter 0 Type', +\n'Parameter 1 Type', +\n...");
  1455. InstructionDesc[OpConstant].operands.push(OperandVariableLiterals, "'Value'");
  1456. InstructionDesc[OpConstantComposite].operands.push(OperandVariableIds, "'Constituents'");
  1457. InstructionDesc[OpConstantSampler].operands.push(OperandSamplerAddressingMode, "");
  1458. InstructionDesc[OpConstantSampler].operands.push(OperandLiteralNumber, "'Param'");
  1459. InstructionDesc[OpConstantSampler].operands.push(OperandSamplerFilterMode, "");
  1460. InstructionDesc[OpSpecConstant].operands.push(OperandVariableLiterals, "'Value'");
  1461. InstructionDesc[OpSpecConstantComposite].operands.push(OperandVariableIds, "'Constituents'");
  1462. InstructionDesc[OpSpecConstantOp].operands.push(OperandLiteralNumber, "'Opcode'");
  1463. InstructionDesc[OpSpecConstantOp].operands.push(OperandVariableIds, "'Operands'");
  1464. InstructionDesc[OpVariable].operands.push(OperandStorage, "");
  1465. InstructionDesc[OpVariable].operands.push(OperandId, "'Initializer'", true);
  1466. InstructionDesc[OpFunction].operands.push(OperandFunction, "");
  1467. InstructionDesc[OpFunction].operands.push(OperandId, "'Function Type'");
  1468. InstructionDesc[OpFunctionCall].operands.push(OperandId, "'Function'");
  1469. InstructionDesc[OpFunctionCall].operands.push(OperandVariableIds, "'Argument 0', +\n'Argument 1', +\n...");
  1470. InstructionDesc[OpExtInst].operands.push(OperandId, "'Set'");
  1471. InstructionDesc[OpExtInst].operands.push(OperandLiteralNumber, "'Instruction'");
  1472. InstructionDesc[OpExtInst].operands.push(OperandVariableIds, "'Operand 1', +\n'Operand 2', +\n...");
  1473. InstructionDesc[OpLoad].operands.push(OperandId, "'Pointer'");
  1474. InstructionDesc[OpLoad].operands.push(OperandMemoryAccess, "", true);
  1475. InstructionDesc[OpLoad].operands.push(OperandLiteralNumber, "", true);
  1476. InstructionDesc[OpLoad].operands.push(OperandId, "", true);
  1477. InstructionDesc[OpStore].operands.push(OperandId, "'Pointer'");
  1478. InstructionDesc[OpStore].operands.push(OperandId, "'Object'");
  1479. InstructionDesc[OpStore].operands.push(OperandMemoryAccess, "", true);
  1480. InstructionDesc[OpStore].operands.push(OperandLiteralNumber, "", true);
  1481. InstructionDesc[OpStore].operands.push(OperandId, "", true);
  1482. InstructionDesc[OpPhi].operands.push(OperandVariableIds, "'Variable, Parent, ...'");
  1483. InstructionDesc[OpDecorate].operands.push(OperandId, "'Target'");
  1484. InstructionDesc[OpDecorate].operands.push(OperandDecoration, "");
  1485. InstructionDesc[OpDecorate].operands.push(OperandVariableLiterals, "See <<Decoration,'Decoration'>>.");
  1486. InstructionDesc[OpDecorateId].operands.push(OperandId, "'Target'");
  1487. InstructionDesc[OpDecorateId].operands.push(OperandDecoration, "");
  1488. InstructionDesc[OpDecorateId].operands.push(OperandVariableIds, "See <<Decoration,'Decoration'>>.");
  1489. InstructionDesc[OpDecorateStringGOOGLE].operands.push(OperandId, "'Target'");
  1490. InstructionDesc[OpDecorateStringGOOGLE].operands.push(OperandDecoration, "");
  1491. InstructionDesc[OpDecorateStringGOOGLE].operands.push(OperandLiteralString, "'Literal String'");
  1492. InstructionDesc[OpMemberDecorate].operands.push(OperandId, "'Structure Type'");
  1493. InstructionDesc[OpMemberDecorate].operands.push(OperandLiteralNumber, "'Member'");
  1494. InstructionDesc[OpMemberDecorate].operands.push(OperandDecoration, "");
  1495. InstructionDesc[OpMemberDecorate].operands.push(OperandVariableLiterals, "See <<Decoration,'Decoration'>>.");
  1496. InstructionDesc[OpMemberDecorateStringGOOGLE].operands.push(OperandId, "'Structure Type'");
  1497. InstructionDesc[OpMemberDecorateStringGOOGLE].operands.push(OperandLiteralNumber, "'Member'");
  1498. InstructionDesc[OpMemberDecorateStringGOOGLE].operands.push(OperandDecoration, "");
  1499. InstructionDesc[OpMemberDecorateStringGOOGLE].operands.push(OperandLiteralString, "'Literal String'");
  1500. InstructionDesc[OpGroupDecorate].operands.push(OperandId, "'Decoration Group'");
  1501. InstructionDesc[OpGroupDecorate].operands.push(OperandVariableIds, "'Targets'");
  1502. InstructionDesc[OpGroupMemberDecorate].operands.push(OperandId, "'Decoration Group'");
  1503. InstructionDesc[OpGroupMemberDecorate].operands.push(OperandVariableIdLiteral, "'Targets'");
  1504. InstructionDesc[OpVectorExtractDynamic].operands.push(OperandId, "'Vector'");
  1505. InstructionDesc[OpVectorExtractDynamic].operands.push(OperandId, "'Index'");
  1506. InstructionDesc[OpVectorInsertDynamic].operands.push(OperandId, "'Vector'");
  1507. InstructionDesc[OpVectorInsertDynamic].operands.push(OperandId, "'Component'");
  1508. InstructionDesc[OpVectorInsertDynamic].operands.push(OperandId, "'Index'");
  1509. InstructionDesc[OpVectorShuffle].operands.push(OperandId, "'Vector 1'");
  1510. InstructionDesc[OpVectorShuffle].operands.push(OperandId, "'Vector 2'");
  1511. InstructionDesc[OpVectorShuffle].operands.push(OperandVariableLiterals, "'Components'");
  1512. InstructionDesc[OpCompositeConstruct].operands.push(OperandVariableIds, "'Constituents'");
  1513. InstructionDesc[OpCompositeExtract].operands.push(OperandId, "'Composite'");
  1514. InstructionDesc[OpCompositeExtract].operands.push(OperandVariableLiterals, "'Indexes'");
  1515. InstructionDesc[OpCompositeInsert].operands.push(OperandId, "'Object'");
  1516. InstructionDesc[OpCompositeInsert].operands.push(OperandId, "'Composite'");
  1517. InstructionDesc[OpCompositeInsert].operands.push(OperandVariableLiterals, "'Indexes'");
  1518. InstructionDesc[OpCopyObject].operands.push(OperandId, "'Operand'");
  1519. InstructionDesc[OpCopyMemory].operands.push(OperandId, "'Target'");
  1520. InstructionDesc[OpCopyMemory].operands.push(OperandId, "'Source'");
  1521. InstructionDesc[OpCopyMemory].operands.push(OperandMemoryAccess, "", true);
  1522. InstructionDesc[OpCopyMemorySized].operands.push(OperandId, "'Target'");
  1523. InstructionDesc[OpCopyMemorySized].operands.push(OperandId, "'Source'");
  1524. InstructionDesc[OpCopyMemorySized].operands.push(OperandId, "'Size'");
  1525. InstructionDesc[OpCopyMemorySized].operands.push(OperandMemoryAccess, "", true);
  1526. InstructionDesc[OpSampledImage].operands.push(OperandId, "'Image'");
  1527. InstructionDesc[OpSampledImage].operands.push(OperandId, "'Sampler'");
  1528. InstructionDesc[OpImage].operands.push(OperandId, "'Sampled Image'");
  1529. InstructionDesc[OpImageRead].operands.push(OperandId, "'Image'");
  1530. InstructionDesc[OpImageRead].operands.push(OperandId, "'Coordinate'");
  1531. InstructionDesc[OpImageRead].operands.push(OperandImageOperands, "", true);
  1532. InstructionDesc[OpImageRead].operands.push(OperandVariableIds, "", true);
  1533. InstructionDesc[OpImageWrite].operands.push(OperandId, "'Image'");
  1534. InstructionDesc[OpImageWrite].operands.push(OperandId, "'Coordinate'");
  1535. InstructionDesc[OpImageWrite].operands.push(OperandId, "'Texel'");
  1536. InstructionDesc[OpImageWrite].operands.push(OperandImageOperands, "", true);
  1537. InstructionDesc[OpImageWrite].operands.push(OperandVariableIds, "", true);
  1538. InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1539. InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandId, "'Coordinate'");
  1540. InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandImageOperands, "", true);
  1541. InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandVariableIds, "", true);
  1542. InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1543. InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandId, "'Coordinate'");
  1544. InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandImageOperands, "", true);
  1545. InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandVariableIds, "", true);
  1546. InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1547. InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandId, "'Coordinate'");
  1548. InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandId, "'D~ref~'");
  1549. InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandImageOperands, "", true);
  1550. InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandVariableIds, "", true);
  1551. InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1552. InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandId, "'Coordinate'");
  1553. InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandId, "'D~ref~'");
  1554. InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandImageOperands, "", true);
  1555. InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandVariableIds, "", true);
  1556. InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1557. InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandId, "'Coordinate'");
  1558. InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandImageOperands, "", true);
  1559. InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandVariableIds, "", true);
  1560. InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1561. InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandId, "'Coordinate'");
  1562. InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandImageOperands, "", true);
  1563. InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandVariableIds, "", true);
  1564. InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1565. InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandId, "'Coordinate'");
  1566. InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandId, "'D~ref~'");
  1567. InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandImageOperands, "", true);
  1568. InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandVariableIds, "", true);
  1569. InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1570. InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandId, "'Coordinate'");
  1571. InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandId, "'D~ref~'");
  1572. InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandImageOperands, "", true);
  1573. InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandVariableIds, "", true);
  1574. InstructionDesc[OpImageFetch].operands.push(OperandId, "'Image'");
  1575. InstructionDesc[OpImageFetch].operands.push(OperandId, "'Coordinate'");
  1576. InstructionDesc[OpImageFetch].operands.push(OperandImageOperands, "", true);
  1577. InstructionDesc[OpImageFetch].operands.push(OperandVariableIds, "", true);
  1578. InstructionDesc[OpImageGather].operands.push(OperandId, "'Sampled Image'");
  1579. InstructionDesc[OpImageGather].operands.push(OperandId, "'Coordinate'");
  1580. InstructionDesc[OpImageGather].operands.push(OperandId, "'Component'");
  1581. InstructionDesc[OpImageGather].operands.push(OperandImageOperands, "", true);
  1582. InstructionDesc[OpImageGather].operands.push(OperandVariableIds, "", true);
  1583. InstructionDesc[OpImageDrefGather].operands.push(OperandId, "'Sampled Image'");
  1584. InstructionDesc[OpImageDrefGather].operands.push(OperandId, "'Coordinate'");
  1585. InstructionDesc[OpImageDrefGather].operands.push(OperandId, "'D~ref~'");
  1586. InstructionDesc[OpImageDrefGather].operands.push(OperandImageOperands, "", true);
  1587. InstructionDesc[OpImageDrefGather].operands.push(OperandVariableIds, "", true);
  1588. InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1589. InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandId, "'Coordinate'");
  1590. InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandImageOperands, "", true);
  1591. InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandVariableIds, "", true);
  1592. InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1593. InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandId, "'Coordinate'");
  1594. InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandImageOperands, "", true);
  1595. InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandVariableIds, "", true);
  1596. InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1597. InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandId, "'Coordinate'");
  1598. InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandId, "'D~ref~'");
  1599. InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandImageOperands, "", true);
  1600. InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandVariableIds, "", true);
  1601. InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1602. InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandId, "'Coordinate'");
  1603. InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandId, "'D~ref~'");
  1604. InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandImageOperands, "", true);
  1605. InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandVariableIds, "", true);
  1606. InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1607. InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandId, "'Coordinate'");
  1608. InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandImageOperands, "", true);
  1609. InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandVariableIds, "", true);
  1610. InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1611. InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandId, "'Coordinate'");
  1612. InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandImageOperands, "", true);
  1613. InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandVariableIds, "", true);
  1614. InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1615. InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandId, "'Coordinate'");
  1616. InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandId, "'D~ref~'");
  1617. InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandImageOperands, "", true);
  1618. InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandVariableIds, "", true);
  1619. InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1620. InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandId, "'Coordinate'");
  1621. InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandId, "'D~ref~'");
  1622. InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandImageOperands, "", true);
  1623. InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandVariableIds, "", true);
  1624. InstructionDesc[OpImageSparseFetch].operands.push(OperandId, "'Image'");
  1625. InstructionDesc[OpImageSparseFetch].operands.push(OperandId, "'Coordinate'");
  1626. InstructionDesc[OpImageSparseFetch].operands.push(OperandImageOperands, "", true);
  1627. InstructionDesc[OpImageSparseFetch].operands.push(OperandVariableIds, "", true);
  1628. InstructionDesc[OpImageSparseGather].operands.push(OperandId, "'Sampled Image'");
  1629. InstructionDesc[OpImageSparseGather].operands.push(OperandId, "'Coordinate'");
  1630. InstructionDesc[OpImageSparseGather].operands.push(OperandId, "'Component'");
  1631. InstructionDesc[OpImageSparseGather].operands.push(OperandImageOperands, "", true);
  1632. InstructionDesc[OpImageSparseGather].operands.push(OperandVariableIds, "", true);
  1633. InstructionDesc[OpImageSparseDrefGather].operands.push(OperandId, "'Sampled Image'");
  1634. InstructionDesc[OpImageSparseDrefGather].operands.push(OperandId, "'Coordinate'");
  1635. InstructionDesc[OpImageSparseDrefGather].operands.push(OperandId, "'D~ref~'");
  1636. InstructionDesc[OpImageSparseDrefGather].operands.push(OperandImageOperands, "", true);
  1637. InstructionDesc[OpImageSparseDrefGather].operands.push(OperandVariableIds, "", true);
  1638. InstructionDesc[OpImageSparseRead].operands.push(OperandId, "'Image'");
  1639. InstructionDesc[OpImageSparseRead].operands.push(OperandId, "'Coordinate'");
  1640. InstructionDesc[OpImageSparseRead].operands.push(OperandImageOperands, "", true);
  1641. InstructionDesc[OpImageSparseRead].operands.push(OperandVariableIds, "", true);
  1642. InstructionDesc[OpImageSparseTexelsResident].operands.push(OperandId, "'Resident Code'");
  1643. InstructionDesc[OpImageQuerySizeLod].operands.push(OperandId, "'Image'");
  1644. InstructionDesc[OpImageQuerySizeLod].operands.push(OperandId, "'Level of Detail'");
  1645. InstructionDesc[OpImageQuerySize].operands.push(OperandId, "'Image'");
  1646. InstructionDesc[OpImageQueryLod].operands.push(OperandId, "'Image'");
  1647. InstructionDesc[OpImageQueryLod].operands.push(OperandId, "'Coordinate'");
  1648. InstructionDesc[OpImageQueryLevels].operands.push(OperandId, "'Image'");
  1649. InstructionDesc[OpImageQuerySamples].operands.push(OperandId, "'Image'");
  1650. InstructionDesc[OpImageQueryFormat].operands.push(OperandId, "'Image'");
  1651. InstructionDesc[OpImageQueryOrder].operands.push(OperandId, "'Image'");
  1652. InstructionDesc[OpAccessChain].operands.push(OperandId, "'Base'");
  1653. InstructionDesc[OpAccessChain].operands.push(OperandVariableIds, "'Indexes'");
  1654. InstructionDesc[OpInBoundsAccessChain].operands.push(OperandId, "'Base'");
  1655. InstructionDesc[OpInBoundsAccessChain].operands.push(OperandVariableIds, "'Indexes'");
  1656. InstructionDesc[OpPtrAccessChain].operands.push(OperandId, "'Base'");
  1657. InstructionDesc[OpPtrAccessChain].operands.push(OperandId, "'Element'");
  1658. InstructionDesc[OpPtrAccessChain].operands.push(OperandVariableIds, "'Indexes'");
  1659. InstructionDesc[OpInBoundsPtrAccessChain].operands.push(OperandId, "'Base'");
  1660. InstructionDesc[OpInBoundsPtrAccessChain].operands.push(OperandId, "'Element'");
  1661. InstructionDesc[OpInBoundsPtrAccessChain].operands.push(OperandVariableIds, "'Indexes'");
  1662. InstructionDesc[OpSNegate].operands.push(OperandId, "'Operand'");
  1663. InstructionDesc[OpFNegate].operands.push(OperandId, "'Operand'");
  1664. InstructionDesc[OpNot].operands.push(OperandId, "'Operand'");
  1665. InstructionDesc[OpAny].operands.push(OperandId, "'Vector'");
  1666. InstructionDesc[OpAll].operands.push(OperandId, "'Vector'");
  1667. InstructionDesc[OpConvertFToU].operands.push(OperandId, "'Float Value'");
  1668. InstructionDesc[OpConvertFToS].operands.push(OperandId, "'Float Value'");
  1669. InstructionDesc[OpConvertSToF].operands.push(OperandId, "'Signed Value'");
  1670. InstructionDesc[OpConvertUToF].operands.push(OperandId, "'Unsigned Value'");
  1671. InstructionDesc[OpUConvert].operands.push(OperandId, "'Unsigned Value'");
  1672. InstructionDesc[OpSConvert].operands.push(OperandId, "'Signed Value'");
  1673. InstructionDesc[OpFConvert].operands.push(OperandId, "'Float Value'");
  1674. InstructionDesc[OpSatConvertSToU].operands.push(OperandId, "'Signed Value'");
  1675. InstructionDesc[OpSatConvertUToS].operands.push(OperandId, "'Unsigned Value'");
  1676. InstructionDesc[OpConvertPtrToU].operands.push(OperandId, "'Pointer'");
  1677. InstructionDesc[OpConvertUToPtr].operands.push(OperandId, "'Integer Value'");
  1678. InstructionDesc[OpPtrCastToGeneric].operands.push(OperandId, "'Pointer'");
  1679. InstructionDesc[OpGenericCastToPtr].operands.push(OperandId, "'Pointer'");
  1680. InstructionDesc[OpGenericCastToPtrExplicit].operands.push(OperandId, "'Pointer'");
  1681. InstructionDesc[OpGenericCastToPtrExplicit].operands.push(OperandStorage, "'Storage'");
  1682. InstructionDesc[OpGenericPtrMemSemantics].operands.push(OperandId, "'Pointer'");
  1683. InstructionDesc[OpBitcast].operands.push(OperandId, "'Operand'");
  1684. InstructionDesc[OpQuantizeToF16].operands.push(OperandId, "'Value'");
  1685. InstructionDesc[OpTranspose].operands.push(OperandId, "'Matrix'");
  1686. InstructionDesc[OpCopyLogical].operands.push(OperandId, "'Operand'");
  1687. InstructionDesc[OpIsNan].operands.push(OperandId, "'x'");
  1688. InstructionDesc[OpIsInf].operands.push(OperandId, "'x'");
  1689. InstructionDesc[OpIsFinite].operands.push(OperandId, "'x'");
  1690. InstructionDesc[OpIsNormal].operands.push(OperandId, "'x'");
  1691. InstructionDesc[OpSignBitSet].operands.push(OperandId, "'x'");
  1692. InstructionDesc[OpLessOrGreater].operands.push(OperandId, "'x'");
  1693. InstructionDesc[OpLessOrGreater].operands.push(OperandId, "'y'");
  1694. InstructionDesc[OpOrdered].operands.push(OperandId, "'x'");
  1695. InstructionDesc[OpOrdered].operands.push(OperandId, "'y'");
  1696. InstructionDesc[OpUnordered].operands.push(OperandId, "'x'");
  1697. InstructionDesc[OpUnordered].operands.push(OperandId, "'y'");
  1698. InstructionDesc[OpArrayLength].operands.push(OperandId, "'Structure'");
  1699. InstructionDesc[OpArrayLength].operands.push(OperandLiteralNumber, "'Array member'");
  1700. InstructionDesc[OpIAdd].operands.push(OperandId, "'Operand 1'");
  1701. InstructionDesc[OpIAdd].operands.push(OperandId, "'Operand 2'");
  1702. InstructionDesc[OpFAdd].operands.push(OperandId, "'Operand 1'");
  1703. InstructionDesc[OpFAdd].operands.push(OperandId, "'Operand 2'");
  1704. InstructionDesc[OpISub].operands.push(OperandId, "'Operand 1'");
  1705. InstructionDesc[OpISub].operands.push(OperandId, "'Operand 2'");
  1706. InstructionDesc[OpFSub].operands.push(OperandId, "'Operand 1'");
  1707. InstructionDesc[OpFSub].operands.push(OperandId, "'Operand 2'");
  1708. InstructionDesc[OpIMul].operands.push(OperandId, "'Operand 1'");
  1709. InstructionDesc[OpIMul].operands.push(OperandId, "'Operand 2'");
  1710. InstructionDesc[OpFMul].operands.push(OperandId, "'Operand 1'");
  1711. InstructionDesc[OpFMul].operands.push(OperandId, "'Operand 2'");
  1712. InstructionDesc[OpUDiv].operands.push(OperandId, "'Operand 1'");
  1713. InstructionDesc[OpUDiv].operands.push(OperandId, "'Operand 2'");
  1714. InstructionDesc[OpSDiv].operands.push(OperandId, "'Operand 1'");
  1715. InstructionDesc[OpSDiv].operands.push(OperandId, "'Operand 2'");
  1716. InstructionDesc[OpFDiv].operands.push(OperandId, "'Operand 1'");
  1717. InstructionDesc[OpFDiv].operands.push(OperandId, "'Operand 2'");
  1718. InstructionDesc[OpUMod].operands.push(OperandId, "'Operand 1'");
  1719. InstructionDesc[OpUMod].operands.push(OperandId, "'Operand 2'");
  1720. InstructionDesc[OpSRem].operands.push(OperandId, "'Operand 1'");
  1721. InstructionDesc[OpSRem].operands.push(OperandId, "'Operand 2'");
  1722. InstructionDesc[OpSMod].operands.push(OperandId, "'Operand 1'");
  1723. InstructionDesc[OpSMod].operands.push(OperandId, "'Operand 2'");
  1724. InstructionDesc[OpFRem].operands.push(OperandId, "'Operand 1'");
  1725. InstructionDesc[OpFRem].operands.push(OperandId, "'Operand 2'");
  1726. InstructionDesc[OpFMod].operands.push(OperandId, "'Operand 1'");
  1727. InstructionDesc[OpFMod].operands.push(OperandId, "'Operand 2'");
  1728. InstructionDesc[OpVectorTimesScalar].operands.push(OperandId, "'Vector'");
  1729. InstructionDesc[OpVectorTimesScalar].operands.push(OperandId, "'Scalar'");
  1730. InstructionDesc[OpMatrixTimesScalar].operands.push(OperandId, "'Matrix'");
  1731. InstructionDesc[OpMatrixTimesScalar].operands.push(OperandId, "'Scalar'");
  1732. InstructionDesc[OpVectorTimesMatrix].operands.push(OperandId, "'Vector'");
  1733. InstructionDesc[OpVectorTimesMatrix].operands.push(OperandId, "'Matrix'");
  1734. InstructionDesc[OpMatrixTimesVector].operands.push(OperandId, "'Matrix'");
  1735. InstructionDesc[OpMatrixTimesVector].operands.push(OperandId, "'Vector'");
  1736. InstructionDesc[OpMatrixTimesMatrix].operands.push(OperandId, "'LeftMatrix'");
  1737. InstructionDesc[OpMatrixTimesMatrix].operands.push(OperandId, "'RightMatrix'");
  1738. InstructionDesc[OpOuterProduct].operands.push(OperandId, "'Vector 1'");
  1739. InstructionDesc[OpOuterProduct].operands.push(OperandId, "'Vector 2'");
  1740. InstructionDesc[OpDot].operands.push(OperandId, "'Vector 1'");
  1741. InstructionDesc[OpDot].operands.push(OperandId, "'Vector 2'");
  1742. InstructionDesc[OpIAddCarry].operands.push(OperandId, "'Operand 1'");
  1743. InstructionDesc[OpIAddCarry].operands.push(OperandId, "'Operand 2'");
  1744. InstructionDesc[OpISubBorrow].operands.push(OperandId, "'Operand 1'");
  1745. InstructionDesc[OpISubBorrow].operands.push(OperandId, "'Operand 2'");
  1746. InstructionDesc[OpUMulExtended].operands.push(OperandId, "'Operand 1'");
  1747. InstructionDesc[OpUMulExtended].operands.push(OperandId, "'Operand 2'");
  1748. InstructionDesc[OpSMulExtended].operands.push(OperandId, "'Operand 1'");
  1749. InstructionDesc[OpSMulExtended].operands.push(OperandId, "'Operand 2'");
  1750. InstructionDesc[OpShiftRightLogical].operands.push(OperandId, "'Base'");
  1751. InstructionDesc[OpShiftRightLogical].operands.push(OperandId, "'Shift'");
  1752. InstructionDesc[OpShiftRightArithmetic].operands.push(OperandId, "'Base'");
  1753. InstructionDesc[OpShiftRightArithmetic].operands.push(OperandId, "'Shift'");
  1754. InstructionDesc[OpShiftLeftLogical].operands.push(OperandId, "'Base'");
  1755. InstructionDesc[OpShiftLeftLogical].operands.push(OperandId, "'Shift'");
  1756. InstructionDesc[OpLogicalOr].operands.push(OperandId, "'Operand 1'");
  1757. InstructionDesc[OpLogicalOr].operands.push(OperandId, "'Operand 2'");
  1758. InstructionDesc[OpLogicalAnd].operands.push(OperandId, "'Operand 1'");
  1759. InstructionDesc[OpLogicalAnd].operands.push(OperandId, "'Operand 2'");
  1760. InstructionDesc[OpLogicalEqual].operands.push(OperandId, "'Operand 1'");
  1761. InstructionDesc[OpLogicalEqual].operands.push(OperandId, "'Operand 2'");
  1762. InstructionDesc[OpLogicalNotEqual].operands.push(OperandId, "'Operand 1'");
  1763. InstructionDesc[OpLogicalNotEqual].operands.push(OperandId, "'Operand 2'");
  1764. InstructionDesc[OpLogicalNot].operands.push(OperandId, "'Operand'");
  1765. InstructionDesc[OpBitwiseOr].operands.push(OperandId, "'Operand 1'");
  1766. InstructionDesc[OpBitwiseOr].operands.push(OperandId, "'Operand 2'");
  1767. InstructionDesc[OpBitwiseXor].operands.push(OperandId, "'Operand 1'");
  1768. InstructionDesc[OpBitwiseXor].operands.push(OperandId, "'Operand 2'");
  1769. InstructionDesc[OpBitwiseAnd].operands.push(OperandId, "'Operand 1'");
  1770. InstructionDesc[OpBitwiseAnd].operands.push(OperandId, "'Operand 2'");
  1771. InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Base'");
  1772. InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Insert'");
  1773. InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Offset'");
  1774. InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Count'");
  1775. InstructionDesc[OpBitFieldSExtract].operands.push(OperandId, "'Base'");
  1776. InstructionDesc[OpBitFieldSExtract].operands.push(OperandId, "'Offset'");
  1777. InstructionDesc[OpBitFieldSExtract].operands.push(OperandId, "'Count'");
  1778. InstructionDesc[OpBitFieldUExtract].operands.push(OperandId, "'Base'");
  1779. InstructionDesc[OpBitFieldUExtract].operands.push(OperandId, "'Offset'");
  1780. InstructionDesc[OpBitFieldUExtract].operands.push(OperandId, "'Count'");
  1781. InstructionDesc[OpBitReverse].operands.push(OperandId, "'Base'");
  1782. InstructionDesc[OpBitCount].operands.push(OperandId, "'Base'");
  1783. InstructionDesc[OpSelect].operands.push(OperandId, "'Condition'");
  1784. InstructionDesc[OpSelect].operands.push(OperandId, "'Object 1'");
  1785. InstructionDesc[OpSelect].operands.push(OperandId, "'Object 2'");
  1786. InstructionDesc[OpIEqual].operands.push(OperandId, "'Operand 1'");
  1787. InstructionDesc[OpIEqual].operands.push(OperandId, "'Operand 2'");
  1788. InstructionDesc[OpFOrdEqual].operands.push(OperandId, "'Operand 1'");
  1789. InstructionDesc[OpFOrdEqual].operands.push(OperandId, "'Operand 2'");
  1790. InstructionDesc[OpFUnordEqual].operands.push(OperandId, "'Operand 1'");
  1791. InstructionDesc[OpFUnordEqual].operands.push(OperandId, "'Operand 2'");
  1792. InstructionDesc[OpINotEqual].operands.push(OperandId, "'Operand 1'");
  1793. InstructionDesc[OpINotEqual].operands.push(OperandId, "'Operand 2'");
  1794. InstructionDesc[OpFOrdNotEqual].operands.push(OperandId, "'Operand 1'");
  1795. InstructionDesc[OpFOrdNotEqual].operands.push(OperandId, "'Operand 2'");
  1796. InstructionDesc[OpFUnordNotEqual].operands.push(OperandId, "'Operand 1'");
  1797. InstructionDesc[OpFUnordNotEqual].operands.push(OperandId, "'Operand 2'");
  1798. InstructionDesc[OpULessThan].operands.push(OperandId, "'Operand 1'");
  1799. InstructionDesc[OpULessThan].operands.push(OperandId, "'Operand 2'");
  1800. InstructionDesc[OpSLessThan].operands.push(OperandId, "'Operand 1'");
  1801. InstructionDesc[OpSLessThan].operands.push(OperandId, "'Operand 2'");
  1802. InstructionDesc[OpFOrdLessThan].operands.push(OperandId, "'Operand 1'");
  1803. InstructionDesc[OpFOrdLessThan].operands.push(OperandId, "'Operand 2'");
  1804. InstructionDesc[OpFUnordLessThan].operands.push(OperandId, "'Operand 1'");
  1805. InstructionDesc[OpFUnordLessThan].operands.push(OperandId, "'Operand 2'");
  1806. InstructionDesc[OpUGreaterThan].operands.push(OperandId, "'Operand 1'");
  1807. InstructionDesc[OpUGreaterThan].operands.push(OperandId, "'Operand 2'");
  1808. InstructionDesc[OpSGreaterThan].operands.push(OperandId, "'Operand 1'");
  1809. InstructionDesc[OpSGreaterThan].operands.push(OperandId, "'Operand 2'");
  1810. InstructionDesc[OpFOrdGreaterThan].operands.push(OperandId, "'Operand 1'");
  1811. InstructionDesc[OpFOrdGreaterThan].operands.push(OperandId, "'Operand 2'");
  1812. InstructionDesc[OpFUnordGreaterThan].operands.push(OperandId, "'Operand 1'");
  1813. InstructionDesc[OpFUnordGreaterThan].operands.push(OperandId, "'Operand 2'");
  1814. InstructionDesc[OpULessThanEqual].operands.push(OperandId, "'Operand 1'");
  1815. InstructionDesc[OpULessThanEqual].operands.push(OperandId, "'Operand 2'");
  1816. InstructionDesc[OpSLessThanEqual].operands.push(OperandId, "'Operand 1'");
  1817. InstructionDesc[OpSLessThanEqual].operands.push(OperandId, "'Operand 2'");
  1818. InstructionDesc[OpFOrdLessThanEqual].operands.push(OperandId, "'Operand 1'");
  1819. InstructionDesc[OpFOrdLessThanEqual].operands.push(OperandId, "'Operand 2'");
  1820. InstructionDesc[OpFUnordLessThanEqual].operands.push(OperandId, "'Operand 1'");
  1821. InstructionDesc[OpFUnordLessThanEqual].operands.push(OperandId, "'Operand 2'");
  1822. InstructionDesc[OpUGreaterThanEqual].operands.push(OperandId, "'Operand 1'");
  1823. InstructionDesc[OpUGreaterThanEqual].operands.push(OperandId, "'Operand 2'");
  1824. InstructionDesc[OpSGreaterThanEqual].operands.push(OperandId, "'Operand 1'");
  1825. InstructionDesc[OpSGreaterThanEqual].operands.push(OperandId, "'Operand 2'");
  1826. InstructionDesc[OpFOrdGreaterThanEqual].operands.push(OperandId, "'Operand 1'");
  1827. InstructionDesc[OpFOrdGreaterThanEqual].operands.push(OperandId, "'Operand 2'");
  1828. InstructionDesc[OpFUnordGreaterThanEqual].operands.push(OperandId, "'Operand 1'");
  1829. InstructionDesc[OpFUnordGreaterThanEqual].operands.push(OperandId, "'Operand 2'");
  1830. InstructionDesc[OpDPdx].operands.push(OperandId, "'P'");
  1831. InstructionDesc[OpDPdy].operands.push(OperandId, "'P'");
  1832. InstructionDesc[OpFwidth].operands.push(OperandId, "'P'");
  1833. InstructionDesc[OpDPdxFine].operands.push(OperandId, "'P'");
  1834. InstructionDesc[OpDPdyFine].operands.push(OperandId, "'P'");
  1835. InstructionDesc[OpFwidthFine].operands.push(OperandId, "'P'");
  1836. InstructionDesc[OpDPdxCoarse].operands.push(OperandId, "'P'");
  1837. InstructionDesc[OpDPdyCoarse].operands.push(OperandId, "'P'");
  1838. InstructionDesc[OpFwidthCoarse].operands.push(OperandId, "'P'");
  1839. InstructionDesc[OpEmitStreamVertex].operands.push(OperandId, "'Stream'");
  1840. InstructionDesc[OpEndStreamPrimitive].operands.push(OperandId, "'Stream'");
  1841. InstructionDesc[OpControlBarrier].operands.push(OperandScope, "'Execution'");
  1842. InstructionDesc[OpControlBarrier].operands.push(OperandScope, "'Memory'");
  1843. InstructionDesc[OpControlBarrier].operands.push(OperandMemorySemantics, "'Semantics'");
  1844. InstructionDesc[OpMemoryBarrier].operands.push(OperandScope, "'Memory'");
  1845. InstructionDesc[OpMemoryBarrier].operands.push(OperandMemorySemantics, "'Semantics'");
  1846. InstructionDesc[OpImageTexelPointer].operands.push(OperandId, "'Image'");
  1847. InstructionDesc[OpImageTexelPointer].operands.push(OperandId, "'Coordinate'");
  1848. InstructionDesc[OpImageTexelPointer].operands.push(OperandId, "'Sample'");
  1849. InstructionDesc[OpAtomicLoad].operands.push(OperandId, "'Pointer'");
  1850. InstructionDesc[OpAtomicLoad].operands.push(OperandScope, "'Scope'");
  1851. InstructionDesc[OpAtomicLoad].operands.push(OperandMemorySemantics, "'Semantics'");
  1852. InstructionDesc[OpAtomicStore].operands.push(OperandId, "'Pointer'");
  1853. InstructionDesc[OpAtomicStore].operands.push(OperandScope, "'Scope'");
  1854. InstructionDesc[OpAtomicStore].operands.push(OperandMemorySemantics, "'Semantics'");
  1855. InstructionDesc[OpAtomicStore].operands.push(OperandId, "'Value'");
  1856. InstructionDesc[OpAtomicExchange].operands.push(OperandId, "'Pointer'");
  1857. InstructionDesc[OpAtomicExchange].operands.push(OperandScope, "'Scope'");
  1858. InstructionDesc[OpAtomicExchange].operands.push(OperandMemorySemantics, "'Semantics'");
  1859. InstructionDesc[OpAtomicExchange].operands.push(OperandId, "'Value'");
  1860. InstructionDesc[OpAtomicCompareExchange].operands.push(OperandId, "'Pointer'");
  1861. InstructionDesc[OpAtomicCompareExchange].operands.push(OperandScope, "'Scope'");
  1862. InstructionDesc[OpAtomicCompareExchange].operands.push(OperandMemorySemantics, "'Equal'");
  1863. InstructionDesc[OpAtomicCompareExchange].operands.push(OperandMemorySemantics, "'Unequal'");
  1864. InstructionDesc[OpAtomicCompareExchange].operands.push(OperandId, "'Value'");
  1865. InstructionDesc[OpAtomicCompareExchange].operands.push(OperandId, "'Comparator'");
  1866. InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandId, "'Pointer'");
  1867. InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandScope, "'Scope'");
  1868. InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandMemorySemantics, "'Equal'");
  1869. InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandMemorySemantics, "'Unequal'");
  1870. InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandId, "'Value'");
  1871. InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandId, "'Comparator'");
  1872. InstructionDesc[OpAtomicIIncrement].operands.push(OperandId, "'Pointer'");
  1873. InstructionDesc[OpAtomicIIncrement].operands.push(OperandScope, "'Scope'");
  1874. InstructionDesc[OpAtomicIIncrement].operands.push(OperandMemorySemantics, "'Semantics'");
  1875. InstructionDesc[OpAtomicIDecrement].operands.push(OperandId, "'Pointer'");
  1876. InstructionDesc[OpAtomicIDecrement].operands.push(OperandScope, "'Scope'");
  1877. InstructionDesc[OpAtomicIDecrement].operands.push(OperandMemorySemantics, "'Semantics'");
  1878. InstructionDesc[OpAtomicIAdd].operands.push(OperandId, "'Pointer'");
  1879. InstructionDesc[OpAtomicIAdd].operands.push(OperandScope, "'Scope'");
  1880. InstructionDesc[OpAtomicIAdd].operands.push(OperandMemorySemantics, "'Semantics'");
  1881. InstructionDesc[OpAtomicIAdd].operands.push(OperandId, "'Value'");
  1882. InstructionDesc[OpAtomicISub].operands.push(OperandId, "'Pointer'");
  1883. InstructionDesc[OpAtomicISub].operands.push(OperandScope, "'Scope'");
  1884. InstructionDesc[OpAtomicISub].operands.push(OperandMemorySemantics, "'Semantics'");
  1885. InstructionDesc[OpAtomicISub].operands.push(OperandId, "'Value'");
  1886. InstructionDesc[OpAtomicUMin].operands.push(OperandId, "'Pointer'");
  1887. InstructionDesc[OpAtomicUMin].operands.push(OperandScope, "'Scope'");
  1888. InstructionDesc[OpAtomicUMin].operands.push(OperandMemorySemantics, "'Semantics'");
  1889. InstructionDesc[OpAtomicUMin].operands.push(OperandId, "'Value'");
  1890. InstructionDesc[OpAtomicUMax].operands.push(OperandId, "'Pointer'");
  1891. InstructionDesc[OpAtomicUMax].operands.push(OperandScope, "'Scope'");
  1892. InstructionDesc[OpAtomicUMax].operands.push(OperandMemorySemantics, "'Semantics'");
  1893. InstructionDesc[OpAtomicUMax].operands.push(OperandId, "'Value'");
  1894. InstructionDesc[OpAtomicSMin].operands.push(OperandId, "'Pointer'");
  1895. InstructionDesc[OpAtomicSMin].operands.push(OperandScope, "'Scope'");
  1896. InstructionDesc[OpAtomicSMin].operands.push(OperandMemorySemantics, "'Semantics'");
  1897. InstructionDesc[OpAtomicSMin].operands.push(OperandId, "'Value'");
  1898. InstructionDesc[OpAtomicSMax].operands.push(OperandId, "'Pointer'");
  1899. InstructionDesc[OpAtomicSMax].operands.push(OperandScope, "'Scope'");
  1900. InstructionDesc[OpAtomicSMax].operands.push(OperandMemorySemantics, "'Semantics'");
  1901. InstructionDesc[OpAtomicSMax].operands.push(OperandId, "'Value'");
  1902. InstructionDesc[OpAtomicAnd].operands.push(OperandId, "'Pointer'");
  1903. InstructionDesc[OpAtomicAnd].operands.push(OperandScope, "'Scope'");
  1904. InstructionDesc[OpAtomicAnd].operands.push(OperandMemorySemantics, "'Semantics'");
  1905. InstructionDesc[OpAtomicAnd].operands.push(OperandId, "'Value'");
  1906. InstructionDesc[OpAtomicOr].operands.push(OperandId, "'Pointer'");
  1907. InstructionDesc[OpAtomicOr].operands.push(OperandScope, "'Scope'");
  1908. InstructionDesc[OpAtomicOr].operands.push(OperandMemorySemantics, "'Semantics'");
  1909. InstructionDesc[OpAtomicOr].operands.push(OperandId, "'Value'");
  1910. InstructionDesc[OpAtomicXor].operands.push(OperandId, "'Pointer'");
  1911. InstructionDesc[OpAtomicXor].operands.push(OperandScope, "'Scope'");
  1912. InstructionDesc[OpAtomicXor].operands.push(OperandMemorySemantics, "'Semantics'");
  1913. InstructionDesc[OpAtomicXor].operands.push(OperandId, "'Value'");
  1914. InstructionDesc[OpAtomicFlagTestAndSet].operands.push(OperandId, "'Pointer'");
  1915. InstructionDesc[OpAtomicFlagTestAndSet].operands.push(OperandScope, "'Scope'");
  1916. InstructionDesc[OpAtomicFlagTestAndSet].operands.push(OperandMemorySemantics, "'Semantics'");
  1917. InstructionDesc[OpAtomicFlagClear].operands.push(OperandId, "'Pointer'");
  1918. InstructionDesc[OpAtomicFlagClear].operands.push(OperandScope, "'Scope'");
  1919. InstructionDesc[OpAtomicFlagClear].operands.push(OperandMemorySemantics, "'Semantics'");
  1920. InstructionDesc[OpLoopMerge].operands.push(OperandId, "'Merge Block'");
  1921. InstructionDesc[OpLoopMerge].operands.push(OperandId, "'Continue Target'");
  1922. InstructionDesc[OpLoopMerge].operands.push(OperandLoop, "");
  1923. InstructionDesc[OpLoopMerge].operands.push(OperandOptionalLiteral, "");
  1924. InstructionDesc[OpSelectionMerge].operands.push(OperandId, "'Merge Block'");
  1925. InstructionDesc[OpSelectionMerge].operands.push(OperandSelect, "");
  1926. InstructionDesc[OpBranch].operands.push(OperandId, "'Target Label'");
  1927. InstructionDesc[OpBranchConditional].operands.push(OperandId, "'Condition'");
  1928. InstructionDesc[OpBranchConditional].operands.push(OperandId, "'True Label'");
  1929. InstructionDesc[OpBranchConditional].operands.push(OperandId, "'False Label'");
  1930. InstructionDesc[OpBranchConditional].operands.push(OperandVariableLiterals, "'Branch weights'");
  1931. InstructionDesc[OpSwitch].operands.push(OperandId, "'Selector'");
  1932. InstructionDesc[OpSwitch].operands.push(OperandId, "'Default'");
  1933. InstructionDesc[OpSwitch].operands.push(OperandVariableLiteralId, "'Target'");
  1934. InstructionDesc[OpReturnValue].operands.push(OperandId, "'Value'");
  1935. InstructionDesc[OpLifetimeStart].operands.push(OperandId, "'Pointer'");
  1936. InstructionDesc[OpLifetimeStart].operands.push(OperandLiteralNumber, "'Size'");
  1937. InstructionDesc[OpLifetimeStop].operands.push(OperandId, "'Pointer'");
  1938. InstructionDesc[OpLifetimeStop].operands.push(OperandLiteralNumber, "'Size'");
  1939. InstructionDesc[OpGroupAsyncCopy].operands.push(OperandScope, "'Execution'");
  1940. InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Destination'");
  1941. InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Source'");
  1942. InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Num Elements'");
  1943. InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Stride'");
  1944. InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Event'");
  1945. InstructionDesc[OpGroupWaitEvents].operands.push(OperandScope, "'Execution'");
  1946. InstructionDesc[OpGroupWaitEvents].operands.push(OperandId, "'Num Events'");
  1947. InstructionDesc[OpGroupWaitEvents].operands.push(OperandId, "'Events List'");
  1948. InstructionDesc[OpGroupAll].operands.push(OperandScope, "'Execution'");
  1949. InstructionDesc[OpGroupAll].operands.push(OperandId, "'Predicate'");
  1950. InstructionDesc[OpGroupAny].operands.push(OperandScope, "'Execution'");
  1951. InstructionDesc[OpGroupAny].operands.push(OperandId, "'Predicate'");
  1952. InstructionDesc[OpGroupBroadcast].operands.push(OperandScope, "'Execution'");
  1953. InstructionDesc[OpGroupBroadcast].operands.push(OperandId, "'Value'");
  1954. InstructionDesc[OpGroupBroadcast].operands.push(OperandId, "'LocalId'");
  1955. InstructionDesc[OpGroupIAdd].operands.push(OperandScope, "'Execution'");
  1956. InstructionDesc[OpGroupIAdd].operands.push(OperandGroupOperation, "'Operation'");
  1957. InstructionDesc[OpGroupIAdd].operands.push(OperandId, "'X'");
  1958. InstructionDesc[OpGroupFAdd].operands.push(OperandScope, "'Execution'");
  1959. InstructionDesc[OpGroupFAdd].operands.push(OperandGroupOperation, "'Operation'");
  1960. InstructionDesc[OpGroupFAdd].operands.push(OperandId, "'X'");
  1961. InstructionDesc[OpGroupUMin].operands.push(OperandScope, "'Execution'");
  1962. InstructionDesc[OpGroupUMin].operands.push(OperandGroupOperation, "'Operation'");
  1963. InstructionDesc[OpGroupUMin].operands.push(OperandId, "'X'");
  1964. InstructionDesc[OpGroupSMin].operands.push(OperandScope, "'Execution'");
  1965. InstructionDesc[OpGroupSMin].operands.push(OperandGroupOperation, "'Operation'");
  1966. InstructionDesc[OpGroupSMin].operands.push(OperandId, "X");
  1967. InstructionDesc[OpGroupFMin].operands.push(OperandScope, "'Execution'");
  1968. InstructionDesc[OpGroupFMin].operands.push(OperandGroupOperation, "'Operation'");
  1969. InstructionDesc[OpGroupFMin].operands.push(OperandId, "X");
  1970. InstructionDesc[OpGroupUMax].operands.push(OperandScope, "'Execution'");
  1971. InstructionDesc[OpGroupUMax].operands.push(OperandGroupOperation, "'Operation'");
  1972. InstructionDesc[OpGroupUMax].operands.push(OperandId, "X");
  1973. InstructionDesc[OpGroupSMax].operands.push(OperandScope, "'Execution'");
  1974. InstructionDesc[OpGroupSMax].operands.push(OperandGroupOperation, "'Operation'");
  1975. InstructionDesc[OpGroupSMax].operands.push(OperandId, "X");
  1976. InstructionDesc[OpGroupFMax].operands.push(OperandScope, "'Execution'");
  1977. InstructionDesc[OpGroupFMax].operands.push(OperandGroupOperation, "'Operation'");
  1978. InstructionDesc[OpGroupFMax].operands.push(OperandId, "X");
  1979. InstructionDesc[OpReadPipe].operands.push(OperandId, "'Pipe'");
  1980. InstructionDesc[OpReadPipe].operands.push(OperandId, "'Pointer'");
  1981. InstructionDesc[OpReadPipe].operands.push(OperandId, "'Packet Size'");
  1982. InstructionDesc[OpReadPipe].operands.push(OperandId, "'Packet Alignment'");
  1983. InstructionDesc[OpWritePipe].operands.push(OperandId, "'Pipe'");
  1984. InstructionDesc[OpWritePipe].operands.push(OperandId, "'Pointer'");
  1985. InstructionDesc[OpWritePipe].operands.push(OperandId, "'Packet Size'");
  1986. InstructionDesc[OpWritePipe].operands.push(OperandId, "'Packet Alignment'");
  1987. InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Pipe'");
  1988. InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Reserve Id'");
  1989. InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Index'");
  1990. InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Pointer'");
  1991. InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Packet Size'");
  1992. InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Packet Alignment'");
  1993. InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Pipe'");
  1994. InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Reserve Id'");
  1995. InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Index'");
  1996. InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Pointer'");
  1997. InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Packet Size'");
  1998. InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Packet Alignment'");
  1999. InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Pipe'");
  2000. InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Num Packets'");
  2001. InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Packet Size'");
  2002. InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Packet Alignment'");
  2003. InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Pipe'");
  2004. InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Num Packets'");
  2005. InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Packet Size'");
  2006. InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Packet Alignment'");
  2007. InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Pipe'");
  2008. InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Reserve Id'");
  2009. InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Packet Size'");
  2010. InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Packet Alignment'");
  2011. InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Pipe'");
  2012. InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Reserve Id'");
  2013. InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Packet Size'");
  2014. InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Packet Alignment'");
  2015. InstructionDesc[OpIsValidReserveId].operands.push(OperandId, "'Reserve Id'");
  2016. InstructionDesc[OpGetNumPipePackets].operands.push(OperandId, "'Pipe'");
  2017. InstructionDesc[OpGetNumPipePackets].operands.push(OperandId, "'Packet Size'");
  2018. InstructionDesc[OpGetNumPipePackets].operands.push(OperandId, "'Packet Alignment'");
  2019. InstructionDesc[OpGetMaxPipePackets].operands.push(OperandId, "'Pipe'");
  2020. InstructionDesc[OpGetMaxPipePackets].operands.push(OperandId, "'Packet Size'");
  2021. InstructionDesc[OpGetMaxPipePackets].operands.push(OperandId, "'Packet Alignment'");
  2022. InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandScope, "'Execution'");
  2023. InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Pipe'");
  2024. InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Num Packets'");
  2025. InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Packet Size'");
  2026. InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Packet Alignment'");
  2027. InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandScope, "'Execution'");
  2028. InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Pipe'");
  2029. InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Num Packets'");
  2030. InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Packet Size'");
  2031. InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Packet Alignment'");
  2032. InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandScope, "'Execution'");
  2033. InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Pipe'");
  2034. InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Reserve Id'");
  2035. InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Packet Size'");
  2036. InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Packet Alignment'");
  2037. InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandScope, "'Execution'");
  2038. InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Pipe'");
  2039. InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Reserve Id'");
  2040. InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Packet Size'");
  2041. InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Packet Alignment'");
  2042. InstructionDesc[OpBuildNDRange].operands.push(OperandId, "'GlobalWorkSize'");
  2043. InstructionDesc[OpBuildNDRange].operands.push(OperandId, "'LocalWorkSize'");
  2044. InstructionDesc[OpBuildNDRange].operands.push(OperandId, "'GlobalWorkOffset'");
  2045. InstructionDesc[OpCaptureEventProfilingInfo].operands.push(OperandId, "'Event'");
  2046. InstructionDesc[OpCaptureEventProfilingInfo].operands.push(OperandId, "'Profiling Info'");
  2047. InstructionDesc[OpCaptureEventProfilingInfo].operands.push(OperandId, "'Value'");
  2048. InstructionDesc[OpSetUserEventStatus].operands.push(OperandId, "'Event'");
  2049. InstructionDesc[OpSetUserEventStatus].operands.push(OperandId, "'Status'");
  2050. InstructionDesc[OpIsValidEvent].operands.push(OperandId, "'Event'");
  2051. InstructionDesc[OpRetainEvent].operands.push(OperandId, "'Event'");
  2052. InstructionDesc[OpReleaseEvent].operands.push(OperandId, "'Event'");
  2053. InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Invoke'");
  2054. InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Param'");
  2055. InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Param Size'");
  2056. InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Param Align'");
  2057. InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Invoke'");
  2058. InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Param'");
  2059. InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Param Size'");
  2060. InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Param Align'");
  2061. InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'ND Range'");
  2062. InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Invoke'");
  2063. InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Param'");
  2064. InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Param Size'");
  2065. InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Param Align'");
  2066. InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'ND Range'");
  2067. InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Invoke'");
  2068. InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Param'");
  2069. InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Param Size'");
  2070. InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Param Align'");
  2071. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Queue'");
  2072. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Flags'");
  2073. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'ND Range'");
  2074. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Num Events'");
  2075. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Wait Events'");
  2076. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Ret Event'");
  2077. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Invoke'");
  2078. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Param'");
  2079. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Param Size'");
  2080. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Param Align'");
  2081. InstructionDesc[OpEnqueueKernel].operands.push(OperandVariableIds, "'Local Size'");
  2082. InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Queue'");
  2083. InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Num Events'");
  2084. InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Wait Events'");
  2085. InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Ret Event'");
  2086. InstructionDesc[OpGroupNonUniformElect].operands.push(OperandScope, "'Execution'");
  2087. InstructionDesc[OpGroupNonUniformAll].operands.push(OperandScope, "'Execution'");
  2088. InstructionDesc[OpGroupNonUniformAll].operands.push(OperandId, "X");
  2089. InstructionDesc[OpGroupNonUniformAny].operands.push(OperandScope, "'Execution'");
  2090. InstructionDesc[OpGroupNonUniformAny].operands.push(OperandId, "X");
  2091. InstructionDesc[OpGroupNonUniformAllEqual].operands.push(OperandScope, "'Execution'");
  2092. InstructionDesc[OpGroupNonUniformAllEqual].operands.push(OperandId, "X");
  2093. InstructionDesc[OpGroupNonUniformBroadcast].operands.push(OperandScope, "'Execution'");
  2094. InstructionDesc[OpGroupNonUniformBroadcast].operands.push(OperandId, "X");
  2095. InstructionDesc[OpGroupNonUniformBroadcast].operands.push(OperandId, "ID");
  2096. InstructionDesc[OpGroupNonUniformBroadcastFirst].operands.push(OperandScope, "'Execution'");
  2097. InstructionDesc[OpGroupNonUniformBroadcastFirst].operands.push(OperandId, "X");
  2098. InstructionDesc[OpGroupNonUniformBallot].operands.push(OperandScope, "'Execution'");
  2099. InstructionDesc[OpGroupNonUniformBallot].operands.push(OperandId, "X");
  2100. InstructionDesc[OpGroupNonUniformInverseBallot].operands.push(OperandScope, "'Execution'");
  2101. InstructionDesc[OpGroupNonUniformInverseBallot].operands.push(OperandId, "X");
  2102. InstructionDesc[OpGroupNonUniformBallotBitExtract].operands.push(OperandScope, "'Execution'");
  2103. InstructionDesc[OpGroupNonUniformBallotBitExtract].operands.push(OperandId, "X");
  2104. InstructionDesc[OpGroupNonUniformBallotBitExtract].operands.push(OperandId, "Bit");
  2105. InstructionDesc[OpGroupNonUniformBallotBitCount].operands.push(OperandScope, "'Execution'");
  2106. InstructionDesc[OpGroupNonUniformBallotBitCount].operands.push(OperandGroupOperation, "'Operation'");
  2107. InstructionDesc[OpGroupNonUniformBallotBitCount].operands.push(OperandId, "X");
  2108. InstructionDesc[OpGroupNonUniformBallotFindLSB].operands.push(OperandScope, "'Execution'");
  2109. InstructionDesc[OpGroupNonUniformBallotFindLSB].operands.push(OperandId, "X");
  2110. InstructionDesc[OpGroupNonUniformBallotFindMSB].operands.push(OperandScope, "'Execution'");
  2111. InstructionDesc[OpGroupNonUniformBallotFindMSB].operands.push(OperandId, "X");
  2112. InstructionDesc[OpGroupNonUniformShuffle].operands.push(OperandScope, "'Execution'");
  2113. InstructionDesc[OpGroupNonUniformShuffle].operands.push(OperandId, "X");
  2114. InstructionDesc[OpGroupNonUniformShuffle].operands.push(OperandId, "'Id'");
  2115. InstructionDesc[OpGroupNonUniformShuffleXor].operands.push(OperandScope, "'Execution'");
  2116. InstructionDesc[OpGroupNonUniformShuffleXor].operands.push(OperandId, "X");
  2117. InstructionDesc[OpGroupNonUniformShuffleXor].operands.push(OperandId, "Mask");
  2118. InstructionDesc[OpGroupNonUniformShuffleUp].operands.push(OperandScope, "'Execution'");
  2119. InstructionDesc[OpGroupNonUniformShuffleUp].operands.push(OperandId, "X");
  2120. InstructionDesc[OpGroupNonUniformShuffleUp].operands.push(OperandId, "Offset");
  2121. InstructionDesc[OpGroupNonUniformShuffleDown].operands.push(OperandScope, "'Execution'");
  2122. InstructionDesc[OpGroupNonUniformShuffleDown].operands.push(OperandId, "X");
  2123. InstructionDesc[OpGroupNonUniformShuffleDown].operands.push(OperandId, "Offset");
  2124. InstructionDesc[OpGroupNonUniformIAdd].operands.push(OperandScope, "'Execution'");
  2125. InstructionDesc[OpGroupNonUniformIAdd].operands.push(OperandGroupOperation, "'Operation'");
  2126. InstructionDesc[OpGroupNonUniformIAdd].operands.push(OperandId, "X");
  2127. InstructionDesc[OpGroupNonUniformIAdd].operands.push(OperandId, "'ClusterSize'", true);
  2128. InstructionDesc[OpGroupNonUniformFAdd].operands.push(OperandScope, "'Execution'");
  2129. InstructionDesc[OpGroupNonUniformFAdd].operands.push(OperandGroupOperation, "'Operation'");
  2130. InstructionDesc[OpGroupNonUniformFAdd].operands.push(OperandId, "X");
  2131. InstructionDesc[OpGroupNonUniformFAdd].operands.push(OperandId, "'ClusterSize'", true);
  2132. InstructionDesc[OpGroupNonUniformIMul].operands.push(OperandScope, "'Execution'");
  2133. InstructionDesc[OpGroupNonUniformIMul].operands.push(OperandGroupOperation, "'Operation'");
  2134. InstructionDesc[OpGroupNonUniformIMul].operands.push(OperandId, "X");
  2135. InstructionDesc[OpGroupNonUniformIMul].operands.push(OperandId, "'ClusterSize'", true);
  2136. InstructionDesc[OpGroupNonUniformFMul].operands.push(OperandScope, "'Execution'");
  2137. InstructionDesc[OpGroupNonUniformFMul].operands.push(OperandGroupOperation, "'Operation'");
  2138. InstructionDesc[OpGroupNonUniformFMul].operands.push(OperandId, "X");
  2139. InstructionDesc[OpGroupNonUniformFMul].operands.push(OperandId, "'ClusterSize'", true);
  2140. InstructionDesc[OpGroupNonUniformSMin].operands.push(OperandScope, "'Execution'");
  2141. InstructionDesc[OpGroupNonUniformSMin].operands.push(OperandGroupOperation, "'Operation'");
  2142. InstructionDesc[OpGroupNonUniformSMin].operands.push(OperandId, "X");
  2143. InstructionDesc[OpGroupNonUniformSMin].operands.push(OperandId, "'ClusterSize'", true);
  2144. InstructionDesc[OpGroupNonUniformUMin].operands.push(OperandScope, "'Execution'");
  2145. InstructionDesc[OpGroupNonUniformUMin].operands.push(OperandGroupOperation, "'Operation'");
  2146. InstructionDesc[OpGroupNonUniformUMin].operands.push(OperandId, "X");
  2147. InstructionDesc[OpGroupNonUniformUMin].operands.push(OperandId, "'ClusterSize'", true);
  2148. InstructionDesc[OpGroupNonUniformFMin].operands.push(OperandScope, "'Execution'");
  2149. InstructionDesc[OpGroupNonUniformFMin].operands.push(OperandGroupOperation, "'Operation'");
  2150. InstructionDesc[OpGroupNonUniformFMin].operands.push(OperandId, "X");
  2151. InstructionDesc[OpGroupNonUniformFMin].operands.push(OperandId, "'ClusterSize'", true);
  2152. InstructionDesc[OpGroupNonUniformSMax].operands.push(OperandScope, "'Execution'");
  2153. InstructionDesc[OpGroupNonUniformSMax].operands.push(OperandGroupOperation, "'Operation'");
  2154. InstructionDesc[OpGroupNonUniformSMax].operands.push(OperandId, "X");
  2155. InstructionDesc[OpGroupNonUniformSMax].operands.push(OperandId, "'ClusterSize'", true);
  2156. InstructionDesc[OpGroupNonUniformUMax].operands.push(OperandScope, "'Execution'");
  2157. InstructionDesc[OpGroupNonUniformUMax].operands.push(OperandGroupOperation, "'Operation'");
  2158. InstructionDesc[OpGroupNonUniformUMax].operands.push(OperandId, "X");
  2159. InstructionDesc[OpGroupNonUniformUMax].operands.push(OperandId, "'ClusterSize'", true);
  2160. InstructionDesc[OpGroupNonUniformFMax].operands.push(OperandScope, "'Execution'");
  2161. InstructionDesc[OpGroupNonUniformFMax].operands.push(OperandGroupOperation, "'Operation'");
  2162. InstructionDesc[OpGroupNonUniformFMax].operands.push(OperandId, "X");
  2163. InstructionDesc[OpGroupNonUniformFMax].operands.push(OperandId, "'ClusterSize'", true);
  2164. InstructionDesc[OpGroupNonUniformBitwiseAnd].operands.push(OperandScope, "'Execution'");
  2165. InstructionDesc[OpGroupNonUniformBitwiseAnd].operands.push(OperandGroupOperation, "'Operation'");
  2166. InstructionDesc[OpGroupNonUniformBitwiseAnd].operands.push(OperandId, "X");
  2167. InstructionDesc[OpGroupNonUniformBitwiseAnd].operands.push(OperandId, "'ClusterSize'", true);
  2168. InstructionDesc[OpGroupNonUniformBitwiseOr].operands.push(OperandScope, "'Execution'");
  2169. InstructionDesc[OpGroupNonUniformBitwiseOr].operands.push(OperandGroupOperation, "'Operation'");
  2170. InstructionDesc[OpGroupNonUniformBitwiseOr].operands.push(OperandId, "X");
  2171. InstructionDesc[OpGroupNonUniformBitwiseOr].operands.push(OperandId, "'ClusterSize'", true);
  2172. InstructionDesc[OpGroupNonUniformBitwiseXor].operands.push(OperandScope, "'Execution'");
  2173. InstructionDesc[OpGroupNonUniformBitwiseXor].operands.push(OperandGroupOperation, "'Operation'");
  2174. InstructionDesc[OpGroupNonUniformBitwiseXor].operands.push(OperandId, "X");
  2175. InstructionDesc[OpGroupNonUniformBitwiseXor].operands.push(OperandId, "'ClusterSize'", true);
  2176. InstructionDesc[OpGroupNonUniformLogicalAnd].operands.push(OperandScope, "'Execution'");
  2177. InstructionDesc[OpGroupNonUniformLogicalAnd].operands.push(OperandGroupOperation, "'Operation'");
  2178. InstructionDesc[OpGroupNonUniformLogicalAnd].operands.push(OperandId, "X");
  2179. InstructionDesc[OpGroupNonUniformLogicalAnd].operands.push(OperandId, "'ClusterSize'", true);
  2180. InstructionDesc[OpGroupNonUniformLogicalOr].operands.push(OperandScope, "'Execution'");
  2181. InstructionDesc[OpGroupNonUniformLogicalOr].operands.push(OperandGroupOperation, "'Operation'");
  2182. InstructionDesc[OpGroupNonUniformLogicalOr].operands.push(OperandId, "X");
  2183. InstructionDesc[OpGroupNonUniformLogicalOr].operands.push(OperandId, "'ClusterSize'", true);
  2184. InstructionDesc[OpGroupNonUniformLogicalXor].operands.push(OperandScope, "'Execution'");
  2185. InstructionDesc[OpGroupNonUniformLogicalXor].operands.push(OperandGroupOperation, "'Operation'");
  2186. InstructionDesc[OpGroupNonUniformLogicalXor].operands.push(OperandId, "X");
  2187. InstructionDesc[OpGroupNonUniformLogicalXor].operands.push(OperandId, "'ClusterSize'", true);
  2188. InstructionDesc[OpGroupNonUniformQuadBroadcast].operands.push(OperandScope, "'Execution'");
  2189. InstructionDesc[OpGroupNonUniformQuadBroadcast].operands.push(OperandId, "X");
  2190. InstructionDesc[OpGroupNonUniformQuadBroadcast].operands.push(OperandId, "'Id'");
  2191. InstructionDesc[OpGroupNonUniformQuadSwap].operands.push(OperandScope, "'Execution'");
  2192. InstructionDesc[OpGroupNonUniformQuadSwap].operands.push(OperandId, "X");
  2193. InstructionDesc[OpGroupNonUniformQuadSwap].operands.push(OperandLiteralNumber, "'Direction'");
  2194. InstructionDesc[OpSubgroupBallotKHR].operands.push(OperandId, "'Predicate'");
  2195. InstructionDesc[OpSubgroupFirstInvocationKHR].operands.push(OperandId, "'Value'");
  2196. InstructionDesc[OpSubgroupAnyKHR].operands.push(OperandScope, "'Execution'");
  2197. InstructionDesc[OpSubgroupAnyKHR].operands.push(OperandId, "'Predicate'");
  2198. InstructionDesc[OpSubgroupAllKHR].operands.push(OperandScope, "'Execution'");
  2199. InstructionDesc[OpSubgroupAllKHR].operands.push(OperandId, "'Predicate'");
  2200. InstructionDesc[OpSubgroupAllEqualKHR].operands.push(OperandScope, "'Execution'");
  2201. InstructionDesc[OpSubgroupAllEqualKHR].operands.push(OperandId, "'Predicate'");
  2202. InstructionDesc[OpSubgroupReadInvocationKHR].operands.push(OperandId, "'Value'");
  2203. InstructionDesc[OpSubgroupReadInvocationKHR].operands.push(OperandId, "'Index'");
  2204. InstructionDesc[OpModuleProcessed].operands.push(OperandLiteralString, "'process'");
  2205. InstructionDesc[OpGroupIAddNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2206. InstructionDesc[OpGroupIAddNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2207. InstructionDesc[OpGroupIAddNonUniformAMD].operands.push(OperandId, "'X'");
  2208. InstructionDesc[OpGroupFAddNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2209. InstructionDesc[OpGroupFAddNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2210. InstructionDesc[OpGroupFAddNonUniformAMD].operands.push(OperandId, "'X'");
  2211. InstructionDesc[OpGroupUMinNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2212. InstructionDesc[OpGroupUMinNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2213. InstructionDesc[OpGroupUMinNonUniformAMD].operands.push(OperandId, "'X'");
  2214. InstructionDesc[OpGroupSMinNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2215. InstructionDesc[OpGroupSMinNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2216. InstructionDesc[OpGroupSMinNonUniformAMD].operands.push(OperandId, "X");
  2217. InstructionDesc[OpGroupFMinNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2218. InstructionDesc[OpGroupFMinNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2219. InstructionDesc[OpGroupFMinNonUniformAMD].operands.push(OperandId, "X");
  2220. InstructionDesc[OpGroupUMaxNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2221. InstructionDesc[OpGroupUMaxNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2222. InstructionDesc[OpGroupUMaxNonUniformAMD].operands.push(OperandId, "X");
  2223. InstructionDesc[OpGroupSMaxNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2224. InstructionDesc[OpGroupSMaxNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2225. InstructionDesc[OpGroupSMaxNonUniformAMD].operands.push(OperandId, "X");
  2226. InstructionDesc[OpGroupFMaxNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2227. InstructionDesc[OpGroupFMaxNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2228. InstructionDesc[OpGroupFMaxNonUniformAMD].operands.push(OperandId, "X");
  2229. InstructionDesc[OpFragmentMaskFetchAMD].operands.push(OperandId, "'Image'");
  2230. InstructionDesc[OpFragmentMaskFetchAMD].operands.push(OperandId, "'Coordinate'");
  2231. InstructionDesc[OpFragmentFetchAMD].operands.push(OperandId, "'Image'");
  2232. InstructionDesc[OpFragmentFetchAMD].operands.push(OperandId, "'Coordinate'");
  2233. InstructionDesc[OpFragmentFetchAMD].operands.push(OperandId, "'Fragment Index'");
  2234. InstructionDesc[OpGroupNonUniformPartitionNV].operands.push(OperandId, "X");
  2235. InstructionDesc[OpTypeAccelerationStructureNV].setResultAndType(true, false);
  2236. InstructionDesc[OpTraceNV].operands.push(OperandId, "'NV Acceleration Structure'");
  2237. InstructionDesc[OpTraceNV].operands.push(OperandId, "'Ray Flags'");
  2238. InstructionDesc[OpTraceNV].operands.push(OperandId, "'Cull Mask'");
  2239. InstructionDesc[OpTraceNV].operands.push(OperandId, "'SBT Record Offset'");
  2240. InstructionDesc[OpTraceNV].operands.push(OperandId, "'SBT Record Stride'");
  2241. InstructionDesc[OpTraceNV].operands.push(OperandId, "'Miss Index'");
  2242. InstructionDesc[OpTraceNV].operands.push(OperandId, "'Ray Origin'");
  2243. InstructionDesc[OpTraceNV].operands.push(OperandId, "'TMin'");
  2244. InstructionDesc[OpTraceNV].operands.push(OperandId, "'Ray Direction'");
  2245. InstructionDesc[OpTraceNV].operands.push(OperandId, "'TMax'");
  2246. InstructionDesc[OpTraceNV].operands.push(OperandId, "'Payload'");
  2247. InstructionDesc[OpTraceNV].setResultAndType(false, false);
  2248. InstructionDesc[OpReportIntersectionNV].operands.push(OperandId, "'Hit Parameter'");
  2249. InstructionDesc[OpReportIntersectionNV].operands.push(OperandId, "'Hit Kind'");
  2250. InstructionDesc[OpIgnoreIntersectionNV].setResultAndType(false, false);
  2251. InstructionDesc[OpTerminateRayNV].setResultAndType(false, false);
  2252. InstructionDesc[OpExecuteCallableNV].operands.push(OperandId, "SBT Record Index");
  2253. InstructionDesc[OpExecuteCallableNV].operands.push(OperandId, "CallableData ID");
  2254. InstructionDesc[OpExecuteCallableNV].setResultAndType(false, false);
  2255. InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandId, "'Sampled Image'");
  2256. InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandId, "'Coordinate'");
  2257. InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandId, "'Granularity'");
  2258. InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandId, "'Coarse'");
  2259. InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandImageOperands, "", true);
  2260. InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandVariableIds, "", true);
  2261. InstructionDesc[OpWritePackedPrimitiveIndices4x8NV].operands.push(OperandId, "'Index Offset'");
  2262. InstructionDesc[OpWritePackedPrimitiveIndices4x8NV].operands.push(OperandId, "'Packed Indices'");
  2263. InstructionDesc[OpTypeCooperativeMatrixNV].operands.push(OperandId, "'Component Type'");
  2264. InstructionDesc[OpTypeCooperativeMatrixNV].operands.push(OperandId, "'Scope'");
  2265. InstructionDesc[OpTypeCooperativeMatrixNV].operands.push(OperandId, "'Rows'");
  2266. InstructionDesc[OpTypeCooperativeMatrixNV].operands.push(OperandId, "'Columns'");
  2267. InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandId, "'Pointer'");
  2268. InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandId, "'Stride'");
  2269. InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandId, "'Column Major'");
  2270. InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandMemoryAccess, "'Memory Access'");
  2271. InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandLiteralNumber, "", true);
  2272. InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandId, "", true);
  2273. InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandId, "'Pointer'");
  2274. InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandId, "'Object'");
  2275. InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandId, "'Stride'");
  2276. InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandId, "'Column Major'");
  2277. InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandMemoryAccess, "'Memory Access'");
  2278. InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandLiteralNumber, "", true);
  2279. InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandId, "", true);
  2280. InstructionDesc[OpCooperativeMatrixMulAddNV].operands.push(OperandId, "'A'");
  2281. InstructionDesc[OpCooperativeMatrixMulAddNV].operands.push(OperandId, "'B'");
  2282. InstructionDesc[OpCooperativeMatrixMulAddNV].operands.push(OperandId, "'C'");
  2283. InstructionDesc[OpCooperativeMatrixLengthNV].operands.push(OperandId, "'Type'");
  2284. InstructionDesc[OpDemoteToHelperInvocationEXT].setResultAndType(false, false);
  2285. InstructionDesc[OpReadClockKHR].operands.push(OperandScope, "'Scope'");
  2286. }
  2287. }; // end spv namespace