doc.cpp 148 KB

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