doc.cpp 151 KB

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