OpenClGrammar.cs 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841
  1. // AUTOGENERATED: DO NOT EDIT
  2. // Last update date: 2021-01-06 23:02:27.020534
  3. #region Grammar License
  4. // Copyright (c) 2014-2016 The Khronos Group Inc.
  5. //
  6. // Permission is hereby granted, free of charge, to any person obtaining a copy
  7. // of this software and/or associated documentation files (the "Materials"),
  8. // to deal in the Materials without restriction, including without limitation
  9. // the rights to use, copy, modify, merge, publish, distribute, sublicense,
  10. // and/or sell copies of the Materials, and to permit persons to whom the
  11. // Materials are furnished to do so, subject to the following conditions:
  12. //
  13. // The above copyright notice and this permission notice shall be included in
  14. // all copies or substantial portions of the Materials.
  15. //
  16. // MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
  17. // STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
  18. // HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
  19. //
  20. // THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  21. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  22. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  23. // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  24. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  25. // FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
  26. // IN THE MATERIALS.
  27. #endregion
  28. using static Spv.Specification;
  29. namespace Spv.Generator
  30. {
  31. public partial class Module
  32. {
  33. public Instruction OpenClAcos(Instruction resultType, Instruction x)
  34. {
  35. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 0, x);
  36. }
  37. public Instruction OpenClAcosh(Instruction resultType, Instruction x)
  38. {
  39. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 1, x);
  40. }
  41. public Instruction OpenClAcospi(Instruction resultType, Instruction x)
  42. {
  43. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 2, x);
  44. }
  45. public Instruction OpenClAsin(Instruction resultType, Instruction x)
  46. {
  47. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 3, x);
  48. }
  49. public Instruction OpenClAsinh(Instruction resultType, Instruction x)
  50. {
  51. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 4, x);
  52. }
  53. public Instruction OpenClAsinpi(Instruction resultType, Instruction x)
  54. {
  55. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 5, x);
  56. }
  57. public Instruction OpenClAtan(Instruction resultType, Instruction x)
  58. {
  59. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 6, x);
  60. }
  61. public Instruction OpenClAtan2(Instruction resultType, Instruction y, Instruction x)
  62. {
  63. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 7, y, x);
  64. }
  65. public Instruction OpenClAtanh(Instruction resultType, Instruction x)
  66. {
  67. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 8, x);
  68. }
  69. public Instruction OpenClAtanpi(Instruction resultType, Instruction x)
  70. {
  71. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 9, x);
  72. }
  73. public Instruction OpenClAtan2pi(Instruction resultType, Instruction y, Instruction x)
  74. {
  75. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 10, y, x);
  76. }
  77. public Instruction OpenClCbrt(Instruction resultType, Instruction x)
  78. {
  79. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 11, x);
  80. }
  81. public Instruction OpenClCeil(Instruction resultType, Instruction x)
  82. {
  83. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 12, x);
  84. }
  85. public Instruction OpenClCopysign(Instruction resultType, Instruction x, Instruction y)
  86. {
  87. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 13, x, y);
  88. }
  89. public Instruction OpenClCos(Instruction resultType, Instruction x)
  90. {
  91. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 14, x);
  92. }
  93. public Instruction OpenClCosh(Instruction resultType, Instruction x)
  94. {
  95. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 15, x);
  96. }
  97. public Instruction OpenClCospi(Instruction resultType, Instruction x)
  98. {
  99. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 16, x);
  100. }
  101. public Instruction OpenClErfc(Instruction resultType, Instruction x)
  102. {
  103. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 17, x);
  104. }
  105. public Instruction OpenClErf(Instruction resultType, Instruction x)
  106. {
  107. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 18, x);
  108. }
  109. public Instruction OpenClExp(Instruction resultType, Instruction x)
  110. {
  111. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 19, x);
  112. }
  113. public Instruction OpenClExp2(Instruction resultType, Instruction x)
  114. {
  115. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 20, x);
  116. }
  117. public Instruction OpenClExp10(Instruction resultType, Instruction x)
  118. {
  119. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 21, x);
  120. }
  121. public Instruction OpenClExpm1(Instruction resultType, Instruction x)
  122. {
  123. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 22, x);
  124. }
  125. public Instruction OpenClFabs(Instruction resultType, Instruction x)
  126. {
  127. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 23, x);
  128. }
  129. public Instruction OpenClFdim(Instruction resultType, Instruction x, Instruction y)
  130. {
  131. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 24, x, y);
  132. }
  133. public Instruction OpenClFloor(Instruction resultType, Instruction x)
  134. {
  135. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 25, x);
  136. }
  137. public Instruction OpenClFma(Instruction resultType, Instruction a, Instruction b, Instruction c)
  138. {
  139. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 26, a, b, c);
  140. }
  141. public Instruction OpenClFmax(Instruction resultType, Instruction x, Instruction y)
  142. {
  143. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 27, x, y);
  144. }
  145. public Instruction OpenClFmin(Instruction resultType, Instruction x, Instruction y)
  146. {
  147. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 28, x, y);
  148. }
  149. public Instruction OpenClFmod(Instruction resultType, Instruction x, Instruction y)
  150. {
  151. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 29, x, y);
  152. }
  153. public Instruction OpenClFract(Instruction resultType, Instruction x, Instruction ptr)
  154. {
  155. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 30, x, ptr);
  156. }
  157. public Instruction OpenClFrexp(Instruction resultType, Instruction x, Instruction exp)
  158. {
  159. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 31, x, exp);
  160. }
  161. public Instruction OpenClHypot(Instruction resultType, Instruction x, Instruction y)
  162. {
  163. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 32, x, y);
  164. }
  165. public Instruction OpenClIlogb(Instruction resultType, Instruction x)
  166. {
  167. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 33, x);
  168. }
  169. public Instruction OpenClLdexp(Instruction resultType, Instruction x, Instruction k)
  170. {
  171. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 34, x, k);
  172. }
  173. public Instruction OpenClLgamma(Instruction resultType, Instruction x)
  174. {
  175. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 35, x);
  176. }
  177. public Instruction OpenClLgamma_r(Instruction resultType, Instruction x, Instruction signp)
  178. {
  179. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 36, x, signp);
  180. }
  181. public Instruction OpenClLog(Instruction resultType, Instruction x)
  182. {
  183. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 37, x);
  184. }
  185. public Instruction OpenClLog2(Instruction resultType, Instruction x)
  186. {
  187. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 38, x);
  188. }
  189. public Instruction OpenClLog10(Instruction resultType, Instruction x)
  190. {
  191. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 39, x);
  192. }
  193. public Instruction OpenClLog1p(Instruction resultType, Instruction x)
  194. {
  195. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 40, x);
  196. }
  197. public Instruction OpenClLogb(Instruction resultType, Instruction x)
  198. {
  199. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 41, x);
  200. }
  201. public Instruction OpenClMad(Instruction resultType, Instruction a, Instruction b, Instruction c)
  202. {
  203. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 42, a, b, c);
  204. }
  205. public Instruction OpenClMaxmag(Instruction resultType, Instruction x, Instruction y)
  206. {
  207. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 43, x, y);
  208. }
  209. public Instruction OpenClMinmag(Instruction resultType, Instruction x, Instruction y)
  210. {
  211. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 44, x, y);
  212. }
  213. public Instruction OpenClModf(Instruction resultType, Instruction x, Instruction iptr)
  214. {
  215. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 45, x, iptr);
  216. }
  217. public Instruction OpenClNan(Instruction resultType, Instruction nancode)
  218. {
  219. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 46, nancode);
  220. }
  221. public Instruction OpenClNextafter(Instruction resultType, Instruction x, Instruction y)
  222. {
  223. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 47, x, y);
  224. }
  225. public Instruction OpenClPow(Instruction resultType, Instruction x, Instruction y)
  226. {
  227. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 48, x, y);
  228. }
  229. public Instruction OpenClPown(Instruction resultType, Instruction x, Instruction y)
  230. {
  231. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 49, x, y);
  232. }
  233. public Instruction OpenClPowr(Instruction resultType, Instruction x, Instruction y)
  234. {
  235. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 50, x, y);
  236. }
  237. public Instruction OpenClRemainder(Instruction resultType, Instruction x, Instruction y)
  238. {
  239. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 51, x, y);
  240. }
  241. public Instruction OpenClRemquo(Instruction resultType, Instruction x, Instruction y, Instruction quo)
  242. {
  243. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 52, x, y, quo);
  244. }
  245. public Instruction OpenClRint(Instruction resultType, Instruction x)
  246. {
  247. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 53, x);
  248. }
  249. public Instruction OpenClRootn(Instruction resultType, Instruction x, Instruction y)
  250. {
  251. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 54, x, y);
  252. }
  253. public Instruction OpenClRound(Instruction resultType, Instruction x)
  254. {
  255. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 55, x);
  256. }
  257. public Instruction OpenClRsqrt(Instruction resultType, Instruction x)
  258. {
  259. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 56, x);
  260. }
  261. public Instruction OpenClSin(Instruction resultType, Instruction x)
  262. {
  263. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 57, x);
  264. }
  265. public Instruction OpenClSincos(Instruction resultType, Instruction x, Instruction cosval)
  266. {
  267. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 58, x, cosval);
  268. }
  269. public Instruction OpenClSinh(Instruction resultType, Instruction x)
  270. {
  271. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 59, x);
  272. }
  273. public Instruction OpenClSinpi(Instruction resultType, Instruction x)
  274. {
  275. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 60, x);
  276. }
  277. public Instruction OpenClSqrt(Instruction resultType, Instruction x)
  278. {
  279. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 61, x);
  280. }
  281. public Instruction OpenClTan(Instruction resultType, Instruction x)
  282. {
  283. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 62, x);
  284. }
  285. public Instruction OpenClTanh(Instruction resultType, Instruction x)
  286. {
  287. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 63, x);
  288. }
  289. public Instruction OpenClTanpi(Instruction resultType, Instruction x)
  290. {
  291. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 64, x);
  292. }
  293. public Instruction OpenClTgamma(Instruction resultType, Instruction x)
  294. {
  295. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 65, x);
  296. }
  297. public Instruction OpenClTrunc(Instruction resultType, Instruction x)
  298. {
  299. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 66, x);
  300. }
  301. public Instruction OpenClHalf_cos(Instruction resultType, Instruction x)
  302. {
  303. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 67, x);
  304. }
  305. public Instruction OpenClHalf_divide(Instruction resultType, Instruction x, Instruction y)
  306. {
  307. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 68, x, y);
  308. }
  309. public Instruction OpenClHalf_exp(Instruction resultType, Instruction x)
  310. {
  311. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 69, x);
  312. }
  313. public Instruction OpenClHalf_exp2(Instruction resultType, Instruction x)
  314. {
  315. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 70, x);
  316. }
  317. public Instruction OpenClHalf_exp10(Instruction resultType, Instruction x)
  318. {
  319. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 71, x);
  320. }
  321. public Instruction OpenClHalf_log(Instruction resultType, Instruction x)
  322. {
  323. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 72, x);
  324. }
  325. public Instruction OpenClHalf_log2(Instruction resultType, Instruction x)
  326. {
  327. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 73, x);
  328. }
  329. public Instruction OpenClHalf_log10(Instruction resultType, Instruction x)
  330. {
  331. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 74, x);
  332. }
  333. public Instruction OpenClHalf_powr(Instruction resultType, Instruction x, Instruction y)
  334. {
  335. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 75, x, y);
  336. }
  337. public Instruction OpenClHalf_recip(Instruction resultType, Instruction x)
  338. {
  339. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 76, x);
  340. }
  341. public Instruction OpenClHalf_rsqrt(Instruction resultType, Instruction x)
  342. {
  343. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 77, x);
  344. }
  345. public Instruction OpenClHalf_sin(Instruction resultType, Instruction x)
  346. {
  347. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 78, x);
  348. }
  349. public Instruction OpenClHalf_sqrt(Instruction resultType, Instruction x)
  350. {
  351. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 79, x);
  352. }
  353. public Instruction OpenClHalf_tan(Instruction resultType, Instruction x)
  354. {
  355. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 80, x);
  356. }
  357. public Instruction OpenClNative_cos(Instruction resultType, Instruction x)
  358. {
  359. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 81, x);
  360. }
  361. public Instruction OpenClNative_divide(Instruction resultType, Instruction x, Instruction y)
  362. {
  363. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 82, x, y);
  364. }
  365. public Instruction OpenClNative_exp(Instruction resultType, Instruction x)
  366. {
  367. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 83, x);
  368. }
  369. public Instruction OpenClNative_exp2(Instruction resultType, Instruction x)
  370. {
  371. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 84, x);
  372. }
  373. public Instruction OpenClNative_exp10(Instruction resultType, Instruction x)
  374. {
  375. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 85, x);
  376. }
  377. public Instruction OpenClNative_log(Instruction resultType, Instruction x)
  378. {
  379. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 86, x);
  380. }
  381. public Instruction OpenClNative_log2(Instruction resultType, Instruction x)
  382. {
  383. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 87, x);
  384. }
  385. public Instruction OpenClNative_log10(Instruction resultType, Instruction x)
  386. {
  387. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 88, x);
  388. }
  389. public Instruction OpenClNative_powr(Instruction resultType, Instruction x, Instruction y)
  390. {
  391. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 89, x, y);
  392. }
  393. public Instruction OpenClNative_recip(Instruction resultType, Instruction x)
  394. {
  395. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 90, x);
  396. }
  397. public Instruction OpenClNative_rsqrt(Instruction resultType, Instruction x)
  398. {
  399. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 91, x);
  400. }
  401. public Instruction OpenClNative_sin(Instruction resultType, Instruction x)
  402. {
  403. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 92, x);
  404. }
  405. public Instruction OpenClNative_sqrt(Instruction resultType, Instruction x)
  406. {
  407. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 93, x);
  408. }
  409. public Instruction OpenClNative_tan(Instruction resultType, Instruction x)
  410. {
  411. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 94, x);
  412. }
  413. public Instruction OpenClS_abs(Instruction resultType, Instruction x)
  414. {
  415. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 141, x);
  416. }
  417. public Instruction OpenClS_abs_diff(Instruction resultType, Instruction x, Instruction y)
  418. {
  419. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 142, x, y);
  420. }
  421. public Instruction OpenClS_add_sat(Instruction resultType, Instruction x, Instruction y)
  422. {
  423. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 143, x, y);
  424. }
  425. public Instruction OpenClU_add_sat(Instruction resultType, Instruction x, Instruction y)
  426. {
  427. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 144, x, y);
  428. }
  429. public Instruction OpenClS_hadd(Instruction resultType, Instruction x, Instruction y)
  430. {
  431. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 145, x, y);
  432. }
  433. public Instruction OpenClU_hadd(Instruction resultType, Instruction x, Instruction y)
  434. {
  435. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 146, x, y);
  436. }
  437. public Instruction OpenClS_rhadd(Instruction resultType, Instruction x, Instruction y)
  438. {
  439. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 147, x, y);
  440. }
  441. public Instruction OpenClU_rhadd(Instruction resultType, Instruction x, Instruction y)
  442. {
  443. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 148, x, y);
  444. }
  445. public Instruction OpenClS_clamp(Instruction resultType, Instruction x, Instruction minval, Instruction maxval)
  446. {
  447. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 149, x, minval, maxval);
  448. }
  449. public Instruction OpenClU_clamp(Instruction resultType, Instruction x, Instruction minval, Instruction maxval)
  450. {
  451. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 150, x, minval, maxval);
  452. }
  453. public Instruction OpenClClz(Instruction resultType, Instruction x)
  454. {
  455. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 151, x);
  456. }
  457. public Instruction OpenClCtz(Instruction resultType, Instruction x)
  458. {
  459. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 152, x);
  460. }
  461. public Instruction OpenClS_mad_hi(Instruction resultType, Instruction a, Instruction b, Instruction c)
  462. {
  463. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 153, a, b, c);
  464. }
  465. public Instruction OpenClU_mad_sat(Instruction resultType, Instruction x, Instruction y, Instruction z)
  466. {
  467. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 154, x, y, z);
  468. }
  469. public Instruction OpenClS_mad_sat(Instruction resultType, Instruction x, Instruction y, Instruction z)
  470. {
  471. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 155, x, y, z);
  472. }
  473. public Instruction OpenClS_max(Instruction resultType, Instruction x, Instruction y)
  474. {
  475. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 156, x, y);
  476. }
  477. public Instruction OpenClU_max(Instruction resultType, Instruction x, Instruction y)
  478. {
  479. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 157, x, y);
  480. }
  481. public Instruction OpenClS_min(Instruction resultType, Instruction x, Instruction y)
  482. {
  483. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 158, x, y);
  484. }
  485. public Instruction OpenClU_min(Instruction resultType, Instruction x, Instruction y)
  486. {
  487. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 159, x, y);
  488. }
  489. public Instruction OpenClS_mul_hi(Instruction resultType, Instruction x, Instruction y)
  490. {
  491. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 160, x, y);
  492. }
  493. public Instruction OpenClRotate(Instruction resultType, Instruction v, Instruction i)
  494. {
  495. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 161, v, i);
  496. }
  497. public Instruction OpenClS_sub_sat(Instruction resultType, Instruction x, Instruction y)
  498. {
  499. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 162, x, y);
  500. }
  501. public Instruction OpenClU_sub_sat(Instruction resultType, Instruction x, Instruction y)
  502. {
  503. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 163, x, y);
  504. }
  505. public Instruction OpenClU_upsample(Instruction resultType, Instruction hi, Instruction lo)
  506. {
  507. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 164, hi, lo);
  508. }
  509. public Instruction OpenClS_upsample(Instruction resultType, Instruction hi, Instruction lo)
  510. {
  511. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 165, hi, lo);
  512. }
  513. public Instruction OpenClPopcount(Instruction resultType, Instruction x)
  514. {
  515. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 166, x);
  516. }
  517. public Instruction OpenClS_mad24(Instruction resultType, Instruction x, Instruction y, Instruction z)
  518. {
  519. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 167, x, y, z);
  520. }
  521. public Instruction OpenClU_mad24(Instruction resultType, Instruction x, Instruction y, Instruction z)
  522. {
  523. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 168, x, y, z);
  524. }
  525. public Instruction OpenClS_mul24(Instruction resultType, Instruction x, Instruction y)
  526. {
  527. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 169, x, y);
  528. }
  529. public Instruction OpenClU_mul24(Instruction resultType, Instruction x, Instruction y)
  530. {
  531. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 170, x, y);
  532. }
  533. public Instruction OpenClU_abs(Instruction resultType, Instruction x)
  534. {
  535. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 201, x);
  536. }
  537. public Instruction OpenClU_abs_diff(Instruction resultType, Instruction x, Instruction y)
  538. {
  539. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 202, x, y);
  540. }
  541. public Instruction OpenClU_mul_hi(Instruction resultType, Instruction x, Instruction y)
  542. {
  543. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 203, x, y);
  544. }
  545. public Instruction OpenClU_mad_hi(Instruction resultType, Instruction a, Instruction b, Instruction c)
  546. {
  547. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 204, a, b, c);
  548. }
  549. public Instruction OpenClFclamp(Instruction resultType, Instruction x, Instruction minval, Instruction maxval)
  550. {
  551. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 95, x, minval, maxval);
  552. }
  553. public Instruction OpenClDegrees(Instruction resultType, Instruction radians)
  554. {
  555. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 96, radians);
  556. }
  557. public Instruction OpenClFmax_common(Instruction resultType, Instruction x, Instruction y)
  558. {
  559. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 97, x, y);
  560. }
  561. public Instruction OpenClFmin_common(Instruction resultType, Instruction x, Instruction y)
  562. {
  563. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 98, x, y);
  564. }
  565. public Instruction OpenClMix(Instruction resultType, Instruction x, Instruction y, Instruction a)
  566. {
  567. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 99, x, y, a);
  568. }
  569. public Instruction OpenClRadians(Instruction resultType, Instruction degrees)
  570. {
  571. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 100, degrees);
  572. }
  573. public Instruction OpenClStep(Instruction resultType, Instruction edge, Instruction x)
  574. {
  575. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 101, edge, x);
  576. }
  577. public Instruction OpenClSmoothstep(Instruction resultType, Instruction edge0, Instruction edge1, Instruction x)
  578. {
  579. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 102, edge0, edge1, x);
  580. }
  581. public Instruction OpenClSign(Instruction resultType, Instruction x)
  582. {
  583. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 103, x);
  584. }
  585. public Instruction OpenClCross(Instruction resultType, Instruction p0, Instruction p1)
  586. {
  587. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 104, p0, p1);
  588. }
  589. public Instruction OpenClDistance(Instruction resultType, Instruction p0, Instruction p1)
  590. {
  591. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 105, p0, p1);
  592. }
  593. public Instruction OpenClLength(Instruction resultType, Instruction p)
  594. {
  595. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 106, p);
  596. }
  597. public Instruction OpenClNormalize(Instruction resultType, Instruction p)
  598. {
  599. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 107, p);
  600. }
  601. public Instruction OpenClFast_distance(Instruction resultType, Instruction p0, Instruction p1)
  602. {
  603. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 108, p0, p1);
  604. }
  605. public Instruction OpenClFast_length(Instruction resultType, Instruction p)
  606. {
  607. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 109, p);
  608. }
  609. public Instruction OpenClFast_normalize(Instruction resultType, Instruction p)
  610. {
  611. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 110, p);
  612. }
  613. public Instruction OpenClBitselect(Instruction resultType, Instruction a, Instruction b, Instruction c)
  614. {
  615. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 186, a, b, c);
  616. }
  617. public Instruction OpenClSelect(Instruction resultType, Instruction a, Instruction b, Instruction c)
  618. {
  619. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 187, a, b, c);
  620. }
  621. public Instruction OpenClVloadn(Instruction resultType, Instruction offset, Instruction p, LiteralInteger n)
  622. {
  623. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 171, offset, p, n);
  624. }
  625. public Instruction OpenClVstoren(Instruction resultType, Instruction data, Instruction offset, Instruction p)
  626. {
  627. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 172, data, offset, p);
  628. }
  629. public Instruction OpenClVload_half(Instruction resultType, Instruction offset, Instruction p)
  630. {
  631. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 173, offset, p);
  632. }
  633. public Instruction OpenClVload_halfn(Instruction resultType, Instruction offset, Instruction p, LiteralInteger n)
  634. {
  635. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 174, offset, p, n);
  636. }
  637. public Instruction OpenClVstore_half(Instruction resultType, Instruction data, Instruction offset, Instruction p)
  638. {
  639. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 175, data, offset, p);
  640. }
  641. public Instruction OpenClVstore_half_r(Instruction resultType, Instruction data, Instruction offset, Instruction p, FPRoundingMode mode)
  642. {
  643. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 176, data, offset, p, LiteralInteger.CreateForEnum(mode));
  644. }
  645. public Instruction OpenClVstore_halfn(Instruction resultType, Instruction data, Instruction offset, Instruction p)
  646. {
  647. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 177, data, offset, p);
  648. }
  649. public Instruction OpenClVstore_halfn_r(Instruction resultType, Instruction data, Instruction offset, Instruction p, FPRoundingMode mode)
  650. {
  651. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 178, data, offset, p, LiteralInteger.CreateForEnum(mode));
  652. }
  653. public Instruction OpenClVloada_halfn(Instruction resultType, Instruction offset, Instruction p, LiteralInteger n)
  654. {
  655. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 179, offset, p, n);
  656. }
  657. public Instruction OpenClVstorea_halfn(Instruction resultType, Instruction data, Instruction offset, Instruction p)
  658. {
  659. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 180, data, offset, p);
  660. }
  661. public Instruction OpenClVstorea_halfn_r(Instruction resultType, Instruction data, Instruction offset, Instruction p, FPRoundingMode mode)
  662. {
  663. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 181, data, offset, p, LiteralInteger.CreateForEnum(mode));
  664. }
  665. public Instruction OpenClShuffle(Instruction resultType, Instruction x, Instruction shufflemask)
  666. {
  667. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 182, x, shufflemask);
  668. }
  669. public Instruction OpenClShuffle2(Instruction resultType, Instruction x, Instruction y, Instruction shufflemask)
  670. {
  671. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 183, x, y, shufflemask);
  672. }
  673. public Instruction OpenClPrefetch(Instruction resultType, Instruction ptr, Instruction numelements)
  674. {
  675. return ExtInst(resultType, AddExtInstImport("OpenCL.std"), 185, ptr, numelements);
  676. }
  677. }
  678. }