doc.cpp 143 KB

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