doc.cpp 144 KB

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