wasmtime 9.0.4 → 10.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1933) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +184 -101
  3. data/ext/Cargo.toml +6 -6
  4. data/ext/build.rs +2 -2
  5. data/ext/cargo-vendor/cranelift-bforest-0.97.1/.cargo-checksum.json +1 -0
  6. data/ext/cargo-vendor/cranelift-bforest-0.97.1/Cargo.toml +31 -0
  7. data/ext/cargo-vendor/cranelift-codegen-0.97.1/.cargo-checksum.json +1 -0
  8. data/ext/cargo-vendor/cranelift-codegen-0.97.1/Cargo.toml +158 -0
  9. data/ext/cargo-vendor/cranelift-codegen-0.97.1/benches/x64-evex-encoding.rs +52 -0
  10. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/ir/trapcode.rs +144 -0
  11. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/abi.rs +1294 -0
  12. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/inst/emit.rs +3684 -0
  13. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/inst/emit_tests.rs +7895 -0
  14. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/inst/imms.rs +1210 -0
  15. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/inst/mod.rs +2966 -0
  16. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/inst.isle +4037 -0
  17. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/lower/isle.rs +816 -0
  18. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/lower.isle +2906 -0
  19. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/aarch64/mod.rs +238 -0
  20. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/mod.rs +424 -0
  21. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/abi.rs +825 -0
  22. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/args.rs +1812 -0
  23. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/emit.rs +3008 -0
  24. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/emit_tests.rs +2338 -0
  25. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/encode.rs +262 -0
  26. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/imms.rs +250 -0
  27. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/mod.rs +1963 -0
  28. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/regs.rs +223 -0
  29. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/unwind/systemv.rs +174 -0
  30. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst/vector.rs +669 -0
  31. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst.isle +2915 -0
  32. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/inst_vector.isle +760 -0
  33. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/lower/isle.rs +553 -0
  34. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/lower.isle +1409 -0
  35. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/riscv64/mod.rs +216 -0
  36. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/s390x/abi.rs +957 -0
  37. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/s390x/inst/emit.rs +3707 -0
  38. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/s390x/inst/emit_tests.rs +13409 -0
  39. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/s390x/inst/mod.rs +3426 -0
  40. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/s390x/inst.isle +5046 -0
  41. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/s390x/lower.isle +3991 -0
  42. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/s390x/mod.rs +213 -0
  43. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/abi.rs +985 -0
  44. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/encoding/evex.rs +749 -0
  45. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/encoding/rex.rs +588 -0
  46. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/encoding/vex.rs +492 -0
  47. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/inst/args.rs +2193 -0
  48. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/inst/emit.rs +4090 -0
  49. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/inst/emit_tests.rs +5674 -0
  50. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/inst/mod.rs +2667 -0
  51. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/inst.isle +5104 -0
  52. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/lower/isle.rs +1148 -0
  53. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/lower.isle +4481 -0
  54. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/lower.rs +328 -0
  55. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isa/x64/mod.rs +251 -0
  56. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/isle_prelude.rs +862 -0
  57. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/abi.rs +2455 -0
  58. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/buffer.rs +2277 -0
  59. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/compile.rs +92 -0
  60. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/isle.rs +827 -0
  61. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/lower.rs +1388 -0
  62. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/mod.rs +549 -0
  63. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/reg.rs +537 -0
  64. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/machinst/vcode.rs +1580 -0
  65. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/prelude.isle +578 -0
  66. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/prelude_lower.isle +1012 -0
  67. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/settings.rs +600 -0
  68. data/ext/cargo-vendor/cranelift-codegen-0.97.1/src/verifier/mod.rs +1884 -0
  69. data/ext/cargo-vendor/cranelift-codegen-meta-0.97.1/.cargo-checksum.json +1 -0
  70. data/ext/cargo-vendor/cranelift-codegen-meta-0.97.1/Cargo.toml +23 -0
  71. data/ext/cargo-vendor/cranelift-codegen-meta-0.97.1/src/isa/x86.rs +444 -0
  72. data/ext/cargo-vendor/cranelift-codegen-meta-0.97.1/src/shared/settings.rs +348 -0
  73. data/ext/cargo-vendor/cranelift-codegen-shared-0.97.1/.cargo-checksum.json +1 -0
  74. data/ext/cargo-vendor/cranelift-codegen-shared-0.97.1/Cargo.toml +22 -0
  75. data/ext/cargo-vendor/cranelift-control-0.97.1/.cargo-checksum.json +1 -0
  76. data/ext/cargo-vendor/cranelift-control-0.97.1/Cargo.toml +30 -0
  77. data/ext/cargo-vendor/cranelift-control-0.97.1/src/chaos.rs +125 -0
  78. data/ext/cargo-vendor/cranelift-control-0.97.1/src/lib.rs +45 -0
  79. data/ext/cargo-vendor/cranelift-control-0.97.1/src/zero_sized.rs +53 -0
  80. data/ext/cargo-vendor/cranelift-entity-0.97.1/.cargo-checksum.json +1 -0
  81. data/ext/cargo-vendor/cranelift-entity-0.97.1/Cargo.toml +35 -0
  82. data/ext/cargo-vendor/cranelift-entity-0.97.1/src/list.rs +955 -0
  83. data/ext/cargo-vendor/cranelift-frontend-0.97.1/.cargo-checksum.json +1 -0
  84. data/ext/cargo-vendor/cranelift-frontend-0.97.1/Cargo.toml +53 -0
  85. data/ext/cargo-vendor/cranelift-isle-0.97.1/.cargo-checksum.json +1 -0
  86. data/ext/cargo-vendor/cranelift-isle-0.97.1/Cargo.toml +37 -0
  87. data/ext/cargo-vendor/cranelift-native-0.97.1/.cargo-checksum.json +1 -0
  88. data/ext/cargo-vendor/cranelift-native-0.97.1/Cargo.toml +38 -0
  89. data/ext/cargo-vendor/cranelift-native-0.97.1/src/lib.rs +215 -0
  90. data/ext/cargo-vendor/cranelift-wasm-0.97.1/.cargo-checksum.json +1 -0
  91. data/ext/cargo-vendor/cranelift-wasm-0.97.1/Cargo.toml +85 -0
  92. data/ext/cargo-vendor/cranelift-wasm-0.97.1/src/code_translator.rs +3538 -0
  93. data/ext/cargo-vendor/cranelift-wasm-0.97.1/src/environ/dummy.rs +924 -0
  94. data/ext/cargo-vendor/cranelift-wasm-0.97.1/src/environ/spec.rs +834 -0
  95. data/ext/cargo-vendor/cranelift-wasm-0.97.1/src/func_translator.rs +440 -0
  96. data/ext/cargo-vendor/cranelift-wasm-0.97.1/src/sections_translator.rs +417 -0
  97. data/ext/cargo-vendor/cranelift-wasm-0.97.1/src/translation_utils.rs +99 -0
  98. data/ext/cargo-vendor/encoding_rs-0.8.32/.cargo-checksum.json +1 -0
  99. data/ext/cargo-vendor/encoding_rs-0.8.32/CONTRIBUTING.md +48 -0
  100. data/ext/cargo-vendor/encoding_rs-0.8.32/COPYRIGHT +17 -0
  101. data/ext/cargo-vendor/encoding_rs-0.8.32/Cargo.toml +84 -0
  102. data/ext/cargo-vendor/encoding_rs-0.8.32/Ideas.md +106 -0
  103. data/ext/cargo-vendor/encoding_rs-0.8.32/LICENSE-APACHE +202 -0
  104. data/ext/cargo-vendor/encoding_rs-0.8.32/LICENSE-MIT +25 -0
  105. data/ext/cargo-vendor/encoding_rs-0.8.32/LICENSE-WHATWG +26 -0
  106. data/ext/cargo-vendor/encoding_rs-0.8.32/README.md +827 -0
  107. data/ext/cargo-vendor/encoding_rs-0.8.32/ci/miri.sh +14 -0
  108. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/Big5.txt +16 -0
  109. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/EUC-JP.txt +12 -0
  110. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/EUC-KR.txt +10 -0
  111. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/GBK.txt +16 -0
  112. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/IBM866.txt +8 -0
  113. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-2022-JP.txt +10 -0
  114. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-10.txt +8 -0
  115. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-13.txt +8 -0
  116. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-14.txt +8 -0
  117. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-15.txt +7 -0
  118. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-16.txt +8 -0
  119. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-2.txt +6 -0
  120. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-3.txt +6 -0
  121. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-4.txt +6 -0
  122. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-5.txt +6 -0
  123. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-6.txt +7 -0
  124. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-7.txt +11 -0
  125. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-8-I.txt +9 -0
  126. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/ISO-8859-8.txt +9 -0
  127. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/KOI8-R.txt +6 -0
  128. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/KOI8-U.txt +6 -0
  129. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/Shift_JIS.txt +8 -0
  130. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/UTF-16BE.txt +8 -0
  131. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/UTF-16LE.txt +8 -0
  132. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/UTF-8.txt +5 -0
  133. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/gb18030.txt +9 -0
  134. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/macintosh.txt +7 -0
  135. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/replacement.txt +10 -0
  136. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1250.txt +6 -0
  137. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1251.txt +6 -0
  138. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1252.txt +7 -0
  139. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1253.txt +8 -0
  140. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1254.txt +7 -0
  141. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1255.txt +8 -0
  142. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1256.txt +6 -0
  143. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1257.txt +7 -0
  144. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-1258.txt +11 -0
  145. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/windows-874.txt +7 -0
  146. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/x-mac-cyrillic.txt +6 -0
  147. data/ext/cargo-vendor/encoding_rs-0.8.32/doc/x-user-defined.txt +6 -0
  148. data/ext/cargo-vendor/encoding_rs-0.8.32/generate-encoding-data.py +2008 -0
  149. data/ext/cargo-vendor/encoding_rs-0.8.32/rustfmt.toml +1 -0
  150. data/ext/cargo-vendor/encoding_rs-0.8.32/src/ascii.rs +1546 -0
  151. data/ext/cargo-vendor/encoding_rs-0.8.32/src/big5.rs +427 -0
  152. data/ext/cargo-vendor/encoding_rs-0.8.32/src/data.rs +114378 -0
  153. data/ext/cargo-vendor/encoding_rs-0.8.32/src/euc_jp.rs +469 -0
  154. data/ext/cargo-vendor/encoding_rs-0.8.32/src/euc_kr.rs +442 -0
  155. data/ext/cargo-vendor/encoding_rs-0.8.32/src/gb18030.rs +767 -0
  156. data/ext/cargo-vendor/encoding_rs-0.8.32/src/handles.rs +1969 -0
  157. data/ext/cargo-vendor/encoding_rs-0.8.32/src/iso_2022_jp.rs +1068 -0
  158. data/ext/cargo-vendor/encoding_rs-0.8.32/src/lib.rs +6133 -0
  159. data/ext/cargo-vendor/encoding_rs-0.8.32/src/macros.rs +1622 -0
  160. data/ext/cargo-vendor/encoding_rs-0.8.32/src/mem.rs +3354 -0
  161. data/ext/cargo-vendor/encoding_rs-0.8.32/src/replacement.rs +104 -0
  162. data/ext/cargo-vendor/encoding_rs-0.8.32/src/shift_jis.rs +426 -0
  163. data/ext/cargo-vendor/encoding_rs-0.8.32/src/simd_funcs.rs +453 -0
  164. data/ext/cargo-vendor/encoding_rs-0.8.32/src/single_byte.rs +714 -0
  165. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/big5_in.txt +19787 -0
  166. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/big5_in_ref.txt +19787 -0
  167. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/big5_out.txt +14601 -0
  168. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/big5_out_ref.txt +14601 -0
  169. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/euc_kr_in.txt +23945 -0
  170. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/euc_kr_in_ref.txt +23945 -0
  171. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/euc_kr_out.txt +17053 -0
  172. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/euc_kr_out_ref.txt +17053 -0
  173. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/gb18030_in.txt +23945 -0
  174. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/gb18030_in_ref.txt +23945 -0
  175. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/gb18030_out.txt +23944 -0
  176. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/gb18030_out_ref.txt +23944 -0
  177. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/iso_2022_jp_in.txt +8841 -0
  178. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/iso_2022_jp_in_ref.txt +8841 -0
  179. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/iso_2022_jp_out.txt +7404 -0
  180. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/iso_2022_jp_out_ref.txt +7404 -0
  181. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/jis0208_in.txt +8841 -0
  182. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/jis0208_in_ref.txt +8841 -0
  183. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/jis0208_out.txt +7341 -0
  184. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/jis0208_out_ref.txt +7341 -0
  185. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/jis0212_in.txt +8841 -0
  186. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/jis0212_in_ref.txt +8841 -0
  187. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/shift_jis_in.txt +11285 -0
  188. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/shift_jis_in_ref.txt +11285 -0
  189. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/shift_jis_out.txt +7355 -0
  190. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_data/shift_jis_out_ref.txt +7355 -0
  191. data/ext/cargo-vendor/encoding_rs-0.8.32/src/test_labels_names.rs +242 -0
  192. data/ext/cargo-vendor/encoding_rs-0.8.32/src/testing.rs +262 -0
  193. data/ext/cargo-vendor/encoding_rs-0.8.32/src/utf_16.rs +472 -0
  194. data/ext/cargo-vendor/encoding_rs-0.8.32/src/utf_8.rs +1629 -0
  195. data/ext/cargo-vendor/encoding_rs-0.8.32/src/variant.rs +400 -0
  196. data/ext/cargo-vendor/encoding_rs-0.8.32/src/x_user_defined.rs +249 -0
  197. data/ext/cargo-vendor/equivalent-1.0.1/.cargo-checksum.json +1 -0
  198. data/ext/cargo-vendor/equivalent-1.0.1/Cargo.toml +27 -0
  199. data/ext/cargo-vendor/equivalent-1.0.1/LICENSE-APACHE +201 -0
  200. data/ext/cargo-vendor/equivalent-1.0.1/LICENSE-MIT +25 -0
  201. data/ext/cargo-vendor/equivalent-1.0.1/README.md +25 -0
  202. data/ext/cargo-vendor/equivalent-1.0.1/src/lib.rs +113 -0
  203. data/ext/cargo-vendor/file-per-thread-logger-0.2.0/.cargo-checksum.json +1 -0
  204. data/ext/cargo-vendor/file-per-thread-logger-0.2.0/Cargo.toml +36 -0
  205. data/ext/cargo-vendor/file-per-thread-logger-0.2.0/run-tests.sh +12 -0
  206. data/ext/cargo-vendor/file-per-thread-logger-0.2.0/src/lib.rs +200 -0
  207. data/ext/cargo-vendor/file-per-thread-logger-0.2.0/tests/test.rs +323 -0
  208. data/ext/cargo-vendor/hashbrown-0.14.0/.cargo-checksum.json +1 -0
  209. data/ext/cargo-vendor/hashbrown-0.14.0/CHANGELOG.md +475 -0
  210. data/ext/cargo-vendor/hashbrown-0.14.0/Cargo.toml +131 -0
  211. data/ext/cargo-vendor/hashbrown-0.14.0/LICENSE-APACHE +201 -0
  212. data/ext/cargo-vendor/hashbrown-0.14.0/LICENSE-MIT +25 -0
  213. data/ext/cargo-vendor/hashbrown-0.14.0/README.md +125 -0
  214. data/ext/cargo-vendor/hashbrown-0.14.0/benches/bench.rs +331 -0
  215. data/ext/cargo-vendor/hashbrown-0.14.0/benches/insert_unique_unchecked.rs +32 -0
  216. data/ext/cargo-vendor/hashbrown-0.14.0/clippy.toml +1 -0
  217. data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/mod.rs +6 -0
  218. data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rayon/helpers.rs +27 -0
  219. data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rayon/map.rs +731 -0
  220. data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rayon/mod.rs +4 -0
  221. data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rayon/raw.rs +231 -0
  222. data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rayon/set.rs +659 -0
  223. data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rkyv/hash_map.rs +125 -0
  224. data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rkyv/hash_set.rs +123 -0
  225. data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/rkyv/mod.rs +2 -0
  226. data/ext/cargo-vendor/hashbrown-0.14.0/src/external_trait_impls/serde.rs +201 -0
  227. data/ext/cargo-vendor/hashbrown-0.14.0/src/lib.rs +165 -0
  228. data/ext/cargo-vendor/hashbrown-0.14.0/src/macros.rs +70 -0
  229. data/ext/cargo-vendor/hashbrown-0.14.0/src/map.rs +8506 -0
  230. data/ext/cargo-vendor/hashbrown-0.14.0/src/raw/alloc.rs +86 -0
  231. data/ext/cargo-vendor/hashbrown-0.14.0/src/raw/bitmask.rs +133 -0
  232. data/ext/cargo-vendor/hashbrown-0.14.0/src/raw/generic.rs +157 -0
  233. data/ext/cargo-vendor/hashbrown-0.14.0/src/raw/mod.rs +3378 -0
  234. data/ext/cargo-vendor/hashbrown-0.14.0/src/raw/neon.rs +124 -0
  235. data/ext/cargo-vendor/hashbrown-0.14.0/src/raw/sse2.rs +149 -0
  236. data/ext/cargo-vendor/hashbrown-0.14.0/src/rustc_entry.rs +630 -0
  237. data/ext/cargo-vendor/hashbrown-0.14.0/src/scopeguard.rs +72 -0
  238. data/ext/cargo-vendor/hashbrown-0.14.0/src/set.rs +2903 -0
  239. data/ext/cargo-vendor/hashbrown-0.14.0/tests/equivalent_trait.rs +53 -0
  240. data/ext/cargo-vendor/hashbrown-0.14.0/tests/hasher.rs +65 -0
  241. data/ext/cargo-vendor/hashbrown-0.14.0/tests/raw.rs +11 -0
  242. data/ext/cargo-vendor/hashbrown-0.14.0/tests/rayon.rs +535 -0
  243. data/ext/cargo-vendor/hashbrown-0.14.0/tests/serde.rs +65 -0
  244. data/ext/cargo-vendor/hashbrown-0.14.0/tests/set.rs +34 -0
  245. data/ext/cargo-vendor/indexmap-2.0.0/.cargo-checksum.json +1 -0
  246. data/ext/cargo-vendor/indexmap-2.0.0/Cargo.toml +112 -0
  247. data/ext/cargo-vendor/indexmap-2.0.0/LICENSE-APACHE +201 -0
  248. data/ext/cargo-vendor/indexmap-2.0.0/LICENSE-MIT +25 -0
  249. data/ext/cargo-vendor/indexmap-2.0.0/README.md +55 -0
  250. data/ext/cargo-vendor/indexmap-2.0.0/RELEASES.md +424 -0
  251. data/ext/cargo-vendor/indexmap-2.0.0/benches/bench.rs +763 -0
  252. data/ext/cargo-vendor/indexmap-2.0.0/benches/faststring.rs +185 -0
  253. data/ext/cargo-vendor/indexmap-2.0.0/src/arbitrary.rs +77 -0
  254. data/ext/cargo-vendor/indexmap-2.0.0/src/lib.rs +278 -0
  255. data/ext/cargo-vendor/indexmap-2.0.0/src/macros.rs +178 -0
  256. data/ext/cargo-vendor/indexmap-2.0.0/src/map/core/raw.rs +217 -0
  257. data/ext/cargo-vendor/indexmap-2.0.0/src/map/core.rs +742 -0
  258. data/ext/cargo-vendor/indexmap-2.0.0/src/map/iter.rs +541 -0
  259. data/ext/cargo-vendor/indexmap-2.0.0/src/map/serde_seq.rs +138 -0
  260. data/ext/cargo-vendor/indexmap-2.0.0/src/map/slice.rs +471 -0
  261. data/ext/cargo-vendor/indexmap-2.0.0/src/map/tests.rs +449 -0
  262. data/ext/cargo-vendor/indexmap-2.0.0/src/map.rs +1223 -0
  263. data/ext/cargo-vendor/indexmap-2.0.0/src/mutable_keys.rs +91 -0
  264. data/ext/cargo-vendor/indexmap-2.0.0/src/rayon/map.rs +679 -0
  265. data/ext/cargo-vendor/indexmap-2.0.0/src/rayon/mod.rs +27 -0
  266. data/ext/cargo-vendor/indexmap-2.0.0/src/rayon/set.rs +774 -0
  267. data/ext/cargo-vendor/indexmap-2.0.0/src/rustc.rs +158 -0
  268. data/ext/cargo-vendor/indexmap-2.0.0/src/serde.rs +151 -0
  269. data/ext/cargo-vendor/indexmap-2.0.0/src/set/iter.rs +543 -0
  270. data/ext/cargo-vendor/indexmap-2.0.0/src/set/slice.rs +278 -0
  271. data/ext/cargo-vendor/indexmap-2.0.0/src/set/tests.rs +545 -0
  272. data/ext/cargo-vendor/indexmap-2.0.0/src/set.rs +1011 -0
  273. data/ext/cargo-vendor/indexmap-2.0.0/src/util.rs +53 -0
  274. data/ext/cargo-vendor/indexmap-2.0.0/tests/equivalent_trait.rs +53 -0
  275. data/ext/cargo-vendor/indexmap-2.0.0/tests/macros_full_path.rs +19 -0
  276. data/ext/cargo-vendor/indexmap-2.0.0/tests/quick.rs +579 -0
  277. data/ext/cargo-vendor/indexmap-2.0.0/tests/tests.rs +28 -0
  278. data/ext/cargo-vendor/regalloc2-0.9.2/.cargo-checksum.json +1 -0
  279. data/ext/cargo-vendor/regalloc2-0.9.2/Cargo.toml +72 -0
  280. data/ext/cargo-vendor/regalloc2-0.9.2/deny.toml +28 -0
  281. data/ext/cargo-vendor/regalloc2-0.9.2/src/checker.rs +1089 -0
  282. data/ext/cargo-vendor/regalloc2-0.9.2/src/fuzzing/func.rs +702 -0
  283. data/ext/cargo-vendor/regalloc2-0.9.2/src/index.rs +268 -0
  284. data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/data_structures.rs +857 -0
  285. data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/liveranges.rs +961 -0
  286. data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/merge.rs +368 -0
  287. data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/mod.rs +150 -0
  288. data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/moves.rs +1017 -0
  289. data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/process.rs +1307 -0
  290. data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/requirement.rs +174 -0
  291. data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/spill.rs +165 -0
  292. data/ext/cargo-vendor/regalloc2-0.9.2/src/ion/stackmap.rs +79 -0
  293. data/ext/cargo-vendor/regalloc2-0.9.2/src/lib.rs +1526 -0
  294. data/ext/cargo-vendor/regalloc2-0.9.2/src/moves.rs +439 -0
  295. data/ext/cargo-vendor/regalloc2-0.9.2/src/serialize.rs +311 -0
  296. data/ext/cargo-vendor/semver-1.0.18/.cargo-checksum.json +1 -0
  297. data/ext/cargo-vendor/semver-1.0.18/Cargo.toml +47 -0
  298. data/ext/cargo-vendor/semver-1.0.18/LICENSE-APACHE +176 -0
  299. data/ext/cargo-vendor/semver-1.0.18/LICENSE-MIT +23 -0
  300. data/ext/cargo-vendor/semver-1.0.18/README.md +84 -0
  301. data/ext/cargo-vendor/semver-1.0.18/benches/parse.rs +24 -0
  302. data/ext/cargo-vendor/semver-1.0.18/build.rs +75 -0
  303. data/ext/cargo-vendor/semver-1.0.18/src/backport.rs +23 -0
  304. data/ext/cargo-vendor/semver-1.0.18/src/display.rs +165 -0
  305. data/ext/cargo-vendor/semver-1.0.18/src/error.rs +126 -0
  306. data/ext/cargo-vendor/semver-1.0.18/src/eval.rs +181 -0
  307. data/ext/cargo-vendor/semver-1.0.18/src/identifier.rs +422 -0
  308. data/ext/cargo-vendor/semver-1.0.18/src/impls.rs +156 -0
  309. data/ext/cargo-vendor/semver-1.0.18/src/lib.rs +533 -0
  310. data/ext/cargo-vendor/semver-1.0.18/src/parse.rs +409 -0
  311. data/ext/cargo-vendor/semver-1.0.18/src/serde.rs +109 -0
  312. data/ext/cargo-vendor/semver-1.0.18/tests/node/mod.rs +43 -0
  313. data/ext/cargo-vendor/semver-1.0.18/tests/test_autotrait.rs +14 -0
  314. data/ext/cargo-vendor/semver-1.0.18/tests/test_identifier.rs +45 -0
  315. data/ext/cargo-vendor/semver-1.0.18/tests/test_version.rs +238 -0
  316. data/ext/cargo-vendor/semver-1.0.18/tests/test_version_req.rs +443 -0
  317. data/ext/cargo-vendor/semver-1.0.18/tests/util/mod.rs +39 -0
  318. data/ext/cargo-vendor/sptr-0.3.2/.cargo-checksum.json +1 -0
  319. data/ext/cargo-vendor/sptr-0.3.2/Cargo.toml +28 -0
  320. data/ext/cargo-vendor/sptr-0.3.2/README.md +73 -0
  321. data/ext/cargo-vendor/sptr-0.3.2/src/func.rs +83 -0
  322. data/ext/cargo-vendor/sptr-0.3.2/src/int.rs +364 -0
  323. data/ext/cargo-vendor/sptr-0.3.2/src/lib.rs +756 -0
  324. data/ext/cargo-vendor/wasi-cap-std-sync-10.0.1/.cargo-checksum.json +1 -0
  325. data/ext/cargo-vendor/wasi-cap-std-sync-10.0.1/Cargo.toml +90 -0
  326. data/ext/cargo-vendor/wasi-cap-std-sync-10.0.1/src/dir.rs +464 -0
  327. data/ext/cargo-vendor/wasi-cap-std-sync-10.0.1/src/lib.rs +141 -0
  328. data/ext/cargo-vendor/wasi-common-10.0.1/.cargo-checksum.json +1 -0
  329. data/ext/cargo-vendor/wasi-common-10.0.1/Cargo.toml +87 -0
  330. data/ext/cargo-vendor/wasi-common-10.0.1/src/ctx.rs +128 -0
  331. data/ext/cargo-vendor/wasi-common-10.0.1/src/file.rs +262 -0
  332. data/ext/cargo-vendor/wasi-common-10.0.1/src/snapshots/preview_1.rs +1490 -0
  333. data/ext/cargo-vendor/wasm-encoder-0.29.0/.cargo-checksum.json +1 -0
  334. data/ext/cargo-vendor/wasm-encoder-0.29.0/Cargo.toml +33 -0
  335. data/ext/cargo-vendor/wasm-encoder-0.29.0/README.md +80 -0
  336. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/aliases.rs +160 -0
  337. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/canonicals.rs +159 -0
  338. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/components.rs +29 -0
  339. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/exports.rs +127 -0
  340. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/imports.rs +200 -0
  341. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/instances.rs +200 -0
  342. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/modules.rs +29 -0
  343. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/names.rs +149 -0
  344. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/start.rs +52 -0
  345. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component/types.rs +759 -0
  346. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/component.rs +160 -0
  347. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/code.rs +2913 -0
  348. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/custom.rs +55 -0
  349. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/data.rs +185 -0
  350. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/dump.rs +627 -0
  351. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/elements.rs +224 -0
  352. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/exports.rs +85 -0
  353. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/functions.rs +63 -0
  354. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/globals.rs +90 -0
  355. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/imports.rs +142 -0
  356. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/linking.rs +263 -0
  357. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/memories.rs +99 -0
  358. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/names.rs +265 -0
  359. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/producers.rs +180 -0
  360. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/start.rs +39 -0
  361. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/tables.rs +104 -0
  362. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/tags.rs +85 -0
  363. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core/types.rs +246 -0
  364. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/core.rs +168 -0
  365. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/lib.rs +215 -0
  366. data/ext/cargo-vendor/wasm-encoder-0.29.0/src/raw.rs +30 -0
  367. data/ext/cargo-vendor/wasmparser-0.107.0/.cargo-checksum.json +1 -0
  368. data/ext/cargo-vendor/wasmparser-0.107.0/Cargo.lock +621 -0
  369. data/ext/cargo-vendor/wasmparser-0.107.0/Cargo.toml +54 -0
  370. data/ext/cargo-vendor/wasmparser-0.107.0/benches/benchmark.rs +351 -0
  371. data/ext/cargo-vendor/wasmparser-0.107.0/src/binary_reader.rs +1706 -0
  372. data/ext/cargo-vendor/wasmparser-0.107.0/src/lib.rs +723 -0
  373. data/ext/cargo-vendor/wasmparser-0.107.0/src/parser.rs +1535 -0
  374. data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/component/canonicals.rs +119 -0
  375. data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/component/exports.rs +117 -0
  376. data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/component/imports.rs +137 -0
  377. data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/component/instances.rs +163 -0
  378. data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/component/types.rs +548 -0
  379. data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/core/coredumps.rs +243 -0
  380. data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/core/producers.rs +83 -0
  381. data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/core/types.rs +874 -0
  382. data/ext/cargo-vendor/wasmparser-0.107.0/src/readers/core.rs +35 -0
  383. data/ext/cargo-vendor/wasmparser-0.107.0/src/validator/component.rs +3082 -0
  384. data/ext/cargo-vendor/wasmparser-0.107.0/src/validator/core.rs +1334 -0
  385. data/ext/cargo-vendor/wasmparser-0.107.0/src/validator/names.rs +606 -0
  386. data/ext/cargo-vendor/wasmparser-0.107.0/src/validator/operators.rs +3463 -0
  387. data/ext/cargo-vendor/wasmparser-0.107.0/src/validator/types.rs +3070 -0
  388. data/ext/cargo-vendor/wasmparser-0.107.0/src/validator.rs +1589 -0
  389. data/ext/cargo-vendor/wasmparser-0.111.0/.cargo-checksum.json +1 -0
  390. data/ext/cargo-vendor/wasmparser-0.111.0/Cargo.lock +644 -0
  391. data/ext/cargo-vendor/wasmparser-0.111.0/Cargo.toml +54 -0
  392. data/ext/cargo-vendor/wasmparser-0.111.0/README.md +36 -0
  393. data/ext/cargo-vendor/wasmparser-0.111.0/benches/benchmark.rs +349 -0
  394. data/ext/cargo-vendor/wasmparser-0.111.0/examples/simple.rs +37 -0
  395. data/ext/cargo-vendor/wasmparser-0.111.0/src/binary_reader.rs +1706 -0
  396. data/ext/cargo-vendor/wasmparser-0.111.0/src/lib.rs +726 -0
  397. data/ext/cargo-vendor/wasmparser-0.111.0/src/limits.rs +59 -0
  398. data/ext/cargo-vendor/wasmparser-0.111.0/src/parser.rs +1612 -0
  399. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/aliases.rs +119 -0
  400. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/canonicals.rs +120 -0
  401. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/exports.rs +117 -0
  402. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/imports.rs +137 -0
  403. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/instances.rs +163 -0
  404. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/names.rs +102 -0
  405. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/start.rs +30 -0
  406. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/types.rs +548 -0
  407. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component.rs +17 -0
  408. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/code.rs +146 -0
  409. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/coredumps.rs +243 -0
  410. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/custom.rs +63 -0
  411. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/data.rs +96 -0
  412. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/dylink0.rs +132 -0
  413. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/elements.rs +152 -0
  414. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/exports.rs +65 -0
  415. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/functions.rs +17 -0
  416. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/globals.rs +49 -0
  417. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/imports.rs +76 -0
  418. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/init.rs +51 -0
  419. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/memories.rs +56 -0
  420. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/names.rs +153 -0
  421. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/operators.rs +354 -0
  422. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/producers.rs +83 -0
  423. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/tables.rs +87 -0
  424. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/tags.rs +32 -0
  425. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/types.rs +1141 -0
  426. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core.rs +37 -0
  427. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers.rs +316 -0
  428. data/ext/cargo-vendor/wasmparser-0.111.0/src/resources.rs +398 -0
  429. data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/component.rs +3148 -0
  430. data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/core.rs +1314 -0
  431. data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/func.rs +348 -0
  432. data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/names.rs +606 -0
  433. data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/operators.rs +3466 -0
  434. data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/types.rs +3283 -0
  435. data/ext/cargo-vendor/wasmparser-0.111.0/src/validator.rs +1568 -0
  436. data/ext/cargo-vendor/wasmparser-0.111.0/tests/big-module.rs +33 -0
  437. data/ext/cargo-vendor/wasmprinter-0.2.63/.cargo-checksum.json +1 -0
  438. data/ext/cargo-vendor/wasmprinter-0.2.63/Cargo.toml +39 -0
  439. data/ext/cargo-vendor/wasmprinter-0.2.63/README.md +47 -0
  440. data/ext/cargo-vendor/wasmprinter-0.2.63/src/lib.rs +2962 -0
  441. data/ext/cargo-vendor/wasmprinter-0.2.63/src/operator.rs +873 -0
  442. data/ext/cargo-vendor/wasmprinter-0.2.63/tests/all.rs +278 -0
  443. data/ext/cargo-vendor/wasmtime-10.0.1/.cargo-checksum.json +1 -0
  444. data/ext/cargo-vendor/wasmtime-10.0.1/Cargo.toml +183 -0
  445. data/ext/cargo-vendor/wasmtime-10.0.1/src/compiler.rs +710 -0
  446. data/ext/cargo-vendor/wasmtime-10.0.1/src/component/component.rs +382 -0
  447. data/ext/cargo-vendor/wasmtime-10.0.1/src/component/instance.rs +727 -0
  448. data/ext/cargo-vendor/wasmtime-10.0.1/src/component/matching.rs +112 -0
  449. data/ext/cargo-vendor/wasmtime-10.0.1/src/component/mod.rs +313 -0
  450. data/ext/cargo-vendor/wasmtime-10.0.1/src/config.rs +2066 -0
  451. data/ext/cargo-vendor/wasmtime-10.0.1/src/engine/serialization.rs +622 -0
  452. data/ext/cargo-vendor/wasmtime-10.0.1/src/engine.rs +757 -0
  453. data/ext/cargo-vendor/wasmtime-10.0.1/src/externals.rs +763 -0
  454. data/ext/cargo-vendor/wasmtime-10.0.1/src/func/typed.rs +638 -0
  455. data/ext/cargo-vendor/wasmtime-10.0.1/src/func.rs +2355 -0
  456. data/ext/cargo-vendor/wasmtime-10.0.1/src/instance.rs +905 -0
  457. data/ext/cargo-vendor/wasmtime-10.0.1/src/lib.rs +486 -0
  458. data/ext/cargo-vendor/wasmtime-10.0.1/src/linker.rs +1479 -0
  459. data/ext/cargo-vendor/wasmtime-10.0.1/src/memory.rs +950 -0
  460. data/ext/cargo-vendor/wasmtime-10.0.1/src/module.rs +1274 -0
  461. data/ext/cargo-vendor/wasmtime-10.0.1/src/ref.rs +109 -0
  462. data/ext/cargo-vendor/wasmtime-10.0.1/src/store/context.rs +243 -0
  463. data/ext/cargo-vendor/wasmtime-10.0.1/src/store/func_refs.rs +85 -0
  464. data/ext/cargo-vendor/wasmtime-10.0.1/src/store.rs +2166 -0
  465. data/ext/cargo-vendor/wasmtime-10.0.1/src/trampoline/func.rs +133 -0
  466. data/ext/cargo-vendor/wasmtime-10.0.1/src/trampoline/global.rs +67 -0
  467. data/ext/cargo-vendor/wasmtime-10.0.1/src/types/matching.rs +312 -0
  468. data/ext/cargo-vendor/wasmtime-10.0.1/src/types.rs +572 -0
  469. data/ext/cargo-vendor/wasmtime-10.0.1/src/values.rs +290 -0
  470. data/ext/cargo-vendor/wasmtime-asm-macros-10.0.1/.cargo-checksum.json +1 -0
  471. data/ext/cargo-vendor/wasmtime-asm-macros-10.0.1/Cargo.toml +22 -0
  472. data/ext/cargo-vendor/wasmtime-cache-10.0.1/.cargo-checksum.json +1 -0
  473. data/ext/cargo-vendor/wasmtime-cache-10.0.1/Cargo.toml +73 -0
  474. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/.cargo-checksum.json +1 -0
  475. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/Cargo.toml +58 -0
  476. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/src/bindgen.rs +316 -0
  477. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/char.wit +13 -0
  478. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/conventions.wit +39 -0
  479. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/direct-import.wit +5 -0
  480. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/empty.wit +2 -0
  481. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/flags.wit +55 -0
  482. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/floats.wit +13 -0
  483. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/function-new.wit +4 -0
  484. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/integers.wit +40 -0
  485. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/lists.wit +85 -0
  486. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/many-arguments.wit +52 -0
  487. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/multi-return.wit +14 -0
  488. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/records.wit +61 -0
  489. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/rename.wit +16 -0
  490. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/share-types.wit +21 -0
  491. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/simple-functions.wit +17 -0
  492. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/simple-lists.wit +13 -0
  493. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/simple-wasi.wit +23 -0
  494. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/small-anonymous.wit +15 -0
  495. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/smoke-default.wit +5 -0
  496. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/smoke-export.wit +7 -0
  497. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/smoke.wit +7 -0
  498. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/strings.wit +12 -0
  499. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/unions.wit +66 -0
  500. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/use-paths.wit +29 -0
  501. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/variants.wit +147 -0
  502. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen/worlds-with-types.wit +16 -0
  503. data/ext/cargo-vendor/wasmtime-component-macro-10.0.1/tests/codegen.rs +24 -0
  504. data/ext/cargo-vendor/wasmtime-component-util-10.0.1/.cargo-checksum.json +1 -0
  505. data/ext/cargo-vendor/wasmtime-component-util-10.0.1/Cargo.toml +25 -0
  506. data/ext/cargo-vendor/wasmtime-cranelift-10.0.1/.cargo-checksum.json +1 -0
  507. data/ext/cargo-vendor/wasmtime-cranelift-10.0.1/Cargo.toml +90 -0
  508. data/ext/cargo-vendor/wasmtime-cranelift-10.0.1/src/compiler.rs +1200 -0
  509. data/ext/cargo-vendor/wasmtime-cranelift-10.0.1/src/debug/transform/simulate.rs +410 -0
  510. data/ext/cargo-vendor/wasmtime-cranelift-10.0.1/src/func_environ.rs +2206 -0
  511. data/ext/cargo-vendor/wasmtime-cranelift-10.0.1/src/lib.rs +178 -0
  512. data/ext/cargo-vendor/wasmtime-cranelift-shared-10.0.1/.cargo-checksum.json +1 -0
  513. data/ext/cargo-vendor/wasmtime-cranelift-shared-10.0.1/Cargo.toml +57 -0
  514. data/ext/cargo-vendor/wasmtime-cranelift-shared-10.0.1/src/lib.rs +120 -0
  515. data/ext/cargo-vendor/wasmtime-environ-10.0.1/.cargo-checksum.json +1 -0
  516. data/ext/cargo-vendor/wasmtime-environ-10.0.1/Cargo.lock +681 -0
  517. data/ext/cargo-vendor/wasmtime-environ-10.0.1/Cargo.toml +116 -0
  518. data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/component/compiler.rs +84 -0
  519. data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/component/translate/inline.rs +1067 -0
  520. data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/component/translate.rs +1070 -0
  521. data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/component/types.rs +1916 -0
  522. data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/fact.rs +623 -0
  523. data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/module.rs +1083 -0
  524. data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/module_environ.rs +884 -0
  525. data/ext/cargo-vendor/wasmtime-environ-10.0.1/src/trap_encoding.rs +238 -0
  526. data/ext/cargo-vendor/wasmtime-fiber-10.0.1/.cargo-checksum.json +1 -0
  527. data/ext/cargo-vendor/wasmtime-fiber-10.0.1/Cargo.toml +46 -0
  528. data/ext/cargo-vendor/wasmtime-fiber-10.0.1/src/lib.rs +305 -0
  529. data/ext/cargo-vendor/wasmtime-fiber-10.0.1/src/unix.rs +212 -0
  530. data/ext/cargo-vendor/wasmtime-fiber-10.0.1/src/windows.rs +161 -0
  531. data/ext/cargo-vendor/wasmtime-jit-10.0.1/.cargo-checksum.json +1 -0
  532. data/ext/cargo-vendor/wasmtime-jit-10.0.1/Cargo.toml +104 -0
  533. data/ext/cargo-vendor/wasmtime-jit-10.0.1/src/instantiate.rs +760 -0
  534. data/ext/cargo-vendor/wasmtime-jit-10.0.1/src/lib.rs +38 -0
  535. data/ext/cargo-vendor/wasmtime-jit-10.0.1/src/profiling/jitdump.rs +66 -0
  536. data/ext/cargo-vendor/wasmtime-jit-10.0.1/src/profiling/perfmap.rs +47 -0
  537. data/ext/cargo-vendor/wasmtime-jit-10.0.1/src/profiling/vtune.rs +80 -0
  538. data/ext/cargo-vendor/wasmtime-jit-10.0.1/src/profiling.rs +108 -0
  539. data/ext/cargo-vendor/wasmtime-jit-debug-10.0.1/.cargo-checksum.json +1 -0
  540. data/ext/cargo-vendor/wasmtime-jit-debug-10.0.1/Cargo.toml +55 -0
  541. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-10.0.1/.cargo-checksum.json +1 -0
  542. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-10.0.1/Cargo.toml +37 -0
  543. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/.cargo-checksum.json +1 -0
  544. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/Cargo.toml +110 -0
  545. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/component.rs +701 -0
  546. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/cow.rs +1060 -0
  547. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/debug_builtins.rs +58 -0
  548. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/externref.rs +1073 -0
  549. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/instance/allocator/pooling.rs +1368 -0
  550. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/instance/allocator.rs +531 -0
  551. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/instance.rs +1345 -0
  552. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/lib.rs +285 -0
  553. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/libcalls.rs +578 -0
  554. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/memory.rs +958 -0
  555. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/mmap/miri.rs +94 -0
  556. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/mmap/unix.rs +148 -0
  557. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/mmap/windows.rs +208 -0
  558. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/send_sync_ptr.rs +69 -0
  559. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/table.rs +595 -0
  560. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/traphandlers/unix.rs +387 -0
  561. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/traphandlers.rs +749 -0
  562. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/vmcontext/vm_host_func_context.rs +137 -0
  563. data/ext/cargo-vendor/wasmtime-runtime-10.0.1/src/vmcontext.rs +1221 -0
  564. data/ext/cargo-vendor/wasmtime-types-10.0.1/.cargo-checksum.json +1 -0
  565. data/ext/cargo-vendor/wasmtime-types-10.0.1/Cargo.toml +34 -0
  566. data/ext/cargo-vendor/wasmtime-types-10.0.1/src/lib.rs +462 -0
  567. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/.cargo-checksum.json +1 -0
  568. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/Cargo.toml +153 -0
  569. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/lib.rs +131 -0
  570. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/clocks/host.rs +73 -0
  571. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/clocks.rs +17 -0
  572. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/ctx.rs +206 -0
  573. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/error.rs +16 -0
  574. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/filesystem.rs +269 -0
  575. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/mod.rs +44 -0
  576. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/pipe.rs +233 -0
  577. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview1/mod.rs +1860 -0
  578. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/clocks.rs +80 -0
  579. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/env.rs +48 -0
  580. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/exit.rs +12 -0
  581. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs +1020 -0
  582. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/io.rs +215 -0
  583. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/mod.rs +7 -0
  584. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/poll.rs +84 -0
  585. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/preview2/random.rs +41 -0
  586. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/random.rs +58 -0
  587. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/sched/subscription.rs +104 -0
  588. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/sched/sync.rs +156 -0
  589. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/sched.rs +105 -0
  590. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/stdio.rs +176 -0
  591. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/stream.rs +210 -0
  592. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/table.rs +107 -0
  593. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/wasi/command.rs +43 -0
  594. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/src/preview2/wasi/mod.rs +30 -0
  595. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/clocks/monotonic-clock.wit +34 -0
  596. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/clocks/timezone.wit +63 -0
  597. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/clocks/wall-clock.wit +43 -0
  598. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/filesystem/filesystem.wit +782 -0
  599. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/http/incoming-handler.wit +24 -0
  600. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/http/outgoing-handler.wit +18 -0
  601. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/http/types.wit +159 -0
  602. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/io/streams.wit +215 -0
  603. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/logging/handler.wit +34 -0
  604. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/poll/poll.wit +41 -0
  605. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/preview/command-extended.wit +36 -0
  606. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/preview/command.wit +26 -0
  607. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/preview/proxy.wit +9 -0
  608. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/preview/reactor.wit +24 -0
  609. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/random/insecure-seed.wit +24 -0
  610. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/random/insecure.wit +21 -0
  611. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/random/random.wit +25 -0
  612. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/sockets/instance-network.wit +9 -0
  613. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/sockets/ip-name-lookup.wit +69 -0
  614. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/sockets/network.wit +187 -0
  615. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/sockets/tcp-create-socket.wit +27 -0
  616. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/sockets/tcp.wit +255 -0
  617. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/sockets/udp-create-socket.wit +27 -0
  618. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/sockets/udp.wit +211 -0
  619. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/wasi-cli-base/environment.wit +16 -0
  620. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/wasi-cli-base/exit.wit +4 -0
  621. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/wasi-cli-base/preopens.wit +7 -0
  622. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/deps/wasi-cli-base/stdio.wit +17 -0
  623. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/main.wit +1 -0
  624. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/wit/test.wit +19 -0
  625. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/witx/typenames.witx +750 -0
  626. data/ext/cargo-vendor/wasmtime-wasi-10.0.1/witx/wasi_snapshot_preview1.witx +521 -0
  627. data/ext/cargo-vendor/wasmtime-winch-10.0.1/.cargo-checksum.json +1 -0
  628. data/ext/cargo-vendor/wasmtime-winch-10.0.1/Cargo.toml +63 -0
  629. data/ext/cargo-vendor/wasmtime-winch-10.0.1/src/compiler.rs +220 -0
  630. data/ext/cargo-vendor/wasmtime-wit-bindgen-10.0.1/.cargo-checksum.json +1 -0
  631. data/ext/cargo-vendor/wasmtime-wit-bindgen-10.0.1/Cargo.toml +29 -0
  632. data/ext/cargo-vendor/wasmtime-wit-bindgen-10.0.1/src/lib.rs +1631 -0
  633. data/ext/cargo-vendor/wasmtime-wit-bindgen-10.0.1/src/types.rs +179 -0
  634. data/ext/cargo-vendor/wiggle-10.0.1/.cargo-checksum.json +1 -0
  635. data/ext/cargo-vendor/wiggle-10.0.1/Cargo.toml +106 -0
  636. data/ext/cargo-vendor/wiggle-10.0.1/LICENSE +220 -0
  637. data/ext/cargo-vendor/wiggle-10.0.1/README.md +18 -0
  638. data/ext/cargo-vendor/wiggle-generate-10.0.1/.cargo-checksum.json +1 -0
  639. data/ext/cargo-vendor/wiggle-generate-10.0.1/Cargo.toml +58 -0
  640. data/ext/cargo-vendor/wiggle-generate-10.0.1/LICENSE +220 -0
  641. data/ext/cargo-vendor/wiggle-macro-10.0.1/.cargo-checksum.json +1 -0
  642. data/ext/cargo-vendor/wiggle-macro-10.0.1/Cargo.toml +55 -0
  643. data/ext/cargo-vendor/wiggle-macro-10.0.1/LICENSE +220 -0
  644. data/ext/cargo-vendor/wiggle-macro-10.0.1/src/lib.rs +210 -0
  645. data/ext/cargo-vendor/winch-codegen-0.8.1/.cargo-checksum.json +1 -0
  646. data/ext/cargo-vendor/winch-codegen-0.8.1/Cargo.toml +62 -0
  647. data/ext/cargo-vendor/winch-codegen-0.8.1/src/abi/local.rs +70 -0
  648. data/ext/cargo-vendor/winch-codegen-0.8.1/src/abi/mod.rs +237 -0
  649. data/ext/cargo-vendor/winch-codegen-0.8.1/src/codegen/call.rs +225 -0
  650. data/ext/cargo-vendor/winch-codegen-0.8.1/src/codegen/context.rs +270 -0
  651. data/ext/cargo-vendor/winch-codegen-0.8.1/src/codegen/env.rs +52 -0
  652. data/ext/cargo-vendor/winch-codegen-0.8.1/src/codegen/mod.rs +214 -0
  653. data/ext/cargo-vendor/winch-codegen-0.8.1/src/frame/mod.rs +172 -0
  654. data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/aarch64/abi.rs +243 -0
  655. data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/aarch64/asm.rs +300 -0
  656. data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/aarch64/masm.rs +230 -0
  657. data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/aarch64/mod.rs +127 -0
  658. data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/aarch64/regs.rs +166 -0
  659. data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/mod.rs +215 -0
  660. data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/x64/abi.rs +369 -0
  661. data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/x64/address.rs +17 -0
  662. data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/x64/asm.rs +576 -0
  663. data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/x64/masm.rs +288 -0
  664. data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/x64/mod.rs +149 -0
  665. data/ext/cargo-vendor/winch-codegen-0.8.1/src/isa/x64/regs.rs +192 -0
  666. data/ext/cargo-vendor/winch-codegen-0.8.1/src/lib.rs +21 -0
  667. data/ext/cargo-vendor/winch-codegen-0.8.1/src/masm.rs +255 -0
  668. data/ext/cargo-vendor/winch-codegen-0.8.1/src/regalloc.rs +70 -0
  669. data/ext/cargo-vendor/winch-codegen-0.8.1/src/stack.rs +235 -0
  670. data/ext/cargo-vendor/winch-codegen-0.8.1/src/trampoline.rs +494 -0
  671. data/ext/cargo-vendor/winch-codegen-0.8.1/src/visitor.rs +353 -0
  672. data/ext/cargo-vendor/wit-parser-0.8.0/.cargo-checksum.json +1 -0
  673. data/ext/cargo-vendor/wit-parser-0.8.0/Cargo.toml +62 -0
  674. data/ext/cargo-vendor/wit-parser-0.8.0/src/ast/lex.rs +679 -0
  675. data/ext/cargo-vendor/wit-parser-0.8.0/src/ast/resolve.rs +1122 -0
  676. data/ext/cargo-vendor/wit-parser-0.8.0/src/ast.rs +1207 -0
  677. data/ext/cargo-vendor/wit-parser-0.8.0/src/lib.rs +622 -0
  678. data/ext/cargo-vendor/wit-parser-0.8.0/src/live.rs +111 -0
  679. data/ext/cargo-vendor/wit-parser-0.8.0/src/resolve.rs +1307 -0
  680. data/ext/cargo-vendor/wit-parser-0.8.0/tests/all.rs +168 -0
  681. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/comments.wit +25 -0
  682. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/diamond1/deps/dep1/types.wit +2 -0
  683. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/diamond1/deps/dep2/types.wit +2 -0
  684. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/diamond1/join.wit +6 -0
  685. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/disambiguate-diamond/shared1.wit +3 -0
  686. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/disambiguate-diamond/shared2.wit +3 -0
  687. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/disambiguate-diamond/world.wit +13 -0
  688. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/embedded.wit.md +34 -0
  689. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/empty.wit +1 -0
  690. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/deps/another-pkg/other-doc.wit +3 -0
  691. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/deps/corp/saas.wit +4 -0
  692. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/deps/different-pkg/the-doc.wit +2 -0
  693. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/deps/foreign-pkg/the-doc.wit +5 -0
  694. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/deps/some-pkg/some-doc.wit +13 -0
  695. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/deps/wasi/clocks.wit +5 -0
  696. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/deps/wasi/filesystem.wit +7 -0
  697. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/foreign-deps/root.wit +44 -0
  698. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/functions.wit +14 -0
  699. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/many-names/a.wit +2 -0
  700. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/many-names/b.wit +5 -0
  701. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/multi-file/bar.wit +21 -0
  702. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/multi-file/cycle-a.wit +7 -0
  703. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/multi-file/cycle-b.wit +3 -0
  704. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/multi-file/foo.wit +31 -0
  705. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/package-syntax1.wit +1 -0
  706. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/package-syntax3.wit +1 -0
  707. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/package-syntax4.wit +1 -0
  708. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/alias-no-type.wit.result +1 -0
  709. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-function.wit +7 -0
  710. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-function.wit.result +5 -0
  711. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-function2.wit +7 -0
  712. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-function2.wit.result +5 -0
  713. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg1/root.wit +5 -0
  714. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg1.wit.result +8 -0
  715. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg2/deps/bar/empty.wit +1 -0
  716. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg2/root.wit +5 -0
  717. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg2.wit.result +5 -0
  718. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg3/deps/bar/baz.wit +2 -0
  719. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg3/root.wit +5 -0
  720. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg3.wit.result +5 -0
  721. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg4/deps/bar/baz.wit +4 -0
  722. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg4/root.wit +4 -0
  723. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg4.wit.result +5 -0
  724. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg5/deps/bar/baz.wit +3 -0
  725. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg5/root.wit +4 -0
  726. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg5.wit.result +5 -0
  727. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg6/deps/bar/baz.wit +4 -0
  728. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg6/root.wit +4 -0
  729. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-pkg6.wit.result +5 -0
  730. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-world-type1.wit +5 -0
  731. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/bad-world-type1.wit.result +5 -0
  732. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/conflicting-package/a.wit +1 -0
  733. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/conflicting-package/b.wit +1 -0
  734. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/conflicting-package.wit.result +8 -0
  735. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle.wit +6 -0
  736. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle.wit.result +5 -0
  737. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle2.wit +7 -0
  738. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle2.wit.result +5 -0
  739. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle3.wit +7 -0
  740. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle3.wit.result +5 -0
  741. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle4.wit +7 -0
  742. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle4.wit.result +5 -0
  743. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle5.wit +7 -0
  744. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/cycle5.wit.result +5 -0
  745. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-functions.wit +8 -0
  746. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-functions.wit.result +5 -0
  747. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-interface.wit +6 -0
  748. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-interface.wit.result +5 -0
  749. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-interface2/foo.wit +3 -0
  750. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-interface2/foo2.wit +3 -0
  751. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-interface2.wit.result +8 -0
  752. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-type.wit +7 -0
  753. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/duplicate-type.wit.result +5 -0
  754. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/empty-enum.wit +6 -0
  755. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/empty-enum.wit.result +5 -0
  756. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/empty-union.wit +6 -0
  757. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/empty-union.wit.result +5 -0
  758. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/empty-variant1.wit +6 -0
  759. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/empty-variant1.wit.result +5 -0
  760. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/export-twice.wit +8 -0
  761. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/export-twice.wit.result +5 -0
  762. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/import-export-overlap1.wit +5 -0
  763. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/import-export-overlap1.wit.result +5 -0
  764. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/import-export-overlap2.wit +5 -0
  765. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/import-export-overlap2.wit.result +5 -0
  766. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/import-twice.wit +8 -0
  767. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/import-twice.wit.result +5 -0
  768. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/invalid-md.wit.result +5 -0
  769. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/invalid-type-reference.wit +10 -0
  770. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/invalid-type-reference.wit.result +5 -0
  771. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/invalid-type-reference2.wit +6 -0
  772. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/invalid-type-reference2.wit.result +5 -0
  773. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/missing-package.wit.result +1 -0
  774. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/no-access-to-sibling-use/bar.wit +1 -0
  775. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/no-access-to-sibling-use/foo.wit +5 -0
  776. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/no-access-to-sibling-use.wit.result +8 -0
  777. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/pkg-cycle/deps/a1/root.wit +4 -0
  778. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/pkg-cycle/root.wit +4 -0
  779. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/pkg-cycle.wit.result +5 -0
  780. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/pkg-cycle2/deps/a1/root.wit +4 -0
  781. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/pkg-cycle2/deps/a2/root.wit +4 -0
  782. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/pkg-cycle2/root.wit +4 -0
  783. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/pkg-cycle2.wit.result +5 -0
  784. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/undefined-typed.wit +6 -0
  785. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/undefined-typed.wit.result +5 -0
  786. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unknown-interface.wit +7 -0
  787. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unknown-interface.wit.result +5 -0
  788. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface1.wit +7 -0
  789. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface1.wit.result +5 -0
  790. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface2.wit +8 -0
  791. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface2.wit.result +5 -0
  792. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface3.wit +5 -0
  793. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface3.wit.result +5 -0
  794. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface4.wit +7 -0
  795. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-interface4.wit.result +5 -0
  796. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use1.wit +7 -0
  797. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use1.wit.result +5 -0
  798. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use10/bar.wit +5 -0
  799. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use10.wit.result +8 -0
  800. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use2.wit +10 -0
  801. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use2.wit.result +5 -0
  802. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use3.wit +11 -0
  803. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use3.wit.result +5 -0
  804. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use7.wit +10 -0
  805. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use7.wit.result +5 -0
  806. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use8.wit +9 -0
  807. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use8.wit.result +5 -0
  808. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use9.wit +9 -0
  809. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/unresolved-use9.wit.result +5 -0
  810. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-conflict.wit +11 -0
  811. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-conflict.wit.result +5 -0
  812. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-conflict2.wit +13 -0
  813. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-conflict2.wit.result +5 -0
  814. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-conflict3.wit +13 -0
  815. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-conflict3.wit.result +5 -0
  816. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-cycle1.wit +7 -0
  817. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-cycle1.wit.result +5 -0
  818. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-cycle4.wit +14 -0
  819. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-cycle4.wit.result +5 -0
  820. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-shadow1.wit +7 -0
  821. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/use-shadow1.wit.result +5 -0
  822. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-interface-clash.wit +3 -0
  823. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-interface-clash.wit.result +5 -0
  824. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-same-fields2.wit +8 -0
  825. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-same-fields2.wit.result +5 -0
  826. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-same-fields3.wit +8 -0
  827. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-same-fields3.wit.result +5 -0
  828. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-top-level-func.wit +5 -0
  829. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-top-level-func.wit.result +5 -0
  830. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-top-level-func2.wit +4 -0
  831. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/parse-fail/world-top-level-func2.wit.result +5 -0
  832. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/shared-types.wit +10 -0
  833. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/type-then-eof.wit +5 -0
  834. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/types.wit +61 -0
  835. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/use-chain.wit +11 -0
  836. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/use.wit +34 -0
  837. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/versions/deps/a1/foo.wit +5 -0
  838. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/versions/deps/a2/foo.wit +5 -0
  839. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/versions/foo.wit +7 -0
  840. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/wasi.wit +178 -0
  841. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/world-diamond.wit +22 -0
  842. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/world-iface-no-collide.wit +11 -0
  843. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/world-implicit-import1.wit +12 -0
  844. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/world-implicit-import2.wit +11 -0
  845. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/world-implicit-import3.wit +11 -0
  846. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/world-same-fields4.wit +13 -0
  847. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/world-top-level-funcs.wit +9 -0
  848. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/worlds-same-fields5.wit +17 -0
  849. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/worlds-with-types.wit +34 -0
  850. data/ext/cargo-vendor/wit-parser-0.8.0/tests/ui/worlds.wit +37 -0
  851. data/ext/src/ruby_api/global.rs +3 -3
  852. data/ext/src/ruby_api/memory/unsafe_slice.rs +9 -3
  853. data/ext/src/ruby_api/params.rs +14 -12
  854. data/ext/src/ruby_api/table.rs +1 -1
  855. data/lib/wasmtime/version.rb +1 -1
  856. metadata +1418 -1079
  857. data/ext/cargo-vendor/cranelift-bforest-0.96.4/.cargo-checksum.json +0 -1
  858. data/ext/cargo-vendor/cranelift-bforest-0.96.4/Cargo.toml +0 -31
  859. data/ext/cargo-vendor/cranelift-codegen-0.96.4/.cargo-checksum.json +0 -1
  860. data/ext/cargo-vendor/cranelift-codegen-0.96.4/Cargo.toml +0 -159
  861. data/ext/cargo-vendor/cranelift-codegen-0.96.4/benches/x64-evex-encoding.rs +0 -53
  862. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/ir/trapcode.rs +0 -138
  863. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/abi.rs +0 -1281
  864. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/inst/emit.rs +0 -3658
  865. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/inst/emit_tests.rs +0 -7868
  866. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/inst/imms.rs +0 -1215
  867. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/inst/mod.rs +0 -2945
  868. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/inst.isle +0 -4035
  869. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/lower/isle.rs +0 -813
  870. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/lower.isle +0 -2906
  871. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/aarch64/mod.rs +0 -240
  872. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/mod.rs +0 -420
  873. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/abi.rs +0 -726
  874. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/args.rs +0 -1822
  875. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/emit.rs +0 -2914
  876. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/emit_tests.rs +0 -2317
  877. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/encode.rs +0 -188
  878. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/imms.rs +0 -244
  879. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/mod.rs +0 -1823
  880. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/regs.rs +0 -231
  881. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/unwind/systemv.rs +0 -177
  882. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst/vector.rs +0 -354
  883. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst.isle +0 -2746
  884. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/inst_vector.isle +0 -224
  885. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/lower/isle.rs +0 -544
  886. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/lower.isle +0 -1012
  887. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/riscv64/mod.rs +0 -219
  888. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/s390x/abi.rs +0 -947
  889. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/s390x/inst/emit.rs +0 -3697
  890. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/s390x/inst/emit_tests.rs +0 -13397
  891. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/s390x/inst/mod.rs +0 -3409
  892. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/s390x/inst.isle +0 -5045
  893. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/s390x/lower.isle +0 -3991
  894. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/s390x/mod.rs +0 -215
  895. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/abi.rs +0 -978
  896. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/encoding/evex.rs +0 -403
  897. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/encoding/rex.rs +0 -565
  898. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/encoding/vex.rs +0 -498
  899. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/inst/args.rs +0 -2168
  900. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/inst/emit.rs +0 -3938
  901. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/inst/emit_tests.rs +0 -5669
  902. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/inst/mod.rs +0 -2763
  903. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/inst.isle +0 -5186
  904. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/lower/isle.rs +0 -1158
  905. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/lower.isle +0 -4262
  906. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/lower.rs +0 -328
  907. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isa/x64/mod.rs +0 -250
  908. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/isle_prelude.rs +0 -818
  909. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/abi.rs +0 -2410
  910. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/buffer.rs +0 -2219
  911. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/compile.rs +0 -92
  912. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/isle.rs +0 -827
  913. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/lower.rs +0 -1366
  914. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/mod.rs +0 -538
  915. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/reg.rs +0 -532
  916. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/machinst/vcode.rs +0 -1571
  917. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/prelude.isle +0 -552
  918. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/prelude_lower.isle +0 -1012
  919. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/settings.rs +0 -599
  920. data/ext/cargo-vendor/cranelift-codegen-0.96.4/src/verifier/mod.rs +0 -1881
  921. data/ext/cargo-vendor/cranelift-codegen-meta-0.96.4/.cargo-checksum.json +0 -1
  922. data/ext/cargo-vendor/cranelift-codegen-meta-0.96.4/Cargo.toml +0 -23
  923. data/ext/cargo-vendor/cranelift-codegen-meta-0.96.4/src/isa/x86.rs +0 -445
  924. data/ext/cargo-vendor/cranelift-codegen-meta-0.96.4/src/shared/settings.rs +0 -331
  925. data/ext/cargo-vendor/cranelift-codegen-shared-0.96.4/.cargo-checksum.json +0 -1
  926. data/ext/cargo-vendor/cranelift-codegen-shared-0.96.4/Cargo.toml +0 -22
  927. data/ext/cargo-vendor/cranelift-control-0.96.4/.cargo-checksum.json +0 -1
  928. data/ext/cargo-vendor/cranelift-control-0.96.4/Cargo.toml +0 -30
  929. data/ext/cargo-vendor/cranelift-control-0.96.4/src/chaos.rs +0 -78
  930. data/ext/cargo-vendor/cranelift-control-0.96.4/src/lib.rs +0 -30
  931. data/ext/cargo-vendor/cranelift-control-0.96.4/src/zero_sized.rs +0 -42
  932. data/ext/cargo-vendor/cranelift-entity-0.96.4/.cargo-checksum.json +0 -1
  933. data/ext/cargo-vendor/cranelift-entity-0.96.4/Cargo.toml +0 -35
  934. data/ext/cargo-vendor/cranelift-entity-0.96.4/src/list.rs +0 -868
  935. data/ext/cargo-vendor/cranelift-frontend-0.96.4/.cargo-checksum.json +0 -1
  936. data/ext/cargo-vendor/cranelift-frontend-0.96.4/Cargo.toml +0 -53
  937. data/ext/cargo-vendor/cranelift-isle-0.96.4/.cargo-checksum.json +0 -1
  938. data/ext/cargo-vendor/cranelift-isle-0.96.4/Cargo.toml +0 -37
  939. data/ext/cargo-vendor/cranelift-native-0.96.4/.cargo-checksum.json +0 -1
  940. data/ext/cargo-vendor/cranelift-native-0.96.4/Cargo.toml +0 -38
  941. data/ext/cargo-vendor/cranelift-native-0.96.4/src/lib.rs +0 -216
  942. data/ext/cargo-vendor/cranelift-wasm-0.96.4/.cargo-checksum.json +0 -1
  943. data/ext/cargo-vendor/cranelift-wasm-0.96.4/Cargo.toml +0 -85
  944. data/ext/cargo-vendor/cranelift-wasm-0.96.4/src/code_translator.rs +0 -3479
  945. data/ext/cargo-vendor/cranelift-wasm-0.96.4/src/environ/dummy.rs +0 -901
  946. data/ext/cargo-vendor/cranelift-wasm-0.96.4/src/environ/spec.rs +0 -807
  947. data/ext/cargo-vendor/cranelift-wasm-0.96.4/src/func_translator.rs +0 -419
  948. data/ext/cargo-vendor/cranelift-wasm-0.96.4/src/sections_translator.rs +0 -429
  949. data/ext/cargo-vendor/cranelift-wasm-0.96.4/src/translation_utils.rs +0 -108
  950. data/ext/cargo-vendor/file-per-thread-logger-0.1.6/.cargo-checksum.json +0 -1
  951. data/ext/cargo-vendor/file-per-thread-logger-0.1.6/Cargo.toml +0 -36
  952. data/ext/cargo-vendor/file-per-thread-logger-0.1.6/run-tests.sh +0 -11
  953. data/ext/cargo-vendor/file-per-thread-logger-0.1.6/src/lib.rs +0 -162
  954. data/ext/cargo-vendor/file-per-thread-logger-0.1.6/tests/test.rs +0 -267
  955. data/ext/cargo-vendor/regalloc2-0.8.1/.cargo-checksum.json +0 -1
  956. data/ext/cargo-vendor/regalloc2-0.8.1/Cargo.toml +0 -72
  957. data/ext/cargo-vendor/regalloc2-0.8.1/deny.toml +0 -28
  958. data/ext/cargo-vendor/regalloc2-0.8.1/src/checker.rs +0 -1089
  959. data/ext/cargo-vendor/regalloc2-0.8.1/src/fuzzing/func.rs +0 -673
  960. data/ext/cargo-vendor/regalloc2-0.8.1/src/index.rs +0 -188
  961. data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/data_structures.rs +0 -688
  962. data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/liveranges.rs +0 -1012
  963. data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/merge.rs +0 -394
  964. data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/mod.rs +0 -152
  965. data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/moves.rs +0 -985
  966. data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/process.rs +0 -1322
  967. data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/requirement.rs +0 -174
  968. data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/spill.rs +0 -198
  969. data/ext/cargo-vendor/regalloc2-0.8.1/src/ion/stackmap.rs +0 -74
  970. data/ext/cargo-vendor/regalloc2-0.8.1/src/lib.rs +0 -1523
  971. data/ext/cargo-vendor/regalloc2-0.8.1/src/moves.rs +0 -438
  972. data/ext/cargo-vendor/wasi-cap-std-sync-9.0.4/.cargo-checksum.json +0 -1
  973. data/ext/cargo-vendor/wasi-cap-std-sync-9.0.4/Cargo.toml +0 -89
  974. data/ext/cargo-vendor/wasi-cap-std-sync-9.0.4/src/dir.rs +0 -465
  975. data/ext/cargo-vendor/wasi-cap-std-sync-9.0.4/src/lib.rs +0 -140
  976. data/ext/cargo-vendor/wasi-common-9.0.4/.cargo-checksum.json +0 -1
  977. data/ext/cargo-vendor/wasi-common-9.0.4/Cargo.toml +0 -86
  978. data/ext/cargo-vendor/wasi-common-9.0.4/src/ctx.rs +0 -127
  979. data/ext/cargo-vendor/wasi-common-9.0.4/src/file.rs +0 -260
  980. data/ext/cargo-vendor/wasi-common-9.0.4/src/snapshots/preview_1.rs +0 -1490
  981. data/ext/cargo-vendor/wasmparser-0.103.0/.cargo-checksum.json +0 -1
  982. data/ext/cargo-vendor/wasmparser-0.103.0/Cargo.lock +0 -692
  983. data/ext/cargo-vendor/wasmparser-0.103.0/Cargo.toml +0 -54
  984. data/ext/cargo-vendor/wasmparser-0.103.0/benches/benchmark.rs +0 -350
  985. data/ext/cargo-vendor/wasmparser-0.103.0/src/binary_reader.rs +0 -1682
  986. data/ext/cargo-vendor/wasmparser-0.103.0/src/lib.rs +0 -712
  987. data/ext/cargo-vendor/wasmparser-0.103.0/src/parser.rs +0 -1496
  988. data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/component/canonicals.rs +0 -95
  989. data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/component/exports.rs +0 -105
  990. data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/component/imports.rs +0 -109
  991. data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/component/instances.rs +0 -164
  992. data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/component/types.rs +0 -508
  993. data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/core/producers.rs +0 -78
  994. data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/core/types.rs +0 -511
  995. data/ext/cargo-vendor/wasmparser-0.103.0/src/readers/core.rs +0 -33
  996. data/ext/cargo-vendor/wasmparser-0.103.0/src/validator/component.rs +0 -2097
  997. data/ext/cargo-vendor/wasmparser-0.103.0/src/validator/core.rs +0 -1278
  998. data/ext/cargo-vendor/wasmparser-0.103.0/src/validator/operators.rs +0 -3456
  999. data/ext/cargo-vendor/wasmparser-0.103.0/src/validator/types.rs +0 -2159
  1000. data/ext/cargo-vendor/wasmparser-0.103.0/src/validator.rs +0 -1514
  1001. data/ext/cargo-vendor/wasmtime-9.0.4/.cargo-checksum.json +0 -1
  1002. data/ext/cargo-vendor/wasmtime-9.0.4/Cargo.toml +0 -183
  1003. data/ext/cargo-vendor/wasmtime-9.0.4/build.rs +0 -20
  1004. data/ext/cargo-vendor/wasmtime-9.0.4/src/component/component.rs +0 -519
  1005. data/ext/cargo-vendor/wasmtime-9.0.4/src/component/instance.rs +0 -728
  1006. data/ext/cargo-vendor/wasmtime-9.0.4/src/component/matching.rs +0 -112
  1007. data/ext/cargo-vendor/wasmtime-9.0.4/src/component/mod.rs +0 -313
  1008. data/ext/cargo-vendor/wasmtime-9.0.4/src/config.rs +0 -2036
  1009. data/ext/cargo-vendor/wasmtime-9.0.4/src/engine/serialization.rs +0 -613
  1010. data/ext/cargo-vendor/wasmtime-9.0.4/src/engine.rs +0 -729
  1011. data/ext/cargo-vendor/wasmtime-9.0.4/src/externals.rs +0 -762
  1012. data/ext/cargo-vendor/wasmtime-9.0.4/src/func/typed.rs +0 -638
  1013. data/ext/cargo-vendor/wasmtime-9.0.4/src/func.rs +0 -2385
  1014. data/ext/cargo-vendor/wasmtime-9.0.4/src/instance.rs +0 -905
  1015. data/ext/cargo-vendor/wasmtime-9.0.4/src/lib.rs +0 -481
  1016. data/ext/cargo-vendor/wasmtime-9.0.4/src/linker.rs +0 -1479
  1017. data/ext/cargo-vendor/wasmtime-9.0.4/src/memory.rs +0 -948
  1018. data/ext/cargo-vendor/wasmtime-9.0.4/src/module.rs +0 -1542
  1019. data/ext/cargo-vendor/wasmtime-9.0.4/src/ref.rs +0 -108
  1020. data/ext/cargo-vendor/wasmtime-9.0.4/src/store/context.rs +0 -243
  1021. data/ext/cargo-vendor/wasmtime-9.0.4/src/store/func_refs.rs +0 -110
  1022. data/ext/cargo-vendor/wasmtime-9.0.4/src/store.rs +0 -2059
  1023. data/ext/cargo-vendor/wasmtime-9.0.4/src/trampoline/func.rs +0 -171
  1024. data/ext/cargo-vendor/wasmtime-9.0.4/src/trampoline/global.rs +0 -71
  1025. data/ext/cargo-vendor/wasmtime-9.0.4/src/types/matching.rs +0 -254
  1026. data/ext/cargo-vendor/wasmtime-9.0.4/src/types.rs +0 -551
  1027. data/ext/cargo-vendor/wasmtime-9.0.4/src/values.rs +0 -290
  1028. data/ext/cargo-vendor/wasmtime-asm-macros-9.0.4/.cargo-checksum.json +0 -1
  1029. data/ext/cargo-vendor/wasmtime-asm-macros-9.0.4/Cargo.toml +0 -22
  1030. data/ext/cargo-vendor/wasmtime-cache-9.0.4/.cargo-checksum.json +0 -1
  1031. data/ext/cargo-vendor/wasmtime-cache-9.0.4/Cargo.toml +0 -73
  1032. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/.cargo-checksum.json +0 -1
  1033. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/Cargo.toml +0 -58
  1034. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/src/bindgen.rs +0 -316
  1035. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/char.wit +0 -11
  1036. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/conventions.wit +0 -38
  1037. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/direct-import.wit +0 -3
  1038. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/empty.wit +0 -1
  1039. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/flags.wit +0 -53
  1040. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/floats.wit +0 -11
  1041. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/function-new.wit +0 -3
  1042. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/integers.wit +0 -38
  1043. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/lists.wit +0 -83
  1044. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/many-arguments.wit +0 -50
  1045. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/multi-return.wit +0 -12
  1046. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/records.wit +0 -59
  1047. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/rename.wit +0 -14
  1048. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/share-types.wit +0 -19
  1049. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/simple-functions.wit +0 -15
  1050. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/simple-lists.wit +0 -11
  1051. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/simple-wasi.wit +0 -21
  1052. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/small-anonymous.wit +0 -13
  1053. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/smoke-default.wit +0 -3
  1054. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/smoke-export.wit +0 -5
  1055. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/smoke.wit +0 -5
  1056. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/strings.wit +0 -10
  1057. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/unions.wit +0 -64
  1058. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/use-paths.wit +0 -27
  1059. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/variants.wit +0 -145
  1060. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen/worlds-with-types.wit +0 -14
  1061. data/ext/cargo-vendor/wasmtime-component-macro-9.0.4/tests/codegen.rs +0 -30
  1062. data/ext/cargo-vendor/wasmtime-component-util-9.0.4/.cargo-checksum.json +0 -1
  1063. data/ext/cargo-vendor/wasmtime-component-util-9.0.4/Cargo.toml +0 -25
  1064. data/ext/cargo-vendor/wasmtime-cranelift-9.0.4/.cargo-checksum.json +0 -1
  1065. data/ext/cargo-vendor/wasmtime-cranelift-9.0.4/Cargo.toml +0 -90
  1066. data/ext/cargo-vendor/wasmtime-cranelift-9.0.4/src/compiler.rs +0 -1200
  1067. data/ext/cargo-vendor/wasmtime-cranelift-9.0.4/src/debug/transform/simulate.rs +0 -411
  1068. data/ext/cargo-vendor/wasmtime-cranelift-9.0.4/src/func_environ.rs +0 -2162
  1069. data/ext/cargo-vendor/wasmtime-cranelift-9.0.4/src/lib.rs +0 -177
  1070. data/ext/cargo-vendor/wasmtime-cranelift-shared-9.0.4/.cargo-checksum.json +0 -1
  1071. data/ext/cargo-vendor/wasmtime-cranelift-shared-9.0.4/Cargo.toml +0 -57
  1072. data/ext/cargo-vendor/wasmtime-cranelift-shared-9.0.4/src/lib.rs +0 -119
  1073. data/ext/cargo-vendor/wasmtime-environ-9.0.4/.cargo-checksum.json +0 -1
  1074. data/ext/cargo-vendor/wasmtime-environ-9.0.4/Cargo.lock +0 -735
  1075. data/ext/cargo-vendor/wasmtime-environ-9.0.4/Cargo.toml +0 -116
  1076. data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/component/compiler.rs +0 -84
  1077. data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/component/translate/inline.rs +0 -1064
  1078. data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/component/translate.rs +0 -1066
  1079. data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/component/types.rs +0 -1903
  1080. data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/fact.rs +0 -622
  1081. data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/module.rs +0 -1043
  1082. data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/module_environ.rs +0 -841
  1083. data/ext/cargo-vendor/wasmtime-environ-9.0.4/src/trap_encoding.rs +0 -234
  1084. data/ext/cargo-vendor/wasmtime-fiber-9.0.4/.cargo-checksum.json +0 -1
  1085. data/ext/cargo-vendor/wasmtime-fiber-9.0.4/Cargo.toml +0 -46
  1086. data/ext/cargo-vendor/wasmtime-fiber-9.0.4/src/lib.rs +0 -293
  1087. data/ext/cargo-vendor/wasmtime-fiber-9.0.4/src/unix.rs +0 -199
  1088. data/ext/cargo-vendor/wasmtime-fiber-9.0.4/src/windows.rs +0 -156
  1089. data/ext/cargo-vendor/wasmtime-jit-9.0.4/.cargo-checksum.json +0 -1
  1090. data/ext/cargo-vendor/wasmtime-jit-9.0.4/Cargo.toml +0 -100
  1091. data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/instantiate.rs +0 -786
  1092. data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/lib.rs +0 -39
  1093. data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/profiling/jitdump_disabled.rs +0 -32
  1094. data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/profiling/jitdump_linux.rs +0 -444
  1095. data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/profiling/perfmap_disabled.rs +0 -28
  1096. data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/profiling/perfmap_linux.rs +0 -104
  1097. data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/profiling/vtune.rs +0 -147
  1098. data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/profiling/vtune_disabled.rs +0 -32
  1099. data/ext/cargo-vendor/wasmtime-jit-9.0.4/src/profiling.rs +0 -74
  1100. data/ext/cargo-vendor/wasmtime-jit-debug-9.0.4/.cargo-checksum.json +0 -1
  1101. data/ext/cargo-vendor/wasmtime-jit-debug-9.0.4/Cargo.toml +0 -55
  1102. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-9.0.4/.cargo-checksum.json +0 -1
  1103. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-9.0.4/Cargo.toml +0 -37
  1104. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/.cargo-checksum.json +0 -1
  1105. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/Cargo.toml +0 -107
  1106. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/component.rs +0 -724
  1107. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/cow.rs +0 -1063
  1108. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/debug_builtins.rs +0 -56
  1109. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/externref.rs +0 -1078
  1110. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/instance/allocator/pooling.rs +0 -1371
  1111. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/instance/allocator.rs +0 -528
  1112. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/instance.rs +0 -1267
  1113. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/lib.rs +0 -286
  1114. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/libcalls.rs +0 -597
  1115. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/memory.rs +0 -945
  1116. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/mmap/miri.rs +0 -93
  1117. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/mmap/unix.rs +0 -147
  1118. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/mmap/windows.rs +0 -207
  1119. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/table.rs +0 -573
  1120. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/traphandlers/unix.rs +0 -387
  1121. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/traphandlers.rs +0 -664
  1122. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/vmcontext/vm_host_func_context.rs +0 -147
  1123. data/ext/cargo-vendor/wasmtime-runtime-9.0.4/src/vmcontext.rs +0 -1244
  1124. data/ext/cargo-vendor/wasmtime-types-9.0.4/.cargo-checksum.json +0 -1
  1125. data/ext/cargo-vendor/wasmtime-types-9.0.4/Cargo.toml +0 -34
  1126. data/ext/cargo-vendor/wasmtime-types-9.0.4/src/lib.rs +0 -413
  1127. data/ext/cargo-vendor/wasmtime-wasi-9.0.4/.cargo-checksum.json +0 -1
  1128. data/ext/cargo-vendor/wasmtime-wasi-9.0.4/Cargo.toml +0 -67
  1129. data/ext/cargo-vendor/wasmtime-wasi-9.0.4/src/lib.rs +0 -128
  1130. data/ext/cargo-vendor/wasmtime-winch-9.0.4/.cargo-checksum.json +0 -1
  1131. data/ext/cargo-vendor/wasmtime-winch-9.0.4/Cargo.toml +0 -66
  1132. data/ext/cargo-vendor/wasmtime-winch-9.0.4/src/compiler.rs +0 -191
  1133. data/ext/cargo-vendor/wasmtime-wit-bindgen-9.0.4/.cargo-checksum.json +0 -1
  1134. data/ext/cargo-vendor/wasmtime-wit-bindgen-9.0.4/Cargo.toml +0 -29
  1135. data/ext/cargo-vendor/wasmtime-wit-bindgen-9.0.4/src/lib.rs +0 -1488
  1136. data/ext/cargo-vendor/wasmtime-wit-bindgen-9.0.4/src/types.rs +0 -178
  1137. data/ext/cargo-vendor/wiggle-9.0.4/.cargo-checksum.json +0 -1
  1138. data/ext/cargo-vendor/wiggle-9.0.4/Cargo.toml +0 -106
  1139. data/ext/cargo-vendor/wiggle-9.0.4/README.md +0 -18
  1140. data/ext/cargo-vendor/wiggle-generate-9.0.4/.cargo-checksum.json +0 -1
  1141. data/ext/cargo-vendor/wiggle-generate-9.0.4/Cargo.toml +0 -58
  1142. data/ext/cargo-vendor/wiggle-macro-9.0.4/.cargo-checksum.json +0 -1
  1143. data/ext/cargo-vendor/wiggle-macro-9.0.4/Cargo.toml +0 -55
  1144. data/ext/cargo-vendor/wiggle-macro-9.0.4/src/lib.rs +0 -210
  1145. data/ext/cargo-vendor/winch-codegen-0.7.4/.cargo-checksum.json +0 -1
  1146. data/ext/cargo-vendor/winch-codegen-0.7.4/Cargo.toml +0 -59
  1147. data/ext/cargo-vendor/winch-codegen-0.7.4/src/abi/local.rs +0 -69
  1148. data/ext/cargo-vendor/winch-codegen-0.7.4/src/abi/mod.rs +0 -223
  1149. data/ext/cargo-vendor/winch-codegen-0.7.4/src/codegen/call.rs +0 -215
  1150. data/ext/cargo-vendor/winch-codegen-0.7.4/src/codegen/context.rs +0 -259
  1151. data/ext/cargo-vendor/winch-codegen-0.7.4/src/codegen/env.rs +0 -19
  1152. data/ext/cargo-vendor/winch-codegen-0.7.4/src/codegen/mod.rs +0 -183
  1153. data/ext/cargo-vendor/winch-codegen-0.7.4/src/frame/mod.rs +0 -166
  1154. data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/aarch64/abi.rs +0 -221
  1155. data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/aarch64/asm.rs +0 -244
  1156. data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/aarch64/masm.rs +0 -221
  1157. data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/aarch64/mod.rs +0 -122
  1158. data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/aarch64/regs.rs +0 -160
  1159. data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/mod.rs +0 -202
  1160. data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/x64/abi.rs +0 -337
  1161. data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/x64/address.rs +0 -17
  1162. data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/x64/asm.rs +0 -499
  1163. data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/x64/masm.rs +0 -267
  1164. data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/x64/mod.rs +0 -135
  1165. data/ext/cargo-vendor/winch-codegen-0.7.4/src/isa/x64/regs.rs +0 -178
  1166. data/ext/cargo-vendor/winch-codegen-0.7.4/src/lib.rs +0 -20
  1167. data/ext/cargo-vendor/winch-codegen-0.7.4/src/masm.rs +0 -213
  1168. data/ext/cargo-vendor/winch-codegen-0.7.4/src/regalloc.rs +0 -61
  1169. data/ext/cargo-vendor/winch-codegen-0.7.4/src/stack.rs +0 -230
  1170. data/ext/cargo-vendor/winch-codegen-0.7.4/src/trampoline.rs +0 -206
  1171. data/ext/cargo-vendor/winch-codegen-0.7.4/src/visitor.rs +0 -215
  1172. data/ext/cargo-vendor/winch-environ-0.7.4/.cargo-checksum.json +0 -1
  1173. data/ext/cargo-vendor/winch-environ-0.7.4/Cargo.toml +0 -28
  1174. data/ext/cargo-vendor/winch-environ-0.7.4/src/lib.rs +0 -41
  1175. data/ext/cargo-vendor/wit-parser-0.7.1/.cargo-checksum.json +0 -1
  1176. data/ext/cargo-vendor/wit-parser-0.7.1/Cargo.toml +0 -59
  1177. data/ext/cargo-vendor/wit-parser-0.7.1/src/ast/lex.rs +0 -662
  1178. data/ext/cargo-vendor/wit-parser-0.7.1/src/ast/resolve.rs +0 -1072
  1179. data/ext/cargo-vendor/wit-parser-0.7.1/src/ast.rs +0 -1099
  1180. data/ext/cargo-vendor/wit-parser-0.7.1/src/lib.rs +0 -617
  1181. data/ext/cargo-vendor/wit-parser-0.7.1/src/live.rs +0 -123
  1182. data/ext/cargo-vendor/wit-parser-0.7.1/src/resolve.rs +0 -1478
  1183. data/ext/cargo-vendor/wit-parser-0.7.1/tests/all.rs +0 -168
  1184. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/comments.wit +0 -23
  1185. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/disambiguate-diamond/shared1.wit +0 -3
  1186. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/disambiguate-diamond/shared2.wit +0 -3
  1187. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/disambiguate-diamond/world.wit +0 -11
  1188. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/embedded.wit.md +0 -32
  1189. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/deps/another-pkg/other-doc.wit +0 -1
  1190. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/deps/corp/saas.wit +0 -2
  1191. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/deps/different-pkg/the-doc.wit +0 -1
  1192. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/deps/foreign-pkg/the-doc.wit +0 -3
  1193. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/deps/some-pkg/some-doc.wit +0 -11
  1194. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/deps/wasi/clocks.wit +0 -3
  1195. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/deps/wasi/filesystem.wit +0 -5
  1196. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/foreign-deps/root.wit +0 -31
  1197. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/functions.wit +0 -12
  1198. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/multi-file/bar.wit +0 -19
  1199. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/multi-file/foo.wit +0 -15
  1200. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/alias-no-type.wit.result +0 -5
  1201. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-diamond/a.wit +0 -9
  1202. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-diamond/b.wit +0 -9
  1203. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-diamond/join.wit +0 -4
  1204. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-diamond.wit.result +0 -8
  1205. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-function.wit +0 -5
  1206. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-function.wit.result +0 -5
  1207. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-function2.wit +0 -5
  1208. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-function2.wit.result +0 -5
  1209. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg1/root.wit +0 -3
  1210. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg1.wit.result +0 -5
  1211. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg2/root.wit +0 -3
  1212. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg2.wit.result +0 -5
  1213. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg3/deps/bar/baz.wit +0 -0
  1214. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg3/root.wit +0 -3
  1215. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg3.wit.result +0 -5
  1216. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg4/deps/bar/baz.wit +0 -3
  1217. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg4/root.wit +0 -3
  1218. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg4.wit.result +0 -5
  1219. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg5/deps/bar/baz.wit +0 -2
  1220. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg5/root.wit +0 -3
  1221. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg5.wit.result +0 -5
  1222. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg6/deps/bar/baz.wit +0 -0
  1223. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg6/root.wit +0 -3
  1224. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-pkg6.wit.result +0 -5
  1225. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-world-type1.wit +0 -4
  1226. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-world-type1.wit.result +0 -5
  1227. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-world-type2.wit +0 -9
  1228. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/bad-world-type2.wit.result +0 -5
  1229. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle.wit +0 -5
  1230. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle.wit.result +0 -5
  1231. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle2.wit +0 -6
  1232. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle2.wit.result +0 -5
  1233. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle3.wit +0 -6
  1234. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle3.wit.result +0 -5
  1235. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle4.wit +0 -6
  1236. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle4.wit.result +0 -5
  1237. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle5.wit +0 -6
  1238. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/cycle5.wit.result +0 -5
  1239. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/default-interface1.wit +0 -3
  1240. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/default-interface1.wit.result +0 -5
  1241. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/default-world1.wit +0 -3
  1242. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/default-world1.wit.result +0 -5
  1243. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/duplicate-functions.wit +0 -6
  1244. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/duplicate-functions.wit.result +0 -5
  1245. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/duplicate-interface.wit +0 -4
  1246. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/duplicate-interface.wit.result +0 -5
  1247. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/duplicate-type.wit +0 -6
  1248. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/duplicate-type.wit.result +0 -5
  1249. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/empty-enum.wit +0 -5
  1250. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/empty-enum.wit.result +0 -5
  1251. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/empty-union.wit +0 -5
  1252. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/empty-union.wit.result +0 -5
  1253. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/empty-variant1.wit +0 -5
  1254. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/empty-variant1.wit.result +0 -5
  1255. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/import-export-overlap1.wit +0 -4
  1256. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/import-export-overlap1.wit.result +0 -5
  1257. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/import-export-overlap2.wit +0 -4
  1258. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/import-export-overlap2.wit.result +0 -5
  1259. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/import-export-overlap3.wit +0 -11
  1260. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/import-export-overlap3.wit.result +0 -6
  1261. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/invalid-md.wit.result +0 -5
  1262. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/invalid-type-reference.wit +0 -8
  1263. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/invalid-type-reference.wit.result +0 -5
  1264. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/invalid-type-reference2.wit +0 -4
  1265. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/invalid-type-reference2.wit.result +0 -5
  1266. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/invalid@filename.wit +0 -0
  1267. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/invalid@filename.wit.result +0 -4
  1268. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/pkg-cycle/deps/a1/root.wit +0 -3
  1269. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/pkg-cycle/root.wit +0 -3
  1270. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/pkg-cycle.wit.result +0 -5
  1271. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/pkg-cycle2/deps/a1/root.wit +0 -3
  1272. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/pkg-cycle2/deps/a2/root.wit +0 -3
  1273. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/pkg-cycle2/root.wit +0 -3
  1274. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/pkg-cycle2.wit.result +0 -5
  1275. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/undefined-typed.wit +0 -5
  1276. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/undefined-typed.wit.result +0 -5
  1277. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unknown-interface.wit +0 -5
  1278. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unknown-interface.wit.result +0 -5
  1279. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface1.wit +0 -5
  1280. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface1.wit.result +0 -5
  1281. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface2.wit +0 -6
  1282. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface2.wit.result +0 -5
  1283. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface3.wit +0 -5
  1284. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface3.wit.result +0 -5
  1285. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface4.wit +0 -5
  1286. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface4.wit.result +0 -5
  1287. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface5.wit +0 -5
  1288. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-interface5.wit.result +0 -5
  1289. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use1.wit +0 -5
  1290. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use1.wit.result +0 -5
  1291. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use10/bar.wit +0 -3
  1292. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use10.wit.result +0 -8
  1293. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use11/bar.wit +0 -3
  1294. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use11/foo.wit +0 -2
  1295. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use11.wit.result +0 -8
  1296. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use2.wit +0 -8
  1297. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use2.wit.result +0 -5
  1298. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use3.wit +0 -9
  1299. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use3.wit.result +0 -5
  1300. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use4.wit +0 -5
  1301. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use4.wit.result +0 -5
  1302. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use5.wit +0 -6
  1303. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use5.wit.result +0 -5
  1304. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use6.wit +0 -5
  1305. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use6.wit.result +0 -5
  1306. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use7.wit +0 -8
  1307. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use7.wit.result +0 -5
  1308. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use8.wit +0 -7
  1309. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use8.wit.result +0 -5
  1310. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use9.wit +0 -7
  1311. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/unresolved-use9.wit.result +0 -5
  1312. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-conflict.wit +0 -9
  1313. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-conflict.wit.result +0 -5
  1314. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-conflict2.wit +0 -11
  1315. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-conflict2.wit.result +0 -5
  1316. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-conflict3.wit +0 -11
  1317. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-conflict3.wit.result +0 -5
  1318. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle1.wit +0 -5
  1319. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle1.wit.result +0 -5
  1320. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle2.wit +0 -5
  1321. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle2.wit.result +0 -5
  1322. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle3.wit +0 -6
  1323. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle3.wit.result +0 -5
  1324. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle4.wit +0 -13
  1325. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-cycle4.wit.result +0 -5
  1326. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-from-package-world.wit +0 -8
  1327. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-from-package-world.wit.result +0 -5
  1328. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-from-package-world2/bar.wit +0 -3
  1329. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-from-package-world2/foo.wit +0 -2
  1330. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/use-from-package-world2.wit.result +0 -8
  1331. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-implicit-import1.wit +0 -10
  1332. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-implicit-import1.wit.result +0 -6
  1333. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-implicit-import2.wit +0 -9
  1334. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-implicit-import2.wit.result +0 -5
  1335. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-implicit-import3.wit +0 -9
  1336. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-implicit-import3.wit.result +0 -5
  1337. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-interface-clash.wit +0 -2
  1338. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-interface-clash.wit.result +0 -5
  1339. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields.wit +0 -9
  1340. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields.wit.result +0 -5
  1341. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields2.wit +0 -6
  1342. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields2.wit.result +0 -5
  1343. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields3.wit +0 -6
  1344. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields3.wit.result +0 -5
  1345. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields4.wit +0 -11
  1346. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-fields4.wit.result +0 -8
  1347. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-import.wit +0 -6
  1348. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-same-import.wit.result +0 -5
  1349. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-top-level-func.wit +0 -4
  1350. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-top-level-func.wit.result +0 -5
  1351. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-top-level-func2.wit +0 -3
  1352. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/world-top-level-func2.wit.result +0 -5
  1353. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/worlds-same-fields5.wit +0 -16
  1354. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/parse-fail/worlds-same-fields5.wit.result +0 -9
  1355. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/shared-types.wit +0 -8
  1356. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/type-then-eof.wit +0 -3
  1357. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/types.wit +0 -59
  1358. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/use.wit +0 -33
  1359. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/wasi.wit +0 -176
  1360. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/world-diamond.wit +0 -20
  1361. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/world-top-level-funcs.wit +0 -7
  1362. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/worlds-with-types.wit +0 -32
  1363. data/ext/cargo-vendor/wit-parser-0.7.1/tests/ui/worlds.wit +0 -40
  1364. /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/LICENSE +0 -0
  1365. /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/README.md +0 -0
  1366. /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/src/lib.rs +0 -0
  1367. /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/src/map.rs +0 -0
  1368. /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/src/node.rs +0 -0
  1369. /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/src/path.rs +0 -0
  1370. /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/src/pool.rs +0 -0
  1371. /data/ext/cargo-vendor/{cranelift-bforest-0.96.4 → cranelift-bforest-0.97.1}/src/set.rs +0 -0
  1372. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/LICENSE +0 -0
  1373. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/README.md +0 -0
  1374. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/build.rs +0 -0
  1375. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/alias_analysis.rs +0 -0
  1376. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/binemit/mod.rs +0 -0
  1377. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/binemit/stack_map.rs +0 -0
  1378. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/bitset.rs +0 -0
  1379. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/cfg_printer.rs +0 -0
  1380. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/constant_hash.rs +0 -0
  1381. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/context.rs +0 -0
  1382. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ctxhash.rs +0 -0
  1383. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/cursor.rs +0 -0
  1384. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/data_value.rs +0 -0
  1385. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/dbg.rs +0 -0
  1386. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/dce.rs +0 -0
  1387. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/dominator_tree.rs +0 -0
  1388. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/egraph/cost.rs +0 -0
  1389. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/egraph/domtree.rs +0 -0
  1390. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/egraph/elaborate.rs +0 -0
  1391. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/egraph.rs +0 -0
  1392. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/flowgraph.rs +0 -0
  1393. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/fx.rs +0 -0
  1394. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/incremental_cache.rs +0 -0
  1395. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/inst_predicates.rs +0 -0
  1396. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/atomic_rmw_op.rs +0 -0
  1397. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/builder.rs +0 -0
  1398. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/condcodes.rs +0 -0
  1399. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/constant.rs +0 -0
  1400. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/dfg.rs +0 -0
  1401. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/dynamic_type.rs +0 -0
  1402. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/entities.rs +0 -0
  1403. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/extfunc.rs +0 -0
  1404. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/extname.rs +0 -0
  1405. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/function.rs +0 -0
  1406. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/globalvalue.rs +0 -0
  1407. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/immediates.rs +0 -0
  1408. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/instructions.rs +0 -0
  1409. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/jumptable.rs +0 -0
  1410. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/known_symbol.rs +0 -0
  1411. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/layout.rs +0 -0
  1412. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/libcall.rs +0 -0
  1413. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/memflags.rs +0 -0
  1414. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/mod.rs +0 -0
  1415. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/progpoint.rs +0 -0
  1416. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/sourceloc.rs +0 -0
  1417. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/stackslot.rs +0 -0
  1418. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/table.rs +0 -0
  1419. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/ir/types.rs +0 -0
  1420. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/inst/args.rs +0 -0
  1421. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/inst/regs.rs +0 -0
  1422. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/inst/unwind/systemv.rs +0 -0
  1423. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/inst/unwind.rs +0 -0
  1424. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/inst_neon.isle +0 -0
  1425. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/lower/isle/generated_code.rs +0 -0
  1426. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/lower.rs +0 -0
  1427. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/lower_dynamic_neon.isle +0 -0
  1428. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/aarch64/settings.rs +0 -0
  1429. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/call_conv.rs +0 -0
  1430. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/riscv64/inst/unwind.rs +0 -0
  1431. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/riscv64/lower/isle/generated_code.rs +0 -0
  1432. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/riscv64/lower.rs +0 -0
  1433. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/riscv64/settings.rs +0 -0
  1434. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/inst/args.rs +0 -0
  1435. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/inst/imms.rs +0 -0
  1436. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/inst/regs.rs +0 -0
  1437. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/inst/unwind/systemv.rs +0 -0
  1438. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/inst/unwind.rs +0 -0
  1439. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/lower/isle/generated_code.rs +0 -0
  1440. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/lower/isle.rs +0 -0
  1441. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/lower.rs +0 -0
  1442. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/s390x/settings.rs +0 -0
  1443. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/unwind/systemv.rs +0 -0
  1444. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/unwind/winx64.rs +0 -0
  1445. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/unwind.rs +0 -0
  1446. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/x64/encoding/mod.rs +0 -0
  1447. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/x64/inst/regs.rs +0 -0
  1448. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/x64/inst/unwind/systemv.rs +0 -0
  1449. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/x64/inst/unwind/winx64.rs +0 -0
  1450. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/x64/inst/unwind.rs +0 -0
  1451. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/x64/lower/isle/generated_code.rs +0 -0
  1452. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/isa/x64/settings.rs +0 -0
  1453. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/iterators.rs +0 -0
  1454. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/legalizer/globalvalue.rs +0 -0
  1455. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/legalizer/mod.rs +0 -0
  1456. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/legalizer/table.rs +0 -0
  1457. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/lib.rs +0 -0
  1458. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/loop_analysis.rs +0 -0
  1459. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/machinst/blockorder.rs +0 -0
  1460. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/machinst/helpers.rs +0 -0
  1461. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/machinst/inst_common.rs +0 -0
  1462. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/machinst/valueregs.rs +0 -0
  1463. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/nan_canonicalization.rs +0 -0
  1464. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/README.md +0 -0
  1465. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/arithmetic.isle +0 -0
  1466. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/bitops.isle +0 -0
  1467. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/cprop.isle +0 -0
  1468. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/extends.isle +0 -0
  1469. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/generated_code.rs +0 -0
  1470. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/icmp.isle +0 -0
  1471. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/remat.isle +0 -0
  1472. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/selects.isle +0 -0
  1473. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts/shifts.isle +0 -0
  1474. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/opts.rs +0 -0
  1475. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/prelude_opt.isle +0 -0
  1476. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/print_errors.rs +0 -0
  1477. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/remove_constant_phis.rs +0 -0
  1478. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/result.rs +0 -0
  1479. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/scoped_hash_map.rs +0 -0
  1480. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/souper_harvest.rs +0 -0
  1481. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/timing.rs +0 -0
  1482. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/unionfind.rs +0 -0
  1483. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/unreachable_code.rs +0 -0
  1484. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/value_label.rs +0 -0
  1485. /data/ext/cargo-vendor/{cranelift-codegen-0.96.4 → cranelift-codegen-0.97.1}/src/write.rs +0 -0
  1486. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/LICENSE +0 -0
  1487. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/README.md +0 -0
  1488. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/formats.rs +0 -0
  1489. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/instructions.rs +0 -0
  1490. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/isa.rs +0 -0
  1491. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/mod.rs +0 -0
  1492. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/operands.rs +0 -0
  1493. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/settings.rs +0 -0
  1494. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/types.rs +0 -0
  1495. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/cdsl/typevar.rs +0 -0
  1496. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/constant_hash.rs +0 -0
  1497. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/error.rs +0 -0
  1498. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/gen_inst.rs +0 -0
  1499. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/gen_settings.rs +0 -0
  1500. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/gen_types.rs +0 -0
  1501. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/isa/arm64.rs +0 -0
  1502. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/isa/mod.rs +0 -0
  1503. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/isa/riscv64.rs +0 -0
  1504. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/isa/s390x.rs +0 -0
  1505. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/lib.rs +0 -0
  1506. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/shared/entities.rs +0 -0
  1507. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/shared/formats.rs +0 -0
  1508. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/shared/immediates.rs +0 -0
  1509. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/shared/instructions.rs +0 -0
  1510. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/shared/mod.rs +0 -0
  1511. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/shared/types.rs +0 -0
  1512. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/srcgen.rs +0 -0
  1513. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.96.4 → cranelift-codegen-meta-0.97.1}/src/unique_table.rs +0 -0
  1514. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.96.4 → cranelift-codegen-shared-0.97.1}/LICENSE +0 -0
  1515. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.96.4 → cranelift-codegen-shared-0.97.1}/README.md +0 -0
  1516. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.96.4 → cranelift-codegen-shared-0.97.1}/src/constant_hash.rs +0 -0
  1517. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.96.4 → cranelift-codegen-shared-0.97.1}/src/constants.rs +0 -0
  1518. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.96.4 → cranelift-codegen-shared-0.97.1}/src/lib.rs +0 -0
  1519. /data/ext/cargo-vendor/{cranelift-control-0.96.4 → cranelift-control-0.97.1}/LICENSE +0 -0
  1520. /data/ext/cargo-vendor/{cranelift-control-0.96.4 → cranelift-control-0.97.1}/README.md +0 -0
  1521. /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/LICENSE +0 -0
  1522. /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/README.md +0 -0
  1523. /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/boxed_slice.rs +0 -0
  1524. /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/iter.rs +0 -0
  1525. /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/keys.rs +0 -0
  1526. /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/lib.rs +0 -0
  1527. /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/map.rs +0 -0
  1528. /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/packed_option.rs +0 -0
  1529. /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/primary.rs +0 -0
  1530. /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/set.rs +0 -0
  1531. /data/ext/cargo-vendor/{cranelift-entity-0.96.4 → cranelift-entity-0.97.1}/src/sparse.rs +0 -0
  1532. /data/ext/cargo-vendor/{cranelift-frontend-0.96.4 → cranelift-frontend-0.97.1}/LICENSE +0 -0
  1533. /data/ext/cargo-vendor/{cranelift-frontend-0.96.4 → cranelift-frontend-0.97.1}/README.md +0 -0
  1534. /data/ext/cargo-vendor/{cranelift-frontend-0.96.4 → cranelift-frontend-0.97.1}/src/frontend.rs +0 -0
  1535. /data/ext/cargo-vendor/{cranelift-frontend-0.96.4 → cranelift-frontend-0.97.1}/src/lib.rs +0 -0
  1536. /data/ext/cargo-vendor/{cranelift-frontend-0.96.4 → cranelift-frontend-0.97.1}/src/ssa.rs +0 -0
  1537. /data/ext/cargo-vendor/{cranelift-frontend-0.96.4 → cranelift-frontend-0.97.1}/src/switch.rs +0 -0
  1538. /data/ext/cargo-vendor/{cranelift-frontend-0.96.4 → cranelift-frontend-0.97.1}/src/variable.rs +0 -0
  1539. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/README.md +0 -0
  1540. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/build.rs +0 -0
  1541. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/bad_converters.isle +0 -0
  1542. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/bound_var_type_mismatch.isle +0 -0
  1543. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/converter_extractor_constructor.isle +0 -0
  1544. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/error1.isle +0 -0
  1545. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/extra_parens.isle +0 -0
  1546. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/impure_expression.isle +0 -0
  1547. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/impure_rhs.isle +0 -0
  1548. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/multi_internal_etor.isle +0 -0
  1549. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/fail/multi_prio.isle +0 -0
  1550. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/borrows.isle +0 -0
  1551. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/borrows_main.rs +0 -0
  1552. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/iflets.isle +0 -0
  1553. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/iflets_main.rs +0 -0
  1554. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/multi_constructor.isle +0 -0
  1555. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/multi_constructor_main.rs +0 -0
  1556. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/multi_extractor.isle +0 -0
  1557. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/multi_extractor_main.rs +0 -0
  1558. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/test.isle +0 -0
  1559. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/link/test_main.rs +0 -0
  1560. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/bound_var.isle +0 -0
  1561. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/construct_and_extract.isle +0 -0
  1562. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/conversions.isle +0 -0
  1563. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/conversions_extern.isle +0 -0
  1564. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/let.isle +0 -0
  1565. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/nodebug.isle +0 -0
  1566. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/prio_trie_bug.isle +0 -0
  1567. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/test2.isle +0 -0
  1568. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/test3.isle +0 -0
  1569. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/test4.isle +0 -0
  1570. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/pass/tutorial.isle +0 -0
  1571. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/run/iconst.isle +0 -0
  1572. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/run/iconst_main.rs +0 -0
  1573. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/run/let_shadowing.isle +0 -0
  1574. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/isle_examples/run/let_shadowing_main.rs +0 -0
  1575. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/ast.rs +0 -0
  1576. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/codegen.rs +0 -0
  1577. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/compile.rs +0 -0
  1578. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/error.rs +0 -0
  1579. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/lexer.rs +0 -0
  1580. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/lib.rs +0 -0
  1581. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/log.rs +0 -0
  1582. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/overlap.rs +0 -0
  1583. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/parser.rs +0 -0
  1584. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/sema.rs +0 -0
  1585. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/serialize.rs +0 -0
  1586. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/src/trie_again.rs +0 -0
  1587. /data/ext/cargo-vendor/{cranelift-isle-0.96.4 → cranelift-isle-0.97.1}/tests/run_tests.rs +0 -0
  1588. /data/ext/cargo-vendor/{cranelift-native-0.96.4 → cranelift-native-0.97.1}/LICENSE +0 -0
  1589. /data/ext/cargo-vendor/{cranelift-native-0.96.4 → cranelift-native-0.97.1}/README.md +0 -0
  1590. /data/ext/cargo-vendor/{cranelift-native-0.96.4 → cranelift-native-0.97.1}/src/riscv.rs +0 -0
  1591. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/LICENSE +0 -0
  1592. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/README.md +0 -0
  1593. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/src/code_translator/bounds_checks.rs +0 -0
  1594. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/src/environ/mod.rs +0 -0
  1595. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/src/heap.rs +0 -0
  1596. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/src/lib.rs +0 -0
  1597. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/src/module_translator.rs +0 -0
  1598. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/src/state.rs +0 -0
  1599. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/tests/wasm_testsuite.rs +0 -0
  1600. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/arith.wat +0 -0
  1601. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/br_table.wat +0 -0
  1602. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/call-simd.wat +0 -0
  1603. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/call.wat +0 -0
  1604. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/embenchen_fannkuch.wat +0 -0
  1605. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/embenchen_fasta.wat +0 -0
  1606. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/embenchen_ifs.wat +0 -0
  1607. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/embenchen_primes.wat +0 -0
  1608. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/fac-multi-value.wat +0 -0
  1609. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/fibonacci.wat +0 -0
  1610. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/globals.wat +0 -0
  1611. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/icall-simd.wat +0 -0
  1612. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/icall.wat +0 -0
  1613. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-reachability-translation-0.wat +0 -0
  1614. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-reachability-translation-1.wat +0 -0
  1615. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-reachability-translation-2.wat +0 -0
  1616. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-reachability-translation-3.wat +0 -0
  1617. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-reachability-translation-4.wat +0 -0
  1618. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-reachability-translation-5.wat +0 -0
  1619. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-reachability-translation-6.wat +0 -0
  1620. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-unreachable-else-params-2.wat +0 -0
  1621. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/if-unreachable-else-params.wat +0 -0
  1622. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/issue-1306-name-section-with-u32-max-function-index.wasm +0 -0
  1623. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/memory.wat +0 -0
  1624. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-0.wat +0 -0
  1625. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-1.wat +0 -0
  1626. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-10.wat +0 -0
  1627. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-11.wat +0 -0
  1628. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-12.wat +0 -0
  1629. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-13.wat +0 -0
  1630. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-14.wat +0 -0
  1631. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-15.wat +0 -0
  1632. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-16.wat +0 -0
  1633. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-17.wat +0 -0
  1634. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-2.wat +0 -0
  1635. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-3.wat +0 -0
  1636. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-4.wat +0 -0
  1637. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-5.wat +0 -0
  1638. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-6.wat +0 -0
  1639. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-7.wat +0 -0
  1640. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-8.wat +0 -0
  1641. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/multi-9.wat +0 -0
  1642. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/nullref.wat +0 -0
  1643. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/passive-data.wat +0 -0
  1644. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/pr2303.wat +0 -0
  1645. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/pr2559.wat +0 -0
  1646. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/ref-func-0.wat +0 -0
  1647. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/rust_fannkuch.wat +0 -0
  1648. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/select.wat +0 -0
  1649. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/simd-store.wat +0 -0
  1650. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/simd.wat +0 -0
  1651. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/table-copy.wat +0 -0
  1652. /data/ext/cargo-vendor/{cranelift-wasm-0.96.4 → cranelift-wasm-0.97.1}/wasmtests/unreachable_code.wat +0 -0
  1653. /data/ext/cargo-vendor/{file-per-thread-logger-0.1.6 → file-per-thread-logger-0.2.0}/LICENSE +0 -0
  1654. /data/ext/cargo-vendor/{file-per-thread-logger-0.1.6 → file-per-thread-logger-0.2.0}/README.md +0 -0
  1655. /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/LICENSE +0 -0
  1656. /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/README.md +0 -0
  1657. /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/doc/DESIGN.md +0 -0
  1658. /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/doc/TODO +0 -0
  1659. /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/cfg.rs +0 -0
  1660. /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/domtree.rs +0 -0
  1661. /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/fuzzing/mod.rs +0 -0
  1662. /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/indexset.rs +0 -0
  1663. /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/ion/dump.rs +0 -0
  1664. /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/ion/redundant_moves.rs +0 -0
  1665. /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/ion/reg_traversal.rs +0 -0
  1666. /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/postorder.rs +0 -0
  1667. /data/ext/cargo-vendor/{regalloc2-0.8.1 → regalloc2-0.9.2}/src/ssa.rs +0 -0
  1668. /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/LICENSE +0 -0
  1669. /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/README.md +0 -0
  1670. /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/src/clocks.rs +0 -0
  1671. /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/src/file.rs +0 -0
  1672. /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/src/net.rs +0 -0
  1673. /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/src/sched/unix.rs +0 -0
  1674. /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/src/sched/windows.rs +0 -0
  1675. /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/src/sched.rs +0 -0
  1676. /data/ext/cargo-vendor/{wasi-cap-std-sync-9.0.4 → wasi-cap-std-sync-10.0.1}/src/stdio.rs +0 -0
  1677. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/LICENSE +0 -0
  1678. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/README.md +0 -0
  1679. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/README.md +0 -0
  1680. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/docs/README.md +0 -0
  1681. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/README.md +0 -0
  1682. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/docs.md +0 -0
  1683. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/typenames.witx +0 -0
  1684. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx +0 -0
  1685. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_clock.witx +0 -0
  1686. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_environ.witx +0 -0
  1687. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_fd.witx +0 -0
  1688. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_path.witx +0 -0
  1689. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_poll.witx +0 -0
  1690. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_proc.witx +0 -0
  1691. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx +0 -0
  1692. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_sched.witx +0 -0
  1693. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx +0 -0
  1694. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/old/snapshot_0/docs.md +0 -0
  1695. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/old/snapshot_0/witx/typenames.witx +0 -0
  1696. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/old/snapshot_0/witx/wasi_unstable.witx +0 -0
  1697. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/snapshot/docs.html +0 -0
  1698. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/snapshot/docs.md +0 -0
  1699. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/snapshot/witx/typenames.witx +0 -0
  1700. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx +0 -0
  1701. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/proposal-template/README.md +0 -0
  1702. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/proposals/README.md +0 -0
  1703. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/snapshots/README.md +0 -0
  1704. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/WASI/standard/README.md +0 -0
  1705. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/build.rs +0 -0
  1706. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/clocks.rs +0 -0
  1707. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/dir.rs +0 -0
  1708. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/error.rs +0 -0
  1709. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/lib.rs +0 -0
  1710. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/pipe.rs +0 -0
  1711. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/random.rs +0 -0
  1712. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/sched/subscription.rs +0 -0
  1713. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/sched.rs +0 -0
  1714. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/snapshots/mod.rs +0 -0
  1715. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/snapshots/preview_0.rs +0 -0
  1716. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/snapshots/preview_1/error.rs +0 -0
  1717. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/string_array.rs +0 -0
  1718. /data/ext/cargo-vendor/{wasi-common-9.0.4 → wasi-common-10.0.1}/src/table.rs +0 -0
  1719. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasm-encoder-0.29.0}/LICENSE +0 -0
  1720. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmparser-0.107.0}/LICENSE +0 -0
  1721. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/README.md +0 -0
  1722. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/examples/simple.rs +0 -0
  1723. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/limits.rs +0 -0
  1724. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/component/aliases.rs +0 -0
  1725. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/component/names.rs +0 -0
  1726. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/component/start.rs +0 -0
  1727. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/component.rs +0 -0
  1728. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/code.rs +0 -0
  1729. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/custom.rs +0 -0
  1730. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/data.rs +0 -0
  1731. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/elements.rs +0 -0
  1732. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/exports.rs +0 -0
  1733. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/functions.rs +0 -0
  1734. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/globals.rs +0 -0
  1735. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/imports.rs +0 -0
  1736. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/init.rs +0 -0
  1737. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/memories.rs +0 -0
  1738. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/names.rs +0 -0
  1739. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/operators.rs +0 -0
  1740. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/tables.rs +0 -0
  1741. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers/core/tags.rs +0 -0
  1742. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/readers.rs +0 -0
  1743. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/resources.rs +0 -0
  1744. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/src/validator/func.rs +0 -0
  1745. /data/ext/cargo-vendor/{wasmparser-0.103.0 → wasmparser-0.107.0}/tests/big-module.rs +0 -0
  1746. /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmparser-0.111.0}/LICENSE +0 -0
  1747. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmprinter-0.2.63}/LICENSE +0 -0
  1748. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-10.0.1}/LICENSE +0 -0
  1749. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/README.md +0 -0
  1750. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/code.rs +0 -0
  1751. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/func/host.rs +0 -0
  1752. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/func/options.rs +0 -0
  1753. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/func/typed.rs +0 -0
  1754. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/func.rs +0 -0
  1755. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/linker.rs +0 -0
  1756. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/storage.rs +0 -0
  1757. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/store.rs +0 -0
  1758. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/types.rs +0 -0
  1759. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/component/values.rs +0 -0
  1760. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/limits.rs +0 -0
  1761. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/module/registry.rs +0 -0
  1762. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/profiling.rs +0 -0
  1763. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/signatures.rs +0 -0
  1764. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/store/data.rs +0 -0
  1765. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/trampoline/memory.rs +0 -0
  1766. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/trampoline/table.rs +0 -0
  1767. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/trampoline.rs +0 -0
  1768. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/trap.rs +0 -0
  1769. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/unix.rs +0 -0
  1770. /data/ext/cargo-vendor/{wasmtime-9.0.4 → wasmtime-10.0.1}/src/windows.rs +0 -0
  1771. /data/ext/cargo-vendor/{wasmtime-asm-macros-9.0.4 → wasmtime-asm-macros-10.0.1}/src/lib.rs +0 -0
  1772. /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-cache-10.0.1}/LICENSE +0 -0
  1773. /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/build.rs +0 -0
  1774. /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/src/config/tests.rs +0 -0
  1775. /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/src/config.rs +0 -0
  1776. /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/src/lib.rs +0 -0
  1777. /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/src/tests.rs +0 -0
  1778. /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/src/worker/tests/system_time_stub.rs +0 -0
  1779. /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/src/worker/tests.rs +0 -0
  1780. /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/src/worker.rs +0 -0
  1781. /data/ext/cargo-vendor/{wasmtime-cache-9.0.4 → wasmtime-cache-10.0.1}/tests/cache_write_default_config.rs +0 -0
  1782. /data/ext/cargo-vendor/{wasmtime-component-macro-9.0.4 → wasmtime-component-macro-10.0.1}/src/component.rs +0 -0
  1783. /data/ext/cargo-vendor/{wasmtime-component-macro-9.0.4 → wasmtime-component-macro-10.0.1}/src/lib.rs +0 -0
  1784. /data/ext/cargo-vendor/{wasmtime-component-util-9.0.4 → wasmtime-component-util-10.0.1}/src/lib.rs +0 -0
  1785. /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-cranelift-10.0.1}/LICENSE +0 -0
  1786. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/SECURITY.md +0 -0
  1787. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/builder.rs +0 -0
  1788. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/compiler/component.rs +0 -0
  1789. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/gc.rs +0 -0
  1790. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/address_transform.rs +0 -0
  1791. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/attr.rs +0 -0
  1792. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/expression.rs +0 -0
  1793. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/line_program.rs +0 -0
  1794. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/mod.rs +0 -0
  1795. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/range_info_builder.rs +0 -0
  1796. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/refs.rs +0 -0
  1797. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/unit.rs +0 -0
  1798. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/transform/utils.rs +0 -0
  1799. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug/write_debuginfo.rs +0 -0
  1800. /data/ext/cargo-vendor/{wasmtime-cranelift-9.0.4 → wasmtime-cranelift-10.0.1}/src/debug.rs +0 -0
  1801. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-9.0.4 → wasmtime-cranelift-shared-10.0.1}/src/compiled_function.rs +0 -0
  1802. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-9.0.4 → wasmtime-cranelift-shared-10.0.1}/src/isa_builder.rs +0 -0
  1803. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-9.0.4 → wasmtime-cranelift-shared-10.0.1}/src/obj.rs +0 -0
  1804. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-environ-10.0.1}/LICENSE +0 -0
  1805. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/examples/factc.rs +0 -0
  1806. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/address_map.rs +0 -0
  1807. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/builtin.rs +0 -0
  1808. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/compilation.rs +0 -0
  1809. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/component/dfg.rs +0 -0
  1810. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/component/info.rs +0 -0
  1811. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/component/translate/adapt.rs +0 -0
  1812. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/component/vmcomponent_offsets.rs +0 -0
  1813. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/component.rs +0 -0
  1814. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/fact/core_types.rs +0 -0
  1815. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/fact/signature.rs +0 -0
  1816. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/fact/trampoline.rs +0 -0
  1817. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/fact/transcode.rs +0 -0
  1818. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/fact/traps.rs +0 -0
  1819. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/lib.rs +0 -0
  1820. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/module_types.rs +0 -0
  1821. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/obj.rs +0 -0
  1822. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/ref_bits.rs +0 -0
  1823. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/scopevec.rs +0 -0
  1824. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/stack_map.rs +0 -0
  1825. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/tunables.rs +0 -0
  1826. /data/ext/cargo-vendor/{wasmtime-environ-9.0.4 → wasmtime-environ-10.0.1}/src/vmoffsets.rs +0 -0
  1827. /data/ext/cargo-vendor/{wasmtime-types-9.0.4 → wasmtime-fiber-10.0.1}/LICENSE +0 -0
  1828. /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/build.rs +0 -0
  1829. /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/src/unix/aarch64.rs +0 -0
  1830. /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/src/unix/arm.rs +0 -0
  1831. /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/src/unix/riscv64.rs +0 -0
  1832. /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/src/unix/s390x.S +0 -0
  1833. /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/src/unix/x86.rs +0 -0
  1834. /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/src/unix/x86_64.rs +0 -0
  1835. /data/ext/cargo-vendor/{wasmtime-fiber-9.0.4 → wasmtime-fiber-10.0.1}/src/windows.c +0 -0
  1836. /data/ext/cargo-vendor/{wasmtime-wasi-9.0.4 → wasmtime-jit-10.0.1}/LICENSE +0 -0
  1837. /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-jit-10.0.1}/src/code_memory.rs +0 -0
  1838. /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-jit-10.0.1}/src/debug.rs +0 -0
  1839. /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-jit-10.0.1}/src/demangling.rs +0 -0
  1840. /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-jit-10.0.1}/src/unwind/miri.rs +0 -0
  1841. /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-jit-10.0.1}/src/unwind/systemv.rs +0 -0
  1842. /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-jit-10.0.1}/src/unwind/winx64.rs +0 -0
  1843. /data/ext/cargo-vendor/{wasmtime-jit-9.0.4 → wasmtime-jit-10.0.1}/src/unwind.rs +0 -0
  1844. /data/ext/cargo-vendor/{wasmtime-jit-debug-9.0.4 → wasmtime-jit-debug-10.0.1}/README.md +0 -0
  1845. /data/ext/cargo-vendor/{wasmtime-jit-debug-9.0.4 → wasmtime-jit-debug-10.0.1}/src/gdb_jit_int.rs +0 -0
  1846. /data/ext/cargo-vendor/{wasmtime-jit-debug-9.0.4 → wasmtime-jit-debug-10.0.1}/src/lib.rs +0 -0
  1847. /data/ext/cargo-vendor/{wasmtime-jit-debug-9.0.4 → wasmtime-jit-debug-10.0.1}/src/perf_jitdump.rs +0 -0
  1848. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-9.0.4 → wasmtime-jit-icache-coherence-10.0.1}/src/lib.rs +0 -0
  1849. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-9.0.4 → wasmtime-jit-icache-coherence-10.0.1}/src/libc.rs +0 -0
  1850. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-9.0.4 → wasmtime-jit-icache-coherence-10.0.1}/src/miri.rs +0 -0
  1851. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-9.0.4 → wasmtime-jit-icache-coherence-10.0.1}/src/win.rs +0 -0
  1852. /data/ext/cargo-vendor/{wiggle-9.0.4 → wasmtime-runtime-10.0.1}/LICENSE +0 -0
  1853. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/build.rs +0 -0
  1854. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/component/transcode.rs +0 -0
  1855. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/export.rs +0 -0
  1856. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/helpers.c +0 -0
  1857. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/imports.rs +0 -0
  1858. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/instance/allocator/pooling/index_allocator.rs +0 -0
  1859. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/instance/allocator/pooling/unix.rs +0 -0
  1860. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/instance/allocator/pooling/windows.rs +0 -0
  1861. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/mmap.rs +0 -0
  1862. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/mmap_vec.rs +0 -0
  1863. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/module_id.rs +0 -0
  1864. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/parking_spot.rs +0 -0
  1865. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/store_box.rs +0 -0
  1866. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/trampolines/aarch64.rs +0 -0
  1867. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/trampolines/riscv64.rs +0 -0
  1868. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/trampolines/s390x.S +0 -0
  1869. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/trampolines/s390x.rs +0 -0
  1870. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/trampolines/x86_64.rs +0 -0
  1871. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/trampolines.rs +0 -0
  1872. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/traphandlers/backtrace/aarch64.rs +0 -0
  1873. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/traphandlers/backtrace/riscv64.rs +0 -0
  1874. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/traphandlers/backtrace/s390x.rs +0 -0
  1875. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/traphandlers/backtrace/x86_64.rs +0 -0
  1876. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/traphandlers/backtrace.rs +0 -0
  1877. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/traphandlers/macos.rs +0 -0
  1878. /data/ext/cargo-vendor/{wasmtime-runtime-9.0.4 → wasmtime-runtime-10.0.1}/src/traphandlers/windows.rs +0 -0
  1879. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wasmtime-types-10.0.1}/LICENSE +0 -0
  1880. /data/ext/cargo-vendor/{wasmtime-types-9.0.4 → wasmtime-types-10.0.1}/src/error.rs +0 -0
  1881. /data/ext/cargo-vendor/{wiggle-macro-9.0.4 → wasmtime-wasi-10.0.1}/LICENSE +0 -0
  1882. /data/ext/cargo-vendor/{wasmtime-wasi-9.0.4 → wasmtime-wasi-10.0.1}/README.md +0 -0
  1883. /data/ext/cargo-vendor/{wasmtime-wasi-9.0.4 → wasmtime-wasi-10.0.1}/build.rs +0 -0
  1884. /data/ext/cargo-vendor/{wasmtime-winch-9.0.4 → wasmtime-winch-10.0.1}/LICENSE +0 -0
  1885. /data/ext/cargo-vendor/{wasmtime-winch-9.0.4 → wasmtime-winch-10.0.1}/src/builder.rs +0 -0
  1886. /data/ext/cargo-vendor/{wasmtime-winch-9.0.4 → wasmtime-winch-10.0.1}/src/lib.rs +0 -0
  1887. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-9.0.4 → wasmtime-wit-bindgen-10.0.1}/src/rust.rs +0 -0
  1888. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-9.0.4 → wasmtime-wit-bindgen-10.0.1}/src/source.rs +0 -0
  1889. /data/ext/cargo-vendor/{wiggle-9.0.4 → wiggle-10.0.1}/src/borrow.rs +0 -0
  1890. /data/ext/cargo-vendor/{wiggle-9.0.4 → wiggle-10.0.1}/src/error.rs +0 -0
  1891. /data/ext/cargo-vendor/{wiggle-9.0.4 → wiggle-10.0.1}/src/guest_type.rs +0 -0
  1892. /data/ext/cargo-vendor/{wiggle-9.0.4 → wiggle-10.0.1}/src/lib.rs +0 -0
  1893. /data/ext/cargo-vendor/{wiggle-9.0.4 → wiggle-10.0.1}/src/region.rs +0 -0
  1894. /data/ext/cargo-vendor/{wiggle-9.0.4 → wiggle-10.0.1}/src/wasmtime.rs +0 -0
  1895. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/README.md +0 -0
  1896. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/codegen_settings.rs +0 -0
  1897. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/config.rs +0 -0
  1898. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/funcs.rs +0 -0
  1899. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/lib.rs +0 -0
  1900. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/lifetimes.rs +0 -0
  1901. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/module_trait.rs +0 -0
  1902. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/names.rs +0 -0
  1903. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/types/error.rs +0 -0
  1904. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/types/flags.rs +0 -0
  1905. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/types/handle.rs +0 -0
  1906. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/types/mod.rs +0 -0
  1907. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/types/record.rs +0 -0
  1908. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/types/variant.rs +0 -0
  1909. /data/ext/cargo-vendor/{wiggle-generate-9.0.4 → wiggle-generate-10.0.1}/src/wasmtime.rs +0 -0
  1910. /data/ext/cargo-vendor/{winch-codegen-0.7.4 → winch-codegen-0.8.1}/LICENSE +0 -0
  1911. /data/ext/cargo-vendor/{winch-codegen-0.7.4 → winch-codegen-0.8.1}/build.rs +0 -0
  1912. /data/ext/cargo-vendor/{winch-codegen-0.7.4 → winch-codegen-0.8.1}/src/isa/aarch64/address.rs +0 -0
  1913. /data/ext/cargo-vendor/{winch-codegen-0.7.4 → winch-codegen-0.8.1}/src/isa/reg.rs +0 -0
  1914. /data/ext/cargo-vendor/{winch-codegen-0.7.4 → winch-codegen-0.8.1}/src/regset.rs +0 -0
  1915. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/README.md +0 -0
  1916. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/src/abi.rs +0 -0
  1917. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/src/ast/toposort.rs +0 -0
  1918. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/src/sizealign.rs +0 -0
  1919. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/alias-no-type.wit +0 -0
  1920. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/async.wit.result +0 -0
  1921. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/async1.wit.result +0 -0
  1922. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/bad-list.wit +0 -0
  1923. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/bad-list.wit.result +0 -0
  1924. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/dangling-type.wit +0 -0
  1925. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/dangling-type.wit.result +0 -0
  1926. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/invalid-md.md +0 -0
  1927. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/invalid-toplevel.wit +0 -0
  1928. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/invalid-toplevel.wit.result +0 -0
  1929. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/keyword.wit +0 -0
  1930. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/keyword.wit.result +0 -0
  1931. /data/ext/cargo-vendor/{wit-parser-0.7.1/tests/ui/empty.wit → wit-parser-0.8.0/tests/ui/parse-fail/missing-package.wit} +0 -0
  1932. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/unresolved-use10/foo.wit +0 -0
  1933. /data/ext/cargo-vendor/{wit-parser-0.7.1 → wit-parser-0.8.0}/tests/ui/parse-fail/unterminated-string.wit.result +0 -0
@@ -1,4262 +0,0 @@
1
- ;; x86-64 instruction selection and CLIF-to-MachInst lowering.
2
-
3
- ;; The main lowering constructor term: takes a clif `Inst` and returns the
4
- ;; register(s) within which the lowered instruction's result values live.
5
- (decl partial lower (Inst) InstOutput)
6
-
7
- ;; A variant of the main lowering constructor term, used for branches.
8
- ;; The only difference is that it gets an extra argument holding a vector
9
- ;; of branch targets to be used.
10
- (decl partial lower_branch (Inst MachLabelSlice) Unit)
11
-
12
- ;;;; Rules for `iconst` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
13
-
14
- ;; `i64` and smaller.
15
- (rule (lower (has_type (fits_in_64 ty)
16
- (iconst (u64_from_imm64 x))))
17
- (imm ty x))
18
-
19
- ;; `i128`
20
- (rule 1 (lower (has_type $I128
21
- (iconst (u64_from_imm64 x))))
22
- (value_regs (imm $I64 x)
23
- (imm $I64 0)))
24
-
25
- ;;;; Rules for `f32const` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
26
-
27
- (rule (lower (f32const (u32_from_ieee32 x)))
28
- (imm $F32 x))
29
-
30
- ;;;; Rules for `f64const` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
31
-
32
- (rule (lower (f64const (u64_from_ieee64 x)))
33
- (imm $F64 x))
34
-
35
- ;;;; Rules for `null` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
36
-
37
- (rule (lower (has_type ty (null)))
38
- (imm ty 0))
39
-
40
- ;;;; Rules for `iadd` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
41
-
42
- ;; `i64` and smaller.
43
-
44
- ;; Add two registers.
45
- (rule -5 (lower (has_type (fits_in_64 ty)
46
- (iadd x y)))
47
- (x64_add ty x y))
48
-
49
- ;; The above case handles when the rhs is an immediate or a sinkable load, but
50
- ;; additionally add lhs meets these criteria.
51
-
52
- (rule -4 (lower (has_type (fits_in_64 ty)
53
- (iadd (simm32_from_value x) y)))
54
- (x64_add ty y x))
55
- (rule -3 (lower (has_type (fits_in_64 ty)
56
- (iadd (sinkable_load x) y)))
57
- (x64_add ty y x))
58
-
59
- ;; SSE.
60
-
61
- (rule (lower (has_type (multi_lane 8 16)
62
- (iadd x y)))
63
- (x64_paddb x y))
64
-
65
- (rule (lower (has_type (multi_lane 16 8)
66
- (iadd x y)))
67
- (x64_paddw x y))
68
-
69
- (rule (lower (has_type (multi_lane 32 4)
70
- (iadd x y)))
71
- (x64_paddd x y))
72
-
73
- (rule (lower (has_type (multi_lane 64 2)
74
- (iadd x y)))
75
- (x64_paddq x y))
76
-
77
- ;; `i128`
78
- (rule 1 (lower (has_type $I128 (iadd x y)))
79
- ;; Get the high/low registers for `x`.
80
- (let ((x_regs ValueRegs x)
81
- (x_lo Gpr (value_regs_get_gpr x_regs 0))
82
- (x_hi Gpr (value_regs_get_gpr x_regs 1)))
83
- ;; Get the high/low registers for `y`.
84
- (let ((y_regs ValueRegs y)
85
- (y_lo Gpr (value_regs_get_gpr y_regs 0))
86
- (y_hi Gpr (value_regs_get_gpr y_regs 1)))
87
- ;; Do an add followed by an add-with-carry.
88
- (with_flags (x64_add_with_flags_paired $I64 x_lo y_lo)
89
- (x64_adc_paired $I64 x_hi y_hi)))))
90
-
91
- ;;;; Helpers for `*_overflow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
92
-
93
- (decl construct_overflow_op (CC ProducesFlags) InstOutput)
94
- (rule (construct_overflow_op cc inst)
95
- (let ((results ValueRegs (with_flags inst
96
- (x64_setcc_paired cc))))
97
- (output_pair (value_regs_get results 0)
98
- (value_regs_get results 1))))
99
-
100
- (decl construct_overflow_op_alu (Type CC AluRmiROpcode Gpr GprMemImm) InstOutput)
101
- (rule (construct_overflow_op_alu ty cc alu_op src1 src2)
102
- (construct_overflow_op cc (x64_alurmi_with_flags_paired alu_op ty src1 src2)))
103
-
104
- ;; This essentially creates
105
- ;; alu_<op1> x_lo, y_lo
106
- ;; alu_<op2> x_hi, y_hi
107
- ;; set<cc> r8
108
- (decl construct_overflow_op_alu_128 (CC AluRmiROpcode AluRmiROpcode Value Value) InstOutput)
109
- (rule (construct_overflow_op_alu_128 cc op1 op2 x y)
110
- ;; Get the high/low registers for `x`.
111
- (let ((x_regs ValueRegs x)
112
- (x_lo Gpr (value_regs_get_gpr x_regs 0))
113
- (x_hi Gpr (value_regs_get_gpr x_regs 1)))
114
- ;; Get the high/low registers for `y`.
115
- (let ((y_regs ValueRegs y)
116
- (y_lo Gpr (value_regs_get_gpr y_regs 0))
117
- (y_hi Gpr (value_regs_get_gpr y_regs 1)))
118
- (let ((lo_inst ProducesFlags (x64_alurmi_with_flags_paired op1 $I64 x_lo y_lo))
119
- (hi_inst ConsumesAndProducesFlags (x64_alurmi_with_flags_chained op2 $I64 x_hi y_hi))
120
- (of_inst ConsumesFlags (x64_setcc_paired cc))
121
-
122
- (result MultiReg (with_flags_chained lo_inst hi_inst of_inst)))
123
- (multi_reg_to_pair_and_single result)))))
124
-
125
- ;;;; Rules for `uadd_overflow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
126
-
127
- (rule 1 (lower (uadd_overflow x y @ (value_type (fits_in_64 ty))))
128
- (construct_overflow_op_alu ty (CC.B) (AluRmiROpcode.Add) x y))
129
-
130
- ;; i128 gets lowered into adc and add
131
- (rule 0 (lower (uadd_overflow x y @ (value_type $I128)))
132
- (construct_overflow_op_alu_128 (CC.B) (AluRmiROpcode.Add) (AluRmiROpcode.Adc) x y))
133
-
134
- ;;;; Rules for `sadd_overflow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
135
-
136
- (rule 1 (lower (sadd_overflow x y @ (value_type (fits_in_64 ty))))
137
- (construct_overflow_op_alu ty (CC.O) (AluRmiROpcode.Add) x y))
138
-
139
- (rule 0 (lower (sadd_overflow x y @ (value_type $I128)))
140
- (construct_overflow_op_alu_128 (CC.O) (AluRmiROpcode.Add) (AluRmiROpcode.Adc) x y))
141
-
142
- ;;;; Rules for `usub_overflow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
143
-
144
- (rule 1 (lower (usub_overflow x y @ (value_type (fits_in_64 ty))))
145
- (construct_overflow_op_alu ty (CC.B) (AluRmiROpcode.Sub) x y))
146
-
147
- (rule 0 (lower (usub_overflow x y @ (value_type $I128)))
148
- (construct_overflow_op_alu_128 (CC.B) (AluRmiROpcode.Sub) (AluRmiROpcode.Sbb) x y))
149
-
150
- ;;;; Rules for `ssub_overflow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
151
-
152
- (rule 1 (lower (ssub_overflow x y @ (value_type (fits_in_64 ty))))
153
- (construct_overflow_op_alu ty (CC.O) (AluRmiROpcode.Sub) x y))
154
-
155
- (rule 0 (lower (ssub_overflow x y @ (value_type $I128)))
156
- (construct_overflow_op_alu_128 (CC.O) (AluRmiROpcode.Sub) (AluRmiROpcode.Sbb) x y))
157
-
158
- ;;;; Rules for `umul_overflow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
159
-
160
- (rule 2 (lower (umul_overflow x y @ (value_type (fits_in_64 ty))))
161
- (construct_overflow_op (CC.O) (x64_umullo_with_flags_paired ty x y)))
162
-
163
- ;;;; Rules for `smul_overflow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
164
-
165
- (rule 2 (lower (smul_overflow x y @ (value_type (ty_int_ref_16_to_64 ty))))
166
- (construct_overflow_op_alu ty (CC.O) (AluRmiROpcode.Mul) x y))
167
-
168
- ;; there is no 8bit imul with an immediate operand so we need to put it in a register or memory
169
- (rule 1 (lower (smul_overflow x y @ (value_type $I8)))
170
- (construct_overflow_op (CC.O) (x64_alurmi_with_flags_paired (AluRmiROpcode.Mul) $I8 x (reg_mem_to_reg_mem_imm (put_in_reg_mem y)))))
171
-
172
- ;;;; Rules for `sadd_sat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
173
-
174
- (rule (lower (has_type (multi_lane 8 16)
175
- (sadd_sat x y)))
176
- (x64_paddsb x y))
177
-
178
- (rule (lower (has_type (multi_lane 16 8)
179
- (sadd_sat x y)))
180
- (x64_paddsw x y))
181
-
182
- ;;;; Rules for `uadd_sat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
183
-
184
- (rule (lower (has_type (multi_lane 8 16)
185
- (uadd_sat x y)))
186
- (x64_paddusb x y))
187
-
188
- (rule (lower (has_type (multi_lane 16 8)
189
- (uadd_sat x y)))
190
- (x64_paddusw x y))
191
-
192
- ;;;; Rules for `isub` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
193
-
194
- ;; `i64` and smaller.
195
-
196
- ;; Sub two registers.
197
- (rule -3 (lower (has_type (fits_in_64 ty)
198
- (isub x y)))
199
- (x64_sub ty x y))
200
-
201
- ;; SSE.
202
-
203
- (rule (lower (has_type (multi_lane 8 16)
204
- (isub x y)))
205
- (x64_psubb x y))
206
-
207
- (rule (lower (has_type (multi_lane 16 8)
208
- (isub x y)))
209
- (x64_psubw x y))
210
-
211
- (rule (lower (has_type (multi_lane 32 4)
212
- (isub x y)))
213
- (x64_psubd x y))
214
-
215
- (rule (lower (has_type (multi_lane 64 2)
216
- (isub x y)))
217
- (x64_psubq x y))
218
-
219
- ;; `i128`
220
- (rule 1 (lower (has_type $I128 (isub x y)))
221
- ;; Get the high/low registers for `x`.
222
- (let ((x_regs ValueRegs x)
223
- (x_lo Gpr (value_regs_get_gpr x_regs 0))
224
- (x_hi Gpr (value_regs_get_gpr x_regs 1)))
225
- ;; Get the high/low registers for `y`.
226
- (let ((y_regs ValueRegs y)
227
- (y_lo Gpr (value_regs_get_gpr y_regs 0))
228
- (y_hi Gpr (value_regs_get_gpr y_regs 1)))
229
- ;; Do a sub followed by an sub-with-borrow.
230
- (with_flags (x64_sub_with_flags_paired $I64 x_lo y_lo)
231
- (x64_sbb_paired $I64 x_hi y_hi)))))
232
-
233
- ;;;; Rules for `ssub_sat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
234
-
235
- (rule (lower (has_type (multi_lane 8 16)
236
- (ssub_sat x y)))
237
- (x64_psubsb x y))
238
-
239
- (rule (lower (has_type (multi_lane 16 8)
240
- (ssub_sat x y)))
241
- (x64_psubsw x y))
242
-
243
- ;;;; Rules for `usub_sat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
244
-
245
- (rule (lower (has_type (multi_lane 8 16)
246
- (usub_sat x y)))
247
- (x64_psubusb x y))
248
-
249
- (rule (lower (has_type (multi_lane 16 8)
250
- (usub_sat x y)))
251
- (x64_psubusw x y))
252
-
253
- ;;;; Rules for `band` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
254
-
255
- ;; `{i,b}64` and smaller.
256
-
257
- ;; And two registers.
258
- (rule 0 (lower (has_type ty (band x y)))
259
- (if (ty_int_ref_scalar_64 ty))
260
- (x64_and ty x y))
261
-
262
- ;; The above case automatically handles when the rhs is an immediate or a
263
- ;; sinkable load, but additionally handle the lhs here.
264
-
265
- (rule 1 (lower (has_type ty (band (sinkable_load x) y)))
266
- (if (ty_int_ref_scalar_64 ty))
267
- (x64_and ty y x))
268
-
269
- (rule 2 (lower (has_type ty (band (simm32_from_value x) y)))
270
- (if (ty_int_ref_scalar_64 ty))
271
- (x64_and ty y x))
272
-
273
- ;; f32 and f64
274
-
275
- (rule 5 (lower (has_type (ty_scalar_float ty) (band x y)))
276
- (sse_and ty x y))
277
-
278
- ;; SSE.
279
-
280
- (decl sse_and (Type Xmm XmmMem) Xmm)
281
- (rule (sse_and $F32X4 x y) (x64_andps x y))
282
- (rule (sse_and $F64X2 x y) (x64_andpd x y))
283
- (rule (sse_and $F32 x y) (x64_andps x y))
284
- (rule (sse_and $F64 x y) (x64_andpd x y))
285
- (rule -1 (sse_and (multi_lane _bits _lanes) x y) (x64_pand x y))
286
-
287
- (rule 6 (lower (has_type ty @ (multi_lane _bits _lanes)
288
- (band x y)))
289
- (sse_and ty x y))
290
-
291
- ;; `i128`.
292
-
293
- (rule 7 (lower (has_type $I128 (band x y)))
294
- (let ((x_regs ValueRegs x)
295
- (x_lo Gpr (value_regs_get_gpr x_regs 0))
296
- (x_hi Gpr (value_regs_get_gpr x_regs 1))
297
- (y_regs ValueRegs y)
298
- (y_lo Gpr (value_regs_get_gpr y_regs 0))
299
- (y_hi Gpr (value_regs_get_gpr y_regs 1)))
300
- (value_gprs (x64_and $I64 x_lo y_lo)
301
- (x64_and $I64 x_hi y_hi))))
302
-
303
- ;; Specialized lowerings for `(band x (bnot y))` which is additionally produced
304
- ;; by Cranelift's `band_not` instruction that is legalized into the simpler
305
- ;; forms early on.
306
-
307
- (decl sse_and_not (Type Xmm XmmMem) Xmm)
308
- (rule (sse_and_not $F32X4 x y) (x64_andnps x y))
309
- (rule (sse_and_not $F64X2 x y) (x64_andnpd x y))
310
- (rule -1 (sse_and_not (multi_lane _bits _lanes) x y) (x64_pandn x y))
311
-
312
- ;; Note the flipping of operands below as we're match
313
- ;;
314
- ;; (band x (bnot y))
315
- ;;
316
- ;; while x86 does
317
- ;;
318
- ;; pandn(x, y) = and(not(x), y)
319
- (rule 8 (lower (has_type ty @ (multi_lane _bits _lane) (band x (bnot y))))
320
- (sse_and_not ty y x))
321
- (rule 9 (lower (has_type ty @ (multi_lane _bits _lane) (band (bnot y) x)))
322
- (sse_and_not ty y x))
323
-
324
- (rule 10 (lower (has_type ty @ (use_bmi1 $true) (band x (bnot y))))
325
- (if (ty_int_ref_scalar_64 ty))
326
- ;; the first argument is the one that gets inverted with andn
327
- (x64_andn ty y x))
328
- (rule 11 (lower (has_type ty @ (use_bmi1 $true) (band (bnot y) x)))
329
- (if (ty_int_ref_scalar_64 ty))
330
- (x64_andn ty y x))
331
-
332
-
333
- ;;;; Rules for `bor` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
334
-
335
- ;; `{i,b}64` and smaller.
336
-
337
- ;; Or two registers.
338
- (rule 0 (lower (has_type ty (bor x y)))
339
- (if (ty_int_ref_scalar_64 ty))
340
- (x64_or ty x y))
341
-
342
- ;; Handle immediates/sinkable loads on the lhs in addition to the automatic
343
- ;; handling of the rhs above
344
-
345
- (rule 1 (lower (has_type ty (bor (sinkable_load x) y)))
346
- (if (ty_int_ref_scalar_64 ty))
347
- (x64_or ty y x))
348
-
349
- (rule 2 (lower (has_type ty (bor (simm32_from_value x) y)))
350
- (if (ty_int_ref_scalar_64 ty))
351
- (x64_or ty y x))
352
-
353
- ;; f32 and f64
354
-
355
- (rule 5 (lower (has_type (ty_scalar_float ty) (bor x y)))
356
- (sse_or ty x y))
357
-
358
- ;; SSE.
359
-
360
- (decl sse_or (Type Xmm XmmMem) Xmm)
361
- (rule (sse_or $F32X4 x y) (x64_orps x y))
362
- (rule (sse_or $F64X2 x y) (x64_orpd x y))
363
- (rule (sse_or $F32 x y) (x64_orps x y))
364
- (rule (sse_or $F64 x y) (x64_orpd x y))
365
- (rule -1 (sse_or (multi_lane _bits _lanes) x y) (x64_por x y))
366
-
367
- (rule 6 (lower (has_type ty @ (multi_lane _bits _lanes)
368
- (bor x y)))
369
- (sse_or ty x y))
370
-
371
- ;; `{i,b}128`.
372
-
373
- (decl or_i128 (ValueRegs ValueRegs) ValueRegs)
374
- (rule (or_i128 x y)
375
- (let ((x_lo Gpr (value_regs_get_gpr x 0))
376
- (x_hi Gpr (value_regs_get_gpr x 1))
377
- (y_lo Gpr (value_regs_get_gpr y 0))
378
- (y_hi Gpr (value_regs_get_gpr y 1)))
379
- (value_gprs (x64_or $I64 x_lo y_lo)
380
- (x64_or $I64 x_hi y_hi))))
381
-
382
- (rule 7 (lower (has_type $I128 (bor x y)))
383
- (or_i128 x y))
384
-
385
- ;;;; Rules for `bxor` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
386
-
387
- ;; `{i,b}64` and smaller.
388
-
389
- ;; Xor two registers.
390
- (rule 0 (lower (has_type ty (bxor x y)))
391
- (if (ty_int_ref_scalar_64 ty))
392
- (x64_xor ty x y))
393
-
394
- ;; Handle xor with lhs immediates/sinkable loads in addition to the automatic
395
- ;; handling of the rhs above.
396
-
397
- (rule 1 (lower (has_type ty (bxor (sinkable_load x) y)))
398
- (if (ty_int_ref_scalar_64 ty))
399
- (x64_xor ty y x))
400
-
401
- (rule 4 (lower (has_type ty (bxor (simm32_from_value x) y)))
402
- (if (ty_int_ref_scalar_64 ty))
403
- (x64_xor ty y x))
404
-
405
- ;; f32 and f64
406
-
407
- (rule 5 (lower (has_type (ty_scalar_float ty) (bxor x y)))
408
- (x64_xor_vector ty x y))
409
-
410
- ;; SSE.
411
-
412
- (rule 6 (lower (has_type ty @ (multi_lane _bits _lanes) (bxor x y)))
413
- (x64_xor_vector ty x y))
414
-
415
- ;; `{i,b}128`.
416
-
417
- (rule 7 (lower (has_type $I128 (bxor x y)))
418
- (let ((x_regs ValueRegs x)
419
- (x_lo Gpr (value_regs_get_gpr x_regs 0))
420
- (x_hi Gpr (value_regs_get_gpr x_regs 1))
421
- (y_regs ValueRegs y)
422
- (y_lo Gpr (value_regs_get_gpr y_regs 0))
423
- (y_hi Gpr (value_regs_get_gpr y_regs 1)))
424
- (value_gprs (x64_xor $I64 x_lo y_lo)
425
- (x64_xor $I64 x_hi y_hi))))
426
-
427
- ;;;; Rules for `ishl` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
428
-
429
- ;; `i64` and smaller.
430
-
431
- (rule -1 (lower (has_type (fits_in_64 ty) (ishl src amt)))
432
- (x64_shl ty src (put_masked_in_imm8_gpr amt ty)))
433
-
434
- ;; `i128`.
435
-
436
- (decl shl_i128 (ValueRegs Gpr) ValueRegs)
437
- (rule (shl_i128 src amt)
438
- ;; Unpack the registers that make up the 128-bit value being shifted.
439
- (let ((src_lo Gpr (value_regs_get_gpr src 0))
440
- (src_hi Gpr (value_regs_get_gpr src 1))
441
- ;; Do two 64-bit shifts.
442
- (lo_shifted Gpr (x64_shl $I64 src_lo amt))
443
- (hi_shifted Gpr (x64_shl $I64 src_hi amt))
444
- ;; `src_lo >> (64 - amt)` are the bits to carry over from the lo
445
- ;; into the hi.
446
- (carry Gpr (x64_shr $I64
447
- src_lo
448
- (x64_sub $I64
449
- (imm $I64 64)
450
- amt)))
451
- (zero Gpr (imm $I64 0))
452
- ;; Nullify the carry if we are shifting in by a multiple of 128.
453
- (carry_ Gpr (with_flags_reg (x64_test (OperandSize.Size64)
454
- (RegMemImm.Imm 127)
455
- amt)
456
- (cmove $I64
457
- (CC.Z)
458
- zero
459
- carry)))
460
- ;; Add the carry into the high half.
461
- (hi_shifted_ Gpr (x64_or $I64 carry_ hi_shifted)))
462
- ;; Combine the two shifted halves. However, if we are shifting by >= 64
463
- ;; (modulo 128), then the low bits are zero and the high bits are our
464
- ;; low bits.
465
- (with_flags (x64_test (OperandSize.Size64) (RegMemImm.Imm 64) amt)
466
- (consumes_flags_concat
467
- (cmove $I64 (CC.Z) lo_shifted zero)
468
- (cmove $I64 (CC.Z) hi_shifted_ lo_shifted)))))
469
-
470
- (rule (lower (has_type $I128 (ishl src amt)))
471
- ;; NB: Only the low bits of `amt` matter since we logically mask the shift
472
- ;; amount to the value's bit width.
473
- (let ((amt_ Gpr (lo_gpr amt)))
474
- (shl_i128 src amt_)))
475
-
476
- ;; SSE.
477
-
478
- ;; Since the x86 instruction set does not have any 8x16 shift instructions (even
479
- ;; in higher feature sets like AVX), we lower the `ishl.i8x16` to a sequence of
480
- ;; instructions. The basic idea, whether the amount to shift by is an immediate
481
- ;; or not, is to use a 16x8 shift and then mask off the incorrect bits to 0s.
482
- (rule (lower (has_type ty @ $I8X16 (ishl src amt)))
483
- (let (
484
- ;; Mask the amount to ensure wrapping behaviour
485
- (masked_amt RegMemImm (mask_xmm_shift ty amt))
486
- ;; Shift `src` using 16x8. Unfortunately, a 16x8 shift will only be
487
- ;; correct for half of the lanes; the others must be fixed up with
488
- ;; the mask below.
489
- (unmasked Xmm (x64_psllw src (mov_rmi_to_xmm masked_amt)))
490
- (mask_addr SyntheticAmode (ishl_i8x16_mask masked_amt))
491
- (mask Reg (x64_load $I8X16 mask_addr (ExtKind.None))))
492
- (sse_and $I8X16 unmasked (RegMem.Reg mask))))
493
-
494
- ;; Get the address of the mask to use when fixing up the lanes that weren't
495
- ;; correctly generated by the 16x8 shift.
496
- (decl ishl_i8x16_mask (RegMemImm) SyntheticAmode)
497
-
498
- ;; When the shift amount is known, we can statically (i.e. at compile time)
499
- ;; determine the mask to use and only emit that.
500
- (decl ishl_i8x16_mask_for_const (u32) SyntheticAmode)
501
- (extern constructor ishl_i8x16_mask_for_const ishl_i8x16_mask_for_const)
502
- (rule (ishl_i8x16_mask (RegMemImm.Imm amt))
503
- (ishl_i8x16_mask_for_const amt))
504
-
505
- ;; Otherwise, we must emit the entire mask table and dynamically (i.e. at run
506
- ;; time) find the correct mask offset in the table. We use `lea` to find the
507
- ;; base address of the mask table and then complex addressing to offset to the
508
- ;; right mask: `base_address + amt << 4`
509
- (decl ishl_i8x16_mask_table () SyntheticAmode)
510
- (extern constructor ishl_i8x16_mask_table ishl_i8x16_mask_table)
511
- (rule (ishl_i8x16_mask (RegMemImm.Reg amt))
512
- (let ((mask_table SyntheticAmode (ishl_i8x16_mask_table))
513
- (base_mask_addr Gpr (x64_lea mask_table))
514
- (mask_offset Gpr (x64_shl $I64 amt
515
- (imm8_to_imm8_gpr 4))))
516
- (amode_imm_reg_reg_shift 0
517
- base_mask_addr
518
- mask_offset
519
- 0)))
520
-
521
- (rule (ishl_i8x16_mask (RegMemImm.Mem amt))
522
- (ishl_i8x16_mask (RegMemImm.Reg (x64_load $I64 amt (ExtKind.None)))))
523
-
524
- ;; 16x8, 32x4, and 64x2 shifts can each use a single instruction, once the shift amount is masked.
525
-
526
- (rule (lower (has_type ty @ $I16X8 (ishl src amt)))
527
- (x64_psllw src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
528
-
529
- (rule (lower (has_type ty @ $I32X4 (ishl src amt)))
530
- (x64_pslld src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
531
-
532
- (rule (lower (has_type ty @ $I64X2 (ishl src amt)))
533
- (x64_psllq src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
534
-
535
- ;;;; Rules for `ushr` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
536
-
537
- ;; `i64` and smaller.
538
-
539
- (rule -1 (lower (has_type (fits_in_64 ty) (ushr src amt)))
540
- (let ((src_ Gpr (extend_to_gpr src ty (ExtendKind.Zero))))
541
- (x64_shr ty src_ (put_masked_in_imm8_gpr amt ty))))
542
-
543
- ;; `i128`.
544
-
545
- (decl shr_i128 (ValueRegs Gpr) ValueRegs)
546
- (rule (shr_i128 src amt)
547
- ;; Unpack the lo/hi halves of `src`.
548
- (let ((src_lo Gpr (value_regs_get_gpr src 0))
549
- (src_hi Gpr (value_regs_get_gpr src 1))
550
- ;; Do a shift on each half.
551
- (lo_shifted Gpr (x64_shr $I64 src_lo amt))
552
- (hi_shifted Gpr (x64_shr $I64 src_hi amt))
553
- ;; `src_hi << (64 - amt)` are the bits to carry over from the hi
554
- ;; into the lo.
555
- (carry Gpr (x64_shl $I64
556
- src_hi
557
- (x64_sub $I64
558
- (imm $I64 64)
559
- amt)))
560
- ;; Share the zero value to reduce register pressure
561
- (zero Gpr (imm $I64 0))
562
-
563
- ;; Nullify the carry if we are shifting by a multiple of 128.
564
- (carry_ Gpr (with_flags_reg (x64_test (OperandSize.Size64) (RegMemImm.Imm 127) amt)
565
- (cmove $I64 (CC.Z) zero carry)))
566
- ;; Add the carry bits into the lo.
567
- (lo_shifted_ Gpr (x64_or $I64 carry_ lo_shifted)))
568
- ;; Combine the two shifted halves. However, if we are shifting by >= 64
569
- ;; (modulo 128), then the hi bits are zero and the lo bits are what
570
- ;; would otherwise be our hi bits.
571
- (with_flags (x64_test (OperandSize.Size64) (RegMemImm.Imm 64) amt)
572
- (consumes_flags_concat
573
- (cmove $I64 (CC.Z) lo_shifted_ hi_shifted)
574
- (cmove $I64 (CC.Z) hi_shifted zero)))))
575
-
576
- (rule (lower (has_type $I128 (ushr src amt)))
577
- ;; NB: Only the low bits of `amt` matter since we logically mask the shift
578
- ;; amount to the value's bit width.
579
- (let ((amt_ Gpr (lo_gpr amt)))
580
- (shr_i128 src amt_)))
581
-
582
- ;; SSE.
583
-
584
- ;; There are no 8x16 shifts in x64. Do the same 16x8-shift-and-mask thing we do
585
- ;; with 8x16 `ishl`.
586
- (rule (lower (has_type ty @ $I8X16 (ushr src amt)))
587
- (let (
588
- ;; Mask the amount to ensure wrapping behaviour
589
- (masked_amt RegMemImm (mask_xmm_shift ty amt))
590
- ;; Shift `src` using 16x8. Unfortunately, a 16x8 shift will only be
591
- ;; correct for half of the lanes; the others must be fixed up with
592
- ;; the mask below.
593
- (unmasked Xmm (x64_psrlw src (mov_rmi_to_xmm masked_amt))))
594
- (sse_and $I8X16
595
- unmasked
596
- (ushr_i8x16_mask masked_amt))))
597
-
598
- ;; Get the address of the mask to use when fixing up the lanes that weren't
599
- ;; correctly generated by the 16x8 shift.
600
- (decl ushr_i8x16_mask (RegMemImm) SyntheticAmode)
601
-
602
- ;; When the shift amount is known, we can statically (i.e. at compile time)
603
- ;; determine the mask to use and only emit that.
604
- (decl ushr_i8x16_mask_for_const (u32) SyntheticAmode)
605
- (extern constructor ushr_i8x16_mask_for_const ushr_i8x16_mask_for_const)
606
- (rule (ushr_i8x16_mask (RegMemImm.Imm amt))
607
- (ushr_i8x16_mask_for_const amt))
608
-
609
- ;; Otherwise, we must emit the entire mask table and dynamically (i.e. at run
610
- ;; time) find the correct mask offset in the table. We use `lea` to find the
611
- ;; base address of the mask table and then complex addressing to offset to the
612
- ;; right mask: `base_address + amt << 4`
613
- (decl ushr_i8x16_mask_table () SyntheticAmode)
614
- (extern constructor ushr_i8x16_mask_table ushr_i8x16_mask_table)
615
- (rule (ushr_i8x16_mask (RegMemImm.Reg amt))
616
- (let ((mask_table SyntheticAmode (ushr_i8x16_mask_table))
617
- (base_mask_addr Gpr (x64_lea mask_table))
618
- (mask_offset Gpr (x64_shl $I64
619
- amt
620
- (imm8_to_imm8_gpr 4))))
621
- (amode_imm_reg_reg_shift 0
622
- base_mask_addr
623
- mask_offset
624
- 0)))
625
-
626
- (rule (ushr_i8x16_mask (RegMemImm.Mem amt))
627
- (ushr_i8x16_mask (RegMemImm.Reg (x64_load $I64 amt (ExtKind.None)))))
628
-
629
- ;; 16x8, 32x4, and 64x2 shifts can each use a single instruction, once the shift amount is masked.
630
-
631
- (rule (lower (has_type ty @ $I16X8 (ushr src amt)))
632
- (x64_psrlw src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
633
-
634
- (rule (lower (has_type ty @ $I32X4 (ushr src amt)))
635
- (x64_psrld src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
636
-
637
- (rule (lower (has_type ty @ $I64X2 (ushr src amt)))
638
- (x64_psrlq src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
639
-
640
- (decl mask_xmm_shift (Type Value) RegMemImm)
641
- (rule (mask_xmm_shift ty amt)
642
- (gpr_to_reg (x64_and $I64 amt (RegMemImm.Imm (shift_mask ty)))))
643
- (rule 1 (mask_xmm_shift ty (iconst n))
644
- (RegMemImm.Imm (shift_amount_masked ty n)))
645
-
646
- ;;;; Rules for `sshr` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
647
-
648
- ;; `i64` and smaller.
649
-
650
- (rule -1 (lower (has_type (fits_in_64 ty) (sshr src amt)))
651
- (let ((src_ Gpr (extend_to_gpr src ty (ExtendKind.Sign))))
652
- (x64_sar ty src_ (put_masked_in_imm8_gpr amt ty))))
653
-
654
- ;; `i128`.
655
-
656
- (decl sar_i128 (ValueRegs Gpr) ValueRegs)
657
- (rule (sar_i128 src amt)
658
- ;; Unpack the low/high halves of `src`.
659
- (let ((src_lo Gpr (value_regs_get_gpr src 0))
660
- (src_hi Gpr (value_regs_get_gpr src 1))
661
- ;; Do a shift of each half. NB: the low half uses an unsigned shift
662
- ;; because its MSB is not a sign bit.
663
- (lo_shifted Gpr (x64_shr $I64 src_lo amt))
664
- (hi_shifted Gpr (x64_sar $I64 src_hi amt))
665
- ;; `src_hi << (64 - amt)` are the bits to carry over from the low
666
- ;; half to the high half.
667
- (carry Gpr (x64_shl $I64
668
- src_hi
669
- (x64_sub $I64
670
- (imm $I64 64)
671
- amt)))
672
- ;; Nullify the carry if we are shifting by a multiple of 128.
673
- (carry_ Gpr (with_flags_reg (x64_test (OperandSize.Size64) (RegMemImm.Imm 127) amt)
674
- (cmove $I64 (CC.Z) (imm $I64 0) carry)))
675
- ;; Add the carry into the low half.
676
- (lo_shifted_ Gpr (x64_or $I64 lo_shifted carry_))
677
- ;; Get all sign bits.
678
- (sign_bits Gpr (x64_sar $I64 src_hi (imm8_to_imm8_gpr 63))))
679
- ;; Combine the two shifted halves. However, if we are shifting by >= 64
680
- ;; (modulo 128), then the hi bits are all sign bits and the lo bits are
681
- ;; what would otherwise be our hi bits.
682
- (with_flags (x64_test (OperandSize.Size64) (RegMemImm.Imm 64) amt)
683
- (consumes_flags_concat
684
- (cmove $I64 (CC.Z) lo_shifted_ hi_shifted)
685
- (cmove $I64 (CC.Z) hi_shifted sign_bits)))))
686
-
687
- (rule (lower (has_type $I128 (sshr src amt)))
688
- ;; NB: Only the low bits of `amt` matter since we logically mask the shift
689
- ;; amount to the value's bit width.
690
- (let ((amt_ Gpr (lo_gpr amt)))
691
- (sar_i128 src amt_)))
692
-
693
- ;; SSE.
694
-
695
- ;; Since the x86 instruction set does not have an 8x16 shift instruction and the
696
- ;; approach used for `ishl` and `ushr` cannot be easily used (the masks do not
697
- ;; preserve the sign), we use a different approach here: separate the low and
698
- ;; high lanes, shift them separately, and merge them into the final result.
699
- ;;
700
- ;; Visually, this looks like the following, where `src.i8x16 = [s0, s1, ...,
701
- ;; s15]:
702
- ;;
703
- ;; lo.i16x8 = [(s0, s0), (s1, s1), ..., (s7, s7)]
704
- ;; shifted_lo.i16x8 = shift each lane of `low`
705
- ;; hi.i16x8 = [(s8, s8), (s9, s9), ..., (s15, s15)]
706
- ;; shifted_hi.i16x8 = shift each lane of `high`
707
- ;; result = [s0'', s1'', ..., s15'']
708
- (rule (lower (has_type ty @ $I8X16 (sshr src amt @ (value_type amt_ty))))
709
- (let ((src_ Xmm (put_in_xmm src))
710
- ;; Mask the amount to ensure wrapping behaviour
711
- (masked_amt RegMemImm (mask_xmm_shift ty amt))
712
- ;; In order for `packsswb` later to only use the high byte of each
713
- ;; 16x8 lane, we shift right an extra 8 bits, relying on `psraw` to
714
- ;; fill in the upper bits appropriately.
715
- (lo Xmm (x64_punpcklbw src_ src_))
716
- (hi Xmm (x64_punpckhbw src_ src_))
717
- (amt_ XmmMemImm (sshr_i8x16_bigger_shift amt_ty masked_amt))
718
- (shifted_lo Xmm (x64_psraw lo amt_))
719
- (shifted_hi Xmm (x64_psraw hi amt_)))
720
- (x64_packsswb shifted_lo shifted_hi)))
721
-
722
- (decl sshr_i8x16_bigger_shift (Type RegMemImm) XmmMemImm)
723
- (rule (sshr_i8x16_bigger_shift _ty (RegMemImm.Imm i))
724
- (xmm_mem_imm_new (RegMemImm.Imm (u32_add i 8))))
725
- (rule (sshr_i8x16_bigger_shift ty (RegMemImm.Reg r))
726
- (mov_rmi_to_xmm (RegMemImm.Reg (x64_add ty
727
- r
728
- (RegMemImm.Imm 8)))))
729
- (rule (sshr_i8x16_bigger_shift ty rmi @ (RegMemImm.Mem _m))
730
- (mov_rmi_to_xmm (RegMemImm.Reg (x64_add ty
731
- (imm ty 8)
732
- rmi))))
733
-
734
- ;; `sshr.{i16x8,i32x4}` can be a simple `psra{w,d}`, we just have to make sure
735
- ;; that if the shift amount is in a register, it is in an XMM register.
736
-
737
- (rule (lower (has_type ty @ $I16X8 (sshr src amt)))
738
- (x64_psraw src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
739
-
740
- (rule (lower (has_type ty @ $I32X4 (sshr src amt)))
741
- (x64_psrad src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
742
-
743
- ;; The `sshr.i64x2` CLIF instruction has no single x86 instruction in the older
744
- ;; feature sets. Newer ones like AVX512VL + AVX512F include `vpsraq`, a 128-bit
745
- ;; instruction that would fit here, but this backend does not currently have
746
- ;; support for EVEX encodings. To remedy this, we extract each 64-bit lane to a
747
- ;; GPR, shift each using a scalar instruction, and insert the shifted values
748
- ;; back in the `dst` XMM register.
749
- ;;
750
- ;; (TODO: when EVEX support is available, add an alternate lowering here).
751
- (rule (lower (has_type $I64X2 (sshr src amt)))
752
- (let ((src_ Xmm (put_in_xmm src))
753
- (lo Gpr (x64_pextrq src_ 0))
754
- (hi Gpr (x64_pextrq src_ 1))
755
- (amt_ Imm8Gpr (put_masked_in_imm8_gpr amt $I64))
756
- (shifted_lo Gpr (x64_sar $I64 lo amt_))
757
- (shifted_hi Gpr (x64_sar $I64 hi amt_)))
758
- (make_i64x2_from_lanes shifted_lo
759
- shifted_hi)))
760
-
761
- ;;;; Rules for `rotl` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
762
-
763
- ;; `i64` and smaller: we can rely on x86's rotate-amount masking since
764
- ;; we operate on the whole register. For const's we mask the constant.
765
-
766
- (rule -1 (lower (has_type (fits_in_64 ty) (rotl src amt)))
767
- (x64_rotl ty src (put_masked_in_imm8_gpr amt ty)))
768
-
769
-
770
- ;; `i128`.
771
-
772
- (rule (lower (has_type $I128 (rotl src amt)))
773
- (let ((src_ ValueRegs src)
774
- ;; NB: Only the low bits of `amt` matter since we logically mask the
775
- ;; rotation amount to the value's bit width.
776
- (amt_ Gpr (lo_gpr amt)))
777
- (or_i128 (shl_i128 src_ amt_)
778
- (shr_i128 src_ (x64_sub $I64
779
- (imm $I64 128)
780
- amt_)))))
781
-
782
- ;;;; Rules for `rotr` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
783
-
784
- ;; `i64` and smaller: we can rely on x86's rotate-amount masking since
785
- ;; we operate on the whole register. For const's we mask the constant.
786
-
787
- (rule -1 (lower (has_type (fits_in_64 ty) (rotr src amt)))
788
- (x64_rotr ty src (put_masked_in_imm8_gpr amt ty)))
789
-
790
-
791
- ;; `i128`.
792
-
793
- (rule (lower (has_type $I128 (rotr src amt)))
794
- (let ((src_ ValueRegs src)
795
- ;; NB: Only the low bits of `amt` matter since we logically mask the
796
- ;; rotation amount to the value's bit width.
797
- (amt_ Gpr (lo_gpr amt)))
798
- (or_i128 (shr_i128 src_ amt_)
799
- (shl_i128 src_ (x64_sub $I64
800
- (imm $I64 128)
801
- amt_)))))
802
-
803
- ;;;; Rules for `ineg` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
804
-
805
- ;; `i64` and smaller.
806
-
807
- (rule -1 (lower (has_type (fits_in_64 ty) (ineg x)))
808
- (x64_neg ty x))
809
-
810
- (rule -2 (lower (has_type $I128 (ineg x)))
811
- ;; Get the high/low registers for `x`.
812
- (let ((regs ValueRegs x)
813
- (lo Gpr (value_regs_get_gpr regs 0))
814
- (hi Gpr (value_regs_get_gpr regs 1)))
815
- ;; Do a neg followed by an sub-with-borrow.
816
- (with_flags (x64_neg_paired $I64 lo)
817
- (x64_sbb_paired $I64 (imm $I64 0) hi))))
818
-
819
- ;; SSE.
820
-
821
- (rule (lower (has_type $I8X16 (ineg x)))
822
- (x64_psubb (imm $I8X16 0) x))
823
-
824
- (rule (lower (has_type $I16X8 (ineg x)))
825
- (x64_psubw (imm $I16X8 0) x))
826
-
827
- (rule (lower (has_type $I32X4 (ineg x)))
828
- (x64_psubd (imm $I32X4 0) x))
829
-
830
- (rule (lower (has_type $I64X2 (ineg x)))
831
- (x64_psubq (imm $I64X2 0) x))
832
-
833
- ;;;; Rules for `avg_round` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
834
-
835
- (rule (lower (has_type (multi_lane 8 16)
836
- (avg_round x y)))
837
- (x64_pavgb x y))
838
-
839
- (rule (lower (has_type (multi_lane 16 8)
840
- (avg_round x y)))
841
- (x64_pavgw x y))
842
-
843
- ;;;; Rules for `imul` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
844
-
845
- ;; `i64` and smaller.
846
-
847
- ;; Multiply two registers.
848
- (rule -5 (lower (has_type (fits_in_64 ty) (imul x y)))
849
- (x64_mul ty x y))
850
-
851
- ;; Handle multiplication where the lhs is an immediate or sinkable load in
852
- ;; addition to the automatic rhs handling above.
853
-
854
- (rule -4 (lower (has_type (fits_in_64 ty)
855
- (imul (simm32_from_value x) y)))
856
- (x64_mul ty y x))
857
- (rule -3 (lower (has_type (fits_in_64 ty)
858
- (imul (sinkable_load x) y)))
859
- (x64_mul ty y x))
860
-
861
- ;; `i128`.
862
-
863
- ;; mul:
864
- ;; dst_lo = lhs_lo * rhs_lo
865
- ;; dst_hi = umulhi(lhs_lo, rhs_lo) +
866
- ;; lhs_lo * rhs_hi +
867
- ;; lhs_hi * rhs_lo
868
- ;;
869
- ;; so we emit:
870
- ;; lo_hi = mul x_lo, y_hi
871
- ;; hi_lo = mul x_hi, y_lo
872
- ;; hilo_hilo = add lo_hi, hi_lo
873
- ;; dst_lo:hi_lolo = mulhi_u x_lo, y_lo
874
- ;; dst_hi = add hilo_hilo, hi_lolo
875
- ;; return (dst_lo, dst_hi)
876
- (rule 2 (lower (has_type $I128 (imul x y)))
877
- ;; Put `x` into registers and unpack its hi/lo halves.
878
- (let ((x_regs ValueRegs x)
879
- (x_lo Gpr (value_regs_get_gpr x_regs 0))
880
- (x_hi Gpr (value_regs_get_gpr x_regs 1))
881
- ;; Put `y` into registers and unpack its hi/lo halves.
882
- (y_regs ValueRegs y)
883
- (y_lo Gpr (value_regs_get_gpr y_regs 0))
884
- (y_hi Gpr (value_regs_get_gpr y_regs 1))
885
- ;; lo_hi = mul x_lo, y_hi
886
- (lo_hi Gpr (x64_mul $I64 x_lo y_hi))
887
- ;; hi_lo = mul x_hi, y_lo
888
- (hi_lo Gpr (x64_mul $I64 x_hi y_lo))
889
- ;; hilo_hilo = add lo_hi, hi_lo
890
- (hilo_hilo Gpr (x64_add $I64 lo_hi hi_lo))
891
- ;; dst_lo:hi_lolo = mulhi_u x_lo, y_lo
892
- (mul_regs ValueRegs (mulhi_u $I64 x_lo y_lo))
893
- (dst_lo Gpr (value_regs_get_gpr mul_regs 0))
894
- (hi_lolo Gpr (value_regs_get_gpr mul_regs 1))
895
- ;; dst_hi = add hilo_hilo, hi_lolo
896
- (dst_hi Gpr (x64_add $I64 hilo_hilo hi_lolo)))
897
- (value_gprs dst_lo dst_hi)))
898
-
899
- ;; SSE.
900
-
901
- ;; (No i8x16 multiply.)
902
-
903
- (rule (lower (has_type (multi_lane 16 8) (imul x y)))
904
- (x64_pmullw x y))
905
-
906
- (rule (lower (has_type (multi_lane 32 4) (imul x y)))
907
- (if-let $true (use_sse41))
908
- (x64_pmulld x y))
909
-
910
- ;; Without `pmulld` the `pmuludq` instruction is used instead which performs
911
- ;; 32-bit multiplication storing the 64-bit result. The 64-bit result is
912
- ;; truncated to 32-bits and everything else is woven into place.
913
- (rule -1 (lower (has_type (multi_lane 32 4) (imul x y)))
914
- (let (
915
- (x Xmm x)
916
- (y Xmm y)
917
- (x_hi Xmm (x64_pshufd x 0b00_11_00_01))
918
- (y_hi Xmm (x64_pshufd y 0b00_11_00_01))
919
- (mul_lo Xmm (x64_pshufd (x64_pmuludq x y) 0b00_00_10_00))
920
- (mul_hi Xmm (x64_pshufd (x64_pmuludq x_hi y_hi) 0b00_00_10_00))
921
- )
922
- (x64_punpckldq mul_lo mul_hi)))
923
-
924
- ;; With AVX-512 we can implement `i64x2` multiplication with a single
925
- ;; instruction.
926
- (rule 3 (lower (has_type (and (avx512vl_enabled $true)
927
- (avx512dq_enabled $true)
928
- (multi_lane 64 2))
929
- (imul x y)))
930
- (x64_vpmullq x y))
931
-
932
- ;; Otherwise, for i64x2 multiplication we describe a lane A as being composed of
933
- ;; a 32-bit upper half "Ah" and a 32-bit lower half "Al". The 32-bit long hand
934
- ;; multiplication can then be written as:
935
- ;;
936
- ;; Ah Al
937
- ;; * Bh Bl
938
- ;; -----
939
- ;; Al * Bl
940
- ;; + (Ah * Bl) << 32
941
- ;; + (Al * Bh) << 32
942
- ;;
943
- ;; So for each lane we will compute:
944
- ;;
945
- ;; A * B = (Al * Bl) + ((Ah * Bl) + (Al * Bh)) << 32
946
- ;;
947
- ;; Note, the algorithm will use `pmuludq` which operates directly on the lower
948
- ;; 32-bit (`Al` or `Bl`) of a lane and writes the result to the full 64-bits of
949
- ;; the lane of the destination. For this reason we don't need shifts to isolate
950
- ;; the lower 32-bits, however, we will need to use shifts to isolate the high
951
- ;; 32-bits when doing calculations, i.e., `Ah == A >> 32`.
952
- (rule (lower (has_type (multi_lane 64 2)
953
- (imul a b)))
954
- (let ((a0 Xmm a)
955
- (b0 Xmm b)
956
- ;; a_hi = A >> 32
957
- (a_hi Xmm (x64_psrlq a0 (xmi_imm 32)))
958
- ;; ah_bl = Ah * Bl
959
- (ah_bl Xmm (x64_pmuludq a_hi b0))
960
- ;; b_hi = B >> 32
961
- (b_hi Xmm (x64_psrlq b0 (xmi_imm 32)))
962
- ;; al_bh = Al * Bh
963
- (al_bh Xmm (x64_pmuludq a0 b_hi))
964
- ;; aa_bb = ah_bl + al_bh
965
- (aa_bb Xmm (x64_paddq ah_bl al_bh))
966
- ;; aa_bb_shifted = aa_bb << 32
967
- (aa_bb_shifted Xmm (x64_psllq aa_bb (xmi_imm 32)))
968
- ;; al_bl = Al * Bl
969
- (al_bl Xmm (x64_pmuludq a0 b0)))
970
- ;; al_bl + aa_bb_shifted
971
- (x64_paddq al_bl aa_bb_shifted)))
972
-
973
- ;; Special case for `i32x4.extmul_high_i16x8_s`.
974
- (rule 1 (lower (has_type (multi_lane 32 4)
975
- (imul (swiden_high (and (value_type (multi_lane 16 8))
976
- x))
977
- (swiden_high (and (value_type (multi_lane 16 8))
978
- y)))))
979
- (let ((x2 Xmm x)
980
- (y2 Xmm y)
981
- (lo Xmm (x64_pmullw x2 y2))
982
- (hi Xmm (x64_pmulhw x2 y2)))
983
- (x64_punpckhwd lo hi)))
984
-
985
- ;; Special case for `i64x2.extmul_high_i32x4_s`.
986
- (rule 1 (lower (has_type (multi_lane 64 2)
987
- (imul (swiden_high (and (value_type (multi_lane 32 4))
988
- x))
989
- (swiden_high (and (value_type (multi_lane 32 4))
990
- y)))))
991
- (if-let $true (use_sse41))
992
- (let ((x2 Xmm (x64_pshufd x 0xFA))
993
- (y2 Xmm (x64_pshufd y 0xFA)))
994
- (x64_pmuldq x2 y2)))
995
-
996
- ;; Special case for `i32x4.extmul_low_i16x8_s`.
997
- (rule 1 (lower (has_type (multi_lane 32 4)
998
- (imul (swiden_low (and (value_type (multi_lane 16 8))
999
- x))
1000
- (swiden_low (and (value_type (multi_lane 16 8))
1001
- y)))))
1002
- (let ((x2 Xmm x)
1003
- (y2 Xmm y)
1004
- (lo Xmm (x64_pmullw x2 y2))
1005
- (hi Xmm (x64_pmulhw x2 y2)))
1006
- (x64_punpcklwd lo hi)))
1007
-
1008
- ;; Special case for `i64x2.extmul_low_i32x4_s`.
1009
- (rule 1 (lower (has_type (multi_lane 64 2)
1010
- (imul (swiden_low (and (value_type (multi_lane 32 4))
1011
- x))
1012
- (swiden_low (and (value_type (multi_lane 32 4))
1013
- y)))))
1014
- (if-let $true (use_sse41))
1015
- (let ((x2 Xmm (x64_pshufd x 0x50))
1016
- (y2 Xmm (x64_pshufd y 0x50)))
1017
- (x64_pmuldq x2 y2)))
1018
-
1019
- ;; Special case for `i32x4.extmul_high_i16x8_u`.
1020
- (rule 1 (lower (has_type (multi_lane 32 4)
1021
- (imul (uwiden_high (and (value_type (multi_lane 16 8))
1022
- x))
1023
- (uwiden_high (and (value_type (multi_lane 16 8))
1024
- y)))))
1025
- (let ((x2 Xmm x)
1026
- (y2 Xmm y)
1027
- (lo Xmm (x64_pmullw x2 y2))
1028
- (hi Xmm (x64_pmulhuw x2 y2)))
1029
- (x64_punpckhwd lo hi)))
1030
-
1031
- ;; Special case for `i64x2.extmul_high_i32x4_u`.
1032
- (rule 1 (lower (has_type (multi_lane 64 2)
1033
- (imul (uwiden_high (and (value_type (multi_lane 32 4))
1034
- x))
1035
- (uwiden_high (and (value_type (multi_lane 32 4))
1036
- y)))))
1037
- (let ((x2 Xmm (x64_pshufd x 0xFA))
1038
- (y2 Xmm (x64_pshufd y 0xFA)))
1039
- (x64_pmuludq x2 y2)))
1040
-
1041
- ;; Special case for `i32x4.extmul_low_i16x8_u`.
1042
- (rule 1 (lower (has_type (multi_lane 32 4)
1043
- (imul (uwiden_low (and (value_type (multi_lane 16 8))
1044
- x))
1045
- (uwiden_low (and (value_type (multi_lane 16 8))
1046
- y)))))
1047
- (let ((x2 Xmm x)
1048
- (y2 Xmm y)
1049
- (lo Xmm (x64_pmullw x2 y2))
1050
- (hi Xmm (x64_pmulhuw x2 y2)))
1051
- (x64_punpcklwd lo hi)))
1052
-
1053
- ;; Special case for `i64x2.extmul_low_i32x4_u`.
1054
- (rule 1 (lower (has_type (multi_lane 64 2)
1055
- (imul (uwiden_low (and (value_type (multi_lane 32 4))
1056
- x))
1057
- (uwiden_low (and (value_type (multi_lane 32 4))
1058
- y)))))
1059
- (let ((x2 Xmm (x64_pshufd x 0x50))
1060
- (y2 Xmm (x64_pshufd y 0x50)))
1061
- (x64_pmuludq x2 y2)))
1062
-
1063
- ;;;; Rules for `iabs` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1064
-
1065
- (rule (lower (has_type $I8X16 (iabs x)))
1066
- (x64_pabsb x))
1067
-
1068
- (rule (lower (has_type $I16X8 (iabs x)))
1069
- (x64_pabsw x))
1070
-
1071
- (rule (lower (has_type $I32X4 (iabs x)))
1072
- (x64_pabsd x))
1073
-
1074
- ;; When AVX512 is available, we can use a single `vpabsq` instruction.
1075
- (rule 1 (lower (has_type (and (avx512vl_enabled $true)
1076
- (avx512f_enabled $true)
1077
- $I64X2)
1078
- (iabs x)))
1079
- (x64_vpabsq x))
1080
-
1081
- ;; Otherwise, we use a separate register, `neg`, to contain the results of `0 -
1082
- ;; x` and then blend in those results with `blendvpd` if the MSB of `neg` was
1083
- ;; set to 1 (i.e. if `neg` was negative or, conversely, if `x` was originally
1084
- ;; positive).
1085
- (rule (lower (has_type $I64X2 (iabs x)))
1086
- (let ((rx Xmm x)
1087
- (neg Xmm (x64_psubq (imm $I64X2 0) rx)))
1088
- (x64_blendvpd neg rx neg)))
1089
-
1090
- ;; `i64` and smaller.
1091
-
1092
- (rule -1 (lower (has_type (fits_in_64 ty) (iabs x)))
1093
- (let ((src Gpr x)
1094
- (neg ProducesFlags (x64_neg_paired ty src))
1095
- ;; Manually extract the result from the neg, then ignore
1096
- ;; it below, since we need to pass it into the cmove
1097
- ;; before we pass the cmove to with_flags_reg.
1098
- (neg_result Gpr (produces_flags_get_reg neg))
1099
- ;; When the neg instruction sets the sign flag,
1100
- ;; takes the original (non-negative) value.
1101
- (cmove ConsumesFlags (cmove ty (CC.S) src neg_result)))
1102
- (with_flags_reg (produces_flags_ignore neg) cmove)))
1103
-
1104
- ;;;; Rules for `fabs` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1105
-
1106
- (rule (lower (has_type $F32 (fabs x)))
1107
- (x64_andps x (imm $F32 0x7fffffff)))
1108
-
1109
- (rule (lower (has_type $F64 (fabs x)))
1110
- (x64_andpd x (imm $F64 0x7fffffffffffffff)))
1111
-
1112
- ;; Special case for `f32x4.abs`.
1113
- (rule (lower (has_type $F32X4 (fabs x)))
1114
- (x64_andps x
1115
- (x64_psrld (vector_all_ones) (xmi_imm 1))))
1116
-
1117
- ;; Special case for `f64x2.abs`.
1118
- (rule (lower (has_type $F64X2 (fabs x)))
1119
- (x64_andpd x
1120
- (x64_psrlq (vector_all_ones) (xmi_imm 1))))
1121
-
1122
- ;;;; Rules for `fneg` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1123
-
1124
- (rule (lower (has_type $F32 (fneg x)))
1125
- (x64_xorps x (imm $F32 0x80000000)))
1126
-
1127
- (rule (lower (has_type $F64 (fneg x)))
1128
- (x64_xorpd x (imm $F64 0x8000000000000000)))
1129
-
1130
- (rule (lower (has_type $F32X4 (fneg x)))
1131
- (x64_xorps x
1132
- (x64_pslld (vector_all_ones) (xmi_imm 31))))
1133
-
1134
- (rule (lower (has_type $F64X2 (fneg x)))
1135
- (x64_xorpd x
1136
- (x64_psllq (vector_all_ones) (xmi_imm 63))))
1137
-
1138
- ;;;; Rules for `bmask` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1139
-
1140
- (decl lower_bmask (Type Type ValueRegs) ValueRegs)
1141
-
1142
- ;; Values that fit in a register
1143
- ;;
1144
- ;; Use the neg instruction on the input which sets the CF (carry) flag
1145
- ;; to 0 if the input is 0 or 1 otherwise.
1146
- ;; We then subtract the output register with itself, which always gives a 0,
1147
- ;; however use the carry flag from the previous negate to generate a -1 if it
1148
- ;; was nonzero.
1149
- ;;
1150
- ;; neg in_reg
1151
- ;; sbb out_reg, out_reg
1152
- (rule 0
1153
- (lower_bmask (fits_in_64 out_ty) (fits_in_64 in_ty) val)
1154
- (let ((reg Gpr (value_regs_get_gpr val 0))
1155
- (out ValueRegs (with_flags
1156
- (x64_neg_paired in_ty reg)
1157
- (x64_sbb_paired out_ty reg reg))))
1158
- ;; Extract only the output of the sbb instruction
1159
- (value_reg (value_regs_get out 1))))
1160
-
1161
-
1162
- ;; If the input type is I128 we can `or` the registers, and recurse to the general case.
1163
- (rule 1
1164
- (lower_bmask (fits_in_64 out_ty) $I128 val)
1165
- (let ((lo Gpr (value_regs_get_gpr val 0))
1166
- (hi Gpr (value_regs_get_gpr val 1))
1167
- (mixed Gpr (x64_or $I64 lo hi)))
1168
- (lower_bmask out_ty $I64 (value_reg mixed))))
1169
-
1170
- ;; If the output type is I128 we just duplicate the result of the I64 lowering
1171
- (rule 2
1172
- (lower_bmask $I128 in_ty val)
1173
- (let ((res ValueRegs (lower_bmask $I64 in_ty val))
1174
- (res Gpr (value_regs_get_gpr res 0)))
1175
- (value_regs res res)))
1176
-
1177
-
1178
- ;; Call the lower_bmask rule that does all the procssing
1179
- (rule (lower (has_type out_ty (bmask x @ (value_type in_ty))))
1180
- (lower_bmask out_ty in_ty x))
1181
-
1182
- ;;;; Rules for `bnot` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1183
-
1184
- ;; `i64` and smaller.
1185
-
1186
- (rule -2 (lower (has_type ty (bnot x)))
1187
- (if (ty_int_ref_scalar_64 ty))
1188
- (x64_not ty x))
1189
-
1190
-
1191
- ;; `i128`.
1192
-
1193
- (decl i128_not (Value) ValueRegs)
1194
- (rule (i128_not x)
1195
- (let ((x_regs ValueRegs x)
1196
- (x_lo Gpr (value_regs_get_gpr x_regs 0))
1197
- (x_hi Gpr (value_regs_get_gpr x_regs 1)))
1198
- (value_gprs (x64_not $I64 x_lo)
1199
- (x64_not $I64 x_hi))))
1200
-
1201
- (rule (lower (has_type $I128 (bnot x)))
1202
- (i128_not x))
1203
-
1204
- ;; f32 and f64
1205
-
1206
- (rule -3 (lower (has_type (ty_scalar_float ty) (bnot x)))
1207
- (x64_xor_vector ty x (vector_all_ones)))
1208
-
1209
- ;; Special case for vector-types where bit-negation is an xor against an
1210
- ;; all-one value
1211
- (rule -1 (lower (has_type ty @ (multi_lane _bits _lanes) (bnot x)))
1212
- (x64_xor_vector ty x (vector_all_ones)))
1213
-
1214
- ;;;; Rules for `bitselect` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1215
-
1216
- (rule (lower (has_type ty @ (multi_lane _bits _lanes)
1217
- (bitselect condition
1218
- if_true
1219
- if_false)))
1220
- ;; a = and if_true, condition
1221
- ;; b = and_not condition, if_false
1222
- ;; or b, a
1223
- (let ((cond_xmm Xmm condition)
1224
- (a Xmm (sse_and ty if_true cond_xmm))
1225
- (b Xmm (sse_and_not ty cond_xmm if_false)))
1226
- (sse_or ty b a)))
1227
-
1228
- ;; If every byte of the condition is guaranteed to be all ones or all zeroes,
1229
- ;; we can use x64_blend.
1230
- (rule 1 (lower (has_type ty @ (multi_lane _bits _lanes)
1231
- (bitselect condition
1232
- if_true
1233
- if_false)))
1234
- (if (all_ones_or_all_zeros condition))
1235
- (x64_blend ty
1236
- condition
1237
- if_true
1238
- if_false))
1239
-
1240
- (decl pure partial all_ones_or_all_zeros (Value) bool)
1241
- (rule (all_ones_or_all_zeros (and (icmp _ _ _) (value_type (multi_lane _ _)))) $true)
1242
- (rule (all_ones_or_all_zeros (and (fcmp _ _ _) (value_type (multi_lane _ _)))) $true)
1243
- (rule (all_ones_or_all_zeros (vconst (vconst_all_ones_or_all_zeros))) $true)
1244
-
1245
- (decl pure vconst_all_ones_or_all_zeros () Constant)
1246
- (extern extractor vconst_all_ones_or_all_zeros vconst_all_ones_or_all_zeros)
1247
-
1248
- ;;;; Rules for `x86_blendv` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1249
-
1250
- (rule (lower (has_type $I8X16
1251
- (x86_blendv condition if_true if_false)))
1252
- (x64_pblendvb if_false if_true condition))
1253
-
1254
- (rule (lower (has_type $I32X4
1255
- (x86_blendv condition if_true if_false)))
1256
- (x64_blendvps if_false if_true condition))
1257
-
1258
- (rule (lower (has_type $I64X2
1259
- (x86_blendv condition if_true if_false)))
1260
- (x64_blendvpd if_false if_true condition))
1261
-
1262
- ;;;; Rules for `insertlane` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1263
-
1264
- (rule (lower (insertlane vec @ (value_type ty) val (u8_from_uimm8 idx)))
1265
- (vec_insert_lane ty vec val idx))
1266
-
1267
- ;; Helper function used below for `insertlane` but also here for other
1268
- ;; lowerings.
1269
- ;;
1270
- ;; Note that the `Type` used here is the type of vector the insertion is
1271
- ;; happening into, or the type of the first `Reg` argument.
1272
- (decl vec_insert_lane (Type Xmm RegMem u8) Xmm)
1273
-
1274
- ;; i8x16.replace_lane
1275
- (rule (vec_insert_lane $I8X16 vec val idx)
1276
- (x64_pinsrb vec val idx))
1277
-
1278
- ;; i16x8.replace_lane
1279
- (rule (vec_insert_lane $I16X8 vec val idx)
1280
- (x64_pinsrw vec val idx))
1281
-
1282
- ;; i32x4.replace_lane
1283
- (rule (vec_insert_lane $I32X4 vec val idx)
1284
- (x64_pinsrd vec val idx))
1285
-
1286
- ;; i64x2.replace_lane
1287
- (rule (vec_insert_lane $I64X2 vec val idx)
1288
- (x64_pinsrq vec val idx))
1289
-
1290
- ;; f32x4.replace_lane
1291
- (rule 1 (vec_insert_lane $F32X4 vec val idx)
1292
- (if-let $true (use_sse41))
1293
- (x64_insertps vec val (sse_insertps_lane_imm idx)))
1294
-
1295
- ;; f32x4.replace_lane 0 - without insertps
1296
- (rule (vec_insert_lane $F32X4 vec (RegMem.Reg val) 0)
1297
- (x64_movss_regmove vec val))
1298
-
1299
- ;; f32x4.replace_lane 1 - without insertps
1300
- ;; tmp = [ vec[1] vec[0] val[1] val[0] ]
1301
- ;; result = [ vec[3] vec[2] tmp[0] tmp[2] ]
1302
- (rule (vec_insert_lane $F32X4 vec (RegMem.Reg val) 1)
1303
- (let ((tmp Xmm (x64_movlhps val vec)))
1304
- (x64_shufps tmp vec 0b11_10_00_10)))
1305
-
1306
- ;; f32x4.replace_lane 2 - without insertps
1307
- ;; tmp = [ vec[0] vec[3] val[0] val[0] ]
1308
- ;; result = [ tmp[2] tmp[0] vec[1] vec[0] ]
1309
- (rule (vec_insert_lane $F32X4 vec (RegMem.Reg val) 2)
1310
- (let ((tmp Xmm (x64_shufps val vec 0b00_11_00_00)))
1311
- (x64_shufps vec tmp 0b10_00_01_00)))
1312
-
1313
- ;; f32x4.replace_lane 3 - without insertps
1314
- ;; tmp = [ vec[3] vec[2] val[1] val[0] ]
1315
- ;; result = [ tmp[0] tmp[2] vec[1] vec[0] ]
1316
- (rule (vec_insert_lane $F32X4 vec (RegMem.Reg val) 3)
1317
- (let ((tmp Xmm (x64_shufps val vec 0b11_10_01_00)))
1318
- (x64_shufps vec tmp 0b00_10_01_00)))
1319
-
1320
- ;; Recursively delegate to the above rules by loading from memory first.
1321
- (rule (vec_insert_lane $F32X4 vec (RegMem.Mem addr) idx)
1322
- (vec_insert_lane $F32X4 vec (x64_movss_load addr) idx))
1323
-
1324
- ;; External rust code used to calculate the immediate value to `insertps`.
1325
- (decl sse_insertps_lane_imm (u8) u8)
1326
- (extern constructor sse_insertps_lane_imm sse_insertps_lane_imm)
1327
-
1328
- ;; f64x2.replace_lane 0
1329
- ;;
1330
- ;; Here the `movsd` instruction is used specifically to specialize moving
1331
- ;; into the fist lane where unlike above cases we're not using the lane
1332
- ;; immediate as an immediate to the instruction itself.
1333
- (rule (vec_insert_lane $F64X2 vec (RegMem.Reg val) 0)
1334
- (x64_movsd_regmove vec val))
1335
- (rule (vec_insert_lane $F64X2 vec (RegMem.Mem val) 0)
1336
- (x64_movsd_regmove vec (x64_movsd_load val)))
1337
-
1338
- ;; f64x2.replace_lane 1
1339
- ;;
1340
- ;; Here the `movlhps` instruction is used specifically to specialize moving
1341
- ;; into the second lane where unlike above cases we're not using the lane
1342
- ;; immediate as an immediate to the instruction itself.
1343
- (rule (vec_insert_lane $F64X2 vec val 1)
1344
- (x64_movlhps vec val))
1345
-
1346
- ;;;; Rules for `smin`, `smax`, `umin`, `umax` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1347
-
1348
- ;; `i64` and smaller.
1349
-
1350
- (decl cmp_and_choose (Type CC Value Value) ValueRegs)
1351
- (rule (cmp_and_choose (fits_in_64 ty) cc x y)
1352
- (let ((size OperandSize (raw_operand_size_of_type ty))
1353
- ;; We need to put x and y in registers explicitly because
1354
- ;; we use the values more than once. Hence, even if these
1355
- ;; are "unique uses" at the CLIF level and would otherwise
1356
- ;; allow for load-op merging, here we cannot do that.
1357
- (x_reg Reg x)
1358
- (y_reg Reg y))
1359
- (with_flags_reg (x64_cmp size x_reg y_reg)
1360
- (cmove ty cc y_reg x_reg))))
1361
-
1362
- (rule -1 (lower (has_type (fits_in_64 ty) (umin x y)))
1363
- (cmp_and_choose ty (CC.B) x y))
1364
-
1365
- (rule -1 (lower (has_type (fits_in_64 ty) (umax x y)))
1366
- (cmp_and_choose ty (CC.NB) x y))
1367
-
1368
- (rule -1 (lower (has_type (fits_in_64 ty) (smin x y)))
1369
- (cmp_and_choose ty (CC.L) x y))
1370
-
1371
- (rule -1 (lower (has_type (fits_in_64 ty) (smax x y)))
1372
- (cmp_and_choose ty (CC.NL) x y))
1373
-
1374
- ;; SSE helpers for determining if single-instruction lowerings are available.
1375
-
1376
- (decl pure has_pmins (Type) bool)
1377
- (rule 1 (has_pmins $I16X8) $true)
1378
- (rule 1 (has_pmins $I64X2) $false)
1379
- (rule (has_pmins _) (use_sse41))
1380
-
1381
- (decl pure has_pmaxs (Type) bool)
1382
- (rule 1 (has_pmaxs $I16X8) $true)
1383
- (rule 1 (has_pmaxs $I64X2) $false)
1384
- (rule (has_pmaxs _) (use_sse41))
1385
-
1386
- (decl pure has_pmaxu (Type) bool)
1387
- (rule 1 (has_pmaxu $I8X16) $true)
1388
- (rule 1 (has_pmaxu $I64X2) $false)
1389
- (rule (has_pmaxu _) (use_sse41))
1390
-
1391
- (decl pure has_pminu (Type) bool)
1392
- (rule 1 (has_pminu $I8X16) $true)
1393
- (rule 1 (has_pminu $I64X2) $false)
1394
- (rule (has_pminu _) (use_sse41))
1395
-
1396
- ;; SSE `smax`.
1397
-
1398
- (rule 1 (lower (has_type (ty_vec128 ty) (smax x y)))
1399
- (if-let $true (has_pmaxs ty))
1400
- (x64_pmaxs ty x y))
1401
-
1402
- (rule (lower (has_type (ty_vec128 ty) (smax x y)))
1403
- (let (
1404
- (x Xmm x)
1405
- (y Xmm y)
1406
- (cmp Xmm (x64_pcmpgt ty x y))
1407
- (x_is_max Xmm (x64_pand cmp x))
1408
- (y_is_max Xmm (x64_pandn cmp y))
1409
- )
1410
- (x64_por x_is_max y_is_max)))
1411
-
1412
- ;; SSE `smin`.
1413
-
1414
- (rule 1 (lower (has_type (ty_vec128 ty) (smin x y)))
1415
- (if-let $true (has_pmins ty))
1416
- (x64_pmins ty x y))
1417
-
1418
- (rule (lower (has_type (ty_vec128 ty) (smin x y)))
1419
- (let (
1420
- (x Xmm x)
1421
- (y Xmm y)
1422
- (cmp Xmm (x64_pcmpgt ty y x))
1423
- (x_is_min Xmm (x64_pand cmp x))
1424
- (y_is_min Xmm (x64_pandn cmp y))
1425
- )
1426
- (x64_por x_is_min y_is_min)))
1427
-
1428
- ;; SSE `umax`.
1429
-
1430
- (rule 2 (lower (has_type (ty_vec128 ty) (umax x y)))
1431
- (if-let $true (has_pmaxu ty))
1432
- (x64_pmaxu ty x y))
1433
-
1434
- ;; If y < x then the saturating subtraction will be zero, otherwise when added
1435
- ;; back to x it'll return y.
1436
- (rule 1 (lower (has_type $I16X8 (umax x y)))
1437
- (let ((x Xmm x))
1438
- (x64_paddw x (x64_psubusw y x))))
1439
-
1440
- ;; Flip the upper bits of each lane so the signed comparison has the same
1441
- ;; result as a signed comparison, and then select the results with the output
1442
- ;; mask. See `pcmpgt` lowering for info on flipping the upper bit.
1443
- (rule (lower (has_type (ty_vec128 ty) (umax x y)))
1444
- (let (
1445
- (x Xmm x)
1446
- (y Xmm y)
1447
- (mask Xmm (flip_high_bit_mask ty))
1448
- (x_masked Xmm (x64_pxor x mask))
1449
- (y_masked Xmm (x64_pxor y mask))
1450
- (cmp Xmm (x64_pcmpgt ty x_masked y_masked))
1451
- (x_is_max Xmm (x64_pand cmp x))
1452
- (y_is_max Xmm (x64_pandn cmp y))
1453
- )
1454
- (x64_por x_is_max y_is_max)))
1455
-
1456
- (decl flip_high_bit_mask (Type) Xmm)
1457
- (rule (flip_high_bit_mask $I16X8)
1458
- (x64_movdqu_load (emit_u128_le_const 0x8000_8000_8000_8000_8000_8000_8000_8000)))
1459
- (rule (flip_high_bit_mask $I32X4)
1460
- (x64_movdqu_load (emit_u128_le_const 0x80000000_80000000_80000000_80000000)))
1461
- (rule (flip_high_bit_mask $I64X2)
1462
- (x64_movdqu_load (emit_u128_le_const 0x8000000000000000_8000000000000000)))
1463
-
1464
- ;; SSE `umin`.
1465
-
1466
- (rule 2 (lower (has_type (ty_vec128 ty) (umin x y)))
1467
- (if-let $true (has_pminu ty))
1468
- (x64_pminu ty x y))
1469
-
1470
- ;; If x < y then the saturating subtraction will be 0. Otherwise if x > y then
1471
- ;; the saturated result, when subtracted again, will go back to `y`.
1472
- (rule 1 (lower (has_type $I16X8 (umin x y)))
1473
- (let ((x Xmm x))
1474
- (x64_psubw x (x64_psubusw x y))))
1475
-
1476
- ;; Same as `umax`, and see `pcmpgt` for docs on flipping the upper bit.
1477
- (rule (lower (has_type (ty_vec128 ty) (umin x y)))
1478
- (let (
1479
- (x Xmm x)
1480
- (y Xmm y)
1481
- (mask Xmm (flip_high_bit_mask ty))
1482
- (x_masked Xmm (x64_pxor x mask))
1483
- (y_masked Xmm (x64_pxor y mask))
1484
- (cmp Xmm (x64_pcmpgt ty y_masked x_masked))
1485
- (x_is_max Xmm (x64_pand cmp x))
1486
- (y_is_max Xmm (x64_pandn cmp y))
1487
- )
1488
- (x64_por x_is_max y_is_max)))
1489
-
1490
- ;;;; Rules for `trap` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1491
-
1492
- (rule (lower (trap code))
1493
- (side_effect (x64_ud2 code)))
1494
-
1495
- ;;;; Rules for `uadd_overflow_trap` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1496
-
1497
- (rule (lower (has_type (fits_in_64 ty) (uadd_overflow_trap a b tc)))
1498
- (with_flags
1499
- (x64_add_with_flags_paired ty a b)
1500
- (trap_if (CC.B) tc)))
1501
-
1502
- ;; Handle lhs immediates/sinkable loads in addition to the automatic rhs
1503
- ;; handling of above.
1504
-
1505
- (rule 1 (lower (has_type (fits_in_64 ty)
1506
- (uadd_overflow_trap (simm32_from_value a) b tc)))
1507
- (with_flags
1508
- (x64_add_with_flags_paired ty b a)
1509
- (trap_if (CC.B) tc)))
1510
-
1511
- (rule 2 (lower (has_type (fits_in_64 ty)
1512
- (uadd_overflow_trap (sinkable_load a) b tc)))
1513
- (with_flags
1514
- (x64_add_with_flags_paired ty b a)
1515
- (trap_if (CC.B) tc)))
1516
-
1517
- ;;;; Rules for `resumable_trap` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1518
-
1519
- (rule (lower (resumable_trap code))
1520
- (side_effect (x64_ud2 code)))
1521
-
1522
- ;;;; Rules for `return` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1523
-
1524
- ;; N.B.: the Ret itself is generated by the ABI.
1525
- (rule (lower (return args))
1526
- (lower_return (range 0 (value_slice_len args)) args))
1527
-
1528
- ;;;; Rules for `icmp` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1529
-
1530
- (rule -2 (lower (icmp cc a @ (value_type (fits_in_64 ty)) b))
1531
- (lower_icmp_bool (emit_cmp cc a b)))
1532
-
1533
- (rule -1 (lower (icmp cc a @ (value_type $I128) b))
1534
- (lower_icmp_bool (emit_cmp cc a b)))
1535
-
1536
- ;; Peephole optimization for `x < 0`, when x is a signed 64 bit value
1537
- (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedLessThan) x @ (value_type $I64) (u64_from_iconst 0))))
1538
- (x64_shr $I64 x (Imm8Reg.Imm8 63)))
1539
-
1540
- ;; Peephole optimization for `0 > x`, when x is a signed 64 bit value
1541
- (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedGreaterThan) (u64_from_iconst 0) x @ (value_type $I64))))
1542
- (x64_shr $I64 x (Imm8Reg.Imm8 63)))
1543
-
1544
- ;; Peephole optimization for `0 <= x`, when x is a signed 64 bit value
1545
- (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedLessThanOrEqual) (u64_from_iconst 0) x @ (value_type $I64))))
1546
- (x64_shr $I64 (x64_not $I64 x) (Imm8Reg.Imm8 63)))
1547
-
1548
- ;; Peephole optimization for `x >= 0`, when x is a signed 64 bit value
1549
- (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedGreaterThanOrEqual) x @ (value_type $I64) (u64_from_iconst 0))))
1550
- (x64_shr $I64 (x64_not $I64 x) (Imm8Reg.Imm8 63)))
1551
-
1552
- ;; Peephole optimization for `x < 0`, when x is a signed 32 bit value
1553
- (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedLessThan) x @ (value_type $I32) (u64_from_iconst 0))))
1554
- (x64_shr $I32 x (Imm8Reg.Imm8 31)))
1555
-
1556
- ;; Peephole optimization for `0 > x`, when x is a signed 32 bit value
1557
- (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedGreaterThan) (u64_from_iconst 0) x @ (value_type $I32))))
1558
- (x64_shr $I32 x (Imm8Reg.Imm8 31)))
1559
-
1560
- ;; Peephole optimization for `0 <= x`, when x is a signed 32 bit value
1561
- (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedLessThanOrEqual) (u64_from_iconst 0) x @ (value_type $I32))))
1562
- (x64_shr $I32 (x64_not $I64 x) (Imm8Reg.Imm8 31)))
1563
-
1564
- ;; Peephole optimization for `x >= 0`, when x is a signed 32 bit value
1565
- (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedGreaterThanOrEqual) x @ (value_type $I32) (u64_from_iconst 0))))
1566
- (x64_shr $I32 (x64_not $I64 x) (Imm8Reg.Imm8 31)))
1567
-
1568
- ;; For XMM-held values, we lower to `PCMP*` instructions, sometimes more than
1569
- ;; one. To note: what is different here about the output values is that each
1570
- ;; lane will be filled with all 1s or all 0s according to the comparison,
1571
- ;; whereas for GPR-held values, the result will be simply 0 or 1 (upper bits
1572
- ;; unset).
1573
- (rule (lower (icmp (IntCC.Equal) a @ (value_type (ty_vec128 ty)) b))
1574
- (x64_pcmpeq ty a b))
1575
-
1576
- ;; To lower a not-equals comparison, we perform an equality comparison
1577
- ;; (PCMPEQ*) and then invert the bits (PXOR with all 1s).
1578
- (rule (lower (icmp (IntCC.NotEqual) a @ (value_type (ty_vec128 ty)) b))
1579
- (let ((checked Xmm (x64_pcmpeq ty a b))
1580
- (all_ones Xmm (vector_all_ones)))
1581
- (x64_pxor checked all_ones)))
1582
-
1583
- ;; SSE `sgt`
1584
-
1585
- (rule (lower (icmp (IntCC.SignedGreaterThan) a @ (value_type (ty_vec128 ty)) b))
1586
- (x64_pcmpgt ty a b))
1587
-
1588
- ;; SSE `slt`
1589
-
1590
- (rule (lower (icmp (IntCC.SignedLessThan) a @ (value_type (ty_vec128 ty)) b))
1591
- (x64_pcmpgt ty b a))
1592
-
1593
- ;; SSE `ugt`
1594
-
1595
- ;; N.B.: we must manually prevent load coalescing operands; the
1596
- ;; register allocator gets confused otherwise.
1597
- (rule 1 (lower (icmp (IntCC.UnsignedGreaterThan) a @ (value_type (ty_vec128 ty)) b))
1598
- (if-let $true (has_pmaxu ty))
1599
- (let ((a Xmm a)
1600
- (b Xmm b)
1601
- (max Xmm (x64_pmaxu ty a b))
1602
- (eq Xmm (x64_pcmpeq ty max b)))
1603
- (x64_pxor eq (vector_all_ones))))
1604
-
1605
- ;; Flip the upper bit of each lane so the result of a signed comparison is the
1606
- ;; same as the result of an unsigned comparison (see docs on `pcmpgt` for more)
1607
- (rule (lower (icmp (IntCC.UnsignedGreaterThan) a @ (value_type (ty_vec128 ty)) b))
1608
- (let ((mask Xmm (flip_high_bit_mask ty))
1609
- (a_masked Xmm (x64_pxor a mask))
1610
- (b_masked Xmm (x64_pxor b mask)))
1611
- (x64_pcmpgt ty a_masked b_masked)))
1612
-
1613
- ;; SSE `ult`
1614
-
1615
- (rule 1 (lower (icmp (IntCC.UnsignedLessThan) a @ (value_type (ty_vec128 ty)) b))
1616
- (if-let $true (has_pminu ty))
1617
- ;; N.B.: see note above.
1618
- (let ((a Xmm a)
1619
- (b Xmm b)
1620
- (min Xmm (x64_pminu ty a b))
1621
- (eq Xmm (x64_pcmpeq ty min b)))
1622
- (x64_pxor eq (vector_all_ones))))
1623
-
1624
- ;; Flip the upper bit of `a` and `b` so the signed comparison result will
1625
- ;; be the same as the unsigned comparison result (see docs on `pcmpgt` for more).
1626
- (rule (lower (icmp (IntCC.UnsignedLessThan) a @ (value_type (ty_vec128 ty)) b))
1627
- (let ((mask Xmm (flip_high_bit_mask ty))
1628
- (a_masked Xmm (x64_pxor a mask))
1629
- (b_masked Xmm (x64_pxor b mask)))
1630
- (x64_pcmpgt ty b_masked a_masked)))
1631
-
1632
- ;; SSE `sge`
1633
-
1634
- ;; Use `pmaxs*` and compare the result to `a` to see if it's `>= b`.
1635
- (rule 1 (lower (icmp (IntCC.SignedGreaterThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1636
- (if-let $true (has_pmaxs ty))
1637
- (x64_pcmpeq ty a (x64_pmaxs ty a b)))
1638
-
1639
- ;; Without `pmaxs*` use a `pcmpgt*` with reversed operands and invert the
1640
- ;; result.
1641
- (rule (lower (icmp (IntCC.SignedGreaterThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1642
- (x64_pxor (x64_pcmpgt ty b a) (vector_all_ones)))
1643
-
1644
- ;; SSE `sle`
1645
-
1646
- ;; With `pmins*` use that and compare the result to `a`.
1647
- (rule 1 (lower (icmp (IntCC.SignedLessThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1648
- (if-let $true (has_pmins ty))
1649
- (x64_pcmpeq ty a (x64_pmins ty a b)))
1650
-
1651
- ;; Without `pmins*` perform a greater-than test and invert the result.
1652
- (rule (lower (icmp (IntCC.SignedLessThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1653
- (x64_pxor (x64_pcmpgt ty a b) (vector_all_ones)))
1654
-
1655
- ;; SSE `uge`
1656
-
1657
- (rule 2 (lower (icmp (IntCC.UnsignedGreaterThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1658
- (if-let $true (has_pmaxu ty))
1659
- (x64_pcmpeq ty a (x64_pmaxu ty a b)))
1660
-
1661
- ;; Perform a saturating subtract of `a` from `b` and if the result is zero then
1662
- ;; `a` is greater or equal.
1663
- (rule 1 (lower (icmp (IntCC.UnsignedGreaterThanOrEqual) a @ (value_type $I16X8) b))
1664
- (x64_pcmpeqw (x64_psubusw b a) (xmm_zero $I16X8)))
1665
-
1666
- ;; Flip the upper bit of each lane so the signed comparison is the same as
1667
- ;; an unsigned one and then invert the result. See docs on `pcmpgt` for why
1668
- ;; flipping the upper bit works.
1669
- (rule (lower (icmp (IntCC.UnsignedGreaterThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1670
- (let (
1671
- (mask Xmm (flip_high_bit_mask ty))
1672
- (a_masked Xmm (x64_pxor a mask))
1673
- (b_masked Xmm (x64_pxor b mask))
1674
- (cmp Xmm (x64_pcmpgt ty b_masked a_masked))
1675
- )
1676
- (x64_pxor cmp (vector_all_ones))))
1677
-
1678
- ;; SSE `ule`
1679
-
1680
- (rule 2 (lower (icmp (IntCC.UnsignedLessThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1681
- (if-let $true (has_pminu ty))
1682
- (x64_pcmpeq ty a (x64_pminu ty a b)))
1683
-
1684
- ;; A saturating subtraction will produce zeros if `a` is less than `b`, so
1685
- ;; compare that result to an all-zeros result to figure out lanes of `a` that
1686
- ;; are <= to the lanes in `b`
1687
- (rule 1 (lower (icmp (IntCC.UnsignedLessThanOrEqual) a @ (value_type $I16X8) b))
1688
- (let ((zeros_if_a_is_min Xmm (x64_psubusw a b)))
1689
- (x64_pcmpeqw zeros_if_a_is_min (xmm_zero $I8X16))))
1690
-
1691
- ;; Flip the upper bit of each lane in `a` and `b` so a signed comparison
1692
- ;; produces the same result as an unsigned comparison. Then test test for `gt`
1693
- ;; and invert the result to get the `le` that is desired here. See docs on
1694
- ;; `pcmpgt` for why flipping the upper bit works.
1695
- (rule (lower (icmp (IntCC.UnsignedLessThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1696
- (let (
1697
- (mask Xmm (flip_high_bit_mask ty))
1698
- (a_masked Xmm (x64_pxor a mask))
1699
- (b_masked Xmm (x64_pxor b mask))
1700
- (cmp Xmm (x64_pcmpgt ty a_masked b_masked))
1701
- )
1702
- (x64_pxor cmp (vector_all_ones))))
1703
-
1704
- ;;;; Rules for `fcmp` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1705
-
1706
- ;; CLIF's `fcmp` instruction always operates on XMM registers--both scalar and
1707
- ;; vector. For the scalar versions, we use the flag-setting behavior of the
1708
- ;; `UCOMIS*` instruction to `SETcc` a 0 or 1 in a GPR register. Note that CLIF's
1709
- ;; `select` uses the same kind of flag-setting behavior but chooses values other
1710
- ;; than 0 or 1.
1711
- ;;
1712
- ;; Checking the result of `UCOMIS*` is unfortunately difficult in some cases
1713
- ;; because we do not have `SETcc` instructions that explicitly check
1714
- ;; simultaneously for the condition (i.e., `eq`, `le`, `gt`, etc.) *and*
1715
- ;; orderedness. Instead, we must check the flags multiple times. The UCOMIS*
1716
- ;; documentation (see Intel's Software Developer's Manual, volume 2, chapter 4)
1717
- ;; is helpful:
1718
- ;; - unordered assigns Z = 1, P = 1, C = 1
1719
- ;; - greater than assigns Z = 0, P = 0, C = 0
1720
- ;; - less than assigns Z = 0, P = 0, C = 1
1721
- ;; - equal assigns Z = 1, P = 0, C = 0
1722
-
1723
- (rule -1 (lower (fcmp cc a @ (value_type (ty_scalar_float ty)) b))
1724
- (lower_fcmp_bool (emit_fcmp cc a b)))
1725
-
1726
- ;; For vector lowerings, we use `CMPP*` instructions with a 3-bit operand that
1727
- ;; determines the comparison to make. Note that comparisons that succeed will
1728
- ;; fill the lane with 1s; comparisons that do not will fill the lane with 0s.
1729
-
1730
- (rule (lower (fcmp (FloatCC.Equal) a @ (value_type (ty_vec128 ty)) b))
1731
- (x64_cmpp ty a b (FcmpImm.Equal)))
1732
- (rule (lower (fcmp (FloatCC.NotEqual) a @ (value_type (ty_vec128 ty)) b))
1733
- (x64_cmpp ty a b (FcmpImm.NotEqual)))
1734
- (rule (lower (fcmp (FloatCC.LessThan) a @ (value_type (ty_vec128 ty)) b))
1735
- (x64_cmpp ty a b (FcmpImm.LessThan)))
1736
- (rule (lower (fcmp (FloatCC.LessThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1737
- (x64_cmpp ty a b (FcmpImm.LessThanOrEqual)))
1738
- (rule (lower (fcmp (FloatCC.Ordered) a @ (value_type (ty_vec128 ty)) b))
1739
- (x64_cmpp ty a b (FcmpImm.Ordered)))
1740
- (rule (lower (fcmp (FloatCC.Unordered) a @ (value_type (ty_vec128 ty)) b))
1741
- (x64_cmpp ty a b (FcmpImm.Unordered)))
1742
- (rule (lower (fcmp (FloatCC.UnorderedOrGreaterThan) a @ (value_type (ty_vec128 ty)) b))
1743
- (x64_cmpp ty a b (FcmpImm.UnorderedOrGreaterThan)))
1744
- (rule (lower (fcmp (FloatCC.UnorderedOrGreaterThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1745
- (x64_cmpp ty a b (FcmpImm.UnorderedOrGreaterThanOrEqual)))
1746
-
1747
- ;; Some vector lowerings rely on flipping the operands and using a reversed
1748
- ;; comparison code.
1749
-
1750
- (rule (lower (fcmp (FloatCC.GreaterThan) a @ (value_type (ty_vec128 ty)) b))
1751
- (x64_cmpp ty b a (FcmpImm.LessThan)))
1752
- (rule (lower (fcmp (FloatCC.GreaterThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1753
- (x64_cmpp ty b a (FcmpImm.LessThanOrEqual)))
1754
- (rule (lower (fcmp (FloatCC.UnorderedOrLessThan) a @ (value_type (ty_vec128 ty)) b))
1755
- (x64_cmpp ty b a (FcmpImm.UnorderedOrGreaterThan)))
1756
- (rule (lower (fcmp (FloatCC.UnorderedOrLessThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1757
- (x64_cmpp ty b a (FcmpImm.UnorderedOrGreaterThanOrEqual)))
1758
-
1759
- ;; Some vector lowerings are simply not supported for certain codes:
1760
- ;; - FloatCC::OrderedNotEqual
1761
- ;; - FloatCC::UnorderedOrEqual
1762
-
1763
- ;;;; Rules for `select` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1764
-
1765
- ;; When a `select` has an `fcmp` as a condition then rely on `emit_fcmp` to
1766
- ;; figure out how to perform the comparison.
1767
- ;;
1768
- ;; Note, though, that the `FloatCC.Equal` requires an "and" to happen for two
1769
- ;; condition codes which isn't the easiest thing to lower to a `cmove`
1770
- ;; instruction. For this reason a `select (fcmp eq ..) ..` is instead
1771
- ;; flipped around to be `select (fcmp ne ..) ..` with all operands reversed.
1772
- ;; This will produce a `FcmpCondResult.OrCondition` which is easier to codegen
1773
- ;; for.
1774
- (rule (lower (has_type ty (select (maybe_uextend (fcmp cc a b)) x y)))
1775
- (lower_select_fcmp ty (emit_fcmp cc a b) x y))
1776
- (rule 1 (lower (has_type ty (select (maybe_uextend (fcmp (FloatCC.Equal) a b)) x y)))
1777
- (lower_select_fcmp ty (emit_fcmp (FloatCC.NotEqual) a b) y x))
1778
-
1779
- (decl lower_select_fcmp (Type FcmpCondResult Value Value) InstOutput)
1780
- (rule (lower_select_fcmp ty (FcmpCondResult.Condition flags cc) x y)
1781
- (with_flags flags (cmove_from_values ty cc x y)))
1782
- (rule (lower_select_fcmp ty (FcmpCondResult.OrCondition flags cc1 cc2) x y)
1783
- (with_flags flags (cmove_or_from_values ty cc1 cc2 x y)))
1784
-
1785
- ;; We also can lower `select`s that depend on an `icmp` test, but more simply
1786
- ;; than the `fcmp` variants above. In these cases, we lower to a `CMP`
1787
- ;; instruction plus a `CMOV`; recall that `cmove_from_values` here may emit more
1788
- ;; than one instruction for certain types (e.g., XMM-held, I128).
1789
-
1790
- (rule (lower (has_type ty (select (maybe_uextend (icmp cc a @ (value_type (fits_in_64 a_ty)) b)) x y)))
1791
- (let ((size OperandSize (raw_operand_size_of_type a_ty)))
1792
- (with_flags (x64_cmp size b a) (cmove_from_values ty cc x y))))
1793
-
1794
- ;; Finally, we lower `select` from a condition value `c`. These rules are meant
1795
- ;; to be the final, default lowerings if no other patterns matched above.
1796
-
1797
- (rule -1 (lower (has_type ty (select c @ (value_type (fits_in_64 a_ty)) x y)))
1798
- (let ((size OperandSize (raw_operand_size_of_type a_ty))
1799
- ;; N.B.: disallow load-op fusion, see above. TODO:
1800
- ;; https://github.com/bytecodealliance/wasmtime/issues/3953.
1801
- (gpr_c Gpr (put_in_gpr c)))
1802
- (with_flags (x64_test size gpr_c gpr_c) (cmove_from_values ty (CC.NZ) x y))))
1803
-
1804
- (rule -2 (lower (has_type ty (select c @ (value_type $I128) x y)))
1805
- (let ((cond_result IcmpCondResult (cmp_zero_i128 (CC.Z) c)))
1806
- (select_icmp cond_result x y)))
1807
-
1808
- ;; Rules for `clz` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1809
-
1810
- ;; If available, we can use a plain lzcnt instruction here. Note no
1811
- ;; special handling is required for zero inputs, because the machine
1812
- ;; instruction does what the CLIF expects for zero, i.e. it returns
1813
- ;; zero.
1814
- (rule 2 (lower
1815
- (has_type (and
1816
- (ty_32_or_64 ty)
1817
- (use_lzcnt $true))
1818
- (clz src)))
1819
- (x64_lzcnt ty src))
1820
-
1821
- (rule 2 (lower
1822
- (has_type (and
1823
- (ty_32_or_64 ty)
1824
- (use_lzcnt $false))
1825
- (clz src)))
1826
- (do_clz ty ty src))
1827
-
1828
- (rule 1 (lower
1829
- (has_type (ty_8_or_16 ty)
1830
- (clz src)))
1831
- (do_clz $I32 ty (extend_to_gpr src $I32 (ExtendKind.Zero))))
1832
-
1833
- (rule 0 (lower
1834
- (has_type $I128
1835
- (clz src)))
1836
- (let ((upper Gpr (do_clz $I64 $I64 (value_regs_get_gpr src 1)))
1837
- (lower Gpr (x64_add $I64
1838
- (do_clz $I64 $I64 (value_regs_get_gpr src 0))
1839
- (RegMemImm.Imm 64)))
1840
- (result_lo Gpr
1841
- (with_flags_reg
1842
- (x64_cmp_imm (OperandSize.Size64) 64 upper)
1843
- (cmove $I64 (CC.NZ) upper lower))))
1844
- (value_regs result_lo (imm $I64 0))))
1845
-
1846
- ;; Implementation helper for clz; operates on 32 or 64-bit units.
1847
- (decl do_clz (Type Type Gpr) Gpr)
1848
- (rule (do_clz ty orig_ty src)
1849
- (let ((highest_bit_index Reg (bsr_or_else ty src (imm_i64 $I64 -1)))
1850
- (bits_minus_1 Reg (imm ty (u64_sub (ty_bits_u64 orig_ty) 1))))
1851
- (x64_sub ty bits_minus_1 highest_bit_index)))
1852
-
1853
- ;; Rules for `ctz` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1854
-
1855
- ;; Analogous to `clz` cases above, but using mirror instructions
1856
- ;; (tzcnt vs lzcnt, bsf vs bsr).
1857
-
1858
- (rule 2 (lower
1859
- (has_type (and
1860
- (ty_32_or_64 ty)
1861
- (use_bmi1 $true))
1862
- (ctz src)))
1863
- (x64_tzcnt ty src))
1864
-
1865
- (rule 2 (lower
1866
- (has_type (and
1867
- (ty_32_or_64 ty)
1868
- (use_bmi1 $false))
1869
- (ctz src)))
1870
- (do_ctz ty ty src))
1871
-
1872
- (rule 1 (lower
1873
- (has_type (ty_8_or_16 ty)
1874
- (ctz src)))
1875
- (do_ctz $I32 ty (extend_to_gpr src $I32 (ExtendKind.Zero))))
1876
-
1877
- (rule 0 (lower
1878
- (has_type $I128
1879
- (ctz src)))
1880
- (let ((lower Gpr (do_ctz $I64 $I64 (value_regs_get_gpr src 0)))
1881
- (upper Gpr (x64_add $I64
1882
- (do_ctz $I64 $I64 (value_regs_get_gpr src 1))
1883
- (RegMemImm.Imm 64)))
1884
- (result_lo Gpr
1885
- (with_flags_reg
1886
- (x64_cmp_imm (OperandSize.Size64) 64 lower)
1887
- (cmove $I64 (CC.Z) upper lower))))
1888
- (value_regs result_lo (imm $I64 0))))
1889
-
1890
- (decl do_ctz (Type Type Gpr) Gpr)
1891
- (rule (do_ctz ty orig_ty src)
1892
- (bsf_or_else ty src (imm $I64 (ty_bits_u64 orig_ty))))
1893
-
1894
- ;; Rules for `popcnt` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1895
-
1896
- (rule 3 (lower
1897
- (has_type (and
1898
- (ty_32_or_64 ty)
1899
- (use_popcnt $true))
1900
- (popcnt src)))
1901
- (x64_popcnt ty src))
1902
-
1903
- (rule 2 (lower
1904
- (has_type (and
1905
- (ty_8_or_16 ty)
1906
- (use_popcnt $true))
1907
- (popcnt src)))
1908
- (x64_popcnt $I32 (extend_to_gpr src $I32 (ExtendKind.Zero))))
1909
-
1910
- (rule 1 (lower
1911
- (has_type (and
1912
- $I128
1913
- (use_popcnt $true))
1914
- (popcnt src)))
1915
- (let ((lo_count Gpr (x64_popcnt $I64 (value_regs_get_gpr src 0)))
1916
- (hi_count Gpr (x64_popcnt $I64 (value_regs_get_gpr src 1))))
1917
- (value_regs (x64_add $I64 lo_count hi_count) (imm $I64 0))))
1918
-
1919
- (rule -1 (lower
1920
- (has_type (ty_32_or_64 ty)
1921
- (popcnt src)))
1922
- (do_popcnt ty src))
1923
-
1924
- (rule -2 (lower
1925
- (has_type (ty_8_or_16 ty)
1926
- (popcnt src)))
1927
- (do_popcnt $I32 (extend_to_gpr src $I32 (ExtendKind.Zero))))
1928
-
1929
- (rule (lower
1930
- (has_type $I128
1931
- (popcnt src)))
1932
- (let ((lo_count Gpr (do_popcnt $I64 (value_regs_get_gpr src 0)))
1933
- (hi_count Gpr (do_popcnt $I64 (value_regs_get_gpr src 1))))
1934
- (value_regs (x64_add $I64 lo_count hi_count) (imm $I64 0))))
1935
-
1936
- ;; Implementation of popcount when we don't nave a native popcount
1937
- ;; instruction.
1938
- (decl do_popcnt (Type Gpr) Gpr)
1939
- (rule (do_popcnt $I64 src)
1940
- (let ((shifted1 Gpr (x64_shr $I64 src (Imm8Reg.Imm8 1)))
1941
- (sevens Gpr (imm $I64 0x7777777777777777))
1942
- (masked1 Gpr (x64_and $I64 shifted1 sevens))
1943
- ;; diff1 := src - ((src >> 1) & 0b0111_0111_0111...)
1944
- (diff1 Gpr (x64_sub $I64 src masked1))
1945
- (shifted2 Gpr (x64_shr $I64 masked1 (Imm8Reg.Imm8 1)))
1946
- (masked2 Gpr (x64_and $I64 shifted2 sevens))
1947
- ;; diff2 := diff1 - ((diff1 >> 1) & 0b0111_0111_0111...)
1948
- (diff2 Gpr (x64_sub $I64 diff1 masked2))
1949
- (shifted3 Gpr (x64_shr $I64 masked2 (Imm8Reg.Imm8 1)))
1950
- (masked3 Gpr (x64_and $I64 shifted3 sevens))
1951
- ;; diff3 := diff2 - ((diff2 >> 1) & 0b0111_0111_0111...)
1952
- ;;
1953
- ;; At this point, each nibble of diff3 is the popcount of
1954
- ;; that nibble. This works because at each step above, we
1955
- ;; are basically subtracting floor(value / 2) from the
1956
- ;; running value; the leftover remainder is 1 if the LSB
1957
- ;; was 1. After three steps, we have (nibble / 8) -- 0 or
1958
- ;; 1 for the MSB of the nibble -- plus three possible
1959
- ;; additions for the three other bits.
1960
- (diff3 Gpr (x64_sub $I64 diff2 masked3))
1961
- ;; Add the two nibbles of each byte together.
1962
- (sum1 Gpr (x64_add $I64
1963
- (x64_shr $I64 diff3 (Imm8Reg.Imm8 4))
1964
- diff3))
1965
- ;; Mask the above sum to have the popcount for each byte
1966
- ;; in the lower nibble of that byte.
1967
- (ofof Gpr (imm $I64 0x0f0f0f0f0f0f0f0f))
1968
- (masked4 Gpr (x64_and $I64 sum1 ofof))
1969
- (ones Gpr (imm $I64 0x0101010101010101))
1970
- ;; Use a multiply to sum all of the bytes' popcounts into
1971
- ;; the top byte. Consider the binomial expansion for the
1972
- ;; top byte: it is the sum of the bytes (masked4 >> 56) *
1973
- ;; 0x01 + (masked4 >> 48) * 0x01 + (masked4 >> 40) * 0x01
1974
- ;; + ... + (masked4 >> 0).
1975
- (mul Gpr (x64_mul $I64 masked4 ones))
1976
- ;; Now take that top byte and return it as the popcount.
1977
- (final Gpr (x64_shr $I64 mul (Imm8Reg.Imm8 56))))
1978
- final))
1979
-
1980
- ;; This is the 32-bit version of the above; the steps for each nibble
1981
- ;; are the same, we just use constants half as wide.
1982
- (rule (do_popcnt $I32 src)
1983
- (let ((shifted1 Gpr (x64_shr $I32 src (Imm8Reg.Imm8 1)))
1984
- (sevens Gpr (imm $I32 0x77777777))
1985
- (masked1 Gpr (x64_and $I32 shifted1 sevens))
1986
- (diff1 Gpr (x64_sub $I32 src masked1))
1987
- (shifted2 Gpr (x64_shr $I32 masked1 (Imm8Reg.Imm8 1)))
1988
- (masked2 Gpr (x64_and $I32 shifted2 sevens))
1989
- (diff2 Gpr (x64_sub $I32 diff1 masked2))
1990
- (shifted3 Gpr (x64_shr $I32 masked2 (Imm8Reg.Imm8 1)))
1991
- (masked3 Gpr (x64_and $I32 shifted3 sevens))
1992
- (diff3 Gpr (x64_sub $I32 diff2 masked3))
1993
- (sum1 Gpr (x64_add $I32
1994
- (x64_shr $I32 diff3 (Imm8Reg.Imm8 4))
1995
- diff3))
1996
- (masked4 Gpr (x64_and $I32 sum1 (RegMemImm.Imm 0x0f0f0f0f)))
1997
- (mul Gpr (x64_mul $I32 masked4 (RegMemImm.Imm 0x01010101)))
1998
- (final Gpr (x64_shr $I32 mul (Imm8Reg.Imm8 24))))
1999
- final))
2000
-
2001
-
2002
- (rule 1 (lower (has_type (and
2003
- $I8X16
2004
- (avx512vl_enabled $true)
2005
- (avx512bitalg_enabled $true))
2006
- (popcnt src)))
2007
- (x64_vpopcntb src))
2008
-
2009
-
2010
-
2011
- ;; For SSE 4.2 we use Mula's algorithm (https://arxiv.org/pdf/1611.07612.pdf):
2012
- ;;
2013
- ;; __m128i count_bytes ( __m128i v) {
2014
- ;; __m128i lookup = _mm_setr_epi8(0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4);
2015
- ;; __m128i low_mask = _mm_set1_epi8 (0x0f);
2016
- ;; __m128i lo = _mm_and_si128 (v, low_mask);
2017
- ;; __m128i hi = _mm_and_si128 (_mm_srli_epi16 (v, 4), low_mask);
2018
- ;; __m128i cnt1 = _mm_shuffle_epi8 (lookup, lo);
2019
- ;; __m128i cnt2 = _mm_shuffle_epi8 (lookup, hi);
2020
- ;; return _mm_add_epi8 (cnt1, cnt2);
2021
- ;; }
2022
- ;;
2023
- ;; Details of the above algorithm can be found in the reference noted above, but the basics
2024
- ;; are to create a lookup table that pre populates the popcnt values for each number [0,15].
2025
- ;; The algorithm uses shifts to isolate 4 bit sections of the vector, pshufb as part of the
2026
- ;; lookup process, and adds together the results.
2027
- ;;
2028
- ;; __m128i lookup = _mm_setr_epi8(0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4);
2029
-
2030
- (decl popcount_4bit_table () VCodeConstant) ;; bits-per-nibble table `lookup` above
2031
- (extern constructor popcount_4bit_table popcount_4bit_table)
2032
-
2033
- (decl popcount_low_mask () VCodeConstant) ;; mask for low nibbles: 0x0f * 16
2034
- (extern constructor popcount_low_mask popcount_low_mask)
2035
-
2036
- (rule (lower (has_type $I8X16
2037
- (popcnt src)))
2038
- (let ((nibble_table_const VCodeConstant (popcount_4bit_table))
2039
- (low_mask XmmMem (popcount_low_mask))
2040
- (low_nibbles Xmm (sse_and $I8X16 src low_mask))
2041
- ;; Note that this is a 16x8 shift, but that's OK; we mask
2042
- ;; off anything that traverses from one byte to the next
2043
- ;; with the low_mask below.
2044
- (shifted_src Xmm (x64_psrlw src (xmi_imm 4)))
2045
- (high_nibbles Xmm (sse_and $I8X16 shifted_src low_mask))
2046
- (lookup Xmm (x64_xmm_load_const $I8X16 (popcount_4bit_table)))
2047
- (bit_counts_low Xmm (x64_pshufb lookup low_nibbles))
2048
- (bit_counts_high Xmm (x64_pshufb lookup high_nibbles)))
2049
- (x64_paddb bit_counts_low bit_counts_high)))
2050
-
2051
- ;; Rules for `bitrev` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2052
-
2053
- (rule (lower (has_type $I8 (bitrev src)))
2054
- (do_bitrev8 $I32 src))
2055
-
2056
- (rule (lower (has_type $I16 (bitrev src)))
2057
- (do_bitrev16 $I32 src))
2058
-
2059
- (rule (lower (has_type $I32 (bitrev src)))
2060
- (do_bitrev32 $I32 src))
2061
-
2062
- (rule (lower (has_type $I64 (bitrev src)))
2063
- (do_bitrev64 $I64 src))
2064
-
2065
- (rule (lower (has_type $I128 (bitrev src)))
2066
- (value_regs
2067
- (do_bitrev64 $I64 (value_regs_get_gpr src 1))
2068
- (do_bitrev64 $I64 (value_regs_get_gpr src 0))))
2069
-
2070
- (decl do_bitrev8 (Type Gpr) Gpr)
2071
- (rule (do_bitrev8 ty src)
2072
- (let ((tymask u64 (ty_mask ty))
2073
- (mask1 Gpr (imm ty (u64_and tymask 0x5555555555555555)))
2074
- (lo1 Gpr (x64_and ty src mask1))
2075
- (hi1 Gpr (x64_and ty (x64_shr ty src (Imm8Reg.Imm8 1)) mask1))
2076
- (swap1 Gpr (x64_or ty
2077
- (x64_shl ty lo1 (Imm8Reg.Imm8 1))
2078
- hi1))
2079
- (mask2 Gpr (imm ty (u64_and tymask 0x3333333333333333)))
2080
- (lo2 Gpr (x64_and ty swap1 mask2))
2081
- (hi2 Gpr (x64_and ty (x64_shr ty swap1 (Imm8Reg.Imm8 2)) mask2))
2082
- (swap2 Gpr (x64_or ty
2083
- (x64_shl ty lo2 (Imm8Reg.Imm8 2))
2084
- hi2))
2085
- (mask4 Gpr (imm ty (u64_and tymask 0x0f0f0f0f0f0f0f0f)))
2086
- (lo4 Gpr (x64_and ty swap2 mask4))
2087
- (hi4 Gpr (x64_and ty (x64_shr ty swap2 (Imm8Reg.Imm8 4)) mask4))
2088
- (swap4 Gpr (x64_or ty
2089
- (x64_shl ty lo4 (Imm8Reg.Imm8 4))
2090
- hi4)))
2091
- swap4))
2092
-
2093
- (decl do_bitrev16 (Type Gpr) Gpr)
2094
- (rule (do_bitrev16 ty src)
2095
- (let ((src_ Gpr (do_bitrev8 ty src))
2096
- (tymask u64 (ty_mask ty))
2097
- (mask8 Gpr (imm ty (u64_and tymask 0x00ff00ff00ff00ff)))
2098
- (lo8 Gpr (x64_and ty src_ mask8))
2099
- (hi8 Gpr (x64_and ty (x64_shr ty src_ (Imm8Reg.Imm8 8)) mask8))
2100
- (swap8 Gpr (x64_or ty
2101
- (x64_shl ty lo8 (Imm8Reg.Imm8 8))
2102
- hi8)))
2103
- swap8))
2104
-
2105
- (decl do_bitrev32 (Type Gpr) Gpr)
2106
- (rule (do_bitrev32 ty src)
2107
- (let ((src_ Gpr (do_bitrev16 ty src))
2108
- (tymask u64 (ty_mask ty))
2109
- (mask16 Gpr (imm ty (u64_and tymask 0x0000ffff0000ffff)))
2110
- (lo16 Gpr (x64_and ty src_ mask16))
2111
- (hi16 Gpr (x64_and ty (x64_shr ty src_ (Imm8Reg.Imm8 16)) mask16))
2112
- (swap16 Gpr (x64_or ty
2113
- (x64_shl ty lo16 (Imm8Reg.Imm8 16))
2114
- hi16)))
2115
- swap16))
2116
-
2117
- (decl do_bitrev64 (Type Gpr) Gpr)
2118
- (rule (do_bitrev64 ty @ $I64 src)
2119
- (let ((src_ Gpr (do_bitrev32 ty src))
2120
- (mask32 Gpr (imm ty 0xffffffff))
2121
- (lo32 Gpr (x64_and ty src_ mask32))
2122
- (hi32 Gpr (x64_shr ty src_ (Imm8Reg.Imm8 32)))
2123
- (swap32 Gpr (x64_or ty
2124
- (x64_shl ty lo32 (Imm8Reg.Imm8 32))
2125
- hi32)))
2126
- swap32))
2127
-
2128
- ;; Rules for `bswap` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2129
-
2130
- ;; x64 bswap instruction is only for 32- or 64-bit swaps
2131
- ;; implement the 16-bit swap as a rotl by 8
2132
- (rule (lower (has_type $I16 (bswap src)))
2133
- (x64_rotl $I16 src (Imm8Reg.Imm8 8)))
2134
-
2135
- (rule (lower (has_type $I32 (bswap src)))
2136
- (x64_bswap $I32 src))
2137
-
2138
- (rule (lower (has_type $I64 (bswap src)))
2139
- (x64_bswap $I64 src))
2140
-
2141
- (rule (lower (has_type $I128 (bswap src)))
2142
- (value_regs
2143
- (x64_bswap $I64 (value_regs_get_gpr src 1))
2144
- (x64_bswap $I64 (value_regs_get_gpr src 0))))
2145
-
2146
- ;; Rules for `is_null` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2147
-
2148
- ;; Null references are represented by the constant value `0`.
2149
- (rule (lower (is_null src @ (value_type $R64)))
2150
- (with_flags
2151
- (x64_cmp_imm (OperandSize.Size64) 0 src)
2152
- (x64_setcc (CC.Z))))
2153
-
2154
- ;; Rules for `is_invalid` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2155
-
2156
- ;; Invalid references are represented by the constant value `-1`.
2157
- (rule (lower (is_invalid src @ (value_type $R64)))
2158
- (with_flags
2159
- (x64_cmp_imm (OperandSize.Size64) 0xffffffff src) ;; simm32 0xffff_ffff is sign-extended to -1.
2160
- (x64_setcc (CC.Z))))
2161
-
2162
-
2163
- ;; Rules for `uextend` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2164
-
2165
- ;; I{8,16,32,64} -> I128.
2166
- (rule (lower (has_type $I128 (uextend src)))
2167
- (value_regs (extend_to_gpr src $I64 (ExtendKind.Zero)) (imm $I64 0)))
2168
-
2169
- ;; I{8,16,32} -> I64.
2170
- (rule (lower (has_type $I64 (uextend src)))
2171
- (extend_to_gpr src $I64 (ExtendKind.Zero)))
2172
-
2173
- ;; I{8,16} -> I32
2174
- ;; I8 -> I16
2175
- (rule -1 (lower (has_type (fits_in_32 _) (uextend src)))
2176
- (extend_to_gpr src $I32 (ExtendKind.Zero)))
2177
-
2178
- ;; Rules for `sextend` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2179
-
2180
- ;; I{8,16,32} -> I128.
2181
- ;;
2182
- ;; Produce upper 64 bits sign-extended from lower 64: shift right by
2183
- ;; 63 bits to spread the sign bit across the result.
2184
- (rule (lower (has_type $I128 (sextend src)))
2185
- (let ((lo Gpr (extend_to_gpr src $I64 (ExtendKind.Sign)))
2186
- (hi Gpr (x64_sar $I64 lo (Imm8Reg.Imm8 63))))
2187
- (value_regs lo hi)))
2188
-
2189
- ;; I{8,16,32} -> I64.
2190
- (rule (lower (has_type $I64 (sextend src)))
2191
- (extend_to_gpr src $I64 (ExtendKind.Sign)))
2192
-
2193
- ;; I{8,16} -> I32
2194
- ;; I8 -> I16
2195
- (rule -1 (lower (has_type (fits_in_32 _) (sextend src)))
2196
- (extend_to_gpr src $I32 (ExtendKind.Sign)))
2197
-
2198
- ;; Rules for `ireduce` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2199
-
2200
- ;; T -> T is always a no-op, even I128 -> I128.
2201
- (rule (lower (has_type ty (ireduce src @ (value_type ty))))
2202
- src)
2203
-
2204
- ;; T -> I{64,32,16,8}: We can simply pass through the value: values
2205
- ;; are always stored with high bits undefined, so we can just leave
2206
- ;; them be.
2207
- (rule 1 (lower (has_type (fits_in_64 ty) (ireduce src)))
2208
- (value_regs_get_gpr src 0))
2209
-
2210
- ;; Rules for `debugtrap` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2211
-
2212
- (rule (lower (debugtrap))
2213
- (side_effect (x64_hlt)))
2214
-
2215
- ;; Rules for `x86_pmaddubsw` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2216
-
2217
- (rule (lower (has_type $I16X8 (x86_pmaddubsw x y)))
2218
- (x64_pmaddubsw y x))
2219
-
2220
- ;; Rules for `fadd` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2221
-
2222
- (rule (lower (has_type $F32 (fadd x y)))
2223
- (x64_addss x y))
2224
- (rule (lower (has_type $F64 (fadd x y)))
2225
- (x64_addsd x y))
2226
- (rule (lower (has_type $F32X4 (fadd x y)))
2227
- (x64_addps x y))
2228
- (rule (lower (has_type $F64X2 (fadd x y)))
2229
- (x64_addpd x y))
2230
-
2231
- ;; The above rules automatically sink loads for rhs operands, so additionally
2232
- ;; add rules for sinking loads with lhs operands.
2233
- (rule 1 (lower (has_type $F32 (fadd (sinkable_load x) y)))
2234
- (x64_addss y x))
2235
- (rule 1 (lower (has_type $F64 (fadd (sinkable_load x) y)))
2236
- (x64_addsd y x))
2237
- (rule 1 (lower (has_type $F32X4 (fadd (sinkable_load x) y)))
2238
- (x64_addps y x))
2239
- (rule 1 (lower (has_type $F64X2 (fadd (sinkable_load x) y)))
2240
- (x64_addpd y x))
2241
-
2242
- ;; Rules for `fsub` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2243
-
2244
- (rule (lower (has_type $F32 (fsub x y)))
2245
- (x64_subss x y))
2246
- (rule (lower (has_type $F64 (fsub x y)))
2247
- (x64_subsd x y))
2248
- (rule (lower (has_type $F32X4 (fsub x y)))
2249
- (x64_subps x y))
2250
- (rule (lower (has_type $F64X2 (fsub x y)))
2251
- (x64_subpd x y))
2252
-
2253
- ;; Rules for `fmul` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2254
-
2255
- (rule (lower (has_type $F32 (fmul x y)))
2256
- (x64_mulss x y))
2257
- (rule (lower (has_type $F64 (fmul x y)))
2258
- (x64_mulsd x y))
2259
- (rule (lower (has_type $F32X4 (fmul x y)))
2260
- (x64_mulps x y))
2261
- (rule (lower (has_type $F64X2 (fmul x y)))
2262
- (x64_mulpd x y))
2263
-
2264
- ;; The above rules automatically sink loads for rhs operands, so additionally
2265
- ;; add rules for sinking loads with lhs operands.
2266
- (rule 1 (lower (has_type $F32 (fmul (sinkable_load x) y)))
2267
- (x64_mulss y x))
2268
- (rule 1 (lower (has_type $F64 (fmul (sinkable_load x) y)))
2269
- (x64_mulsd y x))
2270
- (rule 1 (lower (has_type $F32X4 (fmul (sinkable_load x) y)))
2271
- (x64_mulps y x))
2272
- (rule 1 (lower (has_type $F64X2 (fmul (sinkable_load x) y)))
2273
- (x64_mulpd y x))
2274
-
2275
- ;; Rules for `fdiv` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2276
-
2277
- (rule (lower (has_type $F32 (fdiv x y)))
2278
- (x64_divss x y))
2279
- (rule (lower (has_type $F64 (fdiv x y)))
2280
- (x64_divsd x y))
2281
- (rule (lower (has_type $F32X4 (fdiv x y)))
2282
- (x64_divps x y))
2283
- (rule (lower (has_type $F64X2 (fdiv x y)))
2284
- (x64_divpd x y))
2285
-
2286
- ;; Rules for `sqrt` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2287
- (rule (lower (has_type $F32 (sqrt x)))
2288
- (x64_sqrtss x))
2289
- (rule (lower (has_type $F64 (sqrt x)))
2290
- (x64_sqrtsd x))
2291
- (rule (lower (has_type $F32X4 (sqrt x)))
2292
- (x64_sqrtps x))
2293
- (rule (lower (has_type $F64X2 (sqrt x)))
2294
- (x64_sqrtpd x))
2295
-
2296
- ;; Rules for `fpromote` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2297
- (rule (lower (has_type $F64 (fpromote x)))
2298
- (x64_cvtss2sd x))
2299
-
2300
- ;; Rules for `fvpromote` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2301
- (rule (lower (has_type $F64X2 (fvpromote_low x)))
2302
- (x64_cvtps2pd (put_in_xmm x)))
2303
-
2304
- ;; Rules for `fdemote` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2305
- (rule (lower (has_type $F32 (fdemote x)))
2306
- (x64_cvtsd2ss x))
2307
-
2308
- ;; Rules for `fvdemote` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2309
- (rule (lower (has_type $F32X4 (fvdemote x)))
2310
- (x64_cvtpd2ps x))
2311
-
2312
- ;; Rules for `fmin` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2313
-
2314
- (rule (lower (has_type $F32 (fmin x y)))
2315
- (xmm_min_max_seq $F32 $true x y))
2316
- (rule (lower (has_type $F64 (fmin x y)))
2317
- (xmm_min_max_seq $F64 $true x y))
2318
-
2319
- ;; Vector-typed version. We don't use single pseudoinstructions as
2320
- ;; above, because we don't need to generate a mini-CFG. Instead, we
2321
- ;; perform a branchless series of operations.
2322
- ;;
2323
- ;; We cannot simply use native min instructions (minps, minpd) because
2324
- ;; NaN handling is different per CLIF semantics than on
2325
- ;; x86. Specifically, if an argument is NaN, or the arguments are both
2326
- ;; zero but of opposite signs, then the x86 instruction always
2327
- ;; produces the second argument. However, per CLIF semantics, we
2328
- ;; require that fmin(NaN, _) = fmin(_, NaN) = NaN, and fmin(+0, -0) =
2329
- ;; fmin(-0, +0) = -0.
2330
-
2331
- (rule (lower (has_type $F32X4 (fmin x y)))
2332
- ;; Compute min(x, y) and min(y, x) with native
2333
- ;; instructions. These will differ in one of the edge cases
2334
- ;; above that we have to handle properly. (Conversely, if they
2335
- ;; don't differ, then the native instruction's answer is the
2336
- ;; right one per CLIF semantics.)
2337
- (let ((min1 Xmm (x64_minps x y))
2338
- (min2 Xmm (x64_minps y x))
2339
- ;; Compute the OR of the two. Note that NaNs have an
2340
- ;; exponent field of all-ones (0xFF for F32), so if either
2341
- ;; result is a NaN, this OR will be. And if either is a
2342
- ;; zero (which has an exponent of 0 and mantissa of 0),
2343
- ;; this captures a sign-bit of 1 (negative) if either
2344
- ;; input is negative.
2345
- ;;
2346
- ;; In the case where we don't have a +/-0 mismatch or
2347
- ;; NaNs, then `min1` and `min2` are equal and `min_or` is
2348
- ;; the correct minimum.
2349
- (min_or Xmm (x64_orps min1 min2))
2350
- ;; "compare unordered" produces a true mask (all ones) in
2351
- ;; a given lane if the min is a NaN. We use this to
2352
- ;; generate a mask to ensure quiet NaNs.
2353
- (is_nan_mask Xmm (x64_cmpps min_or min2 (FcmpImm.Unordered)))
2354
- ;; OR in the NaN mask.
2355
- (min_or_2 Xmm (x64_orps min_or is_nan_mask))
2356
- ;; Shift the NaN mask down so that it covers just the
2357
- ;; fraction below the NaN signalling bit; we'll use this
2358
- ;; to mask off non-canonical NaN payloads.
2359
- ;;
2360
- ;; All-ones for NaN, shifted down to leave 10 top bits (1
2361
- ;; sign, 8 exponent, 1 QNaN bit that must remain set)
2362
- ;; cleared.
2363
- (nan_fraction_mask Xmm (x64_psrld is_nan_mask (xmi_imm 10)))
2364
- ;; Do a NAND, so that we retain every bit not set in
2365
- ;; `nan_fraction_mask`. This mask will be all zeroes (so
2366
- ;; we retain every bit) in non-NaN cases, and will have
2367
- ;; ones (so we clear those bits) in NaN-payload bits
2368
- ;; otherwise.
2369
- (final Xmm (x64_andnps nan_fraction_mask min_or_2)))
2370
- final))
2371
-
2372
- ;; Likewise for F64 lanes, except that the right-shift is by 13 bits
2373
- ;; (1 sign, 11 exponent, 1 QNaN bit).
2374
- (rule (lower (has_type $F64X2 (fmin x y)))
2375
- (let ((min1 Xmm (x64_minpd x y))
2376
- (min2 Xmm (x64_minpd y x))
2377
- (min_or Xmm (x64_orpd min1 min2))
2378
- (is_nan_mask Xmm (x64_cmppd min1 min2 (FcmpImm.Unordered)))
2379
- (min_or_2 Xmm (x64_orpd min_or is_nan_mask))
2380
- (nan_fraction_mask Xmm (x64_psrlq is_nan_mask (xmi_imm 13)))
2381
- (final Xmm (x64_andnpd nan_fraction_mask min_or_2)))
2382
- final))
2383
-
2384
- ;; Rules for `fmax` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2385
-
2386
- (rule (lower (has_type $F32 (fmax x y)))
2387
- (xmm_min_max_seq $F32 $false x y))
2388
- (rule (lower (has_type $F64 (fmax x y)))
2389
- (xmm_min_max_seq $F64 $false x y))
2390
-
2391
- ;; The vector version of fmax here is a dual to the fmin sequence
2392
- ;; above, almost, with a few differences.
2393
-
2394
- (rule (lower (has_type $F32X4 (fmax x y)))
2395
- ;; Compute max(x, y) and max(y, x) with native
2396
- ;; instructions. These will differ in one of the edge cases
2397
- ;; above that we have to handle properly. (Conversely, if they
2398
- ;; don't differ, then the native instruction's answer is the
2399
- ;; right one per CLIF semantics.)
2400
- (let ((max1 Xmm (x64_maxps x y))
2401
- (max2 Xmm (x64_maxps y x))
2402
- ;; Compute the XOR of the two maxima. In the case
2403
- ;; where we don't have a +/-0 mismatch or NaNs, then
2404
- ;; `min1` and `min2` are equal and this XOR is zero.
2405
- (max_xor Xmm (x64_xorps max1 max2))
2406
- ;; OR the XOR into one of the original maxima. If they are
2407
- ;; equal, this does nothing. If max2 was NaN, its exponent
2408
- ;; bits were all-ones, so the xor's exponent bits were the
2409
- ;; complement of max1, and the OR of max1 and max_xor has
2410
- ;; an all-ones exponent (is a NaN). If max1 was NaN, then
2411
- ;; its exponent bits were already all-ones, so the OR will
2412
- ;; be a NaN as well.
2413
- (max_blended_nan Xmm (x64_orps max1 max_xor))
2414
- ;; Subtract the XOR. This ensures that if we had +0 and
2415
- ;; -0, we end up with +0.
2416
- (max_blended_nan_positive Xmm (x64_subps max_blended_nan max_xor))
2417
- ;; "compare unordered" produces a true mask (all ones) in
2418
- ;; a given lane if the min is a NaN. We use this to
2419
- ;; generate a mask to ensure quiet NaNs.
2420
- (is_nan_mask Xmm (x64_cmpps max_blended_nan max_blended_nan (FcmpImm.Unordered)))
2421
- ;; Shift the NaN mask down so that it covers just the
2422
- ;; fraction below the NaN signalling bit; we'll use this
2423
- ;; to mask off non-canonical NaN payloads.
2424
- ;;
2425
- ;; All-ones for NaN, shifted down to leave 10 top bits (1
2426
- ;; sign, 8 exponent, 1 QNaN bit that must remain set)
2427
- ;; cleared.
2428
- (nan_fraction_mask Xmm (x64_psrld is_nan_mask (xmi_imm 10)))
2429
- ;; Do a NAND, so that we retain every bit not set in
2430
- ;; `nan_fraction_mask`. This mask will be all zeroes (so
2431
- ;; we retain every bit) in non-NaN cases, and will have
2432
- ;; ones (so we clear those bits) in NaN-payload bits
2433
- ;; otherwise.
2434
- (final Xmm (x64_andnps nan_fraction_mask max_blended_nan_positive)))
2435
- final))
2436
-
2437
- (rule (lower (has_type $F64X2 (fmax x y)))
2438
- ;; Compute max(x, y) and max(y, x) with native
2439
- ;; instructions. These will differ in one of the edge cases
2440
- ;; above that we have to handle properly. (Conversely, if they
2441
- ;; don't differ, then the native instruction's answer is the
2442
- ;; right one per CLIF semantics.)
2443
- (let ((max1 Xmm (x64_maxpd x y))
2444
- (max2 Xmm (x64_maxpd y x))
2445
- ;; Compute the XOR of the two maxima. In the case
2446
- ;; where we don't have a +/-0 mismatch or NaNs, then
2447
- ;; `min1` and `min2` are equal and this XOR is zero.
2448
- (max_xor Xmm (x64_xorpd max1 max2))
2449
- ;; OR the XOR into one of the original maxima. If they are
2450
- ;; equal, this does nothing. If max2 was NaN, its exponent
2451
- ;; bits were all-ones, so the xor's exponent bits were the
2452
- ;; complement of max1, and the OR of max1 and max_xor has
2453
- ;; an all-ones exponent (is a NaN). If max1 was NaN, then
2454
- ;; its exponent bits were already all-ones, so the OR will
2455
- ;; be a NaN as well.
2456
- (max_blended_nan Xmm (x64_orpd max1 max_xor))
2457
- ;; Subtract the XOR. This ensures that if we had +0 and
2458
- ;; -0, we end up with +0.
2459
- (max_blended_nan_positive Xmm (x64_subpd max_blended_nan max_xor))
2460
- ;; `cmpps` with predicate index `3` is `cmpunordps`, or
2461
- ;; "compare unordered": it produces a true mask (all ones)
2462
- ;; in a given lane if the min is a NaN. We use this to
2463
- ;; generate a mask to ensure quiet NaNs.
2464
- (is_nan_mask Xmm (x64_cmppd max_blended_nan max_blended_nan (FcmpImm.Unordered)))
2465
- ;; Shift the NaN mask down so that it covers just the
2466
- ;; fraction below the NaN signalling bit; we'll use this
2467
- ;; to mask off non-canonical NaN payloads.
2468
- ;;
2469
- ;; All-ones for NaN, shifted down to leave 13 top bits (1
2470
- ;; sign, 11 exponent, 1 QNaN bit that must remain set)
2471
- ;; cleared.
2472
- (nan_fraction_mask Xmm (x64_psrlq is_nan_mask (xmi_imm 13)))
2473
- ;; Do a NAND, so that we retain every bit not set in
2474
- ;; `nan_fraction_mask`. This mask will be all zeroes (so
2475
- ;; we retain every bit) in non-NaN cases, and will have
2476
- ;; ones (so we clear those bits) in NaN-payload bits
2477
- ;; otherwise.
2478
- (final Xmm (x64_andnpd nan_fraction_mask max_blended_nan_positive)))
2479
- final))
2480
-
2481
- ;; Rules for `fmin_pseudo` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2482
-
2483
- (rule (lower (has_type $F32 (fmin_pseudo x y)))
2484
- (x64_minss y x))
2485
- (rule (lower (has_type $F64 (fmin_pseudo x y)))
2486
- (x64_minsd y x))
2487
- (rule (lower (has_type $F32X4 (fmin_pseudo x y)))
2488
- (x64_minps y x))
2489
- (rule (lower (has_type $F64X2 (fmin_pseudo x y)))
2490
- (x64_minpd y x))
2491
-
2492
- ;; Rules for `fmax_pseudo` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2493
-
2494
- (rule (lower (has_type $F32 (fmax_pseudo x y)))
2495
- (x64_maxss y x))
2496
- (rule (lower (has_type $F64 (fmax_pseudo x y)))
2497
- (x64_maxsd y x))
2498
- (rule (lower (has_type $F32X4 (fmax_pseudo x y)))
2499
- (x64_maxps y x))
2500
- (rule (lower (has_type $F64X2 (fmax_pseudo x y)))
2501
- (x64_maxpd y x))
2502
-
2503
- ;; Rules for `fma` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2504
-
2505
- ;; Base case for fma is to call out to one of two libcalls. For vectors they
2506
- ;; need to be decomposed, handle each element individually, and then recomposed.
2507
-
2508
- (rule (lower (has_type $F32 (fma x y z)))
2509
- (libcall_3 (LibCall.FmaF32) x y z))
2510
- (rule (lower (has_type $F64 (fma x y z)))
2511
- (libcall_3 (LibCall.FmaF64) x y z))
2512
-
2513
- (rule (lower (has_type $F32X4 (fma x y z)))
2514
- (let (
2515
- (x Xmm (put_in_xmm x))
2516
- (y Xmm (put_in_xmm y))
2517
- (z Xmm (put_in_xmm z))
2518
- (x0 Xmm (libcall_3 (LibCall.FmaF32) x y z))
2519
- (x1 Xmm (libcall_3 (LibCall.FmaF32)
2520
- (x64_pshufd x 1)
2521
- (x64_pshufd y 1)
2522
- (x64_pshufd z 1)))
2523
- (x2 Xmm (libcall_3 (LibCall.FmaF32)
2524
- (x64_pshufd x 2)
2525
- (x64_pshufd y 2)
2526
- (x64_pshufd z 2)))
2527
- (x3 Xmm (libcall_3 (LibCall.FmaF32)
2528
- (x64_pshufd x 3)
2529
- (x64_pshufd y 3)
2530
- (x64_pshufd z 3)))
2531
-
2532
- (tmp Xmm (vec_insert_lane $F32X4 x0 x1 1))
2533
- (tmp Xmm (vec_insert_lane $F32X4 tmp x2 2))
2534
- (tmp Xmm (vec_insert_lane $F32X4 tmp x3 3))
2535
- )
2536
- tmp))
2537
- (rule (lower (has_type $F64X2 (fma x y z)))
2538
- (let (
2539
- (x Xmm (put_in_xmm x))
2540
- (y Xmm (put_in_xmm y))
2541
- (z Xmm (put_in_xmm z))
2542
- (x0 Xmm (libcall_3 (LibCall.FmaF64) x y z))
2543
- (x1 Xmm (libcall_3 (LibCall.FmaF64)
2544
- (x64_pshufd x 0xee)
2545
- (x64_pshufd y 0xee)
2546
- (x64_pshufd z 0xee)))
2547
- )
2548
- (vec_insert_lane $F64X2 x0 x1 1)))
2549
-
2550
-
2551
- ;; Special case for when the `fma` feature is active and a native instruction
2552
- ;; can be used.
2553
- (rule 1 (lower (has_type ty (fma x y z)))
2554
- (if-let $true (use_fma))
2555
- (fmadd ty x y z))
2556
-
2557
- (decl fmadd (Type Value Value Value) Xmm)
2558
- (decl fnmadd (Type Value Value Value) Xmm)
2559
-
2560
- ;; Base case. Note that this will automatically sink a load with `z`, the value
2561
- ;; to add.
2562
- (rule (fmadd ty x y z) (x64_vfmadd213 ty x y z))
2563
-
2564
- ;; Allow sinking loads with one of the two values being multiplied in addition
2565
- ;; to the value being added. Note that both x and y can be sunk here due to
2566
- ;; multiplication being commutative.
2567
- (rule 1 (fmadd ty (sinkable_load x) y z) (x64_vfmadd132 ty y z x))
2568
- (rule 2 (fmadd ty x (sinkable_load y) z) (x64_vfmadd132 ty x z y))
2569
-
2570
- ;; If one of the values being multiplied is negated then use a `vfnmadd*`
2571
- ;; instruction instead
2572
- (rule 3 (fmadd ty (fneg x) y z) (fnmadd ty x y z))
2573
- (rule 4 (fmadd ty x (fneg y) z) (fnmadd ty x y z))
2574
-
2575
- (rule (fnmadd ty x y z) (x64_vfnmadd213 ty x y z))
2576
- (rule 1 (fnmadd ty (sinkable_load x) y z) (x64_vfnmadd132 ty y z x))
2577
- (rule 2 (fnmadd ty x (sinkable_load y) z) (x64_vfnmadd132 ty x z y))
2578
-
2579
- ;; Like `fmadd` if one argument is negated switch which one is being codegen'd
2580
- (rule 3 (fnmadd ty (fneg x) y z) (fmadd ty x y z))
2581
- (rule 4 (fnmadd ty x (fneg y) z) (fmadd ty x y z))
2582
-
2583
- ;; Rules for `load*` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2584
-
2585
- ;; In order to load a value from memory to a GPR register, we may need to extend
2586
- ;; the loaded value from 8-, 16-, or 32-bits to this backend's expected GPR
2587
- ;; width: 64 bits. Note that `ext_mode` will load 1-bit types (booleans) as
2588
- ;; 8-bit loads.
2589
- ;;
2590
- ;; By default, we zero-extend all sub-64-bit loads to a GPR.
2591
- (rule -4 (lower (has_type (and (fits_in_32 ty) (is_gpr_type _)) (load flags address offset)))
2592
- (x64_movzx (ext_mode (ty_bits_u16 ty) 64) (to_amode flags address offset)))
2593
- ;; But if we know that both the `from` and `to` are 64 bits, we simply load with
2594
- ;; no extension.
2595
- (rule -1 (lower (has_type (ty_int_ref_64 ty) (load flags address offset)))
2596
- (x64_mov (to_amode flags address offset)))
2597
- ;; Also, certain scalar loads have a specific `from` width and extension kind
2598
- ;; (signed -> `sx`, zeroed -> `zx`). We overwrite the high bits of the 64-bit
2599
- ;; GPR even if the `to` type is smaller (e.g., 16-bits).
2600
- (rule (lower (has_type (is_gpr_type ty) (uload8 flags address offset)))
2601
- (x64_movzx (ExtMode.BQ) (to_amode flags address offset)))
2602
- (rule (lower (has_type (is_gpr_type ty) (sload8 flags address offset)))
2603
- (x64_movsx (ExtMode.BQ) (to_amode flags address offset)))
2604
- (rule (lower (has_type (is_gpr_type ty) (uload16 flags address offset)))
2605
- (x64_movzx (ExtMode.WQ) (to_amode flags address offset)))
2606
- (rule (lower (has_type (is_gpr_type ty) (sload16 flags address offset)))
2607
- (x64_movsx (ExtMode.WQ) (to_amode flags address offset)))
2608
- (rule (lower (has_type (is_gpr_type ty) (uload32 flags address offset)))
2609
- (x64_movzx (ExtMode.LQ) (to_amode flags address offset)))
2610
- (rule (lower (has_type (is_gpr_type ty) (sload32 flags address offset)))
2611
- (x64_movsx (ExtMode.LQ) (to_amode flags address offset)))
2612
-
2613
- ;; To load to XMM registers, we use the x64-specific instructions for each type.
2614
- ;; For `$F32` and `$F64` this is important--we only want to load 32 or 64 bits.
2615
- ;; But for the 128-bit types, this is not strictly necessary for performance but
2616
- ;; might help with clarity during disassembly.
2617
- (rule (lower (has_type $F32 (load flags address offset)))
2618
- (x64_movss_load (to_amode flags address offset)))
2619
- (rule (lower (has_type $F64 (load flags address offset)))
2620
- (x64_movsd_load (to_amode flags address offset)))
2621
- (rule (lower (has_type $F32X4 (load flags address offset)))
2622
- (x64_movups_load (to_amode flags address offset)))
2623
- (rule (lower (has_type $F64X2 (load flags address offset)))
2624
- (x64_movupd_load (to_amode flags address offset)))
2625
- (rule -2 (lower (has_type (ty_vec128 ty) (load flags address offset)))
2626
- (x64_movdqu_load (to_amode flags address offset)))
2627
-
2628
- ;; We can load an I128 by doing two 64-bit loads.
2629
- (rule -3 (lower (has_type $I128
2630
- (load flags address offset)))
2631
- (let ((addr_lo Amode (to_amode flags address offset))
2632
- (addr_hi Amode (amode_offset addr_lo 8))
2633
- (value_lo Reg (x64_mov addr_lo))
2634
- (value_hi Reg (x64_mov addr_hi)))
2635
- (value_regs value_lo value_hi)))
2636
-
2637
- ;; We also include widening vector loads; these sign- or zero-extend each lane
2638
- ;; to the next wider width (e.g., 16x4 -> 32x4).
2639
- (rule 1 (lower (has_type $I16X8 (sload8x8 flags address offset)))
2640
- (if-let $true (use_sse41))
2641
- (x64_pmovsxbw (to_amode flags address offset)))
2642
- (rule 1 (lower (has_type $I16X8 (uload8x8 flags address offset)))
2643
- (if-let $true (use_sse41))
2644
- (x64_pmovzxbw (to_amode flags address offset)))
2645
- (rule 1 (lower (has_type $I32X4 (sload16x4 flags address offset)))
2646
- (if-let $true (use_sse41))
2647
- (x64_pmovsxwd (to_amode flags address offset)))
2648
- (rule 1 (lower (has_type $I32X4 (uload16x4 flags address offset)))
2649
- (if-let $true (use_sse41))
2650
- (x64_pmovzxwd (to_amode flags address offset)))
2651
- (rule 1 (lower (has_type $I64X2 (sload32x2 flags address offset)))
2652
- (if-let $true (use_sse41))
2653
- (x64_pmovsxdq (to_amode flags address offset)))
2654
- (rule 1 (lower (has_type $I64X2 (uload32x2 flags address offset)))
2655
- (if-let $true (use_sse41))
2656
- (x64_pmovzxdq (to_amode flags address offset)))
2657
-
2658
- (rule (lower (has_type $I16X8 (sload8x8 flags address offset)))
2659
- (lower_swiden_low $I16X8 (x64_movq_to_xmm (to_amode flags address offset))))
2660
- (rule (lower (has_type $I16X8 (uload8x8 flags address offset)))
2661
- (lower_uwiden_low $I16X8 (x64_movq_to_xmm (to_amode flags address offset))))
2662
- (rule (lower (has_type $I32X4 (sload16x4 flags address offset)))
2663
- (lower_swiden_low $I32X4 (x64_movq_to_xmm (to_amode flags address offset))))
2664
- (rule (lower (has_type $I32X4 (uload16x4 flags address offset)))
2665
- (lower_uwiden_low $I32X4 (x64_movq_to_xmm (to_amode flags address offset))))
2666
- (rule (lower (has_type $I64X2 (sload32x2 flags address offset)))
2667
- (lower_swiden_low $I64X2 (x64_movq_to_xmm (to_amode flags address offset))))
2668
- (rule (lower (has_type $I64X2 (uload32x2 flags address offset)))
2669
- (lower_uwiden_low $I64X2 (x64_movq_to_xmm (to_amode flags address offset))))
2670
-
2671
- ;; Rules for `store*` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2672
-
2673
- ;; 8-, 16-, 32- and 64-bit GPR stores.
2674
- (rule -2 (lower (store flags
2675
- value @ (value_type (is_gpr_type ty))
2676
- address
2677
- offset))
2678
- (side_effect
2679
- (x64_movrm ty (to_amode flags address offset) value)))
2680
-
2681
- ;; Explicit 8/16/32-bit opcodes.
2682
- (rule (lower (istore8 flags value address offset))
2683
- (side_effect
2684
- (x64_movrm $I8 (to_amode flags address offset) value)))
2685
- (rule (lower (istore16 flags value address offset))
2686
- (side_effect
2687
- (x64_movrm $I16 (to_amode flags address offset) value)))
2688
- (rule (lower (istore32 flags value address offset))
2689
- (side_effect
2690
- (x64_movrm $I32 (to_amode flags address offset) value)))
2691
-
2692
- ;; F32 stores of values in XMM registers.
2693
- (rule 1 (lower (store flags
2694
- value @ (value_type $F32)
2695
- address
2696
- offset))
2697
- (side_effect
2698
- (x64_movss_store (to_amode flags address offset) value)))
2699
-
2700
- ;; F64 stores of values in XMM registers.
2701
- (rule 1 (lower (store flags
2702
- value @ (value_type $F64)
2703
- address
2704
- offset))
2705
- (side_effect
2706
- (x64_movsd_store (to_amode flags address offset) value)))
2707
-
2708
- ;; Stores of F32X4 vectors.
2709
- (rule 1 (lower (store flags
2710
- value @ (value_type $F32X4)
2711
- address
2712
- offset))
2713
- (side_effect
2714
- (x64_movups_store (to_amode flags address offset) value)))
2715
-
2716
- ;; Stores of F64X2 vectors.
2717
- (rule 1 (lower (store flags
2718
- value @ (value_type $F64X2)
2719
- address
2720
- offset))
2721
- (side_effect
2722
- (x64_movupd_store (to_amode flags address offset) value)))
2723
-
2724
- ;; Stores of all other 128-bit vector types with integer lanes.
2725
- (rule -1 (lower (store flags
2726
- value @ (value_type (ty_vec128_int _))
2727
- address
2728
- offset))
2729
- (side_effect
2730
- (x64_movdqu_store (to_amode flags address offset) value)))
2731
-
2732
- ;; Stores of I128 values: store the two 64-bit halves separately.
2733
- (rule 0 (lower (store flags
2734
- value @ (value_type $I128)
2735
- address
2736
- offset))
2737
- (let ((value_reg ValueRegs value)
2738
- (value_lo Gpr (value_regs_get_gpr value_reg 0))
2739
- (value_hi Gpr (value_regs_get_gpr value_reg 1))
2740
- (addr_lo Amode (to_amode flags address offset))
2741
- (addr_hi Amode (amode_offset addr_lo 8)))
2742
- (side_effect
2743
- (side_effect_concat
2744
- (x64_movrm $I64 addr_lo value_lo)
2745
- (x64_movrm $I64 addr_hi value_hi)))))
2746
-
2747
- ;; Slightly optimize the extraction of the first lane from a vector which is
2748
- ;; stored in memory. In the case the first lane specifically is selected the
2749
- ;; standard `movss` and `movsd` instructions can be used as-if we're storing a
2750
- ;; f32 or f64 despite the source perhaps being an integer vector since the
2751
- ;; result of the instruction is the same.
2752
- (rule 2 (lower (store flags
2753
- (has_type $F32 (extractlane value (u8_from_uimm8 0)))
2754
- address
2755
- offset))
2756
- (side_effect
2757
- (x64_movss_store (to_amode flags address offset) value)))
2758
- (rule 2 (lower (store flags
2759
- (has_type $F64 (extractlane value (u8_from_uimm8 0)))
2760
- address
2761
- offset))
2762
- (side_effect
2763
- (x64_movsd_store (to_amode flags address offset) value)))
2764
- (rule 2 (lower (store flags
2765
- (has_type $I8 (extractlane value (u8_from_uimm8 n)))
2766
- address
2767
- offset))
2768
- (side_effect
2769
- (x64_pextrb_store (to_amode flags address offset) value n)))
2770
- (rule 2 (lower (store flags
2771
- (has_type $I16 (extractlane value (u8_from_uimm8 n)))
2772
- address
2773
- offset))
2774
- (side_effect
2775
- (x64_pextrw_store (to_amode flags address offset) value n)))
2776
- (rule 2 (lower (store flags
2777
- (has_type $I32 (extractlane value (u8_from_uimm8 n)))
2778
- address
2779
- offset))
2780
- (side_effect
2781
- (x64_pextrd_store (to_amode flags address offset) value n)))
2782
- (rule 2 (lower (store flags
2783
- (has_type $I64 (extractlane value (u8_from_uimm8 n)))
2784
- address
2785
- offset))
2786
- (side_effect
2787
- (x64_pextrq_store (to_amode flags address offset) value n)))
2788
-
2789
- ;; Rules for `load*` + ALU op + `store*` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2790
-
2791
- ;; Add mem, reg
2792
- (rule 3 (lower
2793
- (store flags
2794
- (has_type (ty_32_or_64 ty)
2795
- (iadd (and
2796
- (sinkable_load sink)
2797
- (load flags addr offset))
2798
- src2))
2799
- addr
2800
- offset))
2801
- (let ((_ RegMemImm sink))
2802
- (side_effect
2803
- (x64_add_mem ty (to_amode flags addr offset) src2))))
2804
-
2805
- ;; Add mem, reg with args swapped
2806
- (rule 2 (lower
2807
- (store flags
2808
- (has_type (ty_32_or_64 ty)
2809
- (iadd src2
2810
- (and
2811
- (sinkable_load sink)
2812
- (load flags addr offset))))
2813
- addr
2814
- offset))
2815
- (let ((_ RegMemImm sink))
2816
- (side_effect
2817
- (x64_add_mem ty (to_amode flags addr offset) src2))))
2818
-
2819
- ;; Sub mem, reg
2820
- (rule 2 (lower
2821
- (store flags
2822
- (has_type (ty_32_or_64 ty)
2823
- (isub (and
2824
- (sinkable_load sink)
2825
- (load flags addr offset))
2826
- src2))
2827
- addr
2828
- offset))
2829
- (let ((_ RegMemImm sink))
2830
- (side_effect
2831
- (x64_sub_mem ty (to_amode flags addr offset) src2))))
2832
-
2833
- ;; And mem, reg
2834
- (rule 3 (lower
2835
- (store flags
2836
- (has_type (ty_32_or_64 ty)
2837
- (band (and
2838
- (sinkable_load sink)
2839
- (load flags addr offset))
2840
- src2))
2841
- addr
2842
- offset))
2843
- (let ((_ RegMemImm sink))
2844
- (side_effect
2845
- (x64_and_mem ty (to_amode flags addr offset) src2))))
2846
-
2847
- ;; And mem, reg with args swapped
2848
- (rule 2 (lower
2849
- (store flags
2850
- (has_type (ty_32_or_64 ty)
2851
- (band src2
2852
- (and
2853
- (sinkable_load sink)
2854
- (load flags addr offset))))
2855
- addr
2856
- offset))
2857
- (let ((_ RegMemImm sink))
2858
- (side_effect
2859
- (x64_and_mem ty (to_amode flags addr offset) src2))))
2860
-
2861
- ;; Or mem, reg
2862
- (rule 3 (lower
2863
- (store flags
2864
- (has_type (ty_32_or_64 ty)
2865
- (bor (and
2866
- (sinkable_load sink)
2867
- (load flags addr offset))
2868
- src2))
2869
- addr
2870
- offset))
2871
- (let ((_ RegMemImm sink))
2872
- (side_effect
2873
- (x64_or_mem ty (to_amode flags addr offset) src2))))
2874
-
2875
- ;; Or mem, reg with args swapped
2876
- (rule 2 (lower
2877
- (store flags
2878
- (has_type (ty_32_or_64 ty)
2879
- (bor src2
2880
- (and
2881
- (sinkable_load sink)
2882
- (load flags addr offset))))
2883
- addr
2884
- offset))
2885
- (let ((_ RegMemImm sink))
2886
- (side_effect
2887
- (x64_or_mem ty (to_amode flags addr offset) src2))))
2888
-
2889
- ;; Xor mem, reg
2890
- (rule 3 (lower
2891
- (store flags
2892
- (has_type (ty_32_or_64 ty)
2893
- (bxor (and
2894
- (sinkable_load sink)
2895
- (load flags addr offset))
2896
- src2))
2897
- addr
2898
- offset))
2899
- (let ((_ RegMemImm sink))
2900
- (side_effect
2901
- (x64_xor_mem ty (to_amode flags addr offset) src2))))
2902
-
2903
- ;; Xor mem, reg with args swapped
2904
- (rule 2 (lower
2905
- (store flags
2906
- (has_type (ty_32_or_64 ty)
2907
- (bxor src2
2908
- (and
2909
- (sinkable_load sink)
2910
- (load flags addr offset))))
2911
- addr
2912
- offset))
2913
- (let ((_ RegMemImm sink))
2914
- (side_effect
2915
- (x64_xor_mem ty (to_amode flags addr offset) src2))))
2916
-
2917
- ;; Rules for `fence` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2918
-
2919
- (rule (lower (fence))
2920
- (side_effect (x64_mfence)))
2921
-
2922
- ;; Rules for `func_addr` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2923
-
2924
- (rule (lower (func_addr (func_ref_data _ extname _)))
2925
- (load_ext_name extname 0))
2926
-
2927
- ;; Rules for `symbol_value` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2928
-
2929
- (rule (lower (symbol_value (symbol_value_data extname _ offset)))
2930
- (load_ext_name extname offset))
2931
-
2932
- ;; Rules for `atomic_load` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2933
-
2934
- ;; This is a normal load. The x86-TSO memory model provides sufficient
2935
- ;; sequencing to satisfy the CLIF synchronisation requirements for `AtomicLoad`
2936
- ;; without the need for any fence instructions.
2937
- ;;
2938
- ;; As described in the `atomic_load` documentation, this lowering is only valid
2939
- ;; for I8, I16, I32, and I64. The sub-64-bit types are zero extended, as with a
2940
- ;; normal load.
2941
- (rule 1 (lower (has_type $I64 (atomic_load flags address)))
2942
- (x64_mov (to_amode flags address (zero_offset))))
2943
- (rule (lower (has_type (and (fits_in_32 ty) (ty_int _)) (atomic_load flags address)))
2944
- (x64_movzx (ext_mode (ty_bits_u16 ty) 64) (to_amode flags address (zero_offset))))
2945
-
2946
- ;; Rules for `atomic_store` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2947
-
2948
- ;; This is a normal store followed by an `mfence` instruction. As described in
2949
- ;; the `atomic_load` documentation, this lowering is only valid for I8, I16,
2950
- ;; I32, and I64.
2951
- (rule (lower (atomic_store flags
2952
- value @ (value_type (and (fits_in_64 ty) (ty_int _)))
2953
- address))
2954
- (side_effect (side_effect_concat
2955
- (x64_movrm ty (to_amode flags address (zero_offset)) value)
2956
- (x64_mfence))))
2957
-
2958
- ;; Rules for `atomic_cas` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2959
-
2960
- (rule (lower (has_type (and (fits_in_64 ty) (ty_int _))
2961
- (atomic_cas flags address expected replacement)))
2962
- (x64_cmpxchg ty expected replacement (to_amode flags address (zero_offset))))
2963
-
2964
- ;; Rules for `atomic_rmw` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2965
-
2966
- ;; This is a simple, general-case atomic update, based on a loop involving
2967
- ;; `cmpxchg`. Note that we could do much better than this in the case where the
2968
- ;; old value at the location (that is to say, the SSA `Value` computed by this
2969
- ;; CLIF instruction) is not required. In that case, we could instead implement
2970
- ;; this using a single `lock`-prefixed x64 read-modify-write instruction. Also,
2971
- ;; even in the case where the old value is required, for the `add` and `sub`
2972
- ;; cases, we can use the single instruction `lock xadd`. However, those
2973
- ;; improvements have been left for another day. TODO: filed as
2974
- ;; https://github.com/bytecodealliance/wasmtime/issues/2153.
2975
-
2976
- (rule (lower (has_type (and (fits_in_64 ty) (ty_int _))
2977
- (atomic_rmw flags op address input)))
2978
- (x64_atomic_rmw_seq ty op (to_amode flags address (zero_offset)) input))
2979
-
2980
- ;; Rules for `call` and `call_indirect` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2981
-
2982
- (rule (lower (call (func_ref_data sig_ref extname dist) inputs))
2983
- (gen_call sig_ref extname dist inputs))
2984
-
2985
- (rule (lower (call_indirect sig_ref val inputs))
2986
- (gen_call_indirect sig_ref val inputs))
2987
-
2988
- ;;;; Rules for `get_{frame,stack}_pointer` and `get_return_address` ;;;;;;;;;;;;
2989
-
2990
- (rule (lower (get_frame_pointer))
2991
- (x64_rbp))
2992
-
2993
- (rule (lower (get_stack_pointer))
2994
- (x64_rsp))
2995
-
2996
- (rule (lower (get_return_address))
2997
- (x64_load $I64
2998
- (Amode.ImmReg 8 (x64_rbp) (mem_flags_trusted))
2999
- (ExtKind.None)))
3000
-
3001
- ;; Rules for `jump` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3002
-
3003
- (rule (lower_branch (jump _) (single_target target))
3004
- (emit_side_effect (jmp_known target)))
3005
-
3006
- ;; Rules for `brif` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3007
-
3008
- (rule 2 (lower_branch (brif (maybe_uextend (icmp cc a b)) _ _) (two_targets then else))
3009
- (emit_side_effect (jmp_cond_icmp (emit_cmp cc a b) then else)))
3010
-
3011
- (rule 2 (lower_branch (brif (maybe_uextend (fcmp cc a b)) _ _) (two_targets then else))
3012
- (emit_side_effect (jmp_cond_fcmp (emit_fcmp cc a b) then else)))
3013
-
3014
- (rule 1 (lower_branch (brif val @ (value_type $I128) _ _)
3015
- (two_targets then else))
3016
- (emit_side_effect (jmp_cond_icmp (cmp_zero_i128 (CC.Z) val) then else)))
3017
-
3018
- (rule (lower_branch (brif val @ (value_type (ty_int_bool_or_ref)) _ _)
3019
- (two_targets then else))
3020
- (emit_side_effect (with_flags_side_effect
3021
- (cmp_zero_int_bool_ref val)
3022
- (jmp_cond (CC.NZ) then else))))
3023
-
3024
-
3025
- ;; Compare an I128 value to zero, returning a flags result suitable for making a
3026
- ;; jump decision. The comparison is implemented as `(hi == 0) && (low == 0)`,
3027
- ;; and the result can be interpreted as follows
3028
- ;; * CC.Z indicates that the value was non-zero, as one or both of the halves of
3029
- ;; the value were non-zero
3030
- ;; * CC.NZ indicates that both halves of the value were 0
3031
- (decl cmp_zero_i128 (CC ValueRegs) IcmpCondResult)
3032
- (rule (cmp_zero_i128 (cc_nz_or_z cc) val)
3033
- (let ((lo Gpr (value_regs_get_gpr val 0))
3034
- (hi Gpr (value_regs_get_gpr val 1))
3035
- (lo_z Gpr (with_flags_reg (x64_cmp (OperandSize.Size64) (RegMemImm.Imm 0) lo)
3036
- (x64_setcc (CC.Z))))
3037
- (hi_z Gpr (with_flags_reg (x64_cmp (OperandSize.Size64) (RegMemImm.Imm 0) hi)
3038
- (x64_setcc (CC.Z)))))
3039
- (icmp_cond_result (x64_test (OperandSize.Size8) lo_z hi_z) cc)))
3040
-
3041
-
3042
- (decl cmp_zero_int_bool_ref (Value) ProducesFlags)
3043
- (rule (cmp_zero_int_bool_ref val @ (value_type ty))
3044
- (let ((size OperandSize (raw_operand_size_of_type ty))
3045
- (src Gpr val))
3046
- (x64_test size src src)))
3047
-
3048
- ;; Rules for `br_table` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3049
-
3050
- (rule (lower_branch (br_table idx @ (value_type ty) _) (jump_table_targets default_target jt_targets))
3051
- (let ((size OperandSize (raw_operand_size_of_type ty))
3052
- (jt_size u32 (jump_table_size jt_targets))
3053
- (size_reg Reg (imm ty (u32_as_u64 jt_size)))
3054
- (idx_reg Gpr (extend_to_gpr idx $I64 (ExtendKind.Zero)))
3055
- (clamped_idx Reg (with_flags_reg
3056
- (x64_cmp size size_reg idx_reg)
3057
- (cmove ty (CC.B) idx_reg size_reg))))
3058
- (emit_side_effect (jmp_table_seq ty clamped_idx default_target jt_targets))))
3059
-
3060
- ;; Rules for `select_spectre_guard` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3061
-
3062
- (rule (lower (select_spectre_guard (icmp cc a b) x y))
3063
- (select_icmp (emit_cmp cc a b) x y))
3064
-
3065
- (rule -1 (lower (has_type ty (select_spectre_guard c @ (value_type (fits_in_64 a_ty)) x y)))
3066
- (let ((size OperandSize (raw_operand_size_of_type a_ty))
3067
- (gpr_c Gpr (put_in_gpr c)))
3068
- (with_flags (x64_test size gpr_c gpr_c) (cmove_from_values ty (CC.NZ) x y))))
3069
-
3070
- (rule -2 (lower (has_type ty (select_spectre_guard c @ (value_type $I128) x y)))
3071
- (let ((cond_result IcmpCondResult (cmp_zero_i128 (CC.Z) c)))
3072
- (select_icmp cond_result x y)))
3073
-
3074
- ;; Rules for `fcvt_from_sint` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3075
-
3076
- (rule 2 (lower (has_type $F32 (fcvt_from_sint a @ (value_type $I8))))
3077
- (x64_cvtsi2ss $I32 (extend_to_gpr a $I32 (ExtendKind.Sign))))
3078
-
3079
- (rule 2 (lower (has_type $F32 (fcvt_from_sint a @ (value_type $I16))))
3080
- (x64_cvtsi2ss $I32 (extend_to_gpr a $I32 (ExtendKind.Sign))))
3081
-
3082
- (rule 1 (lower (has_type $F32 (fcvt_from_sint a @ (value_type (ty_int (fits_in_64 ty))))))
3083
- (x64_cvtsi2ss ty a))
3084
-
3085
- (rule 2 (lower (has_type $F64 (fcvt_from_sint a @ (value_type $I8))))
3086
- (x64_cvtsi2sd $I32 (extend_to_gpr a $I32 (ExtendKind.Sign))))
3087
-
3088
- (rule 2 (lower (has_type $F64 (fcvt_from_sint a @ (value_type $I16))))
3089
- (x64_cvtsi2sd $I32 (extend_to_gpr a $I32 (ExtendKind.Sign))))
3090
-
3091
- (rule 1 (lower (has_type $F64 (fcvt_from_sint a @ (value_type (ty_int (fits_in_64 ty))))))
3092
- (x64_cvtsi2sd ty a))
3093
-
3094
- (rule 0 (lower (fcvt_from_sint a @ (value_type $I32X4)))
3095
- (x64_cvtdq2ps a))
3096
-
3097
- ;; Rules for `fcvt_low_from_sint` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3098
-
3099
- (rule (lower (fcvt_low_from_sint a))
3100
- (x64_cvtdq2pd a))
3101
-
3102
- ;; Rules for `fcvt_from_uint` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3103
-
3104
- (rule 1 (lower (has_type $F32 (fcvt_from_uint val @ (value_type (fits_in_32 (ty_int ty))))))
3105
- (x64_cvtsi2ss $I64 (extend_to_gpr val $I64 (ExtendKind.Zero))))
3106
-
3107
- (rule 1 (lower (has_type $F64 (fcvt_from_uint val @ (value_type (fits_in_32 (ty_int ty))))))
3108
- (x64_cvtsi2sd $I64 (extend_to_gpr val $I64 (ExtendKind.Zero))))
3109
-
3110
- (rule (lower (has_type ty (fcvt_from_uint val @ (value_type $I64))))
3111
- (cvt_u64_to_float_seq ty val))
3112
-
3113
- ;; Algorithm uses unpcklps to help create a float that is equivalent
3114
- ;; 0x1.0p52 + double(src). 0x1.0p52 is unique because at this exponent
3115
- ;; every value of the mantissa represents a corresponding uint32 number.
3116
- ;; When we subtract 0x1.0p52 we are left with double(src).
3117
- (rule 1 (lower (has_type $F64X2 (fcvt_from_uint (uwiden_low val @ (value_type $I32X4)))))
3118
- (let ((uint_mask XmmMem (fcvt_uint_mask_const))
3119
- (res Xmm (x64_unpcklps val uint_mask))
3120
- (uint_mask_high XmmMem (fcvt_uint_mask_high_const)))
3121
- (x64_subpd res uint_mask_high)))
3122
-
3123
- ;; When AVX512VL and AVX512F are available,
3124
- ;; `fcvt_from_uint` can be lowered to a single instruction.
3125
- (rule 2 (lower (has_type (and (avx512vl_enabled $true) (avx512f_enabled $true) $F32X4)
3126
- (fcvt_from_uint src)))
3127
- (x64_vcvtudq2ps src))
3128
-
3129
- ;; Converting packed unsigned integers to packed floats
3130
- ;; requires a few steps. There is no single instruction
3131
- ;; lowering for converting unsigned floats but there is for
3132
- ;; converting packed signed integers to float (cvtdq2ps). In
3133
- ;; the steps below we isolate the upper half (16 bits) and
3134
- ;; lower half (16 bits) of each lane and then we convert
3135
- ;; each half separately using cvtdq2ps meant for signed
3136
- ;; integers. In order for this to work for the upper half
3137
- ;; bits we must shift right by 1 (divide by 2) these bits in
3138
- ;; order to ensure the most significant bit is 0 not signed,
3139
- ;; and then after the conversion we double the value.
3140
- ;; Finally we add the converted values where addition will
3141
- ;; correctly round.
3142
- ;;
3143
- ;; Sequence:
3144
- ;; -> A = 0xffffffff
3145
- ;; -> Ah = 0xffff0000
3146
- ;; -> Al = 0x0000ffff
3147
- ;; -> Convert(Al) // Convert int to float
3148
- ;; -> Ah = Ah >> 1 // Shift right 1 to assure Ah conversion isn't treated as signed
3149
- ;; -> Convert(Ah) // Convert .. with no loss of significant digits from previous shift
3150
- ;; -> Ah = Ah + Ah // Double Ah to account for shift right before the conversion.
3151
- ;; -> dst = Ah + Al // Add the two floats together
3152
- (rule 1 (lower (has_type $F32X4 (fcvt_from_uint val)))
3153
- (let ((a Xmm val)
3154
-
3155
- ;; get the low 16 bits
3156
- (a_lo Xmm (x64_pslld a (xmi_imm 16)))
3157
- (a_lo Xmm (x64_psrld a_lo (xmi_imm 16)))
3158
-
3159
- ;; get the high 16 bits
3160
- (a_hi Xmm (x64_psubd a a_lo))
3161
-
3162
- ;; convert the low 16 bits
3163
- (a_lo Xmm (x64_cvtdq2ps a_lo))
3164
-
3165
- ;; shift the high bits by 1, convert, and double to get the correct
3166
- ;; value
3167
- (a_hi Xmm (x64_psrld a_hi (xmi_imm 1)))
3168
- (a_hi Xmm (x64_cvtdq2ps a_hi))
3169
- (a_hi Xmm (x64_addps a_hi a_hi)))
3170
-
3171
- ;; add together the two converted values
3172
- (x64_addps a_hi a_lo)))
3173
-
3174
- ;; Rules for `fcvt_to_uint` and `fcvt_to_sint` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3175
-
3176
- (rule (lower (has_type out_ty (fcvt_to_uint val @ (value_type (ty_scalar_float _)))))
3177
- (cvt_float_to_uint_seq out_ty val $false))
3178
-
3179
- (rule (lower (has_type out_ty (fcvt_to_uint_sat val @ (value_type (ty_scalar_float _)))))
3180
- (cvt_float_to_uint_seq out_ty val $true))
3181
-
3182
- (rule (lower (has_type out_ty (fcvt_to_sint val @ (value_type (ty_scalar_float _)))))
3183
- (cvt_float_to_sint_seq out_ty val $false))
3184
-
3185
- (rule (lower (has_type out_ty (fcvt_to_sint_sat val @ (value_type (ty_scalar_float _)))))
3186
- (cvt_float_to_sint_seq out_ty val $true))
3187
-
3188
- ;; The x64 backend currently only supports these two type combinations.
3189
- (rule 1 (lower (has_type $I32X4 (fcvt_to_sint_sat val @ (value_type $F32X4))))
3190
- (let ((src Xmm val)
3191
-
3192
- ;; Sets tmp to zero if float is NaN
3193
- (tmp Xmm (x64_cmpps src src (FcmpImm.Equal)))
3194
- (dst Xmm (x64_andps src tmp))
3195
-
3196
- ;; Sets top bit of tmp if float is positive
3197
- ;; Setting up to set top bit on negative float values
3198
- (tmp Xmm (x64_pxor tmp dst))
3199
-
3200
- ;; Convert the packed float to packed doubleword.
3201
- (dst Xmm (x64_cvttps2dq dst))
3202
-
3203
- ;; Set top bit only if < 0
3204
- (tmp Xmm (x64_pand dst tmp))
3205
- (tmp Xmm (x64_psrad tmp (xmi_imm 31))))
3206
-
3207
- ;; On overflow 0x80000000 is returned to a lane.
3208
- ;; Below sets positive overflow lanes to 0x7FFFFFFF
3209
- ;; Keeps negative overflow lanes as is.
3210
- (x64_pxor tmp dst)))
3211
-
3212
- ;; The algorithm for converting floats to unsigned ints is a little tricky. The
3213
- ;; complication arises because we are converting from a signed 64-bit int with a positive
3214
- ;; integer range from 1..INT_MAX (0x1..0x7FFFFFFF) to an unsigned integer with an extended
3215
- ;; range from (INT_MAX+1)..UINT_MAX. It's this range from (INT_MAX+1)..UINT_MAX
3216
- ;; (0x80000000..0xFFFFFFFF) that needs to be accounted for as a special case since our
3217
- ;; conversion instruction (cvttps2dq) only converts as high as INT_MAX (0x7FFFFFFF), but
3218
- ;; which conveniently setting underflows and overflows (smaller than MIN_INT or larger than
3219
- ;; MAX_INT) to be INT_MAX+1 (0x80000000). Nothing that the range (INT_MAX+1)..UINT_MAX includes
3220
- ;; precisely INT_MAX values we can correctly account for and convert every value in this range
3221
- ;; if we simply subtract INT_MAX+1 before doing the cvttps2dq conversion. After the subtraction
3222
- ;; every value originally (INT_MAX+1)..UINT_MAX is now the range (0..INT_MAX).
3223
- ;; After the conversion we add INT_MAX+1 back to this converted value, noting again that
3224
- ;; values we are trying to account for were already set to INT_MAX+1 during the original conversion.
3225
- ;; We simply have to create a mask and make sure we are adding together only the lanes that need
3226
- ;; to be accounted for. Digesting it all the steps then are:
3227
- ;;
3228
- ;; Step 1 - Account for NaN and negative floats by setting these src values to zero.
3229
- ;; Step 2 - Make a copy (tmp1) of the src value since we need to convert twice for
3230
- ;; reasons described above.
3231
- ;; Step 3 - Convert the original src values. This will convert properly all floats up to INT_MAX
3232
- ;; Step 4 - Subtract INT_MAX from the copy set (tmp1). Note, all zero and negative values are those
3233
- ;; values that were originally in the range (0..INT_MAX). This will come in handy during
3234
- ;; step 7 when we zero negative lanes.
3235
- ;; Step 5 - Create a bit mask for tmp1 that will correspond to all lanes originally less than
3236
- ;; UINT_MAX that are now less than INT_MAX thanks to the subtraction.
3237
- ;; Step 6 - Convert the second set of values (tmp1)
3238
- ;; Step 7 - Prep the converted second set by zeroing out negative lanes (these have already been
3239
- ;; converted correctly with the first set) and by setting overflow lanes to 0x7FFFFFFF
3240
- ;; as this will allow us to properly saturate overflow lanes when adding to 0x80000000
3241
- ;; Step 8 - Add the orginal converted src and the converted tmp1 where float values originally less
3242
- ;; than and equal to INT_MAX will be unchanged, float values originally between INT_MAX+1 and
3243
- ;; UINT_MAX will add together (INT_MAX) + (SRC - INT_MAX), and float values originally
3244
- ;; greater than UINT_MAX will be saturated to UINT_MAX (0xFFFFFFFF) after adding (0x8000000 + 0x7FFFFFFF).
3245
- ;;
3246
- ;;
3247
- ;; The table below illustrates the result after each step where it matters for the converted set.
3248
- ;; Note the original value range (original src set) is the final dst in Step 8:
3249
- ;;
3250
- ;; Original src set:
3251
- ;; | Original Value Range | Step 1 | Step 3 | Step 8 |
3252
- ;; | -FLT_MIN..FLT_MAX | 0.0..FLT_MAX | 0..INT_MAX(w/overflow) | 0..UINT_MAX(w/saturation) |
3253
- ;;
3254
- ;; Copied src set (tmp1):
3255
- ;; | Step 2 | Step 4 |
3256
- ;; | 0.0..FLT_MAX | (0.0-(INT_MAX+1))..(FLT_MAX-(INT_MAX+1)) |
3257
- ;;
3258
- ;; | Step 6 | Step 7 |
3259
- ;; | (0-(INT_MAX+1))..(UINT_MAX-(INT_MAX+1))(w/overflow) | ((INT_MAX+1)-(INT_MAX+1))..(INT_MAX+1) |
3260
- (rule 1 (lower (has_type $I32X4 (fcvt_to_uint_sat val @ (value_type $F32X4))))
3261
- (let ((src Xmm val)
3262
-
3263
- ;; Converting to unsigned int so if float src is negative or NaN
3264
- ;; will first set to zero.
3265
- (tmp2 Xmm (xmm_zero $F32X4))
3266
- (dst Xmm (x64_maxps src tmp2))
3267
-
3268
- ;; Set tmp2 to INT_MAX+1. It is important to note here that after it looks
3269
- ;; like we are only converting INT_MAX (0x7FFFFFFF) but in fact because
3270
- ;; single precision IEEE-754 floats can only accurately represent contingous
3271
- ;; integers up to 2^23 and outside of this range it rounds to the closest
3272
- ;; integer that it can represent. In the case of INT_MAX, this value gets
3273
- ;; represented as 0x4f000000 which is the integer value (INT_MAX+1).
3274
- (tmp2 Xmm (x64_pcmpeqd tmp2 tmp2))
3275
- (tmp2 Xmm (x64_psrld tmp2 (xmi_imm 1)))
3276
- (tmp2 Xmm (x64_cvtdq2ps tmp2))
3277
-
3278
- ;; Make a copy of these lanes and then do the first conversion.
3279
- ;; Overflow lanes greater than the maximum allowed signed value will
3280
- ;; set to 0x80000000. Negative and NaN lanes will be 0x0
3281
- (tmp1 Xmm dst)
3282
- (dst Xmm (x64_cvttps2dq dst))
3283
-
3284
- ;; Set lanes to src - max_signed_int
3285
- (tmp1 Xmm (x64_subps tmp1 tmp2))
3286
-
3287
- ;; Create mask for all positive lanes to saturate (i.e. greater than
3288
- ;; or equal to the maxmimum allowable unsigned int).
3289
- (tmp2 Xmm (x64_cmpps tmp2 tmp1 (FcmpImm.LessThanOrEqual)))
3290
-
3291
- ;; Convert those set of lanes that have the max_signed_int factored out.
3292
- (tmp1 Xmm (x64_cvttps2dq tmp1))
3293
-
3294
- ;; Prepare converted lanes by zeroing negative lanes and prepping lanes
3295
- ;; that have positive overflow (based on the mask) by setting these lanes
3296
- ;; to 0x7FFFFFFF
3297
- (tmp1 Xmm (x64_pxor tmp1 tmp2))
3298
- (tmp2 Xmm (xmm_zero $I32X4))
3299
- (tmp1 Xmm (x64_pmaxsd tmp1 tmp2)))
3300
-
3301
- ;; Add this second set of converted lanes to the original to properly handle
3302
- ;; values greater than max signed int.
3303
- (x64_paddd tmp1 dst)))
3304
-
3305
- ;; Rules for `x86_cvtt2dq` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3306
-
3307
- (rule (lower (has_type $I32X4 (x86_cvtt2dq val @ (value_type $F32X4))))
3308
- (x64_cvttps2dq val))
3309
-
3310
- ;; Rules for `iadd_pairwise` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3311
-
3312
- (rule (lower (has_type $I16X8 (iadd_pairwise x y)))
3313
- (x64_phaddw x y))
3314
-
3315
- (rule (lower (has_type $I32X4 (iadd_pairwise x y)))
3316
- (x64_phaddd x y))
3317
-
3318
- ;; special case for the `i16x8.extadd_pairwise_i8x16_s` wasm instruction
3319
- (rule 1 (lower
3320
- (has_type $I16X8 (iadd_pairwise
3321
- (swiden_low val @ (value_type $I8X16))
3322
- (swiden_high val))))
3323
- (let ((mul_const Xmm (x64_xmm_load_const $I8X16 (iadd_pairwise_mul_const_16))))
3324
- (x64_pmaddubsw mul_const val)))
3325
-
3326
- ;; special case for the `i32x4.extadd_pairwise_i16x8_s` wasm instruction
3327
- (rule 1 (lower
3328
- (has_type $I32X4 (iadd_pairwise
3329
- (swiden_low val @ (value_type $I16X8))
3330
- (swiden_high val))))
3331
- (let ((mul_const XmmMem (iadd_pairwise_mul_const_32)))
3332
- (x64_pmaddwd val mul_const)))
3333
-
3334
- ;; special case for the `i16x8.extadd_pairwise_i8x16_u` wasm instruction
3335
- (rule 1 (lower
3336
- (has_type $I16X8 (iadd_pairwise
3337
- (uwiden_low val @ (value_type $I8X16))
3338
- (uwiden_high val))))
3339
- (let ((mul_const XmmMem (iadd_pairwise_mul_const_16)))
3340
- (x64_pmaddubsw val mul_const)))
3341
-
3342
- ;; special case for the `i32x4.extadd_pairwise_i16x8_u` wasm instruction
3343
- (rule 1 (lower
3344
- (has_type $I32X4 (iadd_pairwise
3345
- (uwiden_low val @ (value_type $I16X8))
3346
- (uwiden_high val))))
3347
- (let ((xor_const XmmMem (iadd_pairwise_xor_const_32))
3348
- (dst Xmm (x64_pxor val xor_const))
3349
-
3350
- (madd_const XmmMem (iadd_pairwise_mul_const_32))
3351
- (dst Xmm (x64_pmaddwd dst madd_const))
3352
-
3353
- (addd_const XmmMem (iadd_pairwise_addd_const_32)))
3354
- (x64_paddd dst addd_const)))
3355
-
3356
- ;; special case for the `i32x4.dot_i16x8_s` wasm instruction
3357
- (rule 1 (lower
3358
- (has_type $I32X4 (iadd_pairwise
3359
- (imul (swiden_low x) (swiden_low y))
3360
- (imul (swiden_high x) (swiden_high y)))))
3361
- (x64_pmaddwd x y))
3362
-
3363
- ;; Rules for `swiden_low` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3364
-
3365
- ;; With SSE4.1 use the `pmovsx*` instructions for this
3366
- (rule 1 (lower (has_type $I16X8 (swiden_low val @ (value_type $I8X16))))
3367
- (if-let $true (use_sse41))
3368
- (x64_pmovsxbw val))
3369
- (rule 1 (lower (has_type $I32X4 (swiden_low val @ (value_type $I16X8))))
3370
- (if-let $true (use_sse41))
3371
- (x64_pmovsxwd val))
3372
- (rule 1 (lower (has_type $I64X2 (swiden_low val @ (value_type $I32X4))))
3373
- (if-let $true (use_sse41))
3374
- (x64_pmovsxdq val))
3375
-
3376
- (rule (lower (has_type ty (swiden_low val))) (lower_swiden_low ty val))
3377
-
3378
- (decl lower_swiden_low (Type Xmm) Xmm)
3379
-
3380
- ;; Duplicate the low lanes next to each other, then perform a wider shift-right
3381
- ;; by the low lane width to move the upper of each pair back into the lower lane
3382
- ;; of each pair, achieving the widening of the lower lanes.
3383
- (rule (lower_swiden_low $I16X8 val)
3384
- (x64_psraw (x64_punpcklbw val val) (xmi_imm 8)))
3385
- (rule (lower_swiden_low $I32X4 val)
3386
- (x64_psrad (x64_punpcklwd val val) (xmi_imm 16)))
3387
-
3388
- ;; Generate the sign-extended halves with a `val < 0` comparison (expressed
3389
- ;; reversed here), then interleave the low 32-bit halves to create the full
3390
- ;; 64-bit results.
3391
- (rule (lower_swiden_low $I64X2 val)
3392
- (let ((tmp Xmm (x64_pcmpgtd (xmm_zero $I32X4) val)))
3393
- (x64_punpckldq val tmp)))
3394
-
3395
- ;; Rules for `swiden_high` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3396
-
3397
- ;; Similar to `swiden_low` with SSE4.1 except that the upper lanes are moved
3398
- ;; to the lower lanes first.
3399
- (rule 1 (lower (has_type $I16X8 (swiden_high val @ (value_type $I8X16))))
3400
- (if-let $true (use_sse41))
3401
- (let ((x Xmm val))
3402
- (x64_pmovsxbw (x64_palignr x x 8))))
3403
- (rule 1 (lower (has_type $I32X4 (swiden_high val @ (value_type $I16X8))))
3404
- (if-let $true (use_sse41))
3405
- (let ((x Xmm val))
3406
- (x64_pmovsxwd (x64_palignr x x 8))))
3407
- (rule 1 (lower (has_type $I64X2 (swiden_high val @ (value_type $I32X4))))
3408
- (if-let $true (use_sse41))
3409
- (x64_pmovsxdq (x64_pshufd val 0b11_10_11_10)))
3410
-
3411
- ;; Similar to `swiden_low` versions but using `punpckh*` instructions to
3412
- ;; pair the high lanes next to each other.
3413
- (rule (lower (has_type $I16X8 (swiden_high val @ (value_type $I8X16))))
3414
- (let ((val Xmm val))
3415
- (x64_psraw (x64_punpckhbw val val) (xmi_imm 8))))
3416
- (rule (lower (has_type $I32X4 (swiden_high val @ (value_type $I16X8))))
3417
- (let ((val Xmm val))
3418
- (x64_psrad (x64_punpckhwd val val) (xmi_imm 16))))
3419
-
3420
- ;; Same as `swiden_low`, but `val` has its high lanes moved down.
3421
- (rule (lower (has_type $I64X2 (swiden_high val @ (value_type $I32X4))))
3422
- (let ((val Xmm (x64_pshufd val 0b00_00_11_10))
3423
- (tmp Xmm (x64_pcmpgtd (xmm_zero $I32X4) val)))
3424
- (x64_punpckldq val tmp)))
3425
-
3426
- ;; Rules for `uwiden_low` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3427
-
3428
- ;; With SSE4.1 use the `pmovzx*` instructions for this
3429
- (rule 1 (lower (has_type $I16X8 (uwiden_low val @ (value_type $I8X16))))
3430
- (if-let $true (use_sse41))
3431
- (x64_pmovzxbw val))
3432
- (rule 1 (lower (has_type $I32X4 (uwiden_low val @ (value_type $I16X8))))
3433
- (if-let $true (use_sse41))
3434
- (x64_pmovzxwd val))
3435
- (rule 1 (lower (has_type $I64X2 (uwiden_low val @ (value_type $I32X4))))
3436
- (if-let $true (use_sse41))
3437
- (x64_pmovzxdq val))
3438
-
3439
- (rule (lower (has_type ty (uwiden_low val))) (lower_uwiden_low ty val))
3440
-
3441
- ;; Interleave an all-zero register with the low lanes to produce zero-extended
3442
- ;; results.
3443
- (decl lower_uwiden_low (Type Xmm) Xmm)
3444
- (rule (lower_uwiden_low $I16X8 val) (x64_punpcklbw val (xmm_zero $I8X16)))
3445
- (rule (lower_uwiden_low $I32X4 val) (x64_punpcklwd val (xmm_zero $I8X16)))
3446
- (rule (lower_uwiden_low $I64X2 val) (x64_unpcklps val (xmm_zero $F32X4)))
3447
-
3448
- ;; Rules for `uwiden_high` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3449
-
3450
- ;; Same as `uwiden_high`, but interleaving high lanes instead.
3451
- ;;
3452
- ;; Note that according to `llvm-mca` at least these instructions are faster
3453
- ;; than using `pmovzx*` in terms of cycles, even if SSE4.1 is available.
3454
- (rule (lower (has_type $I16X8 (uwiden_high val @ (value_type $I8X16))))
3455
- (x64_punpckhbw val (xmm_zero $I8X16)))
3456
- (rule (lower (has_type $I32X4 (uwiden_high val @ (value_type $I16X8))))
3457
- (x64_punpckhwd val (xmm_zero $I8X16)))
3458
- (rule (lower (has_type $I64X2 (uwiden_high val @ (value_type $I32X4))))
3459
- (x64_unpckhps val (xmm_zero $F32X4)))
3460
-
3461
- ;; Rules for `snarrow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3462
-
3463
- (rule (lower (has_type $I8X16 (snarrow a @ (value_type $I16X8) b)))
3464
- (x64_packsswb a b))
3465
-
3466
- (rule (lower (has_type $I16X8 (snarrow a @ (value_type $I32X4) b)))
3467
- (x64_packssdw a b))
3468
-
3469
- ;; We're missing a `snarrow` case for $I64X2
3470
- ;; https://github.com/bytecodealliance/wasmtime/issues/4734
3471
-
3472
- ;; This rule is a special case for handling the translation of the wasm op
3473
- ;; `i32x4.trunc_sat_f64x2_s_zero`. It can be removed once we have an
3474
- ;; implementation of `snarrow` for `I64X2`.
3475
- (rule (lower (has_type $I32X4 (snarrow (has_type $I64X2 (fcvt_to_sint_sat val))
3476
- (vconst (u128_from_constant 0)))))
3477
- (let ((a Xmm val)
3478
-
3479
- ;; y = i32x4.trunc_sat_f64x2_s_zero(x) is lowered to:
3480
- ;; MOVE xmm_tmp, xmm_x
3481
- ;; CMPEQPD xmm_tmp, xmm_x
3482
- ;; MOVE xmm_y, xmm_x
3483
- ;; ANDPS xmm_tmp, [wasm_f64x2_splat(2147483647.0)]
3484
- ;; MINPD xmm_y, xmm_tmp
3485
- ;; CVTTPD2DQ xmm_y, xmm_y
3486
-
3487
- (tmp1 Xmm (x64_cmppd a a (FcmpImm.Equal)))
3488
- (umax_mask XmmMem (snarrow_umax_mask))
3489
-
3490
- ;; ANDPD xmm_y, [wasm_f64x2_splat(2147483647.0)]
3491
- (tmp1 Xmm (x64_andps tmp1 umax_mask))
3492
- (dst Xmm (x64_minpd a tmp1)))
3493
- (x64_cvttpd2dq dst)))
3494
-
3495
- ;; This rule is a special case for handling the translation of the wasm op
3496
- ;; `i32x4.relaxed_trunc_f64x2_s_zero`.
3497
- (rule (lower (has_type $I32X4 (snarrow (has_type $I64X2 (x86_cvtt2dq val))
3498
- (vconst (u128_from_constant 0)))))
3499
- (x64_cvttpd2dq val))
3500
-
3501
- ;; Rules for `unarrow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3502
-
3503
- (rule (lower (has_type $I8X16 (unarrow a @ (value_type $I16X8) b)))
3504
- (x64_packuswb a b))
3505
-
3506
- (rule (lower (has_type $I16X8 (unarrow a @ (value_type $I32X4) b)))
3507
- (x64_packusdw a b))
3508
-
3509
- ;; We're missing a `unarrow` case for $I64X2
3510
- ;; https://github.com/bytecodealliance/wasmtime/issues/4734
3511
-
3512
- ;; Rules for `bitcast` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3513
-
3514
- (rule (lower (has_type $I32 (bitcast _ src @ (value_type $F32))))
3515
- (bitcast_xmm_to_gpr $F32 src))
3516
-
3517
- (rule (lower (has_type $F32 (bitcast _ src @ (value_type $I32))))
3518
- (bitcast_gpr_to_xmm $I32 src))
3519
-
3520
- (rule (lower (has_type $I64 (bitcast _ src @ (value_type $F64))))
3521
- (bitcast_xmm_to_gpr $F64 src))
3522
-
3523
- (rule (lower (has_type $F64 (bitcast _ src @ (value_type $I64))))
3524
- (bitcast_gpr_to_xmm $I64 src))
3525
-
3526
- ;; Bitcast between types residing in GPR registers is a no-op.
3527
- (rule 1 (lower (has_type (is_gpr_type _)
3528
- (bitcast _ x @ (value_type (is_gpr_type _))))) x)
3529
-
3530
- ;; Bitcast between types residing in XMM registers is a no-op.
3531
- (rule 2 (lower (has_type (is_xmm_type _)
3532
- (bitcast _ x @ (value_type (is_xmm_type _))))) x)
3533
-
3534
- ;; Rules for `fcopysign` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3535
-
3536
- (rule (lower (has_type $F32 (fcopysign a @ (value_type $F32) b)))
3537
- (let ((sign_bit Xmm (imm $F32 0x80000000)))
3538
- (x64_orps
3539
- (x64_andnps sign_bit a)
3540
- (x64_andps sign_bit b))))
3541
-
3542
- (rule (lower (has_type $F64 (fcopysign a @ (value_type $F64) b)))
3543
- (let ((sign_bit Xmm (imm $F64 0x8000000000000000)))
3544
- (x64_orpd
3545
- (x64_andnpd sign_bit a)
3546
- (x64_andpd sign_bit b))))
3547
-
3548
- ;; Helper for the `ceil`/`floor`/`nearest`/`trunc` instructions ;;;;;;;;;;;;;;;;
3549
-
3550
- ;; Emits either a `round{ss,sd,ps,pd}` instruction, as appropriate, or generates
3551
- ;; the appropriate libcall and sequence to call that.
3552
- (decl x64_round (Type Value RoundImm) Xmm)
3553
- (rule 1 (x64_round $F32 a imm)
3554
- (if-let $true (use_sse41))
3555
- (x64_roundss a imm))
3556
- (rule 1 (x64_round $F64 a imm)
3557
- (if-let $true (use_sse41))
3558
- (x64_roundsd a imm))
3559
- (rule 1 (x64_round $F32X4 a imm)
3560
- (if-let $true (use_sse41))
3561
- (x64_roundps a imm))
3562
- (rule 1 (x64_round $F64X2 a imm)
3563
- (if-let $true (use_sse41))
3564
- (x64_roundpd a imm))
3565
-
3566
- (rule (x64_round $F32 a imm) (libcall_1 (round_libcall $F32 imm) a))
3567
- (rule (x64_round $F64 a imm) (libcall_1 (round_libcall $F64 imm) a))
3568
- (rule (x64_round $F32X4 a imm)
3569
- (let (
3570
- (a Xmm a)
3571
- (libcall LibCall (round_libcall $F32 imm))
3572
- (result Xmm (libcall_1 libcall a))
3573
- (a1 Xmm (libcall_1 libcall (x64_pshufd a 1)))
3574
- (result Xmm (vec_insert_lane $F32X4 result a1 1))
3575
- (a2 Xmm (libcall_1 libcall (x64_pshufd a 2)))
3576
- (result Xmm (vec_insert_lane $F32X4 result a2 2))
3577
- (a3 Xmm (libcall_1 libcall (x64_pshufd a 3)))
3578
- (result Xmm (vec_insert_lane $F32X4 result a3 3))
3579
- )
3580
- result))
3581
- (rule (x64_round $F64X2 a imm)
3582
- (let (
3583
- (a Xmm a)
3584
- (libcall LibCall (round_libcall $F64 imm))
3585
- (result Xmm (libcall_1 libcall a))
3586
- (a1 Xmm (libcall_1 libcall (x64_pshufd a 0b00_00_11_10)))
3587
- (result Xmm (vec_insert_lane $F64X2 result a1 1))
3588
- )
3589
- result))
3590
-
3591
- (decl round_libcall (Type RoundImm) LibCall)
3592
- (rule (round_libcall $F32 (RoundImm.RoundUp)) (LibCall.CeilF32))
3593
- (rule (round_libcall $F64 (RoundImm.RoundUp)) (LibCall.CeilF64))
3594
- (rule (round_libcall $F32 (RoundImm.RoundDown)) (LibCall.FloorF32))
3595
- (rule (round_libcall $F64 (RoundImm.RoundDown)) (LibCall.FloorF64))
3596
- (rule (round_libcall $F32 (RoundImm.RoundNearest)) (LibCall.NearestF32))
3597
- (rule (round_libcall $F64 (RoundImm.RoundNearest)) (LibCall.NearestF64))
3598
- (rule (round_libcall $F32 (RoundImm.RoundZero)) (LibCall.TruncF32))
3599
- (rule (round_libcall $F64 (RoundImm.RoundZero)) (LibCall.TruncF64))
3600
-
3601
- ;; Rules for `ceil` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3602
-
3603
- (rule (lower (ceil a @ (value_type ty)))
3604
- (x64_round ty a (RoundImm.RoundUp)))
3605
-
3606
- ;; Rules for `floor` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3607
-
3608
- (rule (lower (floor a @ (value_type ty)))
3609
- (x64_round ty a (RoundImm.RoundDown)))
3610
-
3611
- ;; Rules for `nearest` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3612
-
3613
- (rule (lower (nearest a @ (value_type ty)))
3614
- (x64_round ty a (RoundImm.RoundNearest)))
3615
-
3616
- ;; Rules for `trunc` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3617
-
3618
- (rule (lower (trunc a @ (value_type ty)))
3619
- (x64_round ty a (RoundImm.RoundZero)))
3620
-
3621
- ;; Rules for `stack_addr` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3622
-
3623
- (rule (lower (stack_addr stack_slot offset))
3624
- (stack_addr_impl stack_slot offset))
3625
-
3626
- ;; Rules for `udiv` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3627
-
3628
- ;; NB: a `RegMem` divisor, while allowed in the instruction encoding, isn't
3629
- ;; used right now to prevent a possibly-trapping load getting folded into the
3630
- ;; `div` instruction. Ideally non-trapping loads would get folded, however, or
3631
- ;; alternatively Wasmtime/Cranelift would grow support for multiple traps on
3632
- ;; a single opcode and the signal kind would differentiate at runtime.
3633
-
3634
- ;; The inputs to the `div` instruction are different for 8-bit division so
3635
- ;; it needs a special case here since the instruction being crafted has a
3636
- ;; different shape.
3637
- (rule 2 (lower (udiv a @ (value_type $I8) b))
3638
- (x64_div8 (extend_to_gpr a $I32 (ExtendKind.Zero))
3639
- (put_in_gpr b)
3640
- (DivSignedness.Unsigned)
3641
- (TrapCode.IntegerDivisionByZero)))
3642
-
3643
- ;; 16-to-64-bit division is all done with a similar instruction and the only
3644
- ;; tricky requirement here is that when div traps are disallowed the divisor
3645
- ;; must not be zero.
3646
- (rule 1 (lower (udiv a @ (value_type (fits_in_64 ty)) b))
3647
- (x64_div_quotient a
3648
- (imm $I64 0)
3649
- (put_in_gpr b)
3650
- (raw_operand_size_of_type ty)
3651
- (DivSignedness.Unsigned)
3652
- (TrapCode.IntegerDivisionByZero)))
3653
-
3654
- ;; Rules for `sdiv` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3655
-
3656
- (rule 2 (lower (sdiv a @ (value_type $I8) b))
3657
- (x64_div8 (x64_sign_extend_data a (OperandSize.Size8))
3658
- (nonzero_sdiv_divisor $I8 b)
3659
- (DivSignedness.Signed)
3660
- (TrapCode.IntegerOverflow)))
3661
-
3662
- (rule 1 (lower (sdiv a @ (value_type (fits_in_64 ty)) b))
3663
- (let (
3664
- (a Gpr a)
3665
- (size OperandSize (raw_operand_size_of_type ty))
3666
- )
3667
- (x64_div_quotient a
3668
- (x64_sign_extend_data a size)
3669
- (nonzero_sdiv_divisor ty b)
3670
- size
3671
- (DivSignedness.Signed)
3672
- (TrapCode.IntegerOverflow))))
3673
-
3674
- ;; Checks to make sure that the input `Value` is a non-zero value for `sdiv`.
3675
- ;;
3676
- ;; This is required to differentiate the divide-by-zero trap from the
3677
- ;; integer-overflow trap, the two trapping conditions of signed division.
3678
- (decl nonzero_sdiv_divisor (Type Value) Reg)
3679
- (rule 1 (nonzero_sdiv_divisor ty (iconst imm))
3680
- (if-let n (safe_divisor_from_imm64 ty imm))
3681
- (imm ty n))
3682
- (rule 0 (nonzero_sdiv_divisor ty val)
3683
- (let (
3684
- (val Reg val)
3685
- (_ InstOutput (side_effect (with_flags_side_effect
3686
- (x64_test (raw_operand_size_of_type ty) val val)
3687
- (trap_if (CC.Z) (TrapCode.IntegerDivisionByZero)))))
3688
- )
3689
- val))
3690
-
3691
- ;; Rules for `urem` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3692
-
3693
- ;; The remainder is in AH, so take the result of the division and right-shift
3694
- ;; by 8.
3695
- (rule 2 (lower (urem a @ (value_type $I8) b))
3696
- (let (
3697
- (result Gpr (x64_div8 (extend_to_gpr a $I32 (ExtendKind.Zero))
3698
- (put_in_gpr b) ;; see `udiv` for why not `gpr_mem`
3699
- (DivSignedness.Unsigned)
3700
- (TrapCode.IntegerDivisionByZero)))
3701
- )
3702
- (x64_shr $I64 result (Imm8Reg.Imm8 8))))
3703
-
3704
- (rule 1 (lower (urem a @ (value_type (fits_in_64 ty)) b))
3705
- (x64_div_remainder a
3706
- (imm $I64 0)
3707
- (put_in_gpr b) ;; see `udiv` for why not `gpr_mem`
3708
- (raw_operand_size_of_type ty)
3709
- (DivSignedness.Unsigned)
3710
- (TrapCode.IntegerDivisionByZero)))
3711
-
3712
- ;; Rules for `srem` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3713
-
3714
- ;; Special-cases first for constant `srem` where the checks for 0 and -1 aren't
3715
- ;; applicable.
3716
- ;;
3717
- ;; Note that like `urem` for i8 types the result is in AH so to get the result
3718
- ;; it's right-shifted down.
3719
- (rule 3 (lower (srem a @ (value_type $I8) (iconst imm)))
3720
- (if-let n (safe_divisor_from_imm64 $I8 imm))
3721
- (let (
3722
- (a Gpr (x64_sign_extend_data a (OperandSize.Size8)))
3723
- (result Gpr (x64_div8 a (imm $I8 n) (DivSignedness.Signed) (TrapCode.IntegerDivisionByZero)))
3724
- )
3725
- (x64_shr $I64 result (Imm8Reg.Imm8 8))))
3726
-
3727
- ;; Same as the above rule but for 16-to-64 bit types.
3728
- (rule 2 (lower (srem a @ (value_type ty) (iconst imm)))
3729
- (if-let n (safe_divisor_from_imm64 ty imm))
3730
- (let (
3731
- (a Gpr a)
3732
- (size OperandSize (raw_operand_size_of_type ty))
3733
- )
3734
- (x64_div_remainder a
3735
- (x64_sign_extend_data a size)
3736
- (imm ty n)
3737
- size
3738
- (DivSignedness.Signed)
3739
- (TrapCode.IntegerDivisionByZero))))
3740
-
3741
- (rule 1 (lower (srem a @ (value_type $I8) b))
3742
- (let (
3743
- (a Gpr (x64_sign_extend_data a (OperandSize.Size8)))
3744
- )
3745
- (x64_shr $I64 (x64_checked_srem_seq8 a b) (Imm8Reg.Imm8 8))))
3746
-
3747
- (rule (lower (srem a @ (value_type ty) b))
3748
- (let (
3749
- (a Gpr a)
3750
- (size OperandSize (raw_operand_size_of_type ty))
3751
- (hi Gpr (x64_sign_extend_data a size))
3752
- (tmp ValueRegs (x64_checked_srem_seq size a hi b))
3753
- )
3754
- (value_regs_get tmp 1)))
3755
-
3756
- ;; Rules for `umulhi` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3757
-
3758
- (rule (lower (umulhi a @ (value_type $I16) b))
3759
- (let ((res ValueRegs (mul_hi $I16 $false a b))
3760
- (hi Gpr (value_regs_get_gpr res 1)))
3761
- hi))
3762
-
3763
- (rule (lower (umulhi a @ (value_type $I32) b))
3764
- (let ((res ValueRegs (mul_hi $I32 $false a b))
3765
- (hi Gpr (value_regs_get_gpr res 1)))
3766
- hi))
3767
-
3768
- (rule (lower (umulhi a @ (value_type $I64) b))
3769
- (let ((res ValueRegs (mul_hi $I64 $false a b))
3770
- (hi Gpr (value_regs_get_gpr res 1)))
3771
- hi))
3772
-
3773
- ;; Rules for `smulhi` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3774
-
3775
- (rule (lower (smulhi a @ (value_type $I16) b))
3776
- (let ((res ValueRegs (mul_hi $I16 $true a b))
3777
- (hi Gpr (value_regs_get_gpr res 1)))
3778
- hi))
3779
-
3780
- (rule (lower (smulhi a @ (value_type $I32) b))
3781
- (let ((res ValueRegs (mul_hi $I32 $true a b))
3782
- (hi Gpr (value_regs_get_gpr res 1)))
3783
- hi))
3784
-
3785
- (rule (lower (smulhi a @ (value_type $I64) b))
3786
- (let ((res ValueRegs (mul_hi $I64 $true a b))
3787
- (hi Gpr (value_regs_get_gpr res 1)))
3788
- hi))
3789
-
3790
- ;; Rules for `get_pinned_reg` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3791
-
3792
- (rule (lower (get_pinned_reg))
3793
- (read_pinned_gpr))
3794
-
3795
- ;; Rules for `set_pinned_reg` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3796
-
3797
- (rule (lower (set_pinned_reg a @ (value_type ty)))
3798
- (side_effect (write_pinned_gpr a)))
3799
-
3800
- ;; Rules for `vconst` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3801
-
3802
- (rule (lower (has_type ty (vconst const)))
3803
- ;; TODO use Inst::gen_constant() instead.
3804
- (x64_xmm_load_const ty (const_to_vconst const)))
3805
-
3806
- ;; Rules for `shuffle` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3807
-
3808
- ;; Special case for `pblendw` which takes an 8-bit immediate where each bit
3809
- ;; indicates which lane of the two operands is chosen for the output. A bit of
3810
- ;; 0 chooses the corresponding 16-it lane from `a` and a bit of 1 chooses the
3811
- ;; corresponding 16-bit lane from `b`.
3812
- (rule 14 (lower (shuffle a b (pblendw_imm n)))
3813
- (if-let $true (use_sse41))
3814
- (x64_pblendw a b n))
3815
- (decl pblendw_imm (u8) Immediate)
3816
- (extern extractor pblendw_imm pblendw_imm)
3817
-
3818
- ;; When the shuffle looks like "concatenate `a` and `b` and shift right by n*8
3819
- ;; bytes", that's a `palignr` instruction. Note that the order of operands are
3820
- ;; swapped in the instruction here. The `palignr` instruction uses the second
3821
- ;; operand as the low-order bytes and the first operand as high-order bytes,
3822
- ;; so put `a` second.
3823
- (rule 13 (lower (shuffle a b (palignr_imm_from_immediate n)))
3824
- (x64_palignr b a n))
3825
- (decl palignr_imm_from_immediate (u8) Immediate)
3826
- (extern extractor palignr_imm_from_immediate palignr_imm_from_immediate)
3827
-
3828
- ;; Special case the `pshuf{l,h}w` instruction which shuffles four 16-bit
3829
- ;; integers within one value, preserving the other four 16-bit integers in that
3830
- ;; value (either the high or low half). The complicated logic is in the
3831
- ;; extractors here implemented in Rust and note that there's two cases for each
3832
- ;; instruction here to match when either the first or second shuffle operand is
3833
- ;; used.
3834
- (rule 12 (lower (shuffle x y (pshuflw_lhs_imm imm)))
3835
- (x64_pshuflw x imm))
3836
- (rule 11 (lower (shuffle x y (pshuflw_rhs_imm imm)))
3837
- (x64_pshuflw y imm))
3838
- (rule 10 (lower (shuffle x y (pshufhw_lhs_imm imm)))
3839
- (x64_pshufhw x imm))
3840
- (rule 9 (lower (shuffle x y (pshufhw_rhs_imm imm)))
3841
- (x64_pshufhw y imm))
3842
-
3843
- (decl pshuflw_lhs_imm (u8) Immediate)
3844
- (extern extractor pshuflw_lhs_imm pshuflw_lhs_imm)
3845
- (decl pshuflw_rhs_imm (u8) Immediate)
3846
- (extern extractor pshuflw_rhs_imm pshuflw_rhs_imm)
3847
- (decl pshufhw_lhs_imm (u8) Immediate)
3848
- (extern extractor pshufhw_lhs_imm pshufhw_lhs_imm)
3849
- (decl pshufhw_rhs_imm (u8) Immediate)
3850
- (extern extractor pshufhw_rhs_imm pshufhw_rhs_imm)
3851
-
3852
- ;; Special case for the `pshufd` instruction which will permute 32-bit values
3853
- ;; within a single register. This is only applicable if the `imm` specified
3854
- ;; selects 32-bit values from either `x` or `y`, but not both. This means
3855
- ;; there's one rule for selecting from `x` and another rule for selecting from
3856
- ;; `y`.
3857
- (rule 8 (lower (shuffle x y (pshufd_lhs_imm imm)))
3858
- (x64_pshufd x imm))
3859
- (rule 7 (lower (shuffle x y (pshufd_rhs_imm imm)))
3860
- (x64_pshufd y imm))
3861
-
3862
- (decl pshufd_lhs_imm (u8) Immediate)
3863
- (extern extractor pshufd_lhs_imm pshufd_lhs_imm)
3864
- (decl pshufd_rhs_imm (u8) Immediate)
3865
- (extern extractor pshufd_rhs_imm pshufd_rhs_imm)
3866
-
3867
- ;; Special case for i8-level interleaving of upper/low bytes.
3868
- (rule 6 (lower (shuffle a b (u128_from_immediate 0x1f0f_1e0e_1d0d_1c0c_1b0b_1a0a_1909_1808)))
3869
- (x64_punpckhbw a b))
3870
- (rule 6 (lower (shuffle a b (u128_from_immediate 0x1707_1606_1505_1404_1303_1202_1101_1000)))
3871
- (x64_punpcklbw a b))
3872
-
3873
- ;; Special case for i16-level interleaving of upper/low bytes.
3874
- (rule 6 (lower (shuffle a b (u128_from_immediate 0x1f1e_0f0e_1d1c_0d0c_1b1a_0b0a_1918_0908)))
3875
- (x64_punpckhwd a b))
3876
- (rule 6 (lower (shuffle a b (u128_from_immediate 0x1716_0706_1514_0504_1312_0302_1110_0100)))
3877
- (x64_punpcklwd a b))
3878
-
3879
- ;; Special case for i32-level interleaving of upper/low bytes.
3880
- (rule 6 (lower (shuffle a b (u128_from_immediate 0x1f1e1d1c_0f0e0d0c_1b1a1918_0b0a0908)))
3881
- (x64_punpckhdq a b))
3882
- (rule 6 (lower (shuffle a b (u128_from_immediate 0x17161514_07060504_13121110_03020100)))
3883
- (x64_punpckldq a b))
3884
-
3885
- ;; Special case for i64-level interleaving of upper/low bytes.
3886
- (rule 6 (lower (shuffle a b (u128_from_immediate 0x1f1e1d1c1b1a1918_0f0e0d0c0b0a0908)))
3887
- (x64_punpckhqdq a b))
3888
- (rule 6 (lower (shuffle a b (u128_from_immediate 0x1716151413121110_0706050403020100)))
3889
- (x64_punpcklqdq a b))
3890
-
3891
- ;; If the vector shift mask is all 0s then that means the first byte of the
3892
- ;; first operand is broadcast to all bytes. Falling through would load an
3893
- ;; all-zeros constant from a rip-relative location but it should be slightly
3894
- ;; more efficient to execute the `pshufb` here-and-now with an xor'd-to-be-zero
3895
- ;; register.
3896
- (rule 6 (lower (shuffle a _ (u128_from_immediate 0)))
3897
- (x64_pshufb a (xmm_zero $I8X16)))
3898
-
3899
- ;; Special case for the `shufps` instruction which will select two 32-bit values
3900
- ;; from the first operand and two 32-bit values from the second operand. Note
3901
- ;; that there is a second case here as well for when the operands can be
3902
- ;; swapped.
3903
- ;;
3904
- ;; Note that the priority of this instruction is currently lower than the above
3905
- ;; special cases since `shufps` handles many of them and for now it's
3906
- ;; hypothesized that the dedicated instructions are better than `shufps`.
3907
- ;; Someone with more knowledge about x86 timings should perhaps reorder the
3908
- ;; rules here eventually though.
3909
- (rule 5 (lower (shuffle x y (shufps_imm imm)))
3910
- (x64_shufps x y imm))
3911
- (rule 4 (lower (shuffle x y (shufps_rev_imm imm)))
3912
- (x64_shufps y x imm))
3913
-
3914
- (decl shufps_imm(u8) Immediate)
3915
- (extern extractor shufps_imm shufps_imm)
3916
- (decl shufps_rev_imm(u8) Immediate)
3917
- (extern extractor shufps_rev_imm shufps_rev_imm)
3918
-
3919
-
3920
- ;; If `lhs` and `rhs` are the same we can use a single PSHUFB to shuffle the XMM
3921
- ;; register. We statically build `constructed_mask` to zero out any unknown lane
3922
- ;; indices (may not be completely necessary: verification could fail incorrect
3923
- ;; mask values) and fix the indexes to all point to the `dst` vector.
3924
- (rule 3 (lower (shuffle a a (vec_mask_from_immediate mask)))
3925
- (x64_pshufb a (shuffle_0_31_mask mask)))
3926
-
3927
- ;; For the case where the shuffle mask contains out-of-bounds values (values
3928
- ;; greater than 31) we must mask off those resulting values in the result of
3929
- ;; `vpermi2b`.
3930
- (rule 2 (lower (has_type (and (avx512vl_enabled $true) (avx512vbmi_enabled $true))
3931
- (shuffle a b (vec_mask_from_immediate
3932
- (perm_from_mask_with_zeros mask zeros)))))
3933
- (x64_andps (x64_vpermi2b b a (x64_xmm_load_const $I8X16 mask)) zeros))
3934
-
3935
- ;; However, if the shuffle mask contains no out-of-bounds values, we can use
3936
- ;; `vpermi2b` without any masking.
3937
- (rule 1 (lower (has_type (and (avx512vl_enabled $true) (avx512vbmi_enabled $true))
3938
- (shuffle a b (vec_mask_from_immediate mask))))
3939
- (x64_vpermi2b b a (x64_xmm_load_const $I8X16 (perm_from_mask mask))))
3940
-
3941
- ;; If `lhs` and `rhs` are different, we must shuffle each separately and then OR
3942
- ;; them together. This is necessary due to PSHUFB semantics. As in the case
3943
- ;; above, we build the `constructed_mask` for each case statically.
3944
- (rule (lower (shuffle a b (vec_mask_from_immediate mask)))
3945
- (x64_por
3946
- (x64_pshufb a (shuffle_0_15_mask mask))
3947
- (x64_pshufb b (shuffle_16_31_mask mask))))
3948
-
3949
- ;; Rules for `swizzle` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3950
-
3951
- ;; SIMD swizzle; the following inefficient implementation is due to the Wasm
3952
- ;; SIMD spec requiring mask indexes greater than 15 to have the same semantics
3953
- ;; as a 0 index. For the spec discussion, see
3954
- ;; https://github.com/WebAssembly/simd/issues/93. The CLIF semantics match the
3955
- ;; Wasm SIMD semantics for this instruction. The instruction format maps to
3956
- ;; variables like: %dst = swizzle %src, %mask
3957
- (rule (lower (swizzle src mask))
3958
- (let ((mask Xmm (x64_paddusb mask (swizzle_zero_mask))))
3959
- (x64_pshufb src mask)))
3960
-
3961
- ;; Rules for `x86_pshufb` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3962
-
3963
- (rule (lower (x86_pshufb src mask))
3964
- (x64_pshufb src mask))
3965
-
3966
- ;; Rules for `extractlane` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3967
-
3968
- ;; Remove the extractlane instruction, leaving the float where it is. The upper
3969
- ;; bits will remain unchanged; for correctness, this relies on Cranelift type
3970
- ;; checking to avoid using those bits.
3971
- (rule 2 (lower (has_type (ty_scalar_float _) (extractlane val (u8_from_uimm8 0))))
3972
- val)
3973
-
3974
- ;; Cases 2-4 for an F32X4
3975
- (rule 1 (lower (has_type $F32 (extractlane val @ (value_type (ty_vec128 ty))
3976
- (u8_from_uimm8 lane))))
3977
- (x64_pshufd val lane))
3978
-
3979
- ;; This is the only remaining case for F64X2
3980
- (rule 1 (lower (has_type $F64 (extractlane val @ (value_type (ty_vec128 ty))
3981
- (u8_from_uimm8 1))))
3982
- (x64_pshufd val 0b11_10_11_10))
3983
-
3984
- ;; Note that the `pextrb` lowering here is relied upon by the `extend_to_gpr`
3985
- ;; helper because it will elide a `uextend` operation when `extractlane` is the
3986
- ;; inner node. The `pextrb` operation automatically zero-extends for us so the
3987
- ;; extra `uextend` doesn't have to codegen anything.
3988
- (rule 0 (lower (extractlane val @ (value_type ty @ (multi_lane 8 16)) (u8_from_uimm8 lane)))
3989
- (x64_pextrb val lane))
3990
-
3991
- ;; See the note in the 8x16 case above for how this rule is connected to
3992
- ;; `extend_to_gpr`.
3993
- (rule 0 (lower (extractlane val @ (value_type ty @ (multi_lane 16 8)) (u8_from_uimm8 lane)))
3994
- (x64_pextrw val lane))
3995
-
3996
- ;; See the note in the 8x16 case above for how this rule is connected to
3997
- ;; `extend_to_gpr`.
3998
- (rule 0 (lower (extractlane val @ (value_type ty @ (multi_lane 32 4)) (u8_from_uimm8 lane)))
3999
- (x64_pextrd val lane))
4000
-
4001
- (rule 0 (lower (extractlane val @ (value_type ty @ (multi_lane 64 2)) (u8_from_uimm8 lane)))
4002
- (x64_pextrq val lane))
4003
-
4004
- ;; Rules for `scalar_to_vector` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4005
-
4006
- ;; Case 1: when moving a scalar float, we simply move from one XMM register
4007
- ;; to another, expecting the register allocator to elide this. Here we
4008
- ;; assume that the upper bits of a scalar float have not been munged with
4009
- ;; (the same assumption the old backend makes).
4010
- (rule 1 (lower (scalar_to_vector src @ (value_type (ty_scalar_float _))))
4011
- src)
4012
-
4013
- ;; Case 2: when moving a scalar value of any other type, use MOVD to zero
4014
- ;; the upper lanes.
4015
- (rule (lower (scalar_to_vector src @ (value_type ty)))
4016
- (bitcast_gpr_to_xmm ty src))
4017
-
4018
- ;; Case 3: when presented with `load + scalar_to_vector`, coalesce into a single
4019
- ;; MOVSS/MOVSD instruction.
4020
- (rule 2 (lower (scalar_to_vector (and (sinkable_load src) (value_type (ty_32 _)))))
4021
- (x64_movss_load src))
4022
- (rule 3 (lower (scalar_to_vector (and (sinkable_load src) (value_type (ty_64 _)))))
4023
- (x64_movsd_load src))
4024
-
4025
- ;; Rules for `splat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4026
-
4027
- ;; For all the splat rules below one of the goals is that splatting a value
4028
- ;; doesn't end up accidentally depending on the previous value in a register.
4029
- ;; This means that instructions are chosen to avoid false dependencies where
4030
- ;; new values are created fresh or otherwise overwrite previous register
4031
- ;; contents where possible.
4032
- ;;
4033
- ;; Additionally splats are specialized to special-case load-and-splat which
4034
- ;; has a number of micro-optimizations available.
4035
-
4036
- ;; i8x16 splats: use `vpbroadcastb` on AVX2 and otherwise `pshufb` broadcasts
4037
- ;; with a mask of zero which is calculated with an xor-against-itself register.
4038
- (rule 0 (lower (has_type $I8X16 (splat src)))
4039
- (x64_pshufb (bitcast_gpr_to_xmm $I32 src) (xmm_zero $I8X16)))
4040
- (rule 1 (lower (has_type $I8X16 (splat src)))
4041
- (if-let $true (use_avx2_simd))
4042
- (x64_vpbroadcastb (bitcast_gpr_to_xmm $I32 src)))
4043
- (rule 2 (lower (has_type $I8X16 (splat (sinkable_load_exact addr))))
4044
- (x64_pshufb (x64_pinsrb (xmm_uninit_value) addr 0) (xmm_zero $I8X16)))
4045
- (rule 3 (lower (has_type $I8X16 (splat (sinkable_load_exact addr))))
4046
- (if-let $true (use_avx2_simd))
4047
- (x64_vpbroadcastb addr))
4048
-
4049
- ;; i16x8 splats: use `vpbroadcastw` on AVX2 and otherwise a 16-bit value is
4050
- ;; loaded into an xmm register, `pshuflw` broadcasts the low 16-bit lane
4051
- ;; to the low four lanes, and `pshufd` broadcasts the low 32-bit lane (which
4052
- ;; at that point is two of the 16-bit values we want to broadcast) to all the
4053
- ;; lanes.
4054
- (rule 0 (lower (has_type $I16X8 (splat src)))
4055
- (x64_pshufd (x64_pshuflw (bitcast_gpr_to_xmm $I32 src) 0) 0))
4056
- (rule 1 (lower (has_type $I16X8 (splat src)))
4057
- (if-let $true (use_avx2_simd))
4058
- (x64_vpbroadcastw (bitcast_gpr_to_xmm $I32 src)))
4059
- (rule 2 (lower (has_type $I16X8 (splat (sinkable_load_exact addr))))
4060
- (x64_pshufd (x64_pshuflw (x64_pinsrw (xmm_uninit_value) addr 0) 0) 0))
4061
- (rule 3 (lower (has_type $I16X8 (splat (sinkable_load_exact addr))))
4062
- (if-let $true (use_avx2_simd))
4063
- (x64_vpbroadcastw addr))
4064
-
4065
- ;; i32x4.splat - use `vpbroadcastd` on AVX2 and otherwise `pshufd` can be
4066
- ;; used to broadcast the low lane to all other lanes.
4067
- ;;
4068
- ;; Note that sinkable-load cases come later
4069
- (rule 0 (lower (has_type $I32X4 (splat src)))
4070
- (x64_pshufd (bitcast_gpr_to_xmm $I32 src) 0))
4071
- (rule 1 (lower (has_type $I32X4 (splat src)))
4072
- (if-let $true (use_avx2_simd))
4073
- (x64_vpbroadcastd (bitcast_gpr_to_xmm $I32 src)))
4074
-
4075
- ;; f32x4.splat - the source is already in an xmm register so `shufps` is all
4076
- ;; that's necessary to complete the splat. This is specialized to `vbroadcastss`
4077
- ;; on AVX2 to leverage that specific instruction for this operation.
4078
- (rule 0 (lower (has_type $F32X4 (splat src)))
4079
- (let ((tmp Xmm src))
4080
- (x64_shufps src src 0)))
4081
- (rule 1 (lower (has_type $F32X4 (splat src)))
4082
- (if-let $true (use_avx2_simd))
4083
- (x64_vbroadcastss src))
4084
-
4085
- ;; t32x4.splat of a load - use a `movss` to load into an xmm register and then
4086
- ;; `shufps` broadcasts to the other lanes. Note that this is used for both i32
4087
- ;; and f32 splats.
4088
- ;;
4089
- ;; With AVX the `vbroadcastss` instruction suits this purpose precisely. Note
4090
- ;; that the memory-operand encoding of `vbroadcastss` is usable with AVX, but
4091
- ;; the register-based encoding is only available with AVX2. With the
4092
- ;; `sinkable_load` extractor this should be guaranteed to use the memory-based
4093
- ;; encoding hence the `use_avx_simd` test.
4094
- (rule 4 (lower (has_type (multi_lane 32 4) (splat (sinkable_load addr))))
4095
- (let ((tmp Xmm (x64_movss_load addr)))
4096
- (x64_shufps tmp tmp 0)))
4097
- (rule 5 (lower (has_type (multi_lane 32 4) (splat (sinkable_load addr))))
4098
- (if-let $true (use_avx_simd))
4099
- (x64_vbroadcastss addr))
4100
-
4101
- ;; t64x2.splat - use `movddup` which is exactly what we want and there's a
4102
- ;; minor specialization for sinkable loads to avoid going through a gpr for i64
4103
- ;; splats
4104
- (rule 0 (lower (has_type $I64X2 (splat src)))
4105
- (x64_movddup (bitcast_gpr_to_xmm $I64 src)))
4106
- (rule 0 (lower (has_type $F64X2 (splat src)))
4107
- (x64_movddup src))
4108
- (rule 5 (lower (has_type (multi_lane 64 2) (splat (sinkable_load addr))))
4109
- (x64_movddup addr))
4110
-
4111
- ;; Rules for `vany_true` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4112
-
4113
- (rule 1 (lower (vany_true val))
4114
- (if-let $true (use_sse41))
4115
- (let ((val Xmm val))
4116
- (with_flags (x64_ptest val val) (x64_setcc (CC.NZ)))))
4117
-
4118
- ;; Any nonzero byte in `val` means that any lane is true. Compare `val` with a
4119
- ;; zeroed register and extract the high bits to a gpr mask. If the mask is
4120
- ;; 0xffff then every byte was equal to zero, so test if the comparison is
4121
- ;; not-equal or NZ.
4122
- (rule (lower (vany_true val))
4123
- (let (
4124
- (any_byte_zero Xmm (x64_pcmpeqb val (xmm_zero $I8X16)))
4125
- (mask Gpr (x64_pmovmskb (OperandSize.Size32) any_byte_zero))
4126
- )
4127
- (with_flags (x64_cmp (OperandSize.Size32) (RegMemImm.Imm 0xffff) mask)
4128
- (x64_setcc (CC.NZ)))))
4129
-
4130
- ;; Rules for `vall_true` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4131
-
4132
- (rule 1 (lower (vall_true val @ (value_type ty)))
4133
- (if-let $true (use_sse41))
4134
- (let ((src Xmm val)
4135
- (zeros Xmm (xmm_zero ty))
4136
- (cmp Xmm (x64_pcmpeq (vec_int_type ty) src zeros)))
4137
- (with_flags (x64_ptest cmp cmp) (x64_setcc (CC.Z)))))
4138
-
4139
- ;; Perform an appropriately-sized lane-wise comparison with zero. If the
4140
- ;; result is all 0s then all of them are true because nothing was equal to
4141
- ;; zero.
4142
- (rule (lower (vall_true val @ (value_type ty)))
4143
- (let ((lanes_with_zero Xmm (x64_pcmpeq (vec_int_type ty) val (xmm_zero ty)))
4144
- (mask Gpr (x64_pmovmskb (OperandSize.Size32) lanes_with_zero)))
4145
- (with_flags (x64_test (OperandSize.Size32) mask mask)
4146
- (x64_setcc (CC.Z)))))
4147
-
4148
- ;; Rules for `vhigh_bits` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4149
-
4150
- ;; The Intel specification allows using both 32-bit and 64-bit GPRs as
4151
- ;; destination for the "move mask" instructions. This is controlled by the REX.R
4152
- ;; bit: "In 64-bit mode, the instruction can access additional registers when
4153
- ;; used with a REX.R prefix. The default operand size is 64-bit in 64-bit mode"
4154
- ;; (PMOVMSKB in IA Software Development Manual, vol. 2). This being the case, we
4155
- ;; will always clear REX.W since its use is unnecessary (`OperandSize` is used
4156
- ;; for setting/clearing REX.W) as we need at most 16 bits of output for
4157
- ;; `vhigh_bits`.
4158
-
4159
- (rule (lower (vhigh_bits val @ (value_type (multi_lane 8 16))))
4160
- (x64_pmovmskb (OperandSize.Size32) val))
4161
-
4162
- (rule (lower (vhigh_bits val @ (value_type (multi_lane 32 4))))
4163
- (x64_movmskps (OperandSize.Size32) val))
4164
-
4165
- (rule (lower (vhigh_bits val @ (value_type (multi_lane 64 2))))
4166
- (x64_movmskpd (OperandSize.Size32) val))
4167
-
4168
- ;; There is no x86 instruction for extracting the high bit of 16-bit lanes so
4169
- ;; here we:
4170
- ;; - duplicate the 16-bit lanes of `src` into 8-bit lanes:
4171
- ;; PACKSSWB([x1, x2, ...], [x1, x2, ...]) = [x1', x2', ..., x1', x2', ...]
4172
- ;; - use PMOVMSKB to gather the high bits; now we have duplicates, though
4173
- ;; - shift away the bottom 8 high bits to remove the duplicates.
4174
- (rule (lower (vhigh_bits val @ (value_type (multi_lane 16 8))))
4175
- (let ((src Xmm val)
4176
- (tmp Xmm (x64_packsswb src src))
4177
- (tmp Gpr (x64_pmovmskb (OperandSize.Size32) tmp)))
4178
- (x64_shr $I64 tmp (Imm8Reg.Imm8 8))))
4179
-
4180
- ;; Rules for `iconcat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4181
-
4182
- (rule (lower (iconcat lo @ (value_type $I64) hi))
4183
- (value_regs lo hi))
4184
-
4185
- ;; Rules for `isplit` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4186
-
4187
- (rule (lower (isplit val @ (value_type $I128)))
4188
- (let ((regs ValueRegs val)
4189
- (lo Reg (value_regs_get regs 0))
4190
- (hi Reg (value_regs_get regs 1)))
4191
- (output_pair lo hi)))
4192
-
4193
- ;; Rules for `tls_value` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4194
-
4195
- (rule (lower (has_type (tls_model (TlsModel.ElfGd)) (tls_value (symbol_value_data name _ _))))
4196
- (elf_tls_get_addr name))
4197
-
4198
- (rule (lower (has_type (tls_model (TlsModel.Macho)) (tls_value (symbol_value_data name _ _))))
4199
- (macho_tls_get_addr name))
4200
-
4201
- (rule (lower (has_type (tls_model (TlsModel.Coff)) (tls_value (symbol_value_data name _ _))))
4202
- (coff_tls_get_addr name))
4203
-
4204
- ;; Rules for `sqmul_round_sat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4205
-
4206
- (rule (lower (sqmul_round_sat qx @ (value_type $I16X8) qy))
4207
- (let ((src1 Xmm qx)
4208
- (src2 Xmm qy)
4209
-
4210
- (mask XmmMem (sqmul_round_sat_mask))
4211
- (dst Xmm (x64_pmulhrsw src1 src2))
4212
- (cmp Xmm (x64_pcmpeqw dst mask)))
4213
- (x64_pxor dst cmp)))
4214
-
4215
- ;; Rules for `x86_pmulhrsw` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4216
-
4217
- (rule (lower (x86_pmulhrsw qx @ (value_type $I16X8) qy))
4218
- (x64_pmulhrsw qx qy))
4219
-
4220
- ;; Rules for `uunarrow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4221
-
4222
- ;; TODO: currently we only lower a special case of `uunarrow` needed to support
4223
- ;; the translation of wasm's i32x4.trunc_sat_f64x2_u_zero operation.
4224
- ;; https://github.com/bytecodealliance/wasmtime/issues/4791
4225
- ;;
4226
- ;; y = i32x4.trunc_sat_f64x2_u_zero(x) is lowered to:
4227
- ;; MOVAPD xmm_y, xmm_x
4228
- ;; XORPD xmm_tmp, xmm_tmp
4229
- ;; MAXPD xmm_y, xmm_tmp
4230
- ;; MINPD xmm_y, [wasm_f64x2_splat(4294967295.0)]
4231
- ;; ROUNDPD xmm_y, xmm_y, 0x0B
4232
- ;; ADDPD xmm_y, [wasm_f64x2_splat(0x1.0p+52)]
4233
- ;; SHUFPS xmm_y, xmm_xmp, 0x88
4234
- (rule (lower (uunarrow (fcvt_to_uint_sat src @ (value_type $F64X2))
4235
- (vconst (u128_from_constant 0))))
4236
- (let ((src Xmm src)
4237
-
4238
- ;; MOVAPD xmm_y, xmm_x
4239
- ;; XORPD xmm_tmp, xmm_tmp
4240
- (zeros Xmm (xmm_zero $F64X2))
4241
- (dst Xmm (x64_maxpd src zeros))
4242
-
4243
- (umax_mask XmmMem (uunarrow_umax_mask))
4244
-
4245
- ;; MINPD xmm_y, [wasm_f64x2_splat(4294967295.0)]
4246
- (dst Xmm (x64_minpd dst umax_mask))
4247
-
4248
- ;; ROUNDPD xmm_y, xmm_y, 0x0B
4249
- (dst Xmm (x64_roundpd dst (RoundImm.RoundZero)))
4250
-
4251
- ;; ADDPD xmm_y, [wasm_f64x2_splat(0x1.0p+52)]
4252
- (uint_mask XmmMem (uunarrow_uint_mask))
4253
- (dst Xmm (x64_addpd dst uint_mask)))
4254
-
4255
- ;; SHUFPS xmm_y, xmm_xmp, 0x88
4256
- (x64_shufps dst zeros 0x88)))
4257
-
4258
- ;; Rules for `nop` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4259
-
4260
- (rule (lower (nop))
4261
- (invalid_reg))
4262
-