doc.cpp 133 KB

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