doc.cpp 121 KB

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