doc.cpp 146 KB

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