doc.cpp 119 KB

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