wasmtime 12.0.1 → 13.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2318) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +176 -221
  3. data/ext/Cargo.toml +6 -6
  4. data/ext/cargo-vendor/cap-net-ext-2.0.0/.cargo-checksum.json +1 -0
  5. data/ext/cargo-vendor/cap-net-ext-2.0.0/COPYRIGHT +29 -0
  6. data/ext/cargo-vendor/cap-net-ext-2.0.0/Cargo.toml +38 -0
  7. data/ext/cargo-vendor/cap-net-ext-2.0.0/README.md +24 -0
  8. data/ext/cargo-vendor/cap-net-ext-2.0.0/src/lib.rs +771 -0
  9. data/ext/cargo-vendor/cranelift-bforest-0.100.0/.cargo-checksum.json +1 -0
  10. data/ext/cargo-vendor/cranelift-bforest-0.100.0/Cargo.toml +31 -0
  11. data/ext/cargo-vendor/cranelift-bforest-0.100.0/src/lib.rs +184 -0
  12. data/ext/cargo-vendor/cranelift-bforest-0.100.0/src/map.rs +922 -0
  13. data/ext/cargo-vendor/cranelift-bforest-0.100.0/src/pool.rs +219 -0
  14. data/ext/cargo-vendor/cranelift-bforest-0.100.0/src/set.rs +597 -0
  15. data/ext/cargo-vendor/cranelift-codegen-0.100.0/.cargo-checksum.json +1 -0
  16. data/ext/cargo-vendor/cranelift-codegen-0.100.0/Cargo.toml +164 -0
  17. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/binemit/mod.rs +141 -0
  18. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/binemit/stack_map.rs +155 -0
  19. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/bitset.rs +166 -0
  20. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/context.rs +372 -0
  21. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/incremental_cache.rs +256 -0
  22. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/atomic_rmw_op.rs +104 -0
  23. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/condcodes.rs +404 -0
  24. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/constant.rs +463 -0
  25. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/dfg.rs +1686 -0
  26. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/dynamic_type.rs +55 -0
  27. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/entities.rs +567 -0
  28. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/extfunc.rs +411 -0
  29. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/extname.rs +333 -0
  30. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/function.rs +475 -0
  31. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/globalvalue.rs +155 -0
  32. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/immediates.rs +1615 -0
  33. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/instructions.rs +1000 -0
  34. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/jumptable.rs +168 -0
  35. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/known_symbol.rs +47 -0
  36. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/libcall.rs +232 -0
  37. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/memflags.rs +279 -0
  38. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/mod.rs +106 -0
  39. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/sourceloc.rs +117 -0
  40. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/stackslot.rs +216 -0
  41. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/table.rs +40 -0
  42. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/trapcode.rs +144 -0
  43. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/ir/types.rs +630 -0
  44. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/aarch64/abi.rs +1573 -0
  45. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/aarch64/inst/args.rs +747 -0
  46. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/aarch64/inst/emit.rs +3911 -0
  47. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/aarch64/inst/emit_tests.rs +7951 -0
  48. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/aarch64/inst/mod.rs +3049 -0
  49. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/aarch64/inst.isle +4173 -0
  50. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/aarch64/lower/isle.rs +871 -0
  51. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/aarch64/lower.isle +2889 -0
  52. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/aarch64/lower.rs +132 -0
  53. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/aarch64/lower_dynamic_neon.isle +98 -0
  54. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/call_conv.rs +119 -0
  55. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/riscv64/abi.rs +981 -0
  56. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/riscv64/inst/args.rs +1900 -0
  57. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/riscv64/inst/emit.rs +3203 -0
  58. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/riscv64/inst/encode.rs +326 -0
  59. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/riscv64/inst/imms.rs +236 -0
  60. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/riscv64/inst/mod.rs +2162 -0
  61. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/riscv64/inst/vector.rs +1059 -0
  62. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/riscv64/inst.isle +3092 -0
  63. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/riscv64/inst_vector.isle +1887 -0
  64. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/riscv64/lower/isle.rs +620 -0
  65. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/riscv64/lower.isle +2119 -0
  66. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/s390x/abi.rs +949 -0
  67. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/s390x/inst/mod.rs +3430 -0
  68. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/s390x/inst.isle +5043 -0
  69. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/s390x/lower.isle +3982 -0
  70. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/unwind/systemv.rs +272 -0
  71. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/unwind/winx64.rs +334 -0
  72. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/unwind.rs +182 -0
  73. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/x64/abi.rs +1200 -0
  74. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/x64/encoding/evex.rs +749 -0
  75. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/x64/encoding/rex.rs +589 -0
  76. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/x64/inst/args.rs +2188 -0
  77. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/x64/inst/emit.rs +4300 -0
  78. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/x64/inst/emit_tests.rs +5474 -0
  79. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/x64/inst/mod.rs +2763 -0
  80. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/x64/inst.isle +5110 -0
  81. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/x64/lower/isle.rs +1096 -0
  82. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/x64/lower.isle +4675 -0
  83. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isa/x64/lower.rs +340 -0
  84. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/isle_prelude.rs +899 -0
  85. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/legalizer/mod.rs +356 -0
  86. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/lib.rs +107 -0
  87. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/machinst/abi.rs +2644 -0
  88. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/machinst/buffer.rs +2362 -0
  89. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/machinst/isle.rs +846 -0
  90. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/machinst/mod.rs +553 -0
  91. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/machinst/reg.rs +556 -0
  92. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/machinst/vcode.rs +1646 -0
  93. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/opts/bitops.isle +147 -0
  94. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/opts/cprop.isle +200 -0
  95. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/opts/extends.isle +34 -0
  96. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/opts/icmp.isle +177 -0
  97. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/opts/selects.isle +59 -0
  98. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/opts/vector.isle +88 -0
  99. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/prelude.isle +603 -0
  100. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/prelude_lower.isle +1029 -0
  101. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/value_label.rs +32 -0
  102. data/ext/cargo-vendor/cranelift-codegen-0.100.0/src/verifier/mod.rs +1986 -0
  103. data/ext/cargo-vendor/cranelift-codegen-meta-0.100.0/.cargo-checksum.json +1 -0
  104. data/ext/cargo-vendor/cranelift-codegen-meta-0.100.0/Cargo.toml +26 -0
  105. data/ext/cargo-vendor/cranelift-codegen-meta-0.100.0/src/constant_hash.rs +63 -0
  106. data/ext/cargo-vendor/cranelift-codegen-meta-0.100.0/src/gen_inst.rs +1784 -0
  107. data/ext/cargo-vendor/cranelift-codegen-meta-0.100.0/src/shared/instructions.rs +3810 -0
  108. data/ext/cargo-vendor/cranelift-codegen-shared-0.100.0/.cargo-checksum.json +1 -0
  109. data/ext/cargo-vendor/cranelift-codegen-shared-0.100.0/Cargo.toml +22 -0
  110. data/ext/cargo-vendor/cranelift-codegen-shared-0.100.0/src/lib.rs +12 -0
  111. data/ext/cargo-vendor/cranelift-control-0.100.0/.cargo-checksum.json +1 -0
  112. data/ext/cargo-vendor/cranelift-control-0.100.0/Cargo.toml +30 -0
  113. data/ext/cargo-vendor/cranelift-entity-0.100.0/.cargo-checksum.json +1 -0
  114. data/ext/cargo-vendor/cranelift-entity-0.100.0/Cargo.toml +41 -0
  115. data/ext/cargo-vendor/cranelift-entity-0.100.0/src/lib.rs +316 -0
  116. data/ext/cargo-vendor/cranelift-entity-0.100.0/src/list.rs +955 -0
  117. data/ext/cargo-vendor/cranelift-entity-0.100.0/src/packed_option.rs +171 -0
  118. data/ext/cargo-vendor/cranelift-entity-0.100.0/src/primary.rs +456 -0
  119. data/ext/cargo-vendor/cranelift-entity-0.100.0/src/sparse.rs +368 -0
  120. data/ext/cargo-vendor/cranelift-frontend-0.100.0/.cargo-checksum.json +1 -0
  121. data/ext/cargo-vendor/cranelift-frontend-0.100.0/Cargo.toml +54 -0
  122. data/ext/cargo-vendor/cranelift-frontend-0.100.0/src/lib.rs +191 -0
  123. data/ext/cargo-vendor/cranelift-isle-0.100.0/.cargo-checksum.json +1 -0
  124. data/ext/cargo-vendor/cranelift-isle-0.100.0/Cargo.toml +37 -0
  125. data/ext/cargo-vendor/cranelift-native-0.100.0/.cargo-checksum.json +1 -0
  126. data/ext/cargo-vendor/cranelift-native-0.100.0/Cargo.toml +38 -0
  127. data/ext/cargo-vendor/cranelift-native-0.100.0/src/lib.rs +190 -0
  128. data/ext/cargo-vendor/cranelift-wasm-0.100.0/.cargo-checksum.json +1 -0
  129. data/ext/cargo-vendor/cranelift-wasm-0.100.0/Cargo.toml +92 -0
  130. data/ext/cargo-vendor/cranelift-wasm-0.100.0/src/code_translator.rs +3641 -0
  131. data/ext/cargo-vendor/cranelift-wasm-0.100.0/src/environ/dummy.rs +942 -0
  132. data/ext/cargo-vendor/cranelift-wasm-0.100.0/src/environ/spec.rs +949 -0
  133. data/ext/cargo-vendor/cranelift-wasm-0.100.0/src/func_translator.rs +432 -0
  134. data/ext/cargo-vendor/cranelift-wasm-0.100.0/src/heap.rs +108 -0
  135. data/ext/cargo-vendor/cranelift-wasm-0.100.0/src/lib.rs +64 -0
  136. data/ext/cargo-vendor/cranelift-wasm-0.100.0/src/sections_translator.rs +408 -0
  137. data/ext/cargo-vendor/cranelift-wasm-0.100.0/src/translation_utils.rs +97 -0
  138. data/ext/cargo-vendor/fallible-iterator-0.3.0/.cargo-checksum.json +1 -0
  139. data/ext/cargo-vendor/fallible-iterator-0.3.0/CHANGELOG.md +39 -0
  140. data/ext/cargo-vendor/fallible-iterator-0.3.0/Cargo.toml +29 -0
  141. data/ext/cargo-vendor/fallible-iterator-0.3.0/README.md +16 -0
  142. data/ext/cargo-vendor/fallible-iterator-0.3.0/src/lib.rs +2808 -0
  143. data/ext/cargo-vendor/fallible-iterator-0.3.0/src/test.rs +477 -0
  144. data/ext/cargo-vendor/serde-1.0.188/.cargo-checksum.json +1 -0
  145. data/ext/cargo-vendor/serde-1.0.188/Cargo.toml +69 -0
  146. data/ext/cargo-vendor/serde-1.0.188/build.rs +90 -0
  147. data/ext/cargo-vendor/serde-1.0.188/src/de/ignored_any.rs +238 -0
  148. data/ext/cargo-vendor/serde-1.0.188/src/de/impls.rs +2966 -0
  149. data/ext/cargo-vendor/serde-1.0.188/src/de/mod.rs +2290 -0
  150. data/ext/cargo-vendor/serde-1.0.188/src/de/value.rs +1708 -0
  151. data/ext/cargo-vendor/serde-1.0.188/src/integer128.rs +9 -0
  152. data/ext/cargo-vendor/serde-1.0.188/src/lib.rs +327 -0
  153. data/ext/cargo-vendor/serde-1.0.188/src/macros.rs +231 -0
  154. data/ext/cargo-vendor/serde-1.0.188/src/ser/fmt.rs +170 -0
  155. data/ext/cargo-vendor/serde-1.0.188/src/ser/impls.rs +998 -0
  156. data/ext/cargo-vendor/serde-1.0.188/src/ser/mod.rs +1952 -0
  157. data/ext/cargo-vendor/serde_derive-1.0.188/.cargo-checksum.json +1 -0
  158. data/ext/cargo-vendor/serde_derive-1.0.188/Cargo.toml +59 -0
  159. data/ext/cargo-vendor/serde_derive-1.0.188/src/lib.rs +102 -0
  160. data/ext/cargo-vendor/serde_derive-1.0.188/src/ser.rs +1359 -0
  161. data/ext/cargo-vendor/wasi-cap-std-sync-13.0.0/.cargo-checksum.json +1 -0
  162. data/ext/cargo-vendor/wasi-cap-std-sync-13.0.0/Cargo.toml +96 -0
  163. data/ext/cargo-vendor/wasi-cap-std-sync-13.0.0/src/lib.rs +161 -0
  164. data/ext/cargo-vendor/wasi-common-13.0.0/.cargo-checksum.json +1 -0
  165. data/ext/cargo-vendor/wasi-common-13.0.0/Cargo.toml +87 -0
  166. data/ext/cargo-vendor/wasm-encoder-0.32.0/.cargo-checksum.json +1 -0
  167. data/ext/cargo-vendor/wasm-encoder-0.32.0/Cargo.toml +33 -0
  168. data/ext/cargo-vendor/wasm-encoder-0.32.0/src/component/types.rs +769 -0
  169. data/ext/cargo-vendor/wasm-encoder-0.33.1/.cargo-checksum.json +1 -0
  170. data/ext/cargo-vendor/wasm-encoder-0.33.1/Cargo.toml +33 -0
  171. data/ext/cargo-vendor/wasm-encoder-0.33.1/README.md +80 -0
  172. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/component/aliases.rs +160 -0
  173. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/component/builder.rs +449 -0
  174. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/component/canonicals.rs +159 -0
  175. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/component/components.rs +29 -0
  176. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/component/exports.rs +127 -0
  177. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/component/imports.rs +200 -0
  178. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/component/instances.rs +200 -0
  179. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/component/modules.rs +29 -0
  180. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/component/names.rs +149 -0
  181. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/component/start.rs +52 -0
  182. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/component/types.rs +769 -0
  183. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/component.rs +168 -0
  184. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/code.rs +2913 -0
  185. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/custom.rs +73 -0
  186. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/data.rs +185 -0
  187. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/dump.rs +627 -0
  188. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/elements.rs +220 -0
  189. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/exports.rs +85 -0
  190. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/functions.rs +63 -0
  191. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/globals.rs +90 -0
  192. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/imports.rs +142 -0
  193. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/linking.rs +263 -0
  194. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/memories.rs +99 -0
  195. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/names.rs +265 -0
  196. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/producers.rs +180 -0
  197. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/start.rs +39 -0
  198. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/tables.rs +104 -0
  199. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/tags.rs +85 -0
  200. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core/types.rs +372 -0
  201. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/core.rs +168 -0
  202. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/lib.rs +215 -0
  203. data/ext/cargo-vendor/wasm-encoder-0.33.1/src/raw.rs +30 -0
  204. data/ext/cargo-vendor/wasmparser-0.112.0/.cargo-checksum.json +1 -0
  205. data/ext/cargo-vendor/wasmparser-0.112.0/Cargo.lock +644 -0
  206. data/ext/cargo-vendor/wasmparser-0.112.0/Cargo.toml +54 -0
  207. data/ext/cargo-vendor/wasmparser-0.112.0/src/limits.rs +58 -0
  208. data/ext/cargo-vendor/wasmparser-0.112.0/src/readers/component/types.rs +542 -0
  209. data/ext/cargo-vendor/wasmparser-0.112.0/src/readers/core/types.rs +1303 -0
  210. data/ext/cargo-vendor/wasmparser-0.112.0/src/validator/component.rs +3120 -0
  211. data/ext/cargo-vendor/wasmparser-0.112.0/src/validator/core.rs +1352 -0
  212. data/ext/cargo-vendor/wasmparser-0.112.0/src/validator/types.rs +3239 -0
  213. data/ext/cargo-vendor/wasmparser-0.112.0/src/validator.rs +1569 -0
  214. data/ext/cargo-vendor/wasmparser-0.113.1/.cargo-checksum.json +1 -0
  215. data/ext/cargo-vendor/wasmparser-0.113.1/Cargo.lock +644 -0
  216. data/ext/cargo-vendor/wasmparser-0.113.1/Cargo.toml +54 -0
  217. data/ext/cargo-vendor/wasmparser-0.113.1/src/binary_reader.rs +1706 -0
  218. data/ext/cargo-vendor/wasmparser-0.113.1/src/lib.rs +726 -0
  219. data/ext/cargo-vendor/wasmparser-0.113.1/src/limits.rs +58 -0
  220. data/ext/cargo-vendor/wasmparser-0.113.1/src/readers/component/types.rs +542 -0
  221. data/ext/cargo-vendor/wasmparser-0.113.1/src/readers/core/dylink0.rs +132 -0
  222. data/ext/cargo-vendor/wasmparser-0.113.1/src/readers/core/types.rs +1303 -0
  223. data/ext/cargo-vendor/wasmparser-0.113.1/src/readers/core.rs +37 -0
  224. data/ext/cargo-vendor/wasmparser-0.113.1/src/validator/component.rs +3120 -0
  225. data/ext/cargo-vendor/wasmparser-0.113.1/src/validator/core.rs +1352 -0
  226. data/ext/cargo-vendor/wasmparser-0.113.1/src/validator/operators.rs +3466 -0
  227. data/ext/cargo-vendor/wasmparser-0.113.1/src/validator/types.rs +3239 -0
  228. data/ext/cargo-vendor/wasmparser-0.113.1/src/validator.rs +1595 -0
  229. data/ext/cargo-vendor/wasmprinter-0.2.66/.cargo-checksum.json +1 -0
  230. data/ext/cargo-vendor/wasmprinter-0.2.66/Cargo.toml +39 -0
  231. data/ext/cargo-vendor/wasmprinter-0.2.66/src/lib.rs +2965 -0
  232. data/ext/cargo-vendor/wasmprinter-0.2.66/src/operator.rs +873 -0
  233. data/ext/cargo-vendor/wasmtime-13.0.0/.cargo-checksum.json +1 -0
  234. data/ext/cargo-vendor/wasmtime-13.0.0/Cargo.toml +191 -0
  235. data/ext/cargo-vendor/wasmtime-13.0.0/src/component/component.rs +474 -0
  236. data/ext/cargo-vendor/wasmtime-13.0.0/src/component/func/typed.rs +2297 -0
  237. data/ext/cargo-vendor/wasmtime-13.0.0/src/component/instance.rs +793 -0
  238. data/ext/cargo-vendor/wasmtime-13.0.0/src/component/linker.rs +483 -0
  239. data/ext/cargo-vendor/wasmtime-13.0.0/src/component/mod.rs +344 -0
  240. data/ext/cargo-vendor/wasmtime-13.0.0/src/component/types.rs +523 -0
  241. data/ext/cargo-vendor/wasmtime-13.0.0/src/component/values.rs +1272 -0
  242. data/ext/cargo-vendor/wasmtime-13.0.0/src/config.rs +2313 -0
  243. data/ext/cargo-vendor/wasmtime-13.0.0/src/engine/serialization.rs +657 -0
  244. data/ext/cargo-vendor/wasmtime-13.0.0/src/engine.rs +790 -0
  245. data/ext/cargo-vendor/wasmtime-13.0.0/src/instance.rs +884 -0
  246. data/ext/cargo-vendor/wasmtime-13.0.0/src/limits.rs +398 -0
  247. data/ext/cargo-vendor/wasmtime-13.0.0/src/module.rs +1349 -0
  248. data/ext/cargo-vendor/wasmtime-13.0.0/src/store.rs +2246 -0
  249. data/ext/cargo-vendor/wasmtime-13.0.0/src/trampoline/memory.rs +255 -0
  250. data/ext/cargo-vendor/wasmtime-13.0.0/src/trampoline.rs +76 -0
  251. data/ext/cargo-vendor/wasmtime-asm-macros-13.0.0/.cargo-checksum.json +1 -0
  252. data/ext/cargo-vendor/wasmtime-asm-macros-13.0.0/Cargo.toml +22 -0
  253. data/ext/cargo-vendor/wasmtime-cache-13.0.0/.cargo-checksum.json +1 -0
  254. data/ext/cargo-vendor/wasmtime-cache-13.0.0/Cargo.toml +72 -0
  255. data/ext/cargo-vendor/wasmtime-cache-13.0.0/src/config.rs +584 -0
  256. data/ext/cargo-vendor/wasmtime-cache-13.0.0/src/worker/tests.rs +758 -0
  257. data/ext/cargo-vendor/wasmtime-cache-13.0.0/src/worker.rs +894 -0
  258. data/ext/cargo-vendor/wasmtime-component-macro-13.0.0/.cargo-checksum.json +1 -0
  259. data/ext/cargo-vendor/wasmtime-component-macro-13.0.0/Cargo.toml +58 -0
  260. data/ext/cargo-vendor/wasmtime-component-macro-13.0.0/src/bindgen.rs +387 -0
  261. data/ext/cargo-vendor/wasmtime-component-macro-13.0.0/src/component.rs +1295 -0
  262. data/ext/cargo-vendor/wasmtime-component-macro-13.0.0/tests/codegen/resources-import.wit +87 -0
  263. data/ext/cargo-vendor/wasmtime-component-macro-13.0.0/tests/codegen/variants.wit +136 -0
  264. data/ext/cargo-vendor/wasmtime-component-util-13.0.0/.cargo-checksum.json +1 -0
  265. data/ext/cargo-vendor/wasmtime-component-util-13.0.0/Cargo.toml +25 -0
  266. data/ext/cargo-vendor/wasmtime-cranelift-13.0.0/.cargo-checksum.json +1 -0
  267. data/ext/cargo-vendor/wasmtime-cranelift-13.0.0/Cargo.toml +97 -0
  268. data/ext/cargo-vendor/wasmtime-cranelift-13.0.0/src/builder.rs +123 -0
  269. data/ext/cargo-vendor/wasmtime-cranelift-13.0.0/src/compiler.rs +1301 -0
  270. data/ext/cargo-vendor/wasmtime-cranelift-13.0.0/src/debug/transform/attr.rs +340 -0
  271. data/ext/cargo-vendor/wasmtime-cranelift-13.0.0/src/debug.rs +18 -0
  272. data/ext/cargo-vendor/wasmtime-cranelift-13.0.0/src/func_environ.rs +2589 -0
  273. data/ext/cargo-vendor/wasmtime-cranelift-shared-13.0.0/.cargo-checksum.json +1 -0
  274. data/ext/cargo-vendor/wasmtime-cranelift-shared-13.0.0/Cargo.toml +57 -0
  275. data/ext/cargo-vendor/wasmtime-environ-13.0.0/.cargo-checksum.json +1 -0
  276. data/ext/cargo-vendor/wasmtime-environ-13.0.0/Cargo.lock +711 -0
  277. data/ext/cargo-vendor/wasmtime-environ-13.0.0/Cargo.toml +118 -0
  278. data/ext/cargo-vendor/wasmtime-environ-13.0.0/src/address_map.rs +192 -0
  279. data/ext/cargo-vendor/wasmtime-environ-13.0.0/src/builtin.rs +143 -0
  280. data/ext/cargo-vendor/wasmtime-environ-13.0.0/src/compilation.rs +403 -0
  281. data/ext/cargo-vendor/wasmtime-environ-13.0.0/src/component/compiler.rs +47 -0
  282. data/ext/cargo-vendor/wasmtime-environ-13.0.0/src/component/info.rs +583 -0
  283. data/ext/cargo-vendor/wasmtime-environ-13.0.0/src/component/types.rs +1866 -0
  284. data/ext/cargo-vendor/wasmtime-environ-13.0.0/src/fact/trampoline.rs +3229 -0
  285. data/ext/cargo-vendor/wasmtime-environ-13.0.0/src/fact/transcode.rs +168 -0
  286. data/ext/cargo-vendor/wasmtime-environ-13.0.0/src/lib.rs +59 -0
  287. data/ext/cargo-vendor/wasmtime-environ-13.0.0/src/module.rs +1083 -0
  288. data/ext/cargo-vendor/wasmtime-environ-13.0.0/src/module_environ.rs +876 -0
  289. data/ext/cargo-vendor/wasmtime-environ-13.0.0/src/module_types.rs +78 -0
  290. data/ext/cargo-vendor/wasmtime-environ-13.0.0/src/stack_map.rs +36 -0
  291. data/ext/cargo-vendor/wasmtime-environ-13.0.0/src/tunables.rs +115 -0
  292. data/ext/cargo-vendor/wasmtime-environ-13.0.0/src/vmoffsets.rs +919 -0
  293. data/ext/cargo-vendor/wasmtime-fiber-13.0.0/.cargo-checksum.json +1 -0
  294. data/ext/cargo-vendor/wasmtime-fiber-13.0.0/Cargo.toml +51 -0
  295. data/ext/cargo-vendor/wasmtime-jit-13.0.0/.cargo-checksum.json +1 -0
  296. data/ext/cargo-vendor/wasmtime-jit-13.0.0/Cargo.toml +106 -0
  297. data/ext/cargo-vendor/wasmtime-jit-13.0.0/src/instantiate.rs +760 -0
  298. data/ext/cargo-vendor/wasmtime-jit-13.0.0/src/lib.rs +21 -0
  299. data/ext/cargo-vendor/wasmtime-jit-13.0.0/src/unwind/miri.rs +15 -0
  300. data/ext/cargo-vendor/wasmtime-jit-13.0.0/src/unwind/systemv.rs +90 -0
  301. data/ext/cargo-vendor/wasmtime-jit-13.0.0/src/unwind/winx64.rs +44 -0
  302. data/ext/cargo-vendor/wasmtime-jit-debug-13.0.0/.cargo-checksum.json +1 -0
  303. data/ext/cargo-vendor/wasmtime-jit-debug-13.0.0/Cargo.toml +58 -0
  304. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-13.0.0/.cargo-checksum.json +1 -0
  305. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-13.0.0/Cargo.toml +37 -0
  306. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/.cargo-checksum.json +1 -0
  307. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/Cargo.toml +122 -0
  308. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/instance/allocator/on_demand.rs +154 -0
  309. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/instance/allocator/pooling/index_allocator.rs +684 -0
  310. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/instance/allocator/pooling/memory_pool.rs +460 -0
  311. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/instance/allocator/pooling/stack_pool.rs +242 -0
  312. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/instance/allocator/pooling/table_pool.rs +221 -0
  313. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/instance/allocator/pooling.rs +633 -0
  314. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/instance/allocator.rs +686 -0
  315. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/instance.rs +1382 -0
  316. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/lib.rs +276 -0
  317. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/libcalls.rs +775 -0
  318. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/memory.rs +958 -0
  319. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/parking_spot.rs +520 -0
  320. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/table.rs +598 -0
  321. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/trampolines/s390x.S +70 -0
  322. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/traphandlers/macos.rs +486 -0
  323. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/traphandlers.rs +815 -0
  324. data/ext/cargo-vendor/wasmtime-runtime-13.0.0/src/vmcontext.rs +1197 -0
  325. data/ext/cargo-vendor/wasmtime-types-13.0.0/.cargo-checksum.json +1 -0
  326. data/ext/cargo-vendor/wasmtime-types-13.0.0/Cargo.toml +36 -0
  327. data/ext/cargo-vendor/wasmtime-types-13.0.0/src/lib.rs +504 -0
  328. data/ext/cargo-vendor/wasmtime-versioned-export-macros-13.0.0/.cargo-checksum.json +1 -0
  329. data/ext/cargo-vendor/wasmtime-versioned-export-macros-13.0.0/Cargo.toml +32 -0
  330. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/.cargo-checksum.json +1 -0
  331. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/Cargo.toml +232 -0
  332. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/lib.rs +135 -0
  333. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/command.rs +121 -0
  334. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/ctx.rs +351 -0
  335. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/filesystem.rs +277 -0
  336. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/host/clocks.rs +107 -0
  337. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/host/env.rs +15 -0
  338. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/host/exit.rs +11 -0
  339. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/host/filesystem/sync.rs +645 -0
  340. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/host/filesystem.rs +1167 -0
  341. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/host/instance_network.rs +11 -0
  342. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/host/io.rs +553 -0
  343. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/host/mod.rs +10 -0
  344. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/host/network.rs +186 -0
  345. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/host/tcp.rs +511 -0
  346. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/host/tcp_create_socket.rs +18 -0
  347. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/mod.rs +233 -0
  348. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/network.rs +32 -0
  349. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/pipe.rs +1067 -0
  350. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/preview1.rs +2078 -0
  351. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/stdio/unix.rs +160 -0
  352. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/stdio/worker_thread_stdin.rs +140 -0
  353. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/stdio.rs +354 -0
  354. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/stream.rs +347 -0
  355. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/table.rs +293 -0
  356. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/src/preview2/tcp.rs +280 -0
  357. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/command-extended.wit +39 -0
  358. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/cli/command.wit +33 -0
  359. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/cli/environment.wit +18 -0
  360. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/cli/exit.wit +4 -0
  361. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/cli/run.wit +4 -0
  362. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/cli/terminal.wit +59 -0
  363. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/filesystem/preopens.wit +6 -0
  364. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/filesystem/types.wit +824 -0
  365. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/filesystem/world.wit +6 -0
  366. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/http/proxy.wit +34 -0
  367. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/http/types.wit +155 -0
  368. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/io/streams.wit +300 -0
  369. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/logging/logging.wit +37 -0
  370. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/sockets/ip-name-lookup.wit +69 -0
  371. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/sockets/network.wit +187 -0
  372. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/sockets/tcp-create-socket.wit +27 -0
  373. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/sockets/tcp.wit +268 -0
  374. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/sockets/udp-create-socket.wit +27 -0
  375. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/deps/sockets/udp.wit +220 -0
  376. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/main.wit +33 -0
  377. data/ext/cargo-vendor/wasmtime-wasi-13.0.0/wit/test.wit +41 -0
  378. data/ext/cargo-vendor/wasmtime-winch-13.0.0/.cargo-checksum.json +1 -0
  379. data/ext/cargo-vendor/wasmtime-winch-13.0.0/Cargo.toml +63 -0
  380. data/ext/cargo-vendor/wasmtime-wit-bindgen-13.0.0/.cargo-checksum.json +1 -0
  381. data/ext/cargo-vendor/wasmtime-wit-bindgen-13.0.0/Cargo.toml +32 -0
  382. data/ext/cargo-vendor/wasmtime-wit-bindgen-13.0.0/src/lib.rs +1953 -0
  383. data/ext/cargo-vendor/wasmtime-wit-bindgen-13.0.0/src/rust.rs +490 -0
  384. data/ext/cargo-vendor/wasmtime-wit-bindgen-13.0.0/src/types.rs +194 -0
  385. data/ext/cargo-vendor/wasmtime-wmemcheck-13.0.0/.cargo-checksum.json +1 -0
  386. data/ext/cargo-vendor/wasmtime-wmemcheck-13.0.0/Cargo.toml +22 -0
  387. data/ext/cargo-vendor/wasmtime-wmemcheck-13.0.0/src/lib.rs +404 -0
  388. data/ext/cargo-vendor/wast-65.0.1/.cargo-checksum.json +1 -0
  389. data/ext/cargo-vendor/wast-65.0.1/Cargo.toml +50 -0
  390. data/ext/cargo-vendor/wast-65.0.1/src/component/binary.rs +1021 -0
  391. data/ext/cargo-vendor/wast-65.0.1/src/component/expand.rs +875 -0
  392. data/ext/cargo-vendor/wast-65.0.1/src/component/resolve.rs +1005 -0
  393. data/ext/cargo-vendor/wast-65.0.1/src/component/types.rs +991 -0
  394. data/ext/cargo-vendor/wast-65.0.1/src/component/wast.rs +160 -0
  395. data/ext/cargo-vendor/wast-65.0.1/src/core/binary.rs +1241 -0
  396. data/ext/cargo-vendor/wast-65.0.1/src/core/expr.rs +2021 -0
  397. data/ext/cargo-vendor/wast-65.0.1/src/core/table.rs +288 -0
  398. data/ext/cargo-vendor/wast-65.0.1/src/core/types.rs +847 -0
  399. data/ext/cargo-vendor/wast-65.0.1/src/core/wast.rs +256 -0
  400. data/ext/cargo-vendor/wast-65.0.1/src/lib.rs +536 -0
  401. data/ext/cargo-vendor/wat-1.0.73/.cargo-checksum.json +1 -0
  402. data/ext/cargo-vendor/wat-1.0.73/Cargo.toml +27 -0
  403. data/ext/cargo-vendor/wiggle-13.0.0/.cargo-checksum.json +1 -0
  404. data/ext/cargo-vendor/wiggle-13.0.0/Cargo.toml +106 -0
  405. data/ext/cargo-vendor/wiggle-13.0.0/src/lib.rs +1198 -0
  406. data/ext/cargo-vendor/wiggle-generate-13.0.0/.cargo-checksum.json +1 -0
  407. data/ext/cargo-vendor/wiggle-generate-13.0.0/Cargo.toml +58 -0
  408. data/ext/cargo-vendor/wiggle-generate-13.0.0/LICENSE +220 -0
  409. data/ext/cargo-vendor/wiggle-generate-13.0.0/src/config.rs +663 -0
  410. data/ext/cargo-vendor/wiggle-generate-13.0.0/src/types/record.rs +132 -0
  411. data/ext/cargo-vendor/wiggle-generate-13.0.0/src/wasmtime.rs +170 -0
  412. data/ext/cargo-vendor/wiggle-macro-13.0.0/.cargo-checksum.json +1 -0
  413. data/ext/cargo-vendor/wiggle-macro-13.0.0/Cargo.toml +55 -0
  414. data/ext/cargo-vendor/wiggle-macro-13.0.0/LICENSE +220 -0
  415. data/ext/cargo-vendor/winch-codegen-0.11.0/.cargo-checksum.json +1 -0
  416. data/ext/cargo-vendor/winch-codegen-0.11.0/Cargo.toml +62 -0
  417. data/ext/cargo-vendor/winch-codegen-0.11.0/src/abi/mod.rs +269 -0
  418. data/ext/cargo-vendor/winch-codegen-0.11.0/src/codegen/call.rs +219 -0
  419. data/ext/cargo-vendor/winch-codegen-0.11.0/src/codegen/context.rs +423 -0
  420. data/ext/cargo-vendor/winch-codegen-0.11.0/src/codegen/control.rs +456 -0
  421. data/ext/cargo-vendor/winch-codegen-0.11.0/src/codegen/mod.rs +337 -0
  422. data/ext/cargo-vendor/winch-codegen-0.11.0/src/isa/aarch64/abi.rs +260 -0
  423. data/ext/cargo-vendor/winch-codegen-0.11.0/src/isa/aarch64/address.rs +144 -0
  424. data/ext/cargo-vendor/winch-codegen-0.11.0/src/isa/aarch64/asm.rs +250 -0
  425. data/ext/cargo-vendor/winch-codegen-0.11.0/src/isa/aarch64/masm.rs +357 -0
  426. data/ext/cargo-vendor/winch-codegen-0.11.0/src/isa/aarch64/regs.rs +177 -0
  427. data/ext/cargo-vendor/winch-codegen-0.11.0/src/isa/reg.rs +73 -0
  428. data/ext/cargo-vendor/winch-codegen-0.11.0/src/isa/x64/abi.rs +390 -0
  429. data/ext/cargo-vendor/winch-codegen-0.11.0/src/isa/x64/address.rs +34 -0
  430. data/ext/cargo-vendor/winch-codegen-0.11.0/src/isa/x64/asm.rs +847 -0
  431. data/ext/cargo-vendor/winch-codegen-0.11.0/src/isa/x64/masm.rs +659 -0
  432. data/ext/cargo-vendor/winch-codegen-0.11.0/src/isa/x64/mod.rs +148 -0
  433. data/ext/cargo-vendor/winch-codegen-0.11.0/src/isa/x64/regs.rs +233 -0
  434. data/ext/cargo-vendor/winch-codegen-0.11.0/src/masm.rs +465 -0
  435. data/ext/cargo-vendor/winch-codegen-0.11.0/src/regalloc.rs +73 -0
  436. data/ext/cargo-vendor/winch-codegen-0.11.0/src/regset.rs +118 -0
  437. data/ext/cargo-vendor/winch-codegen-0.11.0/src/stack.rs +338 -0
  438. data/ext/cargo-vendor/winch-codegen-0.11.0/src/trampoline.rs +489 -0
  439. data/ext/cargo-vendor/winch-codegen-0.11.0/src/visitor.rs +736 -0
  440. data/ext/cargo-vendor/wit-parser-0.11.1/.cargo-checksum.json +1 -0
  441. data/ext/cargo-vendor/wit-parser-0.11.1/Cargo.toml +70 -0
  442. data/ext/cargo-vendor/wit-parser-0.11.1/src/abi.rs +241 -0
  443. data/ext/cargo-vendor/wit-parser-0.11.1/src/ast/lex.rs +714 -0
  444. data/ext/cargo-vendor/wit-parser-0.11.1/src/ast/resolve.rs +1418 -0
  445. data/ext/cargo-vendor/wit-parser-0.11.1/src/ast.rs +1361 -0
  446. data/ext/cargo-vendor/wit-parser-0.11.1/src/lib.rs +711 -0
  447. data/ext/cargo-vendor/wit-parser-0.11.1/src/live.rs +111 -0
  448. data/ext/cargo-vendor/wit-parser-0.11.1/src/resolve.rs +1757 -0
  449. data/ext/cargo-vendor/wit-parser-0.11.1/src/serde_.rs +108 -0
  450. data/ext/cargo-vendor/wit-parser-0.11.1/src/sizealign.rs +144 -0
  451. data/ext/cargo-vendor/wit-parser-0.11.1/tests/all.rs +190 -0
  452. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/comments.wit.json +46 -0
  453. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/complex-include.wit.json +168 -0
  454. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/cross-package-resource.wit.json +67 -0
  455. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/diamond1.wit.json +55 -0
  456. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/disambiguate-diamond.wit.json +107 -0
  457. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/embedded.wit.md.json +40 -0
  458. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/empty.wit.json +12 -0
  459. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/foreign-deps-union.wit.json +380 -0
  460. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/foreign-deps.wit.json +344 -0
  461. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/functions.wit.json +166 -0
  462. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/ignore-files-deps.wit.json +39 -0
  463. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/include-reps.wit.json +60 -0
  464. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/kebab-name-include-with.wit.json +70 -0
  465. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/many-names.wit.json +40 -0
  466. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/multi-file.wit.json +298 -0
  467. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/name-both-resource-and-type.wit.json +89 -0
  468. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/package-syntax1.wit.json +12 -0
  469. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/package-syntax3.wit.json +12 -0
  470. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/package-syntax4.wit.json +12 -0
  471. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/parse-fail/multiple-package-docs/a.wit +2 -0
  472. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/parse-fail/multiple-package-docs/b.wit +2 -0
  473. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/parse-fail/multiple-package-docs.wit.result +8 -0
  474. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/random.wit +27 -0
  475. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/random.wit.json +64 -0
  476. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/resources-empty.wit.json +72 -0
  477. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/resources-multiple-returns-borrow.wit.json +74 -0
  478. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/resources-multiple-returns-own.wit.json +83 -0
  479. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/resources-multiple.wit.json +281 -0
  480. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/resources-return-borrow.wit.json +69 -0
  481. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/resources-return-own.wit.json +78 -0
  482. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/resources.wit.json +340 -0
  483. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/resources1.wit.json +96 -0
  484. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/shared-types.wit.json +83 -0
  485. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/stress-export-elaborate.wit.json +1136 -0
  486. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/type-then-eof.wit.json +32 -0
  487. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/types.wit +58 -0
  488. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/types.wit.json +751 -0
  489. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/union-fuzz-1.wit.json +35 -0
  490. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/use-chain.wit.json +53 -0
  491. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/use.wit.json +172 -0
  492. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/versions.wit.json +91 -0
  493. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/wasi.wit.json +296 -0
  494. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/world-diamond.wit +23 -0
  495. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/world-diamond.wit.json +118 -0
  496. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/world-iface-no-collide.wit.json +66 -0
  497. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/world-implicit-import1.wit.json +75 -0
  498. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/world-implicit-import2.wit.json +70 -0
  499. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/world-implicit-import3.wit.json +71 -0
  500. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/world-same-fields4.wit.json +76 -0
  501. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/world-top-level-funcs.wit.json +86 -0
  502. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/world-top-level-resources.wit.json +240 -0
  503. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/worlds-union-dedup.wit.json +100 -0
  504. data/ext/cargo-vendor/wit-parser-0.11.1/tests/ui/worlds-with-types.wit.json +202 -0
  505. data/ext/src/ruby_api/wasi_ctx_builder.rs +8 -8
  506. data/lib/wasmtime/version.rb +1 -1
  507. metadata +1627 -1813
  508. data/ext/cargo-vendor/addr2line-0.20.0/.cargo-checksum.json +0 -1
  509. data/ext/cargo-vendor/addr2line-0.20.0/CHANGELOG.md +0 -321
  510. data/ext/cargo-vendor/addr2line-0.20.0/Cargo.lock +0 -548
  511. data/ext/cargo-vendor/addr2line-0.20.0/Cargo.toml +0 -145
  512. data/ext/cargo-vendor/addr2line-0.20.0/LICENSE-MIT +0 -25
  513. data/ext/cargo-vendor/addr2line-0.20.0/README.md +0 -48
  514. data/ext/cargo-vendor/addr2line-0.20.0/bench.plot.r +0 -23
  515. data/ext/cargo-vendor/addr2line-0.20.0/benchmark.sh +0 -112
  516. data/ext/cargo-vendor/addr2line-0.20.0/coverage.sh +0 -5
  517. data/ext/cargo-vendor/addr2line-0.20.0/examples/addr2line.rs +0 -306
  518. data/ext/cargo-vendor/addr2line-0.20.0/rustfmt.toml +0 -1
  519. data/ext/cargo-vendor/addr2line-0.20.0/src/builtin_split_dwarf_loader.rs +0 -164
  520. data/ext/cargo-vendor/addr2line-0.20.0/src/function.rs +0 -555
  521. data/ext/cargo-vendor/addr2line-0.20.0/src/lazy.rs +0 -31
  522. data/ext/cargo-vendor/addr2line-0.20.0/src/lib.rs +0 -1729
  523. data/ext/cargo-vendor/addr2line-0.20.0/tests/correctness.rs +0 -126
  524. data/ext/cargo-vendor/addr2line-0.20.0/tests/output_equivalence.rs +0 -135
  525. data/ext/cargo-vendor/addr2line-0.20.0/tests/parse.rs +0 -114
  526. data/ext/cargo-vendor/cranelift-bforest-0.99.1/.cargo-checksum.json +0 -1
  527. data/ext/cargo-vendor/cranelift-bforest-0.99.1/Cargo.toml +0 -31
  528. data/ext/cargo-vendor/cranelift-bforest-0.99.1/src/lib.rs +0 -198
  529. data/ext/cargo-vendor/cranelift-bforest-0.99.1/src/map.rs +0 -923
  530. data/ext/cargo-vendor/cranelift-bforest-0.99.1/src/pool.rs +0 -220
  531. data/ext/cargo-vendor/cranelift-bforest-0.99.1/src/set.rs +0 -598
  532. data/ext/cargo-vendor/cranelift-codegen-0.99.1/.cargo-checksum.json +0 -1
  533. data/ext/cargo-vendor/cranelift-codegen-0.99.1/Cargo.toml +0 -159
  534. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/binemit/mod.rs +0 -141
  535. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/binemit/stack_map.rs +0 -152
  536. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/bitset.rs +0 -163
  537. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/context.rs +0 -368
  538. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/incremental_cache.rs +0 -256
  539. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/atomic_rmw_op.rs +0 -104
  540. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/condcodes.rs +0 -404
  541. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/constant.rs +0 -463
  542. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/dfg.rs +0 -1686
  543. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/dynamic_type.rs +0 -55
  544. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/entities.rs +0 -567
  545. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/extfunc.rs +0 -411
  546. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/extname.rs +0 -333
  547. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/function.rs +0 -469
  548. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/globalvalue.rs +0 -155
  549. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/immediates.rs +0 -1615
  550. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/instructions.rs +0 -1000
  551. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/jumptable.rs +0 -168
  552. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/known_symbol.rs +0 -47
  553. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/libcall.rs +0 -232
  554. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/memflags.rs +0 -279
  555. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/mod.rs +0 -106
  556. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/sourceloc.rs +0 -117
  557. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/stackslot.rs +0 -216
  558. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/table.rs +0 -40
  559. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/trapcode.rs +0 -144
  560. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/ir/types.rs +0 -630
  561. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/aarch64/abi.rs +0 -1543
  562. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/aarch64/inst/args.rs +0 -741
  563. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/aarch64/inst/emit.rs +0 -3919
  564. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/aarch64/inst/emit_tests.rs +0 -7897
  565. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/aarch64/inst/mod.rs +0 -3039
  566. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/aarch64/inst.isle +0 -4048
  567. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/aarch64/lower/isle.rs +0 -873
  568. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/aarch64/lower.isle +0 -2907
  569. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/aarch64/lower.rs +0 -702
  570. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/aarch64/lower_dynamic_neon.isle +0 -110
  571. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/call_conv.rs +0 -119
  572. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/riscv64/abi.rs +0 -985
  573. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/riscv64/inst/args.rs +0 -1812
  574. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/riscv64/inst/emit.rs +0 -3254
  575. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/riscv64/inst/encode.rs +0 -281
  576. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/riscv64/inst/imms.rs +0 -250
  577. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/riscv64/inst/mod.rs +0 -2125
  578. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/riscv64/inst/vector.rs +0 -939
  579. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/riscv64/inst.isle +0 -2972
  580. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/riscv64/inst_vector.isle +0 -1650
  581. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/riscv64/lower/isle.rs +0 -620
  582. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/riscv64/lower.isle +0 -2002
  583. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/s390x/abi.rs +0 -948
  584. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/s390x/inst/mod.rs +0 -3426
  585. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/s390x/inst.isle +0 -5043
  586. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/s390x/lower.isle +0 -3983
  587. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/unwind/systemv.rs +0 -272
  588. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/unwind/winx64.rs +0 -334
  589. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/unwind.rs +0 -182
  590. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/x64/abi.rs +0 -1204
  591. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/x64/encoding/evex.rs +0 -749
  592. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/x64/encoding/rex.rs +0 -588
  593. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/x64/inst/args.rs +0 -2193
  594. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/x64/inst/emit.rs +0 -4298
  595. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/x64/inst/emit_tests.rs +0 -5678
  596. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/x64/inst/mod.rs +0 -2759
  597. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/x64/inst.isle +0 -5079
  598. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/x64/lower/isle.rs +0 -1096
  599. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/x64/lower.isle +0 -4651
  600. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isa/x64/lower.rs +0 -340
  601. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/isle_prelude.rs +0 -894
  602. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/legalizer/mod.rs +0 -346
  603. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/lib.rs +0 -140
  604. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/machinst/abi.rs +0 -2641
  605. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/machinst/buffer.rs +0 -2365
  606. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/machinst/isle.rs +0 -837
  607. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/machinst/mod.rs +0 -551
  608. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/machinst/reg.rs +0 -556
  609. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/machinst/vcode.rs +0 -1591
  610. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/opts/bitops.isle +0 -106
  611. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/opts/cprop.isle +0 -200
  612. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/opts/extends.isle +0 -41
  613. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/opts/icmp.isle +0 -177
  614. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/opts/selects.isle +0 -63
  615. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/opts/vector.isle +0 -8
  616. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/prelude.isle +0 -594
  617. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/prelude_lower.isle +0 -1024
  618. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/value_label.rs +0 -32
  619. data/ext/cargo-vendor/cranelift-codegen-0.99.1/src/verifier/mod.rs +0 -1884
  620. data/ext/cargo-vendor/cranelift-codegen-meta-0.99.1/.cargo-checksum.json +0 -1
  621. data/ext/cargo-vendor/cranelift-codegen-meta-0.99.1/Cargo.toml +0 -26
  622. data/ext/cargo-vendor/cranelift-codegen-meta-0.99.1/src/constant_hash.rs +0 -64
  623. data/ext/cargo-vendor/cranelift-codegen-meta-0.99.1/src/gen_inst.rs +0 -1785
  624. data/ext/cargo-vendor/cranelift-codegen-meta-0.99.1/src/shared/instructions.rs +0 -3847
  625. data/ext/cargo-vendor/cranelift-codegen-shared-0.99.1/.cargo-checksum.json +0 -1
  626. data/ext/cargo-vendor/cranelift-codegen-shared-0.99.1/Cargo.toml +0 -22
  627. data/ext/cargo-vendor/cranelift-codegen-shared-0.99.1/src/lib.rs +0 -26
  628. data/ext/cargo-vendor/cranelift-control-0.99.1/.cargo-checksum.json +0 -1
  629. data/ext/cargo-vendor/cranelift-control-0.99.1/Cargo.toml +0 -30
  630. data/ext/cargo-vendor/cranelift-entity-0.99.1/.cargo-checksum.json +0 -1
  631. data/ext/cargo-vendor/cranelift-entity-0.99.1/Cargo.toml +0 -35
  632. data/ext/cargo-vendor/cranelift-entity-0.99.1/src/lib.rs +0 -330
  633. data/ext/cargo-vendor/cranelift-entity-0.99.1/src/list.rs +0 -955
  634. data/ext/cargo-vendor/cranelift-entity-0.99.1/src/packed_option.rs +0 -171
  635. data/ext/cargo-vendor/cranelift-entity-0.99.1/src/primary.rs +0 -456
  636. data/ext/cargo-vendor/cranelift-entity-0.99.1/src/sparse.rs +0 -368
  637. data/ext/cargo-vendor/cranelift-frontend-0.99.1/.cargo-checksum.json +0 -1
  638. data/ext/cargo-vendor/cranelift-frontend-0.99.1/Cargo.toml +0 -53
  639. data/ext/cargo-vendor/cranelift-frontend-0.99.1/src/lib.rs +0 -204
  640. data/ext/cargo-vendor/cranelift-isle-0.99.1/.cargo-checksum.json +0 -1
  641. data/ext/cargo-vendor/cranelift-isle-0.99.1/Cargo.toml +0 -37
  642. data/ext/cargo-vendor/cranelift-native-0.99.1/.cargo-checksum.json +0 -1
  643. data/ext/cargo-vendor/cranelift-native-0.99.1/Cargo.toml +0 -38
  644. data/ext/cargo-vendor/cranelift-native-0.99.1/src/lib.rs +0 -204
  645. data/ext/cargo-vendor/cranelift-wasm-0.99.1/.cargo-checksum.json +0 -1
  646. data/ext/cargo-vendor/cranelift-wasm-0.99.1/Cargo.toml +0 -85
  647. data/ext/cargo-vendor/cranelift-wasm-0.99.1/src/code_translator.rs +0 -3608
  648. data/ext/cargo-vendor/cranelift-wasm-0.99.1/src/environ/dummy.rs +0 -942
  649. data/ext/cargo-vendor/cranelift-wasm-0.99.1/src/environ/spec.rs +0 -913
  650. data/ext/cargo-vendor/cranelift-wasm-0.99.1/src/func_translator.rs +0 -431
  651. data/ext/cargo-vendor/cranelift-wasm-0.99.1/src/heap.rs +0 -99
  652. data/ext/cargo-vendor/cranelift-wasm-0.99.1/src/lib.rs +0 -78
  653. data/ext/cargo-vendor/cranelift-wasm-0.99.1/src/sections_translator.rs +0 -420
  654. data/ext/cargo-vendor/cranelift-wasm-0.99.1/src/translation_utils.rs +0 -99
  655. data/ext/cargo-vendor/env_logger-0.10.0/.cargo-checksum.json +0 -1
  656. data/ext/cargo-vendor/env_logger-0.10.0/Cargo.lock +0 -254
  657. data/ext/cargo-vendor/env_logger-0.10.0/Cargo.toml +0 -129
  658. data/ext/cargo-vendor/env_logger-0.10.0/LICENSE-APACHE +0 -201
  659. data/ext/cargo-vendor/env_logger-0.10.0/README.md +0 -183
  660. data/ext/cargo-vendor/env_logger-0.10.0/examples/custom_default_format.rs +0 -40
  661. data/ext/cargo-vendor/env_logger-0.10.0/examples/custom_format.rs +0 -54
  662. data/ext/cargo-vendor/env_logger-0.10.0/examples/custom_logger.rs +0 -62
  663. data/ext/cargo-vendor/env_logger-0.10.0/examples/default.rs +0 -38
  664. data/ext/cargo-vendor/env_logger-0.10.0/examples/direct_logger.rs +0 -39
  665. data/ext/cargo-vendor/env_logger-0.10.0/examples/filters_from_code.rs +0 -20
  666. data/ext/cargo-vendor/env_logger-0.10.0/examples/in_tests.rs +0 -54
  667. data/ext/cargo-vendor/env_logger-0.10.0/examples/syslog_friendly_format.rs +0 -24
  668. data/ext/cargo-vendor/env_logger-0.10.0/src/filter/mod.rs +0 -868
  669. data/ext/cargo-vendor/env_logger-0.10.0/src/filter/regex.rs +0 -29
  670. data/ext/cargo-vendor/env_logger-0.10.0/src/filter/string.rs +0 -24
  671. data/ext/cargo-vendor/env_logger-0.10.0/src/fmt/humantime/extern_impl.rs +0 -118
  672. data/ext/cargo-vendor/env_logger-0.10.0/src/fmt/humantime/mod.rs +0 -11
  673. data/ext/cargo-vendor/env_logger-0.10.0/src/fmt/humantime/shim_impl.rs +0 -5
  674. data/ext/cargo-vendor/env_logger-0.10.0/src/fmt/mod.rs +0 -652
  675. data/ext/cargo-vendor/env_logger-0.10.0/src/fmt/writer/atty.rs +0 -33
  676. data/ext/cargo-vendor/env_logger-0.10.0/src/fmt/writer/mod.rs +0 -253
  677. data/ext/cargo-vendor/env_logger-0.10.0/src/fmt/writer/termcolor/extern_impl.rs +0 -532
  678. data/ext/cargo-vendor/env_logger-0.10.0/src/fmt/writer/termcolor/mod.rs +0 -12
  679. data/ext/cargo-vendor/env_logger-0.10.0/src/fmt/writer/termcolor/shim_impl.rs +0 -72
  680. data/ext/cargo-vendor/env_logger-0.10.0/src/lib.rs +0 -1311
  681. data/ext/cargo-vendor/env_logger-0.10.0/tests/init-twice-retains-filter.rs +0 -40
  682. data/ext/cargo-vendor/env_logger-0.10.0/tests/log-in-log.rs +0 -39
  683. data/ext/cargo-vendor/env_logger-0.10.0/tests/log_tls_dtors.rs +0 -66
  684. data/ext/cargo-vendor/env_logger-0.10.0/tests/regexp_filter.rs +0 -57
  685. data/ext/cargo-vendor/fallible-iterator-0.2.0/.cargo-checksum.json +0 -1
  686. data/ext/cargo-vendor/fallible-iterator-0.2.0/CHANGELOG.md +0 -26
  687. data/ext/cargo-vendor/fallible-iterator-0.2.0/Cargo.toml +0 -27
  688. data/ext/cargo-vendor/fallible-iterator-0.2.0/README.md +0 -15
  689. data/ext/cargo-vendor/fallible-iterator-0.2.0/src/lib.rs +0 -2606
  690. data/ext/cargo-vendor/fallible-iterator-0.2.0/src/test.rs +0 -455
  691. data/ext/cargo-vendor/file-per-thread-logger-0.2.0/.cargo-checksum.json +0 -1
  692. data/ext/cargo-vendor/file-per-thread-logger-0.2.0/Cargo.toml +0 -36
  693. data/ext/cargo-vendor/file-per-thread-logger-0.2.0/README.md +0 -25
  694. data/ext/cargo-vendor/file-per-thread-logger-0.2.0/run-tests.sh +0 -12
  695. data/ext/cargo-vendor/file-per-thread-logger-0.2.0/src/lib.rs +0 -200
  696. data/ext/cargo-vendor/file-per-thread-logger-0.2.0/tests/test.rs +0 -323
  697. data/ext/cargo-vendor/gimli-0.27.3/.cargo-checksum.json +0 -1
  698. data/ext/cargo-vendor/gimli-0.27.3/CHANGELOG.md +0 -943
  699. data/ext/cargo-vendor/gimli-0.27.3/Cargo.lock +0 -345
  700. data/ext/cargo-vendor/gimli-0.27.3/Cargo.toml +0 -151
  701. data/ext/cargo-vendor/gimli-0.27.3/LICENSE-APACHE +0 -201
  702. data/ext/cargo-vendor/gimli-0.27.3/LICENSE-MIT +0 -25
  703. data/ext/cargo-vendor/gimli-0.27.3/README.md +0 -78
  704. data/ext/cargo-vendor/gimli-0.27.3/examples/dwarf-validate.rs +0 -267
  705. data/ext/cargo-vendor/gimli-0.27.3/examples/dwarfdump.rs +0 -2369
  706. data/ext/cargo-vendor/gimli-0.27.3/examples/simple.rs +0 -67
  707. data/ext/cargo-vendor/gimli-0.27.3/examples/simple_line.rs +0 -106
  708. data/ext/cargo-vendor/gimli-0.27.3/src/arch.rs +0 -751
  709. data/ext/cargo-vendor/gimli-0.27.3/src/common.rs +0 -381
  710. data/ext/cargo-vendor/gimli-0.27.3/src/constants.rs +0 -1426
  711. data/ext/cargo-vendor/gimli-0.27.3/src/endianity.rs +0 -256
  712. data/ext/cargo-vendor/gimli-0.27.3/src/leb128.rs +0 -612
  713. data/ext/cargo-vendor/gimli-0.27.3/src/lib.rs +0 -79
  714. data/ext/cargo-vendor/gimli-0.27.3/src/read/abbrev.rs +0 -1089
  715. data/ext/cargo-vendor/gimli-0.27.3/src/read/addr.rs +0 -128
  716. data/ext/cargo-vendor/gimli-0.27.3/src/read/aranges.rs +0 -660
  717. data/ext/cargo-vendor/gimli-0.27.3/src/read/cfi.rs +0 -7574
  718. data/ext/cargo-vendor/gimli-0.27.3/src/read/dwarf.rs +0 -1184
  719. data/ext/cargo-vendor/gimli-0.27.3/src/read/endian_reader.rs +0 -639
  720. data/ext/cargo-vendor/gimli-0.27.3/src/read/endian_slice.rs +0 -350
  721. data/ext/cargo-vendor/gimli-0.27.3/src/read/index.rs +0 -535
  722. data/ext/cargo-vendor/gimli-0.27.3/src/read/lazy.rs +0 -116
  723. data/ext/cargo-vendor/gimli-0.27.3/src/read/line.rs +0 -3130
  724. data/ext/cargo-vendor/gimli-0.27.3/src/read/lists.rs +0 -68
  725. data/ext/cargo-vendor/gimli-0.27.3/src/read/loclists.rs +0 -1627
  726. data/ext/cargo-vendor/gimli-0.27.3/src/read/lookup.rs +0 -202
  727. data/ext/cargo-vendor/gimli-0.27.3/src/read/mod.rs +0 -830
  728. data/ext/cargo-vendor/gimli-0.27.3/src/read/op.rs +0 -4119
  729. data/ext/cargo-vendor/gimli-0.27.3/src/read/pubnames.rs +0 -141
  730. data/ext/cargo-vendor/gimli-0.27.3/src/read/pubtypes.rs +0 -141
  731. data/ext/cargo-vendor/gimli-0.27.3/src/read/reader.rs +0 -502
  732. data/ext/cargo-vendor/gimli-0.27.3/src/read/rnglists.rs +0 -1458
  733. data/ext/cargo-vendor/gimli-0.27.3/src/read/str.rs +0 -321
  734. data/ext/cargo-vendor/gimli-0.27.3/src/read/unit.rs +0 -6139
  735. data/ext/cargo-vendor/gimli-0.27.3/src/read/util.rs +0 -251
  736. data/ext/cargo-vendor/gimli-0.27.3/src/read/value.rs +0 -1621
  737. data/ext/cargo-vendor/gimli-0.27.3/src/test_util.rs +0 -53
  738. data/ext/cargo-vendor/gimli-0.27.3/src/write/abbrev.rs +0 -188
  739. data/ext/cargo-vendor/gimli-0.27.3/src/write/cfi.rs +0 -1025
  740. data/ext/cargo-vendor/gimli-0.27.3/src/write/dwarf.rs +0 -138
  741. data/ext/cargo-vendor/gimli-0.27.3/src/write/endian_vec.rs +0 -117
  742. data/ext/cargo-vendor/gimli-0.27.3/src/write/line.rs +0 -1957
  743. data/ext/cargo-vendor/gimli-0.27.3/src/write/loc.rs +0 -550
  744. data/ext/cargo-vendor/gimli-0.27.3/src/write/mod.rs +0 -425
  745. data/ext/cargo-vendor/gimli-0.27.3/src/write/op.rs +0 -1618
  746. data/ext/cargo-vendor/gimli-0.27.3/src/write/range.rs +0 -416
  747. data/ext/cargo-vendor/gimli-0.27.3/src/write/section.rs +0 -172
  748. data/ext/cargo-vendor/gimli-0.27.3/src/write/str.rs +0 -172
  749. data/ext/cargo-vendor/gimli-0.27.3/src/write/unit.rs +0 -3152
  750. data/ext/cargo-vendor/gimli-0.27.3/src/write/writer.rs +0 -494
  751. data/ext/cargo-vendor/hashbrown-0.12.3/.cargo-checksum.json +0 -1
  752. data/ext/cargo-vendor/hashbrown-0.12.3/CHANGELOG.md +0 -402
  753. data/ext/cargo-vendor/hashbrown-0.12.3/Cargo.toml +0 -113
  754. data/ext/cargo-vendor/hashbrown-0.12.3/LICENSE-APACHE +0 -201
  755. data/ext/cargo-vendor/hashbrown-0.12.3/LICENSE-MIT +0 -25
  756. data/ext/cargo-vendor/hashbrown-0.12.3/README.md +0 -126
  757. data/ext/cargo-vendor/hashbrown-0.12.3/benches/bench.rs +0 -331
  758. data/ext/cargo-vendor/hashbrown-0.12.3/benches/insert_unique_unchecked.rs +0 -32
  759. data/ext/cargo-vendor/hashbrown-0.12.3/clippy.toml +0 -1
  760. data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/mod.rs +0 -4
  761. data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/helpers.rs +0 -27
  762. data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/map.rs +0 -734
  763. data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/mod.rs +0 -4
  764. data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/raw.rs +0 -231
  765. data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/set.rs +0 -659
  766. data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/serde.rs +0 -201
  767. data/ext/cargo-vendor/hashbrown-0.12.3/src/lib.rs +0 -150
  768. data/ext/cargo-vendor/hashbrown-0.12.3/src/macros.rs +0 -70
  769. data/ext/cargo-vendor/hashbrown-0.12.3/src/map.rs +0 -8408
  770. data/ext/cargo-vendor/hashbrown-0.12.3/src/raw/alloc.rs +0 -73
  771. data/ext/cargo-vendor/hashbrown-0.12.3/src/raw/bitmask.rs +0 -122
  772. data/ext/cargo-vendor/hashbrown-0.12.3/src/raw/generic.rs +0 -154
  773. data/ext/cargo-vendor/hashbrown-0.12.3/src/raw/mod.rs +0 -2460
  774. data/ext/cargo-vendor/hashbrown-0.12.3/src/raw/sse2.rs +0 -146
  775. data/ext/cargo-vendor/hashbrown-0.12.3/src/rustc_entry.rs +0 -630
  776. data/ext/cargo-vendor/hashbrown-0.12.3/src/scopeguard.rs +0 -74
  777. data/ext/cargo-vendor/hashbrown-0.12.3/src/set.rs +0 -2790
  778. data/ext/cargo-vendor/hashbrown-0.12.3/tests/hasher.rs +0 -65
  779. data/ext/cargo-vendor/hashbrown-0.12.3/tests/rayon.rs +0 -533
  780. data/ext/cargo-vendor/hashbrown-0.12.3/tests/serde.rs +0 -65
  781. data/ext/cargo-vendor/hashbrown-0.12.3/tests/set.rs +0 -34
  782. data/ext/cargo-vendor/humantime-2.1.0/.cargo-checksum.json +0 -1
  783. data/ext/cargo-vendor/humantime-2.1.0/Cargo.toml +0 -37
  784. data/ext/cargo-vendor/humantime-2.1.0/LICENSE-APACHE +0 -202
  785. data/ext/cargo-vendor/humantime-2.1.0/LICENSE-MIT +0 -26
  786. data/ext/cargo-vendor/humantime-2.1.0/README.md +0 -68
  787. data/ext/cargo-vendor/humantime-2.1.0/benches/datetime_format.rs +0 -56
  788. data/ext/cargo-vendor/humantime-2.1.0/benches/datetime_parse.rs +0 -47
  789. data/ext/cargo-vendor/humantime-2.1.0/bulk.yaml +0 -8
  790. data/ext/cargo-vendor/humantime-2.1.0/src/date.rs +0 -623
  791. data/ext/cargo-vendor/humantime-2.1.0/src/duration.rs +0 -456
  792. data/ext/cargo-vendor/humantime-2.1.0/src/lib.rs +0 -34
  793. data/ext/cargo-vendor/humantime-2.1.0/src/wrapper.rs +0 -107
  794. data/ext/cargo-vendor/humantime-2.1.0/vagga.yaml +0 -92
  795. data/ext/cargo-vendor/indexmap-1.9.3/.cargo-checksum.json +0 -1
  796. data/ext/cargo-vendor/indexmap-1.9.3/Cargo.toml +0 -108
  797. data/ext/cargo-vendor/indexmap-1.9.3/LICENSE-APACHE +0 -201
  798. data/ext/cargo-vendor/indexmap-1.9.3/LICENSE-MIT +0 -25
  799. data/ext/cargo-vendor/indexmap-1.9.3/README.md +0 -55
  800. data/ext/cargo-vendor/indexmap-1.9.3/RELEASES.md +0 -388
  801. data/ext/cargo-vendor/indexmap-1.9.3/benches/bench.rs +0 -763
  802. data/ext/cargo-vendor/indexmap-1.9.3/benches/faststring.rs +0 -185
  803. data/ext/cargo-vendor/indexmap-1.9.3/build.rs +0 -8
  804. data/ext/cargo-vendor/indexmap-1.9.3/src/arbitrary.rs +0 -75
  805. data/ext/cargo-vendor/indexmap-1.9.3/src/equivalent.rs +0 -27
  806. data/ext/cargo-vendor/indexmap-1.9.3/src/lib.rs +0 -194
  807. data/ext/cargo-vendor/indexmap-1.9.3/src/macros.rs +0 -178
  808. data/ext/cargo-vendor/indexmap-1.9.3/src/map/core/raw.rs +0 -191
  809. data/ext/cargo-vendor/indexmap-1.9.3/src/map/core.rs +0 -700
  810. data/ext/cargo-vendor/indexmap-1.9.3/src/map.rs +0 -1947
  811. data/ext/cargo-vendor/indexmap-1.9.3/src/mutable_keys.rs +0 -75
  812. data/ext/cargo-vendor/indexmap-1.9.3/src/rayon/map.rs +0 -583
  813. data/ext/cargo-vendor/indexmap-1.9.3/src/rayon/mod.rs +0 -27
  814. data/ext/cargo-vendor/indexmap-1.9.3/src/rayon/set.rs +0 -741
  815. data/ext/cargo-vendor/indexmap-1.9.3/src/rustc.rs +0 -158
  816. data/ext/cargo-vendor/indexmap-1.9.3/src/serde.rs +0 -155
  817. data/ext/cargo-vendor/indexmap-1.9.3/src/serde_seq.rs +0 -112
  818. data/ext/cargo-vendor/indexmap-1.9.3/src/set.rs +0 -1912
  819. data/ext/cargo-vendor/indexmap-1.9.3/src/util.rs +0 -31
  820. data/ext/cargo-vendor/indexmap-1.9.3/tests/equivalent_trait.rs +0 -53
  821. data/ext/cargo-vendor/indexmap-1.9.3/tests/macros_full_path.rs +0 -19
  822. data/ext/cargo-vendor/indexmap-1.9.3/tests/quick.rs +0 -573
  823. data/ext/cargo-vendor/indexmap-1.9.3/tests/tests.rs +0 -28
  824. data/ext/cargo-vendor/object-0.31.1/.cargo-checksum.json +0 -1
  825. data/ext/cargo-vendor/object-0.31.1/CHANGELOG.md +0 -621
  826. data/ext/cargo-vendor/object-0.31.1/Cargo.toml +0 -161
  827. data/ext/cargo-vendor/object-0.31.1/LICENSE-APACHE +0 -201
  828. data/ext/cargo-vendor/object-0.31.1/LICENSE-MIT +0 -25
  829. data/ext/cargo-vendor/object-0.31.1/README.md +0 -58
  830. data/ext/cargo-vendor/object-0.31.1/clippy.toml +0 -1
  831. data/ext/cargo-vendor/object-0.31.1/src/archive.rs +0 -91
  832. data/ext/cargo-vendor/object-0.31.1/src/common.rs +0 -499
  833. data/ext/cargo-vendor/object-0.31.1/src/elf.rs +0 -6146
  834. data/ext/cargo-vendor/object-0.31.1/src/endian.rs +0 -831
  835. data/ext/cargo-vendor/object-0.31.1/src/lib.rs +0 -116
  836. data/ext/cargo-vendor/object-0.31.1/src/macho.rs +0 -3307
  837. data/ext/cargo-vendor/object-0.31.1/src/pe.rs +0 -3050
  838. data/ext/cargo-vendor/object-0.31.1/src/pod.rs +0 -239
  839. data/ext/cargo-vendor/object-0.31.1/src/read/any.rs +0 -1323
  840. data/ext/cargo-vendor/object-0.31.1/src/read/archive.rs +0 -739
  841. data/ext/cargo-vendor/object-0.31.1/src/read/coff/comdat.rs +0 -207
  842. data/ext/cargo-vendor/object-0.31.1/src/read/coff/file.rs +0 -364
  843. data/ext/cargo-vendor/object-0.31.1/src/read/coff/mod.rs +0 -18
  844. data/ext/cargo-vendor/object-0.31.1/src/read/coff/relocation.rs +0 -104
  845. data/ext/cargo-vendor/object-0.31.1/src/read/coff/section.rs +0 -574
  846. data/ext/cargo-vendor/object-0.31.1/src/read/coff/symbol.rs +0 -626
  847. data/ext/cargo-vendor/object-0.31.1/src/read/elf/attributes.rs +0 -303
  848. data/ext/cargo-vendor/object-0.31.1/src/read/elf/comdat.rs +0 -160
  849. data/ext/cargo-vendor/object-0.31.1/src/read/elf/compression.rs +0 -56
  850. data/ext/cargo-vendor/object-0.31.1/src/read/elf/dynamic.rs +0 -117
  851. data/ext/cargo-vendor/object-0.31.1/src/read/elf/file.rs +0 -910
  852. data/ext/cargo-vendor/object-0.31.1/src/read/elf/hash.rs +0 -220
  853. data/ext/cargo-vendor/object-0.31.1/src/read/elf/mod.rs +0 -42
  854. data/ext/cargo-vendor/object-0.31.1/src/read/elf/note.rs +0 -263
  855. data/ext/cargo-vendor/object-0.31.1/src/read/elf/relocation.rs +0 -571
  856. data/ext/cargo-vendor/object-0.31.1/src/read/elf/section.rs +0 -1146
  857. data/ext/cargo-vendor/object-0.31.1/src/read/elf/segment.rs +0 -332
  858. data/ext/cargo-vendor/object-0.31.1/src/read/elf/symbol.rs +0 -577
  859. data/ext/cargo-vendor/object-0.31.1/src/read/elf/version.rs +0 -421
  860. data/ext/cargo-vendor/object-0.31.1/src/read/macho/dyld_cache.rs +0 -343
  861. data/ext/cargo-vendor/object-0.31.1/src/read/macho/fat.rs +0 -122
  862. data/ext/cargo-vendor/object-0.31.1/src/read/macho/file.rs +0 -731
  863. data/ext/cargo-vendor/object-0.31.1/src/read/macho/load_command.rs +0 -373
  864. data/ext/cargo-vendor/object-0.31.1/src/read/macho/mod.rs +0 -30
  865. data/ext/cargo-vendor/object-0.31.1/src/read/macho/relocation.rs +0 -127
  866. data/ext/cargo-vendor/object-0.31.1/src/read/macho/section.rs +0 -387
  867. data/ext/cargo-vendor/object-0.31.1/src/read/macho/segment.rs +0 -301
  868. data/ext/cargo-vendor/object-0.31.1/src/read/macho/symbol.rs +0 -488
  869. data/ext/cargo-vendor/object-0.31.1/src/read/mod.rs +0 -760
  870. data/ext/cargo-vendor/object-0.31.1/src/read/pe/data_directory.rs +0 -211
  871. data/ext/cargo-vendor/object-0.31.1/src/read/pe/export.rs +0 -331
  872. data/ext/cargo-vendor/object-0.31.1/src/read/pe/file.rs +0 -1029
  873. data/ext/cargo-vendor/object-0.31.1/src/read/pe/import.rs +0 -332
  874. data/ext/cargo-vendor/object-0.31.1/src/read/pe/mod.rs +0 -34
  875. data/ext/cargo-vendor/object-0.31.1/src/read/pe/relocation.rs +0 -90
  876. data/ext/cargo-vendor/object-0.31.1/src/read/pe/resource.rs +0 -207
  877. data/ext/cargo-vendor/object-0.31.1/src/read/pe/rich.rs +0 -91
  878. data/ext/cargo-vendor/object-0.31.1/src/read/pe/section.rs +0 -434
  879. data/ext/cargo-vendor/object-0.31.1/src/read/read_cache.rs +0 -182
  880. data/ext/cargo-vendor/object-0.31.1/src/read/read_ref.rs +0 -137
  881. data/ext/cargo-vendor/object-0.31.1/src/read/traits.rs +0 -469
  882. data/ext/cargo-vendor/object-0.31.1/src/read/util.rs +0 -425
  883. data/ext/cargo-vendor/object-0.31.1/src/read/wasm.rs +0 -951
  884. data/ext/cargo-vendor/object-0.31.1/src/read/xcoff/comdat.rs +0 -129
  885. data/ext/cargo-vendor/object-0.31.1/src/read/xcoff/file.rs +0 -629
  886. data/ext/cargo-vendor/object-0.31.1/src/read/xcoff/mod.rs +0 -21
  887. data/ext/cargo-vendor/object-0.31.1/src/read/xcoff/relocation.rs +0 -127
  888. data/ext/cargo-vendor/object-0.31.1/src/read/xcoff/section.rs +0 -427
  889. data/ext/cargo-vendor/object-0.31.1/src/read/xcoff/segment.rs +0 -113
  890. data/ext/cargo-vendor/object-0.31.1/src/read/xcoff/symbol.rs +0 -695
  891. data/ext/cargo-vendor/object-0.31.1/src/write/coff.rs +0 -725
  892. data/ext/cargo-vendor/object-0.31.1/src/write/elf/mod.rs +0 -9
  893. data/ext/cargo-vendor/object-0.31.1/src/write/elf/object.rs +0 -891
  894. data/ext/cargo-vendor/object-0.31.1/src/write/elf/writer.rs +0 -2143
  895. data/ext/cargo-vendor/object-0.31.1/src/write/macho.rs +0 -978
  896. data/ext/cargo-vendor/object-0.31.1/src/write/mod.rs +0 -943
  897. data/ext/cargo-vendor/object-0.31.1/src/write/pe.rs +0 -847
  898. data/ext/cargo-vendor/object-0.31.1/src/write/string.rs +0 -159
  899. data/ext/cargo-vendor/object-0.31.1/src/write/util.rs +0 -260
  900. data/ext/cargo-vendor/object-0.31.1/src/write/xcoff.rs +0 -556
  901. data/ext/cargo-vendor/object-0.31.1/src/xcoff.rs +0 -893
  902. data/ext/cargo-vendor/object-0.31.1/tests/integration.rs +0 -2
  903. data/ext/cargo-vendor/object-0.31.1/tests/parse_self.rs +0 -25
  904. data/ext/cargo-vendor/object-0.31.1/tests/read/coff.rs +0 -23
  905. data/ext/cargo-vendor/object-0.31.1/tests/read/mod.rs +0 -3
  906. data/ext/cargo-vendor/object-0.31.1/tests/round_trip/bss.rs +0 -255
  907. data/ext/cargo-vendor/object-0.31.1/tests/round_trip/coff.rs +0 -56
  908. data/ext/cargo-vendor/object-0.31.1/tests/round_trip/comdat.rs +0 -225
  909. data/ext/cargo-vendor/object-0.31.1/tests/round_trip/common.rs +0 -245
  910. data/ext/cargo-vendor/object-0.31.1/tests/round_trip/elf.rs +0 -289
  911. data/ext/cargo-vendor/object-0.31.1/tests/round_trip/macho.rs +0 -24
  912. data/ext/cargo-vendor/object-0.31.1/tests/round_trip/mod.rs +0 -636
  913. data/ext/cargo-vendor/object-0.31.1/tests/round_trip/section_flags.rs +0 -90
  914. data/ext/cargo-vendor/object-0.31.1/tests/round_trip/tls.rs +0 -316
  915. data/ext/cargo-vendor/serde-1.0.185/.cargo-checksum.json +0 -1
  916. data/ext/cargo-vendor/serde-1.0.185/Cargo.toml +0 -66
  917. data/ext/cargo-vendor/serde-1.0.185/build.rs +0 -97
  918. data/ext/cargo-vendor/serde-1.0.185/src/de/ignored_any.rs +0 -242
  919. data/ext/cargo-vendor/serde-1.0.185/src/de/impls.rs +0 -2968
  920. data/ext/cargo-vendor/serde-1.0.185/src/de/mod.rs +0 -2299
  921. data/ext/cargo-vendor/serde-1.0.185/src/de/utf8.rs +0 -46
  922. data/ext/cargo-vendor/serde-1.0.185/src/de/value.rs +0 -1711
  923. data/ext/cargo-vendor/serde-1.0.185/src/integer128.rs +0 -82
  924. data/ext/cargo-vendor/serde-1.0.185/src/lib.rs +0 -327
  925. data/ext/cargo-vendor/serde-1.0.185/src/macros.rs +0 -235
  926. data/ext/cargo-vendor/serde-1.0.185/src/ser/fmt.rs +0 -175
  927. data/ext/cargo-vendor/serde-1.0.185/src/ser/impls.rs +0 -1012
  928. data/ext/cargo-vendor/serde-1.0.185/src/ser/mod.rs +0 -1958
  929. data/ext/cargo-vendor/serde_derive-1.0.185/.cargo-checksum.json +0 -1
  930. data/ext/cargo-vendor/serde_derive-1.0.185/Cargo.toml +0 -59
  931. data/ext/cargo-vendor/serde_derive-1.0.185/src/lib.rs +0 -102
  932. data/ext/cargo-vendor/serde_derive-1.0.185/src/ser.rs +0 -1359
  933. data/ext/cargo-vendor/termcolor-1.2.0/.cargo-checksum.json +0 -1
  934. data/ext/cargo-vendor/termcolor-1.2.0/COPYING +0 -3
  935. data/ext/cargo-vendor/termcolor-1.2.0/Cargo.toml +0 -40
  936. data/ext/cargo-vendor/termcolor-1.2.0/LICENSE-MIT +0 -21
  937. data/ext/cargo-vendor/termcolor-1.2.0/README.md +0 -115
  938. data/ext/cargo-vendor/termcolor-1.2.0/UNLICENSE +0 -24
  939. data/ext/cargo-vendor/termcolor-1.2.0/rustfmt.toml +0 -2
  940. data/ext/cargo-vendor/termcolor-1.2.0/src/lib.rs +0 -2350
  941. data/ext/cargo-vendor/wasi-cap-std-sync-12.0.1/.cargo-checksum.json +0 -1
  942. data/ext/cargo-vendor/wasi-cap-std-sync-12.0.1/Cargo.toml +0 -96
  943. data/ext/cargo-vendor/wasi-cap-std-sync-12.0.1/src/lib.rs +0 -141
  944. data/ext/cargo-vendor/wasi-common-12.0.1/.cargo-checksum.json +0 -1
  945. data/ext/cargo-vendor/wasi-common-12.0.1/Cargo.toml +0 -87
  946. data/ext/cargo-vendor/wasm-encoder-0.31.1/.cargo-checksum.json +0 -1
  947. data/ext/cargo-vendor/wasm-encoder-0.31.1/Cargo.toml +0 -33
  948. data/ext/cargo-vendor/wasm-encoder-0.31.1/src/component/types.rs +0 -784
  949. data/ext/cargo-vendor/wasmparser-0.110.0/.cargo-checksum.json +0 -1
  950. data/ext/cargo-vendor/wasmparser-0.110.0/Cargo.lock +0 -644
  951. data/ext/cargo-vendor/wasmparser-0.110.0/Cargo.toml +0 -54
  952. data/ext/cargo-vendor/wasmparser-0.110.0/src/limits.rs +0 -59
  953. data/ext/cargo-vendor/wasmparser-0.110.0/src/readers/component/types.rs +0 -548
  954. data/ext/cargo-vendor/wasmparser-0.110.0/src/readers/core/types.rs +0 -1141
  955. data/ext/cargo-vendor/wasmparser-0.110.0/src/readers/core.rs +0 -35
  956. data/ext/cargo-vendor/wasmparser-0.110.0/src/validator/component.rs +0 -3144
  957. data/ext/cargo-vendor/wasmparser-0.110.0/src/validator/core.rs +0 -1314
  958. data/ext/cargo-vendor/wasmparser-0.110.0/src/validator/types.rs +0 -3197
  959. data/ext/cargo-vendor/wasmparser-0.110.0/src/validator.rs +0 -1568
  960. data/ext/cargo-vendor/wasmparser-0.111.0/.cargo-checksum.json +0 -1
  961. data/ext/cargo-vendor/wasmparser-0.111.0/Cargo.lock +0 -644
  962. data/ext/cargo-vendor/wasmparser-0.111.0/Cargo.toml +0 -54
  963. data/ext/cargo-vendor/wasmparser-0.111.0/src/binary_reader.rs +0 -1706
  964. data/ext/cargo-vendor/wasmparser-0.111.0/src/lib.rs +0 -726
  965. data/ext/cargo-vendor/wasmparser-0.111.0/src/limits.rs +0 -59
  966. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/component/types.rs +0 -548
  967. data/ext/cargo-vendor/wasmparser-0.111.0/src/readers/core/types.rs +0 -1141
  968. data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/component.rs +0 -3148
  969. data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/core.rs +0 -1314
  970. data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/operators.rs +0 -3466
  971. data/ext/cargo-vendor/wasmparser-0.111.0/src/validator/types.rs +0 -3283
  972. data/ext/cargo-vendor/wasmparser-0.111.0/src/validator.rs +0 -1568
  973. data/ext/cargo-vendor/wasmprinter-0.2.63/.cargo-checksum.json +0 -1
  974. data/ext/cargo-vendor/wasmprinter-0.2.63/Cargo.toml +0 -39
  975. data/ext/cargo-vendor/wasmprinter-0.2.63/src/lib.rs +0 -2962
  976. data/ext/cargo-vendor/wasmprinter-0.2.63/src/operator.rs +0 -873
  977. data/ext/cargo-vendor/wasmtime-12.0.1/.cargo-checksum.json +0 -1
  978. data/ext/cargo-vendor/wasmtime-12.0.1/Cargo.toml +0 -186
  979. data/ext/cargo-vendor/wasmtime-12.0.1/src/component/component.rs +0 -466
  980. data/ext/cargo-vendor/wasmtime-12.0.1/src/component/func/typed.rs +0 -2326
  981. data/ext/cargo-vendor/wasmtime-12.0.1/src/component/instance.rs +0 -781
  982. data/ext/cargo-vendor/wasmtime-12.0.1/src/component/linker.rs +0 -479
  983. data/ext/cargo-vendor/wasmtime-12.0.1/src/component/mod.rs +0 -316
  984. data/ext/cargo-vendor/wasmtime-12.0.1/src/component/types.rs +0 -562
  985. data/ext/cargo-vendor/wasmtime-12.0.1/src/component/values.rs +0 -1376
  986. data/ext/cargo-vendor/wasmtime-12.0.1/src/config.rs +0 -2096
  987. data/ext/cargo-vendor/wasmtime-12.0.1/src/engine/serialization.rs +0 -629
  988. data/ext/cargo-vendor/wasmtime-12.0.1/src/engine.rs +0 -756
  989. data/ext/cargo-vendor/wasmtime-12.0.1/src/instance.rs +0 -883
  990. data/ext/cargo-vendor/wasmtime-12.0.1/src/limits.rs +0 -357
  991. data/ext/cargo-vendor/wasmtime-12.0.1/src/module.rs +0 -1346
  992. data/ext/cargo-vendor/wasmtime-12.0.1/src/store.rs +0 -2212
  993. data/ext/cargo-vendor/wasmtime-12.0.1/src/trampoline/memory.rs +0 -202
  994. data/ext/cargo-vendor/wasmtime-12.0.1/src/trampoline.rs +0 -76
  995. data/ext/cargo-vendor/wasmtime-asm-macros-12.0.1/.cargo-checksum.json +0 -1
  996. data/ext/cargo-vendor/wasmtime-asm-macros-12.0.1/Cargo.toml +0 -22
  997. data/ext/cargo-vendor/wasmtime-cache-12.0.1/.cargo-checksum.json +0 -1
  998. data/ext/cargo-vendor/wasmtime-cache-12.0.1/Cargo.toml +0 -73
  999. data/ext/cargo-vendor/wasmtime-cache-12.0.1/src/config.rs +0 -584
  1000. data/ext/cargo-vendor/wasmtime-cache-12.0.1/src/worker/tests.rs +0 -758
  1001. data/ext/cargo-vendor/wasmtime-cache-12.0.1/src/worker.rs +0 -903
  1002. data/ext/cargo-vendor/wasmtime-component-macro-12.0.1/.cargo-checksum.json +0 -1
  1003. data/ext/cargo-vendor/wasmtime-component-macro-12.0.1/Cargo.toml +0 -58
  1004. data/ext/cargo-vendor/wasmtime-component-macro-12.0.1/src/bindgen.rs +0 -343
  1005. data/ext/cargo-vendor/wasmtime-component-macro-12.0.1/src/component.rs +0 -1319
  1006. data/ext/cargo-vendor/wasmtime-component-macro-12.0.1/tests/codegen/unions.wit +0 -66
  1007. data/ext/cargo-vendor/wasmtime-component-macro-12.0.1/tests/codegen/variants.wit +0 -147
  1008. data/ext/cargo-vendor/wasmtime-component-util-12.0.1/.cargo-checksum.json +0 -1
  1009. data/ext/cargo-vendor/wasmtime-component-util-12.0.1/Cargo.toml +0 -25
  1010. data/ext/cargo-vendor/wasmtime-cranelift-12.0.1/.cargo-checksum.json +0 -1
  1011. data/ext/cargo-vendor/wasmtime-cranelift-12.0.1/Cargo.toml +0 -93
  1012. data/ext/cargo-vendor/wasmtime-cranelift-12.0.1/src/builder.rs +0 -116
  1013. data/ext/cargo-vendor/wasmtime-cranelift-12.0.1/src/compiler.rs +0 -1297
  1014. data/ext/cargo-vendor/wasmtime-cranelift-12.0.1/src/debug/transform/attr.rs +0 -339
  1015. data/ext/cargo-vendor/wasmtime-cranelift-12.0.1/src/debug.rs +0 -20
  1016. data/ext/cargo-vendor/wasmtime-cranelift-12.0.1/src/func_environ.rs +0 -2377
  1017. data/ext/cargo-vendor/wasmtime-cranelift-shared-12.0.1/.cargo-checksum.json +0 -1
  1018. data/ext/cargo-vendor/wasmtime-cranelift-shared-12.0.1/Cargo.toml +0 -57
  1019. data/ext/cargo-vendor/wasmtime-environ-12.0.1/.cargo-checksum.json +0 -1
  1020. data/ext/cargo-vendor/wasmtime-environ-12.0.1/Cargo.lock +0 -736
  1021. data/ext/cargo-vendor/wasmtime-environ-12.0.1/Cargo.toml +0 -116
  1022. data/ext/cargo-vendor/wasmtime-environ-12.0.1/src/address_map.rs +0 -192
  1023. data/ext/cargo-vendor/wasmtime-environ-12.0.1/src/builtin.rs +0 -127
  1024. data/ext/cargo-vendor/wasmtime-environ-12.0.1/src/compilation.rs +0 -400
  1025. data/ext/cargo-vendor/wasmtime-environ-12.0.1/src/component/compiler.rs +0 -47
  1026. data/ext/cargo-vendor/wasmtime-environ-12.0.1/src/component/info.rs +0 -583
  1027. data/ext/cargo-vendor/wasmtime-environ-12.0.1/src/component/types.rs +0 -1920
  1028. data/ext/cargo-vendor/wasmtime-environ-12.0.1/src/fact/trampoline.rs +0 -3269
  1029. data/ext/cargo-vendor/wasmtime-environ-12.0.1/src/fact/transcode.rs +0 -168
  1030. data/ext/cargo-vendor/wasmtime-environ-12.0.1/src/lib.rs +0 -76
  1031. data/ext/cargo-vendor/wasmtime-environ-12.0.1/src/module.rs +0 -1083
  1032. data/ext/cargo-vendor/wasmtime-environ-12.0.1/src/module_environ.rs +0 -887
  1033. data/ext/cargo-vendor/wasmtime-environ-12.0.1/src/module_types.rs +0 -78
  1034. data/ext/cargo-vendor/wasmtime-environ-12.0.1/src/stack_map.rs +0 -36
  1035. data/ext/cargo-vendor/wasmtime-environ-12.0.1/src/tunables.rs +0 -115
  1036. data/ext/cargo-vendor/wasmtime-environ-12.0.1/src/vmoffsets.rs +0 -940
  1037. data/ext/cargo-vendor/wasmtime-fiber-12.0.1/.cargo-checksum.json +0 -1
  1038. data/ext/cargo-vendor/wasmtime-fiber-12.0.1/Cargo.toml +0 -51
  1039. data/ext/cargo-vendor/wasmtime-jit-12.0.1/.cargo-checksum.json +0 -1
  1040. data/ext/cargo-vendor/wasmtime-jit-12.0.1/Cargo.toml +0 -104
  1041. data/ext/cargo-vendor/wasmtime-jit-12.0.1/src/instantiate.rs +0 -760
  1042. data/ext/cargo-vendor/wasmtime-jit-12.0.1/src/lib.rs +0 -38
  1043. data/ext/cargo-vendor/wasmtime-jit-12.0.1/src/unwind/miri.rs +0 -15
  1044. data/ext/cargo-vendor/wasmtime-jit-12.0.1/src/unwind/systemv.rs +0 -90
  1045. data/ext/cargo-vendor/wasmtime-jit-12.0.1/src/unwind/winx64.rs +0 -44
  1046. data/ext/cargo-vendor/wasmtime-jit-debug-12.0.1/.cargo-checksum.json +0 -1
  1047. data/ext/cargo-vendor/wasmtime-jit-debug-12.0.1/Cargo.toml +0 -58
  1048. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-12.0.1/.cargo-checksum.json +0 -1
  1049. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-12.0.1/Cargo.toml +0 -37
  1050. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/.cargo-checksum.json +0 -1
  1051. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/Cargo.toml +0 -119
  1052. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/src/instance/allocator/on_demand.rs +0 -127
  1053. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/src/instance/allocator/pooling/index_allocator.rs +0 -599
  1054. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/src/instance/allocator/pooling.rs +0 -1368
  1055. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/src/instance/allocator.rs +0 -414
  1056. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/src/instance.rs +0 -1345
  1057. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/src/lib.rs +0 -289
  1058. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/src/libcalls.rs +0 -627
  1059. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/src/memory.rs +0 -958
  1060. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/src/parking_spot.rs +0 -522
  1061. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/src/table.rs +0 -595
  1062. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/src/trampolines/s390x.S +0 -62
  1063. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/src/traphandlers/macos.rs +0 -476
  1064. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/src/traphandlers.rs +0 -782
  1065. data/ext/cargo-vendor/wasmtime-runtime-12.0.1/src/vmcontext.rs +0 -1221
  1066. data/ext/cargo-vendor/wasmtime-types-12.0.1/.cargo-checksum.json +0 -1
  1067. data/ext/cargo-vendor/wasmtime-types-12.0.1/Cargo.toml +0 -34
  1068. data/ext/cargo-vendor/wasmtime-types-12.0.1/src/lib.rs +0 -504
  1069. data/ext/cargo-vendor/wasmtime-versioned-export-macros-12.0.1/.cargo-checksum.json +0 -1
  1070. data/ext/cargo-vendor/wasmtime-versioned-export-macros-12.0.1/Cargo.toml +0 -32
  1071. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/.cargo-checksum.json +0 -1
  1072. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/Cargo.toml +0 -191
  1073. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/lib.rs +0 -131
  1074. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/command.rs +0 -91
  1075. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/ctx.rs +0 -237
  1076. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/filesystem.rs +0 -216
  1077. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/mod.rs +0 -185
  1078. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/pipe.rs +0 -846
  1079. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/preview1/mod.rs +0 -1870
  1080. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/preview2/clocks.rs +0 -107
  1081. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/preview2/env.rs +0 -37
  1082. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/preview2/exit.rs +0 -11
  1083. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/preview2/filesystem/sync.rs +0 -613
  1084. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/preview2/filesystem.rs +0 -1096
  1085. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/preview2/io.rs +0 -494
  1086. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/preview2/mod.rs +0 -6
  1087. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/stdio/unix.rs +0 -133
  1088. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/stdio/worker_thread_stdin.rs +0 -133
  1089. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/stdio.rs +0 -218
  1090. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/stream.rs +0 -302
  1091. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/src/preview2/table.rs +0 -287
  1092. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/filesystem/filesystem.wit +0 -782
  1093. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/http/types.wit +0 -159
  1094. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/io/streams.wit +0 -254
  1095. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/logging/handler.wit +0 -34
  1096. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/preview/command-extended.wit +0 -36
  1097. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/preview/command.wit +0 -26
  1098. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/preview/proxy.wit +0 -9
  1099. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/preview/reactor.wit +0 -24
  1100. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/sockets/ip-name-lookup.wit +0 -69
  1101. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/sockets/network.wit +0 -187
  1102. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/sockets/tcp-create-socket.wit +0 -27
  1103. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/sockets/tcp.wit +0 -255
  1104. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/sockets/udp-create-socket.wit +0 -27
  1105. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/sockets/udp.wit +0 -211
  1106. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/wasi-cli-base/environment.wit +0 -16
  1107. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/wasi-cli-base/exit.wit +0 -4
  1108. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/deps/wasi-cli-base/preopens.wit +0 -7
  1109. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/main.wit +0 -1
  1110. data/ext/cargo-vendor/wasmtime-wasi-12.0.1/wit/test.wit +0 -28
  1111. data/ext/cargo-vendor/wasmtime-winch-12.0.1/.cargo-checksum.json +0 -1
  1112. data/ext/cargo-vendor/wasmtime-winch-12.0.1/Cargo.toml +0 -63
  1113. data/ext/cargo-vendor/wasmtime-wit-bindgen-12.0.1/.cargo-checksum.json +0 -1
  1114. data/ext/cargo-vendor/wasmtime-wit-bindgen-12.0.1/Cargo.toml +0 -32
  1115. data/ext/cargo-vendor/wasmtime-wit-bindgen-12.0.1/src/lib.rs +0 -1705
  1116. data/ext/cargo-vendor/wasmtime-wit-bindgen-12.0.1/src/rust.rs +0 -498
  1117. data/ext/cargo-vendor/wasmtime-wit-bindgen-12.0.1/src/types.rs +0 -185
  1118. data/ext/cargo-vendor/wast-63.0.0/.cargo-checksum.json +0 -1
  1119. data/ext/cargo-vendor/wast-63.0.0/Cargo.toml +0 -50
  1120. data/ext/cargo-vendor/wast-63.0.0/src/component/binary.rs +0 -1022
  1121. data/ext/cargo-vendor/wast-63.0.0/src/component/expand.rs +0 -880
  1122. data/ext/cargo-vendor/wast-63.0.0/src/component/resolve.rs +0 -1010
  1123. data/ext/cargo-vendor/wast-63.0.0/src/component/types.rs +0 -1013
  1124. data/ext/cargo-vendor/wast-63.0.0/src/component/wast.rs +0 -166
  1125. data/ext/cargo-vendor/wast-63.0.0/src/core/binary.rs +0 -1246
  1126. data/ext/cargo-vendor/wast-63.0.0/src/core/expr.rs +0 -1970
  1127. data/ext/cargo-vendor/wast-63.0.0/src/core/table.rs +0 -305
  1128. data/ext/cargo-vendor/wast-63.0.0/src/core/types.rs +0 -843
  1129. data/ext/cargo-vendor/wast-63.0.0/src/core/wast.rs +0 -236
  1130. data/ext/cargo-vendor/wast-63.0.0/src/lib.rs +0 -537
  1131. data/ext/cargo-vendor/wat-1.0.70/.cargo-checksum.json +0 -1
  1132. data/ext/cargo-vendor/wat-1.0.70/Cargo.toml +0 -27
  1133. data/ext/cargo-vendor/wiggle-12.0.1/.cargo-checksum.json +0 -1
  1134. data/ext/cargo-vendor/wiggle-12.0.1/Cargo.toml +0 -106
  1135. data/ext/cargo-vendor/wiggle-12.0.1/src/lib.rs +0 -1198
  1136. data/ext/cargo-vendor/wiggle-generate-12.0.1/.cargo-checksum.json +0 -1
  1137. data/ext/cargo-vendor/wiggle-generate-12.0.1/Cargo.toml +0 -58
  1138. data/ext/cargo-vendor/wiggle-generate-12.0.1/src/config.rs +0 -697
  1139. data/ext/cargo-vendor/wiggle-generate-12.0.1/src/types/record.rs +0 -117
  1140. data/ext/cargo-vendor/wiggle-generate-12.0.1/src/wasmtime.rs +0 -170
  1141. data/ext/cargo-vendor/wiggle-macro-12.0.1/.cargo-checksum.json +0 -1
  1142. data/ext/cargo-vendor/wiggle-macro-12.0.1/Cargo.toml +0 -55
  1143. data/ext/cargo-vendor/winapi-util-0.1.5/.cargo-checksum.json +0 -1
  1144. data/ext/cargo-vendor/winapi-util-0.1.5/COPYING +0 -3
  1145. data/ext/cargo-vendor/winapi-util-0.1.5/Cargo.toml +0 -30
  1146. data/ext/cargo-vendor/winapi-util-0.1.5/LICENSE-MIT +0 -21
  1147. data/ext/cargo-vendor/winapi-util-0.1.5/README.md +0 -58
  1148. data/ext/cargo-vendor/winapi-util-0.1.5/UNLICENSE +0 -24
  1149. data/ext/cargo-vendor/winapi-util-0.1.5/rustfmt.toml +0 -2
  1150. data/ext/cargo-vendor/winapi-util-0.1.5/src/console.rs +0 -402
  1151. data/ext/cargo-vendor/winapi-util-0.1.5/src/file.rs +0 -168
  1152. data/ext/cargo-vendor/winapi-util-0.1.5/src/lib.rs +0 -32
  1153. data/ext/cargo-vendor/winapi-util-0.1.5/src/win.rs +0 -246
  1154. data/ext/cargo-vendor/winch-codegen-0.10.1/.cargo-checksum.json +0 -1
  1155. data/ext/cargo-vendor/winch-codegen-0.10.1/Cargo.toml +0 -62
  1156. data/ext/cargo-vendor/winch-codegen-0.10.1/LICENSE +0 -219
  1157. data/ext/cargo-vendor/winch-codegen-0.10.1/src/abi/mod.rs +0 -251
  1158. data/ext/cargo-vendor/winch-codegen-0.10.1/src/codegen/call.rs +0 -199
  1159. data/ext/cargo-vendor/winch-codegen-0.10.1/src/codegen/context.rs +0 -368
  1160. data/ext/cargo-vendor/winch-codegen-0.10.1/src/codegen/control.rs +0 -437
  1161. data/ext/cargo-vendor/winch-codegen-0.10.1/src/codegen/mod.rs +0 -330
  1162. data/ext/cargo-vendor/winch-codegen-0.10.1/src/isa/aarch64/abi.rs +0 -250
  1163. data/ext/cargo-vendor/winch-codegen-0.10.1/src/isa/aarch64/address.rs +0 -144
  1164. data/ext/cargo-vendor/winch-codegen-0.10.1/src/isa/aarch64/asm.rs +0 -312
  1165. data/ext/cargo-vendor/winch-codegen-0.10.1/src/isa/aarch64/masm.rs +0 -293
  1166. data/ext/cargo-vendor/winch-codegen-0.10.1/src/isa/aarch64/regs.rs +0 -166
  1167. data/ext/cargo-vendor/winch-codegen-0.10.1/src/isa/reg.rs +0 -51
  1168. data/ext/cargo-vendor/winch-codegen-0.10.1/src/isa/x64/abi.rs +0 -375
  1169. data/ext/cargo-vendor/winch-codegen-0.10.1/src/isa/x64/address.rs +0 -17
  1170. data/ext/cargo-vendor/winch-codegen-0.10.1/src/isa/x64/asm.rs +0 -855
  1171. data/ext/cargo-vendor/winch-codegen-0.10.1/src/isa/x64/masm.rs +0 -516
  1172. data/ext/cargo-vendor/winch-codegen-0.10.1/src/isa/x64/mod.rs +0 -149
  1173. data/ext/cargo-vendor/winch-codegen-0.10.1/src/isa/x64/regs.rs +0 -192
  1174. data/ext/cargo-vendor/winch-codegen-0.10.1/src/masm.rs +0 -352
  1175. data/ext/cargo-vendor/winch-codegen-0.10.1/src/regalloc.rs +0 -70
  1176. data/ext/cargo-vendor/winch-codegen-0.10.1/src/regset.rs +0 -90
  1177. data/ext/cargo-vendor/winch-codegen-0.10.1/src/stack.rs +0 -235
  1178. data/ext/cargo-vendor/winch-codegen-0.10.1/src/trampoline.rs +0 -494
  1179. data/ext/cargo-vendor/winch-codegen-0.10.1/src/visitor.rs +0 -656
  1180. data/ext/cargo-vendor/wit-parser-0.9.2/.cargo-checksum.json +0 -1
  1181. data/ext/cargo-vendor/wit-parser-0.9.2/Cargo.toml +0 -62
  1182. data/ext/cargo-vendor/wit-parser-0.9.2/src/abi.rs +0 -2199
  1183. data/ext/cargo-vendor/wit-parser-0.9.2/src/ast/lex.rs +0 -717
  1184. data/ext/cargo-vendor/wit-parser-0.9.2/src/ast/resolve.rs +0 -1437
  1185. data/ext/cargo-vendor/wit-parser-0.9.2/src/ast.rs +0 -1362
  1186. data/ext/cargo-vendor/wit-parser-0.9.2/src/lib.rs +0 -666
  1187. data/ext/cargo-vendor/wit-parser-0.9.2/src/live.rs +0 -116
  1188. data/ext/cargo-vendor/wit-parser-0.9.2/src/resolve.rs +0 -1749
  1189. data/ext/cargo-vendor/wit-parser-0.9.2/src/sizealign.rs +0 -145
  1190. data/ext/cargo-vendor/wit-parser-0.9.2/tests/all.rs +0 -168
  1191. data/ext/cargo-vendor/wit-parser-0.9.2/tests/ui/parse-fail/empty-union.wit +0 -6
  1192. data/ext/cargo-vendor/wit-parser-0.9.2/tests/ui/parse-fail/empty-union.wit.result +0 -5
  1193. data/ext/cargo-vendor/wit-parser-0.9.2/tests/ui/types.wit +0 -61
  1194. data/ext/cargo-vendor/wit-parser-0.9.2/tests/ui/world-diamond.wit +0 -22
  1195. /data/ext/cargo-vendor/{addr2line-0.20.0 → cap-net-ext-2.0.0}/LICENSE-APACHE +0 -0
  1196. /data/ext/cargo-vendor/{cranelift-bforest-0.99.1/LICENSE → cap-net-ext-2.0.0/LICENSE-Apache-2.0_WITH_LLVM-exception} +0 -0
  1197. /data/ext/cargo-vendor/{env_logger-0.10.0 → cap-net-ext-2.0.0}/LICENSE-MIT +0 -0
  1198. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-bforest-0.100.0}/LICENSE +0 -0
  1199. /data/ext/cargo-vendor/{cranelift-bforest-0.99.1 → cranelift-bforest-0.100.0}/README.md +0 -0
  1200. /data/ext/cargo-vendor/{cranelift-bforest-0.99.1 → cranelift-bforest-0.100.0}/src/node.rs +0 -0
  1201. /data/ext/cargo-vendor/{cranelift-bforest-0.99.1 → cranelift-bforest-0.100.0}/src/path.rs +0 -0
  1202. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-0.100.0}/LICENSE +0 -0
  1203. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/README.md +0 -0
  1204. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/benches/x64-evex-encoding.rs +0 -0
  1205. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/build.rs +0 -0
  1206. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/alias_analysis.rs +0 -0
  1207. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/cfg_printer.rs +0 -0
  1208. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/constant_hash.rs +0 -0
  1209. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/ctxhash.rs +0 -0
  1210. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/cursor.rs +0 -0
  1211. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/data_value.rs +0 -0
  1212. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/dbg.rs +0 -0
  1213. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/dce.rs +0 -0
  1214. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/dominator_tree.rs +0 -0
  1215. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/egraph/cost.rs +0 -0
  1216. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/egraph/domtree.rs +0 -0
  1217. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/egraph/elaborate.rs +0 -0
  1218. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/egraph.rs +0 -0
  1219. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/flowgraph.rs +0 -0
  1220. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/fx.rs +0 -0
  1221. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/inst_predicates.rs +0 -0
  1222. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/ir/builder.rs +0 -0
  1223. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/ir/layout.rs +0 -0
  1224. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/ir/progpoint.rs +0 -0
  1225. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/aarch64/inst/imms.rs +0 -0
  1226. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/aarch64/inst/regs.rs +0 -0
  1227. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/aarch64/inst/unwind/systemv.rs +0 -0
  1228. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/aarch64/inst/unwind.rs +0 -0
  1229. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/aarch64/inst_neon.isle +0 -0
  1230. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/aarch64/lower/isle/generated_code.rs +0 -0
  1231. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/aarch64/mod.rs +0 -0
  1232. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/aarch64/settings.rs +0 -0
  1233. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/mod.rs +0 -0
  1234. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/riscv64/inst/emit_tests.rs +0 -0
  1235. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/riscv64/inst/regs.rs +0 -0
  1236. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/riscv64/inst/unwind/systemv.rs +0 -0
  1237. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/riscv64/inst/unwind.rs +0 -0
  1238. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/riscv64/lower/isle/generated_code.rs +0 -0
  1239. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/riscv64/lower.rs +0 -0
  1240. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/riscv64/mod.rs +0 -0
  1241. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/riscv64/settings.rs +0 -0
  1242. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/s390x/inst/args.rs +0 -0
  1243. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/s390x/inst/emit.rs +0 -0
  1244. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/s390x/inst/emit_tests.rs +0 -0
  1245. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/s390x/inst/imms.rs +0 -0
  1246. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/s390x/inst/regs.rs +0 -0
  1247. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/s390x/inst/unwind/systemv.rs +0 -0
  1248. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/s390x/inst/unwind.rs +0 -0
  1249. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/s390x/lower/isle/generated_code.rs +0 -0
  1250. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/s390x/lower/isle.rs +0 -0
  1251. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/s390x/lower.rs +0 -0
  1252. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/s390x/mod.rs +0 -0
  1253. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/s390x/settings.rs +0 -0
  1254. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/x64/encoding/mod.rs +0 -0
  1255. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/x64/encoding/vex.rs +0 -0
  1256. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/x64/inst/emit_state.rs +0 -0
  1257. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/x64/inst/regs.rs +0 -0
  1258. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/x64/inst/unwind/systemv.rs +0 -0
  1259. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/x64/inst/unwind/winx64.rs +0 -0
  1260. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/x64/inst/unwind.rs +0 -0
  1261. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/x64/lower/isle/generated_code.rs +0 -0
  1262. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/x64/mod.rs +0 -0
  1263. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/isa/x64/settings.rs +0 -0
  1264. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/iterators.rs +0 -0
  1265. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/legalizer/globalvalue.rs +0 -0
  1266. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/legalizer/table.rs +0 -0
  1267. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/loop_analysis.rs +0 -0
  1268. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/machinst/blockorder.rs +0 -0
  1269. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/machinst/compile.rs +0 -0
  1270. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/machinst/helpers.rs +0 -0
  1271. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/machinst/inst_common.rs +0 -0
  1272. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/machinst/lower.rs +0 -0
  1273. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/machinst/valueregs.rs +0 -0
  1274. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/nan_canonicalization.rs +0 -0
  1275. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/opts/README.md +0 -0
  1276. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/opts/arithmetic.isle +0 -0
  1277. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/opts/generated_code.rs +0 -0
  1278. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/opts/remat.isle +0 -0
  1279. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/opts/shifts.isle +0 -0
  1280. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/opts.rs +0 -0
  1281. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/prelude_opt.isle +0 -0
  1282. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/print_errors.rs +0 -0
  1283. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/remove_constant_phis.rs +0 -0
  1284. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/result.rs +0 -0
  1285. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/scoped_hash_map.rs +0 -0
  1286. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/settings.rs +0 -0
  1287. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/souper_harvest.rs +0 -0
  1288. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/timing.rs +0 -0
  1289. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/unionfind.rs +0 -0
  1290. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/unreachable_code.rs +0 -0
  1291. /data/ext/cargo-vendor/{cranelift-codegen-0.99.1 → cranelift-codegen-0.100.0}/src/write.rs +0 -0
  1292. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.99.1 → cranelift-codegen-meta-0.100.0}/LICENSE +0 -0
  1293. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/README.md +0 -0
  1294. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/cdsl/formats.rs +0 -0
  1295. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/cdsl/instructions.rs +0 -0
  1296. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/cdsl/isa.rs +0 -0
  1297. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/cdsl/mod.rs +0 -0
  1298. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/cdsl/operands.rs +0 -0
  1299. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/cdsl/settings.rs +0 -0
  1300. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/cdsl/types.rs +0 -0
  1301. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/cdsl/typevar.rs +0 -0
  1302. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/error.rs +0 -0
  1303. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/gen_settings.rs +0 -0
  1304. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/gen_types.rs +0 -0
  1305. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/isa/arm64.rs +0 -0
  1306. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/isa/mod.rs +0 -0
  1307. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/isa/riscv64.rs +0 -0
  1308. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/isa/s390x.rs +0 -0
  1309. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/isa/x86.rs +0 -0
  1310. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/lib.rs +0 -0
  1311. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/shared/entities.rs +0 -0
  1312. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/shared/formats.rs +0 -0
  1313. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/shared/immediates.rs +0 -0
  1314. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/shared/mod.rs +0 -0
  1315. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/shared/settings.rs +0 -0
  1316. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/shared/types.rs +0 -0
  1317. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/srcgen.rs +0 -0
  1318. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.99.1 → cranelift-codegen-meta-0.100.0}/src/unique_table.rs +0 -0
  1319. /data/ext/cargo-vendor/{cranelift-control-0.99.1 → cranelift-codegen-shared-0.100.0}/LICENSE +0 -0
  1320. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.99.1 → cranelift-codegen-shared-0.100.0}/README.md +0 -0
  1321. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.99.1 → cranelift-codegen-shared-0.100.0}/src/constant_hash.rs +0 -0
  1322. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.99.1 → cranelift-codegen-shared-0.100.0}/src/constants.rs +0 -0
  1323. /data/ext/cargo-vendor/{cranelift-entity-0.99.1 → cranelift-control-0.100.0}/LICENSE +0 -0
  1324. /data/ext/cargo-vendor/{cranelift-control-0.99.1 → cranelift-control-0.100.0}/README.md +0 -0
  1325. /data/ext/cargo-vendor/{cranelift-control-0.99.1 → cranelift-control-0.100.0}/src/chaos.rs +0 -0
  1326. /data/ext/cargo-vendor/{cranelift-control-0.99.1 → cranelift-control-0.100.0}/src/lib.rs +0 -0
  1327. /data/ext/cargo-vendor/{cranelift-control-0.99.1 → cranelift-control-0.100.0}/src/zero_sized.rs +0 -0
  1328. /data/ext/cargo-vendor/{cranelift-frontend-0.99.1 → cranelift-entity-0.100.0}/LICENSE +0 -0
  1329. /data/ext/cargo-vendor/{cranelift-entity-0.99.1 → cranelift-entity-0.100.0}/README.md +0 -0
  1330. /data/ext/cargo-vendor/{cranelift-entity-0.99.1 → cranelift-entity-0.100.0}/src/boxed_slice.rs +0 -0
  1331. /data/ext/cargo-vendor/{cranelift-entity-0.99.1 → cranelift-entity-0.100.0}/src/iter.rs +0 -0
  1332. /data/ext/cargo-vendor/{cranelift-entity-0.99.1 → cranelift-entity-0.100.0}/src/keys.rs +0 -0
  1333. /data/ext/cargo-vendor/{cranelift-entity-0.99.1 → cranelift-entity-0.100.0}/src/map.rs +0 -0
  1334. /data/ext/cargo-vendor/{cranelift-entity-0.99.1 → cranelift-entity-0.100.0}/src/set.rs +0 -0
  1335. /data/ext/cargo-vendor/{cranelift-native-0.99.1 → cranelift-frontend-0.100.0}/LICENSE +0 -0
  1336. /data/ext/cargo-vendor/{cranelift-frontend-0.99.1 → cranelift-frontend-0.100.0}/README.md +0 -0
  1337. /data/ext/cargo-vendor/{cranelift-frontend-0.99.1 → cranelift-frontend-0.100.0}/src/frontend.rs +0 -0
  1338. /data/ext/cargo-vendor/{cranelift-frontend-0.99.1 → cranelift-frontend-0.100.0}/src/ssa.rs +0 -0
  1339. /data/ext/cargo-vendor/{cranelift-frontend-0.99.1 → cranelift-frontend-0.100.0}/src/switch.rs +0 -0
  1340. /data/ext/cargo-vendor/{cranelift-frontend-0.99.1 → cranelift-frontend-0.100.0}/src/variable.rs +0 -0
  1341. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/README.md +0 -0
  1342. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/build.rs +0 -0
  1343. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/fail/bad_converters.isle +0 -0
  1344. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/fail/bound_var_type_mismatch.isle +0 -0
  1345. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/fail/converter_extractor_constructor.isle +0 -0
  1346. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/fail/error1.isle +0 -0
  1347. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/fail/extra_parens.isle +0 -0
  1348. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/fail/impure_expression.isle +0 -0
  1349. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/fail/impure_rhs.isle +0 -0
  1350. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/fail/multi_internal_etor.isle +0 -0
  1351. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/fail/multi_prio.isle +0 -0
  1352. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/link/borrows.isle +0 -0
  1353. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/link/borrows_main.rs +0 -0
  1354. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/link/iflets.isle +0 -0
  1355. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/link/iflets_main.rs +0 -0
  1356. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/link/multi_constructor.isle +0 -0
  1357. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/link/multi_constructor_main.rs +0 -0
  1358. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/link/multi_extractor.isle +0 -0
  1359. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/link/multi_extractor_main.rs +0 -0
  1360. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/link/test.isle +0 -0
  1361. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/link/test_main.rs +0 -0
  1362. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/pass/bound_var.isle +0 -0
  1363. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/pass/construct_and_extract.isle +0 -0
  1364. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/pass/conversions.isle +0 -0
  1365. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/pass/conversions_extern.isle +0 -0
  1366. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/pass/let.isle +0 -0
  1367. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/pass/nodebug.isle +0 -0
  1368. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/pass/prio_trie_bug.isle +0 -0
  1369. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/pass/test2.isle +0 -0
  1370. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/pass/test3.isle +0 -0
  1371. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/pass/test4.isle +0 -0
  1372. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/pass/tutorial.isle +0 -0
  1373. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/run/iconst.isle +0 -0
  1374. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/run/iconst_main.rs +0 -0
  1375. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/run/let_shadowing.isle +0 -0
  1376. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/isle_examples/run/let_shadowing_main.rs +0 -0
  1377. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/src/ast.rs +0 -0
  1378. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/src/codegen.rs +0 -0
  1379. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/src/compile.rs +0 -0
  1380. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/src/error.rs +0 -0
  1381. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/src/lexer.rs +0 -0
  1382. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/src/lib.rs +0 -0
  1383. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/src/log.rs +0 -0
  1384. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/src/overlap.rs +0 -0
  1385. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/src/parser.rs +0 -0
  1386. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/src/sema.rs +0 -0
  1387. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/src/serialize.rs +0 -0
  1388. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/src/trie_again.rs +0 -0
  1389. /data/ext/cargo-vendor/{cranelift-isle-0.99.1 → cranelift-isle-0.100.0}/tests/run_tests.rs +0 -0
  1390. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-native-0.100.0}/LICENSE +0 -0
  1391. /data/ext/cargo-vendor/{cranelift-native-0.99.1 → cranelift-native-0.100.0}/README.md +0 -0
  1392. /data/ext/cargo-vendor/{cranelift-native-0.99.1 → cranelift-native-0.100.0}/src/riscv.rs +0 -0
  1393. /data/ext/cargo-vendor/{wasi-cap-std-sync-12.0.1 → cranelift-wasm-0.100.0}/LICENSE +0 -0
  1394. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/README.md +0 -0
  1395. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/src/code_translator/bounds_checks.rs +0 -0
  1396. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/src/environ/mod.rs +0 -0
  1397. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/src/module_translator.rs +0 -0
  1398. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/src/state.rs +0 -0
  1399. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/tests/wasm_testsuite.rs +0 -0
  1400. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/arith.wat +0 -0
  1401. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/br_table.wat +0 -0
  1402. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/call-simd.wat +0 -0
  1403. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/call.wat +0 -0
  1404. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/embenchen_fannkuch.wat +0 -0
  1405. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/embenchen_fasta.wat +0 -0
  1406. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/embenchen_ifs.wat +0 -0
  1407. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/embenchen_primes.wat +0 -0
  1408. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/fac-multi-value.wat +0 -0
  1409. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/fibonacci.wat +0 -0
  1410. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/globals.wat +0 -0
  1411. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/icall-simd.wat +0 -0
  1412. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/icall.wat +0 -0
  1413. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/if-reachability-translation-0.wat +0 -0
  1414. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/if-reachability-translation-1.wat +0 -0
  1415. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/if-reachability-translation-2.wat +0 -0
  1416. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/if-reachability-translation-3.wat +0 -0
  1417. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/if-reachability-translation-4.wat +0 -0
  1418. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/if-reachability-translation-5.wat +0 -0
  1419. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/if-reachability-translation-6.wat +0 -0
  1420. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/if-unreachable-else-params-2.wat +0 -0
  1421. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/if-unreachable-else-params.wat +0 -0
  1422. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/issue-1306-name-section-with-u32-max-function-index.wasm +0 -0
  1423. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/memory.wat +0 -0
  1424. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-0.wat +0 -0
  1425. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-1.wat +0 -0
  1426. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-10.wat +0 -0
  1427. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-11.wat +0 -0
  1428. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-12.wat +0 -0
  1429. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-13.wat +0 -0
  1430. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-14.wat +0 -0
  1431. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-15.wat +0 -0
  1432. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-16.wat +0 -0
  1433. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-17.wat +0 -0
  1434. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-2.wat +0 -0
  1435. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-3.wat +0 -0
  1436. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-4.wat +0 -0
  1437. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-5.wat +0 -0
  1438. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-6.wat +0 -0
  1439. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-7.wat +0 -0
  1440. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-8.wat +0 -0
  1441. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/multi-9.wat +0 -0
  1442. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/nullref.wat +0 -0
  1443. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/passive-data.wat +0 -0
  1444. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/pr2303.wat +0 -0
  1445. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/pr2559.wat +0 -0
  1446. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/ref-func-0.wat +0 -0
  1447. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/rust_fannkuch.wat +0 -0
  1448. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/select.wat +0 -0
  1449. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/simd-store.wat +0 -0
  1450. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/simd.wat +0 -0
  1451. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/table-copy.wat +0 -0
  1452. /data/ext/cargo-vendor/{cranelift-wasm-0.99.1 → cranelift-wasm-0.100.0}/wasmtests/unreachable_code.wat +0 -0
  1453. /data/ext/cargo-vendor/{fallible-iterator-0.2.0 → fallible-iterator-0.3.0}/LICENSE-APACHE +0 -0
  1454. /data/ext/cargo-vendor/{fallible-iterator-0.2.0 → fallible-iterator-0.3.0}/LICENSE-MIT +0 -0
  1455. /data/ext/cargo-vendor/{serde-1.0.185 → serde-1.0.188}/LICENSE-APACHE +0 -0
  1456. /data/ext/cargo-vendor/{serde-1.0.185 → serde-1.0.188}/LICENSE-MIT +0 -0
  1457. /data/ext/cargo-vendor/{serde-1.0.185 → serde-1.0.188}/README.md +0 -0
  1458. /data/ext/cargo-vendor/{serde-1.0.185 → serde-1.0.188}/crates-io.md +0 -0
  1459. /data/ext/cargo-vendor/{serde-1.0.185 → serde-1.0.188}/src/de/format.rs +0 -0
  1460. /data/ext/cargo-vendor/{serde-1.0.185 → serde-1.0.188}/src/de/seed.rs +0 -0
  1461. /data/ext/cargo-vendor/{serde-1.0.185 → serde-1.0.188}/src/de/size_hint.rs +0 -0
  1462. /data/ext/cargo-vendor/{serde-1.0.185 → serde-1.0.188}/src/private/de.rs +0 -0
  1463. /data/ext/cargo-vendor/{serde-1.0.185 → serde-1.0.188}/src/private/doc.rs +0 -0
  1464. /data/ext/cargo-vendor/{serde-1.0.185 → serde-1.0.188}/src/private/mod.rs +0 -0
  1465. /data/ext/cargo-vendor/{serde-1.0.185 → serde-1.0.188}/src/private/ser.rs +0 -0
  1466. /data/ext/cargo-vendor/{serde-1.0.185 → serde-1.0.188}/src/ser/impossible.rs +0 -0
  1467. /data/ext/cargo-vendor/{serde-1.0.185 → serde-1.0.188}/src/std_error.rs +0 -0
  1468. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/LICENSE-APACHE +0 -0
  1469. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/LICENSE-MIT +0 -0
  1470. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/README.md +0 -0
  1471. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/crates-io.md +0 -0
  1472. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/src/bound.rs +0 -0
  1473. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/src/de.rs +0 -0
  1474. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/src/dummy.rs +0 -0
  1475. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/src/fragment.rs +0 -0
  1476. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/src/internals/ast.rs +0 -0
  1477. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/src/internals/attr.rs +0 -0
  1478. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/src/internals/case.rs +0 -0
  1479. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/src/internals/check.rs +0 -0
  1480. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/src/internals/ctxt.rs +0 -0
  1481. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/src/internals/mod.rs +0 -0
  1482. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/src/internals/receiver.rs +0 -0
  1483. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/src/internals/respan.rs +0 -0
  1484. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/src/internals/symbol.rs +0 -0
  1485. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/src/pretend.rs +0 -0
  1486. /data/ext/cargo-vendor/{serde_derive-1.0.185 → serde_derive-1.0.188}/src/this.rs +0 -0
  1487. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-cap-std-sync-13.0.0}/LICENSE +0 -0
  1488. /data/ext/cargo-vendor/{wasi-cap-std-sync-12.0.1 → wasi-cap-std-sync-13.0.0}/README.md +0 -0
  1489. /data/ext/cargo-vendor/{wasi-cap-std-sync-12.0.1 → wasi-cap-std-sync-13.0.0}/src/clocks.rs +0 -0
  1490. /data/ext/cargo-vendor/{wasi-cap-std-sync-12.0.1 → wasi-cap-std-sync-13.0.0}/src/dir.rs +0 -0
  1491. /data/ext/cargo-vendor/{wasi-cap-std-sync-12.0.1 → wasi-cap-std-sync-13.0.0}/src/file.rs +0 -0
  1492. /data/ext/cargo-vendor/{wasi-cap-std-sync-12.0.1 → wasi-cap-std-sync-13.0.0}/src/net.rs +0 -0
  1493. /data/ext/cargo-vendor/{wasi-cap-std-sync-12.0.1 → wasi-cap-std-sync-13.0.0}/src/sched/unix.rs +0 -0
  1494. /data/ext/cargo-vendor/{wasi-cap-std-sync-12.0.1 → wasi-cap-std-sync-13.0.0}/src/sched/windows.rs +0 -0
  1495. /data/ext/cargo-vendor/{wasi-cap-std-sync-12.0.1 → wasi-cap-std-sync-13.0.0}/src/sched.rs +0 -0
  1496. /data/ext/cargo-vendor/{wasi-cap-std-sync-12.0.1 → wasi-cap-std-sync-13.0.0}/src/stdio.rs +0 -0
  1497. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasi-common-13.0.0}/LICENSE +0 -0
  1498. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/README.md +0 -0
  1499. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/README.md +0 -0
  1500. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/docs/README.md +0 -0
  1501. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/README.md +0 -0
  1502. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/ephemeral/docs.md +0 -0
  1503. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/ephemeral/witx/typenames.witx +0 -0
  1504. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx +0 -0
  1505. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_clock.witx +0 -0
  1506. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_environ.witx +0 -0
  1507. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_fd.witx +0 -0
  1508. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_path.witx +0 -0
  1509. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_poll.witx +0 -0
  1510. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_proc.witx +0 -0
  1511. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx +0 -0
  1512. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_sched.witx +0 -0
  1513. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx +0 -0
  1514. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/old/snapshot_0/docs.md +0 -0
  1515. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/old/snapshot_0/witx/typenames.witx +0 -0
  1516. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/old/snapshot_0/witx/wasi_unstable.witx +0 -0
  1517. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/snapshot/docs.html +0 -0
  1518. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/snapshot/docs.md +0 -0
  1519. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/snapshot/witx/typenames.witx +0 -0
  1520. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx +0 -0
  1521. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/proposal-template/README.md +0 -0
  1522. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/proposals/README.md +0 -0
  1523. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/snapshots/README.md +0 -0
  1524. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/WASI/standard/README.md +0 -0
  1525. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/build.rs +0 -0
  1526. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/clocks.rs +0 -0
  1527. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/ctx.rs +0 -0
  1528. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/dir.rs +0 -0
  1529. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/error.rs +0 -0
  1530. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/file.rs +0 -0
  1531. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/lib.rs +0 -0
  1532. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/pipe.rs +0 -0
  1533. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/random.rs +0 -0
  1534. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/sched/subscription.rs +0 -0
  1535. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/sched.rs +0 -0
  1536. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/snapshots/mod.rs +0 -0
  1537. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/snapshots/preview_0.rs +0 -0
  1538. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/snapshots/preview_1/error.rs +0 -0
  1539. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/snapshots/preview_1.rs +0 -0
  1540. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/string_array.rs +0 -0
  1541. /data/ext/cargo-vendor/{wasi-common-12.0.1 → wasi-common-13.0.0}/src/table.rs +0 -0
  1542. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasm-encoder-0.32.0}/LICENSE +0 -0
  1543. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/README.md +0 -0
  1544. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/component/aliases.rs +0 -0
  1545. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/component/builder.rs +0 -0
  1546. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/component/canonicals.rs +0 -0
  1547. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/component/components.rs +0 -0
  1548. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/component/exports.rs +0 -0
  1549. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/component/imports.rs +0 -0
  1550. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/component/instances.rs +0 -0
  1551. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/component/modules.rs +0 -0
  1552. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/component/names.rs +0 -0
  1553. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/component/start.rs +0 -0
  1554. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/component.rs +0 -0
  1555. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/code.rs +0 -0
  1556. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/custom.rs +0 -0
  1557. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/data.rs +0 -0
  1558. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/dump.rs +0 -0
  1559. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/elements.rs +0 -0
  1560. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/exports.rs +0 -0
  1561. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/functions.rs +0 -0
  1562. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/globals.rs +0 -0
  1563. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/imports.rs +0 -0
  1564. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/linking.rs +0 -0
  1565. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/memories.rs +0 -0
  1566. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/names.rs +0 -0
  1567. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/producers.rs +0 -0
  1568. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/start.rs +0 -0
  1569. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/tables.rs +0 -0
  1570. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/tags.rs +0 -0
  1571. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core/types.rs +0 -0
  1572. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/core.rs +0 -0
  1573. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/lib.rs +0 -0
  1574. /data/ext/cargo-vendor/{wasm-encoder-0.31.1 → wasm-encoder-0.32.0}/src/raw.rs +0 -0
  1575. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasm-encoder-0.33.1}/LICENSE +0 -0
  1576. /data/ext/cargo-vendor/{wasmprinter-0.2.63 → wasmparser-0.112.0}/LICENSE +0 -0
  1577. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/README.md +0 -0
  1578. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/benches/benchmark.rs +0 -0
  1579. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/examples/simple.rs +0 -0
  1580. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/binary_reader.rs +0 -0
  1581. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/lib.rs +0 -0
  1582. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/parser.rs +0 -0
  1583. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/component/aliases.rs +0 -0
  1584. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/component/canonicals.rs +0 -0
  1585. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/component/exports.rs +0 -0
  1586. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/component/imports.rs +0 -0
  1587. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/component/instances.rs +0 -0
  1588. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/component/names.rs +0 -0
  1589. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/component/start.rs +0 -0
  1590. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/component.rs +0 -0
  1591. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/code.rs +0 -0
  1592. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/coredumps.rs +0 -0
  1593. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/custom.rs +0 -0
  1594. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/data.rs +0 -0
  1595. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.112.0}/src/readers/core/dylink0.rs +0 -0
  1596. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/elements.rs +0 -0
  1597. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/exports.rs +0 -0
  1598. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/functions.rs +0 -0
  1599. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/globals.rs +0 -0
  1600. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/imports.rs +0 -0
  1601. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/init.rs +0 -0
  1602. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/memories.rs +0 -0
  1603. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/names.rs +0 -0
  1604. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/operators.rs +0 -0
  1605. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/producers.rs +0 -0
  1606. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/tables.rs +0 -0
  1607. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers/core/tags.rs +0 -0
  1608. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.112.0}/src/readers/core.rs +0 -0
  1609. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/readers.rs +0 -0
  1610. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/resources.rs +0 -0
  1611. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/validator/func.rs +0 -0
  1612. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/validator/names.rs +0 -0
  1613. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/src/validator/operators.rs +0 -0
  1614. /data/ext/cargo-vendor/{wasmparser-0.110.0 → wasmparser-0.112.0}/tests/big-module.rs +0 -0
  1615. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmparser-0.113.1}/LICENSE +0 -0
  1616. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/README.md +0 -0
  1617. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/benches/benchmark.rs +0 -0
  1618. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/examples/simple.rs +0 -0
  1619. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/parser.rs +0 -0
  1620. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/component/aliases.rs +0 -0
  1621. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/component/canonicals.rs +0 -0
  1622. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/component/exports.rs +0 -0
  1623. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/component/imports.rs +0 -0
  1624. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/component/instances.rs +0 -0
  1625. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/component/names.rs +0 -0
  1626. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/component/start.rs +0 -0
  1627. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/component.rs +0 -0
  1628. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/code.rs +0 -0
  1629. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/coredumps.rs +0 -0
  1630. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/custom.rs +0 -0
  1631. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/data.rs +0 -0
  1632. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/elements.rs +0 -0
  1633. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/exports.rs +0 -0
  1634. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/functions.rs +0 -0
  1635. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/globals.rs +0 -0
  1636. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/imports.rs +0 -0
  1637. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/init.rs +0 -0
  1638. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/memories.rs +0 -0
  1639. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/names.rs +0 -0
  1640. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/operators.rs +0 -0
  1641. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/producers.rs +0 -0
  1642. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/tables.rs +0 -0
  1643. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers/core/tags.rs +0 -0
  1644. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/readers.rs +0 -0
  1645. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/resources.rs +0 -0
  1646. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/validator/func.rs +0 -0
  1647. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/src/validator/names.rs +0 -0
  1648. /data/ext/cargo-vendor/{wasmparser-0.111.0 → wasmparser-0.113.1}/tests/big-module.rs +0 -0
  1649. /data/ext/cargo-vendor/{wasmtime-cache-12.0.1 → wasmprinter-0.2.66}/LICENSE +0 -0
  1650. /data/ext/cargo-vendor/{wasmprinter-0.2.63 → wasmprinter-0.2.66}/README.md +0 -0
  1651. /data/ext/cargo-vendor/{wasmprinter-0.2.63 → wasmprinter-0.2.66}/tests/all.rs +0 -0
  1652. /data/ext/cargo-vendor/{wasmtime-cranelift-12.0.1 → wasmtime-13.0.0}/LICENSE +0 -0
  1653. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/README.md +0 -0
  1654. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/code.rs +0 -0
  1655. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/compiler.rs +0 -0
  1656. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/component/func/host.rs +0 -0
  1657. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/component/func/options.rs +0 -0
  1658. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/component/func.rs +0 -0
  1659. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/component/matching.rs +0 -0
  1660. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/component/resources.rs +0 -0
  1661. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/component/storage.rs +0 -0
  1662. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/component/store.rs +0 -0
  1663. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/coredump.rs +0 -0
  1664. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/externals.rs +0 -0
  1665. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/func/typed.rs +0 -0
  1666. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/func.rs +0 -0
  1667. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/lib.rs +0 -0
  1668. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/linker.rs +0 -0
  1669. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/memory.rs +0 -0
  1670. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/module/registry.rs +0 -0
  1671. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/profiling.rs +0 -0
  1672. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/ref.rs +0 -0
  1673. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/resources.rs +0 -0
  1674. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/signatures.rs +0 -0
  1675. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/store/context.rs +0 -0
  1676. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/store/data.rs +0 -0
  1677. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/store/func_refs.rs +0 -0
  1678. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/trampoline/func.rs +0 -0
  1679. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/trampoline/global.rs +0 -0
  1680. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/trampoline/table.rs +0 -0
  1681. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/trap.rs +0 -0
  1682. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/types/matching.rs +0 -0
  1683. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/types.rs +0 -0
  1684. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/unix.rs +0 -0
  1685. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/values.rs +0 -0
  1686. /data/ext/cargo-vendor/{wasmtime-12.0.1 → wasmtime-13.0.0}/src/windows.rs +0 -0
  1687. /data/ext/cargo-vendor/{wasmtime-asm-macros-12.0.1 → wasmtime-asm-macros-13.0.0}/src/lib.rs +0 -0
  1688. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-cache-13.0.0}/LICENSE +0 -0
  1689. /data/ext/cargo-vendor/{wasmtime-cache-12.0.1 → wasmtime-cache-13.0.0}/build.rs +0 -0
  1690. /data/ext/cargo-vendor/{wasmtime-cache-12.0.1 → wasmtime-cache-13.0.0}/src/config/tests.rs +0 -0
  1691. /data/ext/cargo-vendor/{wasmtime-cache-12.0.1 → wasmtime-cache-13.0.0}/src/lib.rs +0 -0
  1692. /data/ext/cargo-vendor/{wasmtime-cache-12.0.1 → wasmtime-cache-13.0.0}/src/tests.rs +0 -0
  1693. /data/ext/cargo-vendor/{wasmtime-cache-12.0.1 → wasmtime-cache-13.0.0}/src/worker/tests/system_time_stub.rs +0 -0
  1694. /data/ext/cargo-vendor/{wasmtime-cache-12.0.1 → wasmtime-cache-13.0.0}/tests/cache_write_default_config.rs +0 -0
  1695. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/src/lib.rs +0 -0
  1696. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/char.wit +0 -0
  1697. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/conventions.wit +0 -0
  1698. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/direct-import.wit +0 -0
  1699. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/empty.wit +0 -0
  1700. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/flags.wit +0 -0
  1701. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/floats.wit +0 -0
  1702. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/function-new.wit +0 -0
  1703. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/integers.wit +0 -0
  1704. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/lists.wit +0 -0
  1705. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/many-arguments.wit +0 -0
  1706. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/multi-return.wit +0 -0
  1707. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/records.wit +0 -0
  1708. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/rename.wit +0 -0
  1709. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/share-types.wit +0 -0
  1710. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/simple-functions.wit +0 -0
  1711. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/simple-lists.wit +0 -0
  1712. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/simple-wasi.wit +0 -0
  1713. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/small-anonymous.wit +0 -0
  1714. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/smoke-default.wit +0 -0
  1715. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/smoke-export.wit +0 -0
  1716. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/smoke.wit +0 -0
  1717. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/strings.wit +0 -0
  1718. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/use-paths.wit +0 -0
  1719. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen/worlds-with-types.wit +0 -0
  1720. /data/ext/cargo-vendor/{wasmtime-component-macro-12.0.1 → wasmtime-component-macro-13.0.0}/tests/codegen.rs +0 -0
  1721. /data/ext/cargo-vendor/{wasmtime-component-util-12.0.1 → wasmtime-component-util-13.0.0}/src/lib.rs +0 -0
  1722. /data/ext/cargo-vendor/{wasmtime-fiber-12.0.1 → wasmtime-cranelift-13.0.0}/LICENSE +0 -0
  1723. /data/ext/cargo-vendor/{wasmtime-cranelift-12.0.1 → wasmtime-cranelift-13.0.0}/SECURITY.md +0 -0
  1724. /data/ext/cargo-vendor/{wasmtime-cranelift-12.0.1 → wasmtime-cranelift-13.0.0}/src/compiler/component.rs +0 -0
  1725. /data/ext/cargo-vendor/{wasmtime-cranelift-12.0.1 → wasmtime-cranelift-13.0.0}/src/debug/gc.rs +0 -0
  1726. /data/ext/cargo-vendor/{wasmtime-cranelift-12.0.1 → wasmtime-cranelift-13.0.0}/src/debug/transform/address_transform.rs +0 -0
  1727. /data/ext/cargo-vendor/{wasmtime-cranelift-12.0.1 → wasmtime-cranelift-13.0.0}/src/debug/transform/expression.rs +0 -0
  1728. /data/ext/cargo-vendor/{wasmtime-cranelift-12.0.1 → wasmtime-cranelift-13.0.0}/src/debug/transform/line_program.rs +0 -0
  1729. /data/ext/cargo-vendor/{wasmtime-cranelift-12.0.1 → wasmtime-cranelift-13.0.0}/src/debug/transform/mod.rs +0 -0
  1730. /data/ext/cargo-vendor/{wasmtime-cranelift-12.0.1 → wasmtime-cranelift-13.0.0}/src/debug/transform/range_info_builder.rs +0 -0
  1731. /data/ext/cargo-vendor/{wasmtime-cranelift-12.0.1 → wasmtime-cranelift-13.0.0}/src/debug/transform/refs.rs +0 -0
  1732. /data/ext/cargo-vendor/{wasmtime-cranelift-12.0.1 → wasmtime-cranelift-13.0.0}/src/debug/transform/simulate.rs +0 -0
  1733. /data/ext/cargo-vendor/{wasmtime-cranelift-12.0.1 → wasmtime-cranelift-13.0.0}/src/debug/transform/unit.rs +0 -0
  1734. /data/ext/cargo-vendor/{wasmtime-cranelift-12.0.1 → wasmtime-cranelift-13.0.0}/src/debug/transform/utils.rs +0 -0
  1735. /data/ext/cargo-vendor/{wasmtime-cranelift-12.0.1 → wasmtime-cranelift-13.0.0}/src/debug/write_debuginfo.rs +0 -0
  1736. /data/ext/cargo-vendor/{wasmtime-cranelift-12.0.1 → wasmtime-cranelift-13.0.0}/src/lib.rs +0 -0
  1737. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-12.0.1 → wasmtime-cranelift-shared-13.0.0}/src/compiled_function.rs +0 -0
  1738. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-12.0.1 → wasmtime-cranelift-shared-13.0.0}/src/isa_builder.rs +0 -0
  1739. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-12.0.1 → wasmtime-cranelift-shared-13.0.0}/src/lib.rs +0 -0
  1740. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-12.0.1 → wasmtime-cranelift-shared-13.0.0}/src/obj.rs +0 -0
  1741. /data/ext/cargo-vendor/{wasmtime-jit-12.0.1 → wasmtime-environ-13.0.0}/LICENSE +0 -0
  1742. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/examples/factc.rs +0 -0
  1743. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/src/component/dfg.rs +0 -0
  1744. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/src/component/translate/adapt.rs +0 -0
  1745. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/src/component/translate/inline.rs +0 -0
  1746. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/src/component/translate.rs +0 -0
  1747. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/src/component/types/resources.rs +0 -0
  1748. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/src/component/vmcomponent_offsets.rs +0 -0
  1749. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/src/component.rs +0 -0
  1750. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/src/fact/core_types.rs +0 -0
  1751. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/src/fact/signature.rs +0 -0
  1752. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/src/fact/traps.rs +0 -0
  1753. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/src/fact.rs +0 -0
  1754. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/src/obj.rs +0 -0
  1755. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/src/ref_bits.rs +0 -0
  1756. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/src/scopevec.rs +0 -0
  1757. /data/ext/cargo-vendor/{wasmtime-environ-12.0.1 → wasmtime-environ-13.0.0}/src/trap_encoding.rs +0 -0
  1758. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-fiber-13.0.0}/LICENSE +0 -0
  1759. /data/ext/cargo-vendor/{wasmtime-fiber-12.0.1 → wasmtime-fiber-13.0.0}/build.rs +0 -0
  1760. /data/ext/cargo-vendor/{wasmtime-fiber-12.0.1 → wasmtime-fiber-13.0.0}/src/lib.rs +0 -0
  1761. /data/ext/cargo-vendor/{wasmtime-fiber-12.0.1 → wasmtime-fiber-13.0.0}/src/unix/aarch64.rs +0 -0
  1762. /data/ext/cargo-vendor/{wasmtime-fiber-12.0.1 → wasmtime-fiber-13.0.0}/src/unix/arm.rs +0 -0
  1763. /data/ext/cargo-vendor/{wasmtime-fiber-12.0.1 → wasmtime-fiber-13.0.0}/src/unix/riscv64.rs +0 -0
  1764. /data/ext/cargo-vendor/{wasmtime-fiber-12.0.1 → wasmtime-fiber-13.0.0}/src/unix/s390x.S +0 -0
  1765. /data/ext/cargo-vendor/{wasmtime-fiber-12.0.1 → wasmtime-fiber-13.0.0}/src/unix/x86.rs +0 -0
  1766. /data/ext/cargo-vendor/{wasmtime-fiber-12.0.1 → wasmtime-fiber-13.0.0}/src/unix/x86_64.rs +0 -0
  1767. /data/ext/cargo-vendor/{wasmtime-fiber-12.0.1 → wasmtime-fiber-13.0.0}/src/unix.rs +0 -0
  1768. /data/ext/cargo-vendor/{wasmtime-fiber-12.0.1 → wasmtime-fiber-13.0.0}/src/windows.c +0 -0
  1769. /data/ext/cargo-vendor/{wasmtime-fiber-12.0.1 → wasmtime-fiber-13.0.0}/src/windows.rs +0 -0
  1770. /data/ext/cargo-vendor/{wasmtime-types-12.0.1 → wasmtime-jit-13.0.0}/LICENSE +0 -0
  1771. /data/ext/cargo-vendor/{wasmtime-jit-12.0.1 → wasmtime-jit-13.0.0}/src/code_memory.rs +0 -0
  1772. /data/ext/cargo-vendor/{wasmtime-jit-12.0.1 → wasmtime-jit-13.0.0}/src/debug.rs +0 -0
  1773. /data/ext/cargo-vendor/{wasmtime-jit-12.0.1 → wasmtime-jit-13.0.0}/src/demangling.rs +0 -0
  1774. /data/ext/cargo-vendor/{wasmtime-jit-12.0.1 → wasmtime-jit-13.0.0}/src/profiling/jitdump.rs +0 -0
  1775. /data/ext/cargo-vendor/{wasmtime-jit-12.0.1 → wasmtime-jit-13.0.0}/src/profiling/perfmap.rs +0 -0
  1776. /data/ext/cargo-vendor/{wasmtime-jit-12.0.1 → wasmtime-jit-13.0.0}/src/profiling/vtune.rs +0 -0
  1777. /data/ext/cargo-vendor/{wasmtime-jit-12.0.1 → wasmtime-jit-13.0.0}/src/profiling.rs +0 -0
  1778. /data/ext/cargo-vendor/{wasmtime-jit-12.0.1 → wasmtime-jit-13.0.0}/src/unwind.rs +0 -0
  1779. /data/ext/cargo-vendor/{wasmtime-jit-debug-12.0.1 → wasmtime-jit-debug-13.0.0}/README.md +0 -0
  1780. /data/ext/cargo-vendor/{wasmtime-jit-debug-12.0.1 → wasmtime-jit-debug-13.0.0}/src/gdb_jit_int.rs +0 -0
  1781. /data/ext/cargo-vendor/{wasmtime-jit-debug-12.0.1 → wasmtime-jit-debug-13.0.0}/src/lib.rs +0 -0
  1782. /data/ext/cargo-vendor/{wasmtime-jit-debug-12.0.1 → wasmtime-jit-debug-13.0.0}/src/perf_jitdump.rs +0 -0
  1783. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-12.0.1 → wasmtime-jit-icache-coherence-13.0.0}/src/lib.rs +0 -0
  1784. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-12.0.1 → wasmtime-jit-icache-coherence-13.0.0}/src/libc.rs +0 -0
  1785. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-12.0.1 → wasmtime-jit-icache-coherence-13.0.0}/src/miri.rs +0 -0
  1786. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-12.0.1 → wasmtime-jit-icache-coherence-13.0.0}/src/win.rs +0 -0
  1787. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-runtime-13.0.0}/LICENSE +0 -0
  1788. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/build.rs +0 -0
  1789. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/component/libcalls.rs +0 -0
  1790. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/component/resources.rs +0 -0
  1791. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/component.rs +0 -0
  1792. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/cow.rs +0 -0
  1793. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/debug_builtins.rs +0 -0
  1794. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/export.rs +0 -0
  1795. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/externref.rs +0 -0
  1796. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/helpers.c +0 -0
  1797. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/imports.rs +0 -0
  1798. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/instance/allocator/pooling/unix.rs +0 -0
  1799. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/instance/allocator/pooling/windows.rs +0 -0
  1800. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/mmap/miri.rs +0 -0
  1801. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/mmap/unix.rs +0 -0
  1802. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/mmap/windows.rs +0 -0
  1803. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/mmap.rs +0 -0
  1804. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/mmap_vec.rs +0 -0
  1805. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/module_id.rs +0 -0
  1806. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/send_sync_ptr.rs +0 -0
  1807. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/store_box.rs +0 -0
  1808. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/trampolines/aarch64.rs +0 -0
  1809. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/trampolines/riscv64.rs +0 -0
  1810. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/trampolines/s390x.rs +0 -0
  1811. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/trampolines/x86_64.rs +0 -0
  1812. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/trampolines.rs +0 -0
  1813. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/traphandlers/backtrace/aarch64.rs +0 -0
  1814. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/traphandlers/backtrace/riscv64.rs +0 -0
  1815. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/traphandlers/backtrace/s390x.rs +0 -0
  1816. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/traphandlers/backtrace/x86_64.rs +0 -0
  1817. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/traphandlers/backtrace.rs +0 -0
  1818. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/traphandlers/coredump.rs +0 -0
  1819. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/traphandlers/unix.rs +0 -0
  1820. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/traphandlers/windows.rs +0 -0
  1821. /data/ext/cargo-vendor/{wasmtime-runtime-12.0.1 → wasmtime-runtime-13.0.0}/src/vmcontext/vm_host_func_context.rs +0 -0
  1822. /data/ext/cargo-vendor/{wast-63.0.0 → wasmtime-types-13.0.0}/LICENSE +0 -0
  1823. /data/ext/cargo-vendor/{wasmtime-types-12.0.1 → wasmtime-types-13.0.0}/src/error.rs +0 -0
  1824. /data/ext/cargo-vendor/{wasmtime-versioned-export-macros-12.0.1 → wasmtime-versioned-export-macros-13.0.0}/src/lib.rs +0 -0
  1825. /data/ext/cargo-vendor/{wat-1.0.70 → wasmtime-wasi-13.0.0}/LICENSE +0 -0
  1826. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/README.md +0 -0
  1827. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/build.rs +0 -0
  1828. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/src/preview2/clocks/host.rs +0 -0
  1829. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/src/preview2/clocks.rs +0 -0
  1830. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/src/preview2/error.rs +0 -0
  1831. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1/src/preview2/preview2 → wasmtime-wasi-13.0.0/src/preview2/host}/random.rs +0 -0
  1832. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/src/preview2/poll.rs +0 -0
  1833. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/src/preview2/random.rs +0 -0
  1834. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1/wit/deps/wasi-cli-base → wasmtime-wasi-13.0.0/wit/deps/cli}/stdio.wit +0 -0
  1835. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/wit/deps/clocks/monotonic-clock.wit +0 -0
  1836. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/wit/deps/clocks/timezone.wit +0 -0
  1837. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/wit/deps/clocks/wall-clock.wit +0 -0
  1838. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/wit/deps/http/incoming-handler.wit +0 -0
  1839. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/wit/deps/http/outgoing-handler.wit +0 -0
  1840. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/wit/deps/poll/poll.wit +0 -0
  1841. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/wit/deps/random/insecure-seed.wit +0 -0
  1842. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/wit/deps/random/insecure.wit +0 -0
  1843. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/wit/deps/random/random.wit +0 -0
  1844. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/wit/deps/sockets/instance-network.wit +0 -0
  1845. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/witx/typenames.witx +0 -0
  1846. /data/ext/cargo-vendor/{wasmtime-wasi-12.0.1 → wasmtime-wasi-13.0.0}/witx/wasi_snapshot_preview1.witx +0 -0
  1847. /data/ext/cargo-vendor/{file-per-thread-logger-0.2.0 → wasmtime-winch-13.0.0}/LICENSE +0 -0
  1848. /data/ext/cargo-vendor/{wasmtime-winch-12.0.1 → wasmtime-winch-13.0.0}/src/builder.rs +0 -0
  1849. /data/ext/cargo-vendor/{wasmtime-winch-12.0.1 → wasmtime-winch-13.0.0}/src/compiler.rs +0 -0
  1850. /data/ext/cargo-vendor/{wasmtime-winch-12.0.1 → wasmtime-winch-13.0.0}/src/lib.rs +0 -0
  1851. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-12.0.1 → wasmtime-wit-bindgen-13.0.0}/src/source.rs +0 -0
  1852. /data/ext/cargo-vendor/{wiggle-12.0.1 → wast-65.0.1}/LICENSE +0 -0
  1853. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/README.md +0 -0
  1854. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/component/alias.rs +0 -0
  1855. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/component/component.rs +0 -0
  1856. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/component/custom.rs +0 -0
  1857. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/component/export.rs +0 -0
  1858. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/component/func.rs +0 -0
  1859. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/component/import.rs +0 -0
  1860. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/component/instance.rs +0 -0
  1861. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/component/item_ref.rs +0 -0
  1862. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/component/module.rs +0 -0
  1863. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/component.rs +0 -0
  1864. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/core/custom.rs +0 -0
  1865. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/core/export.rs +0 -0
  1866. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/core/func.rs +0 -0
  1867. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/core/global.rs +0 -0
  1868. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/core/import.rs +0 -0
  1869. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/core/memory.rs +0 -0
  1870. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/core/module.rs +0 -0
  1871. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/core/resolve/deinline_import_export.rs +0 -0
  1872. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/core/resolve/mod.rs +0 -0
  1873. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/core/resolve/names.rs +0 -0
  1874. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/core/resolve/types.rs +0 -0
  1875. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/core/tag.rs +0 -0
  1876. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/core.rs +0 -0
  1877. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/encode.rs +0 -0
  1878. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/error.rs +0 -0
  1879. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/gensym.rs +0 -0
  1880. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/lexer.rs +0 -0
  1881. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/names.rs +0 -0
  1882. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/parser.rs +0 -0
  1883. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/token.rs +0 -0
  1884. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/wast.rs +0 -0
  1885. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/src/wat.rs +0 -0
  1886. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/annotations.rs +0 -0
  1887. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/comments.rs +0 -0
  1888. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/bad-core-func-alias.wat +0 -0
  1889. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/bad-core-func-alias.wat.err +0 -0
  1890. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/bad-func-alias.wat +0 -0
  1891. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/bad-func-alias.wat.err +0 -0
  1892. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/bad-index.wat +0 -0
  1893. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/bad-index.wat.err +0 -0
  1894. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/bad-name.wat +0 -0
  1895. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/bad-name.wat.err +0 -0
  1896. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/bad-name2.wat +0 -0
  1897. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/bad-name2.wat.err +0 -0
  1898. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/bad-name3.wat +0 -0
  1899. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/bad-name3.wat.err +0 -0
  1900. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/block1.wat +0 -0
  1901. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/block1.wat.err +0 -0
  1902. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/block2.wat +0 -0
  1903. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/block2.wat.err +0 -0
  1904. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/block3.wat +0 -0
  1905. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/block3.wat.err +0 -0
  1906. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment0.wat +0 -0
  1907. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment0.wat.err +0 -0
  1908. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment1.wat +0 -0
  1909. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment1.wat.err +0 -0
  1910. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment2.wat +0 -0
  1911. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment2.wat.err +0 -0
  1912. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment3.wat +0 -0
  1913. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment3.wat.err +0 -0
  1914. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment4.wat +0 -0
  1915. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment4.wat.err +0 -0
  1916. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment5.wat +0 -0
  1917. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment5.wat.err +0 -0
  1918. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment6.wat +0 -0
  1919. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment6.wat.err +0 -0
  1920. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment7.wat +0 -0
  1921. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment7.wat.err +0 -0
  1922. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment8.wat +0 -0
  1923. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-block-comment8.wat.err +0 -0
  1924. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment0.wat +0 -0
  1925. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment0.wat.err +0 -0
  1926. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment1.wat +0 -0
  1927. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment1.wat.err +0 -0
  1928. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment2.wat +0 -0
  1929. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment2.wat.err +0 -0
  1930. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment3.wat +0 -0
  1931. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment3.wat.err +0 -0
  1932. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment4.wat +0 -0
  1933. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment4.wat.err +0 -0
  1934. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment5.wat +0 -0
  1935. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment5.wat.err +0 -0
  1936. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment6.wat +0 -0
  1937. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment6.wat.err +0 -0
  1938. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment7.wat +0 -0
  1939. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment7.wat.err +0 -0
  1940. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment8.wat +0 -0
  1941. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-line-comment8.wat.err +0 -0
  1942. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string0.wat +0 -0
  1943. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string0.wat.err +0 -0
  1944. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string1.wat +0 -0
  1945. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string1.wat.err +0 -0
  1946. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string2.wat +0 -0
  1947. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string2.wat.err +0 -0
  1948. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string3.wat +0 -0
  1949. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string3.wat.err +0 -0
  1950. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string4.wat +0 -0
  1951. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string4.wat.err +0 -0
  1952. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string5.wat +0 -0
  1953. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string5.wat.err +0 -0
  1954. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string6.wat +0 -0
  1955. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string6.wat.err +0 -0
  1956. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string7.wat +0 -0
  1957. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string7.wat.err +0 -0
  1958. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string8.wat +0 -0
  1959. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/confusing-string8.wat.err +0 -0
  1960. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/inline1.wat +0 -0
  1961. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/inline1.wat.err +0 -0
  1962. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/newline-in-string.wat +0 -0
  1963. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/newline-in-string.wat.err +0 -0
  1964. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string1.wat +0 -0
  1965. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string1.wat.err +0 -0
  1966. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string10.wat +0 -0
  1967. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string10.wat.err +0 -0
  1968. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string11.wat +0 -0
  1969. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string11.wat.err +0 -0
  1970. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string12.wat +0 -0
  1971. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string12.wat.err +0 -0
  1972. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string13.wat +0 -0
  1973. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string13.wat.err +0 -0
  1974. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string14.wat +0 -0
  1975. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string14.wat.err +0 -0
  1976. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string15.wat +0 -0
  1977. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string15.wat.err +0 -0
  1978. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string16.wat +0 -0
  1979. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string16.wat.err +0 -0
  1980. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string2.wat +0 -0
  1981. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string2.wat.err +0 -0
  1982. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string3.wat +0 -0
  1983. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string3.wat.err +0 -0
  1984. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string4.wat +0 -0
  1985. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string4.wat.err +0 -0
  1986. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string5.wat +0 -0
  1987. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string5.wat.err +0 -0
  1988. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string6.wat +0 -0
  1989. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string6.wat.err +0 -0
  1990. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string7.wat +0 -0
  1991. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string7.wat.err +0 -0
  1992. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string8.wat +0 -0
  1993. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string8.wat.err +0 -0
  1994. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string9.wat +0 -0
  1995. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/string9.wat.err +0 -0
  1996. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/unbalanced.wat +0 -0
  1997. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail/unbalanced.wat.err +0 -0
  1998. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/parse-fail.rs +0 -0
  1999. /data/ext/cargo-vendor/{wast-63.0.0 → wast-65.0.1}/tests/recursive.rs +0 -0
  2000. /data/ext/cargo-vendor/{wiggle-generate-12.0.1 → wat-1.0.73}/LICENSE +0 -0
  2001. /data/ext/cargo-vendor/{wat-1.0.70 → wat-1.0.73}/README.md +0 -0
  2002. /data/ext/cargo-vendor/{wat-1.0.70 → wat-1.0.73}/src/lib.rs +0 -0
  2003. /data/ext/cargo-vendor/{wiggle-macro-12.0.1 → wiggle-13.0.0}/LICENSE +0 -0
  2004. /data/ext/cargo-vendor/{wiggle-12.0.1 → wiggle-13.0.0}/README.md +0 -0
  2005. /data/ext/cargo-vendor/{wiggle-12.0.1 → wiggle-13.0.0}/src/borrow.rs +0 -0
  2006. /data/ext/cargo-vendor/{wiggle-12.0.1 → wiggle-13.0.0}/src/error.rs +0 -0
  2007. /data/ext/cargo-vendor/{wiggle-12.0.1 → wiggle-13.0.0}/src/guest_type.rs +0 -0
  2008. /data/ext/cargo-vendor/{wiggle-12.0.1 → wiggle-13.0.0}/src/region.rs +0 -0
  2009. /data/ext/cargo-vendor/{wiggle-12.0.1 → wiggle-13.0.0}/src/wasmtime.rs +0 -0
  2010. /data/ext/cargo-vendor/{wiggle-generate-12.0.1 → wiggle-generate-13.0.0}/README.md +0 -0
  2011. /data/ext/cargo-vendor/{wiggle-generate-12.0.1 → wiggle-generate-13.0.0}/src/codegen_settings.rs +0 -0
  2012. /data/ext/cargo-vendor/{wiggle-generate-12.0.1 → wiggle-generate-13.0.0}/src/funcs.rs +0 -0
  2013. /data/ext/cargo-vendor/{wiggle-generate-12.0.1 → wiggle-generate-13.0.0}/src/lib.rs +0 -0
  2014. /data/ext/cargo-vendor/{wiggle-generate-12.0.1 → wiggle-generate-13.0.0}/src/lifetimes.rs +0 -0
  2015. /data/ext/cargo-vendor/{wiggle-generate-12.0.1 → wiggle-generate-13.0.0}/src/module_trait.rs +0 -0
  2016. /data/ext/cargo-vendor/{wiggle-generate-12.0.1 → wiggle-generate-13.0.0}/src/names.rs +0 -0
  2017. /data/ext/cargo-vendor/{wiggle-generate-12.0.1 → wiggle-generate-13.0.0}/src/types/error.rs +0 -0
  2018. /data/ext/cargo-vendor/{wiggle-generate-12.0.1 → wiggle-generate-13.0.0}/src/types/flags.rs +0 -0
  2019. /data/ext/cargo-vendor/{wiggle-generate-12.0.1 → wiggle-generate-13.0.0}/src/types/handle.rs +0 -0
  2020. /data/ext/cargo-vendor/{wiggle-generate-12.0.1 → wiggle-generate-13.0.0}/src/types/mod.rs +0 -0
  2021. /data/ext/cargo-vendor/{wiggle-generate-12.0.1 → wiggle-generate-13.0.0}/src/types/variant.rs +0 -0
  2022. /data/ext/cargo-vendor/{wiggle-macro-12.0.1 → wiggle-macro-13.0.0}/src/lib.rs +0 -0
  2023. /data/ext/cargo-vendor/{wasmtime-winch-12.0.1 → winch-codegen-0.11.0}/LICENSE +0 -0
  2024. /data/ext/cargo-vendor/{winch-codegen-0.10.1 → winch-codegen-0.11.0}/build.rs +0 -0
  2025. /data/ext/cargo-vendor/{winch-codegen-0.10.1 → winch-codegen-0.11.0}/src/abi/local.rs +0 -0
  2026. /data/ext/cargo-vendor/{winch-codegen-0.10.1 → winch-codegen-0.11.0}/src/codegen/env.rs +0 -0
  2027. /data/ext/cargo-vendor/{winch-codegen-0.10.1 → winch-codegen-0.11.0}/src/frame/mod.rs +0 -0
  2028. /data/ext/cargo-vendor/{winch-codegen-0.10.1 → winch-codegen-0.11.0}/src/isa/aarch64/mod.rs +0 -0
  2029. /data/ext/cargo-vendor/{winch-codegen-0.10.1 → winch-codegen-0.11.0}/src/isa/mod.rs +0 -0
  2030. /data/ext/cargo-vendor/{winch-codegen-0.10.1 → winch-codegen-0.11.0}/src/lib.rs +0 -0
  2031. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/README.md +0 -0
  2032. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/src/ast/toposort.rs +0 -0
  2033. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/comments.wit +0 -0
  2034. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/complex-include/deps/bar/root.wit +0 -0
  2035. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/complex-include/deps/baz/root.wit +0 -0
  2036. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/complex-include/root.wit +0 -0
  2037. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/cross-package-resource/deps/foo/foo.wit +0 -0
  2038. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/cross-package-resource/foo.wit +0 -0
  2039. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/diamond1/deps/dep1/types.wit +0 -0
  2040. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/diamond1/deps/dep2/types.wit +0 -0
  2041. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/diamond1/join.wit +0 -0
  2042. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/disambiguate-diamond/shared1.wit +0 -0
  2043. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/disambiguate-diamond/shared2.wit +0 -0
  2044. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/disambiguate-diamond/world.wit +0 -0
  2045. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/embedded.wit.md +0 -0
  2046. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/empty.wit +0 -0
  2047. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps/deps/another-pkg/other-doc.wit +0 -0
  2048. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps/deps/corp/saas.wit +0 -0
  2049. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps/deps/different-pkg/the-doc.wit +0 -0
  2050. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps/deps/foreign-pkg/the-doc.wit +0 -0
  2051. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps/deps/some-pkg/some-doc.wit +0 -0
  2052. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps/deps/wasi/clocks.wit +0 -0
  2053. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps/deps/wasi/filesystem.wit +0 -0
  2054. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps/root.wit +0 -0
  2055. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps-union/deps/another-pkg/other-doc.wit +0 -0
  2056. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps-union/deps/corp/saas.wit +0 -0
  2057. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps-union/deps/different-pkg/the-doc.wit +0 -0
  2058. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps-union/deps/foreign-pkg/the-doc.wit +0 -0
  2059. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps-union/deps/some-pkg/some-doc.wit +0 -0
  2060. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps-union/deps/wasi/clocks.wit +0 -0
  2061. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps-union/deps/wasi/filesystem.wit +0 -0
  2062. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps-union/deps/wasi/wasi.wit +0 -0
  2063. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/foreign-deps-union/root.wit +0 -0
  2064. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/functions.wit +0 -0
  2065. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/ignore-files-deps/deps/bar/types.wit +0 -0
  2066. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/ignore-files-deps/deps/ignore-me.txt +0 -0
  2067. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/ignore-files-deps/world.wit +0 -0
  2068. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/include-reps.wit +0 -0
  2069. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/kebab-name-include-with.wit +0 -0
  2070. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/many-names/a.wit +0 -0
  2071. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/many-names/b.wit +0 -0
  2072. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/multi-file/bar.wit +0 -0
  2073. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/multi-file/cycle-a.wit +0 -0
  2074. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/multi-file/cycle-b.wit +0 -0
  2075. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/multi-file/foo.wit +0 -0
  2076. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/name-both-resource-and-type/deps/dep/foo.wit +0 -0
  2077. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/name-both-resource-and-type/foo.wit +0 -0
  2078. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/package-syntax1.wit +0 -0
  2079. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/package-syntax3.wit +0 -0
  2080. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/package-syntax4.wit +0 -0
  2081. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/alias-no-type.wit +0 -0
  2082. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/alias-no-type.wit.result +0 -0
  2083. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/async.wit.result +0 -0
  2084. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/async1.wit.result +0 -0
  2085. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-function.wit +0 -0
  2086. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-function.wit.result +0 -0
  2087. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-function2.wit +0 -0
  2088. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-function2.wit.result +0 -0
  2089. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-include1.wit +0 -0
  2090. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-include1.wit.result +0 -0
  2091. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-include2.wit +0 -0
  2092. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-include2.wit.result +0 -0
  2093. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-include3.wit +0 -0
  2094. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-include3.wit.result +0 -0
  2095. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-list.wit +0 -0
  2096. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-list.wit.result +0 -0
  2097. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg1/root.wit +0 -0
  2098. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg1.wit.result +0 -0
  2099. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg2/deps/bar/empty.wit +0 -0
  2100. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg2/root.wit +0 -0
  2101. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg2.wit.result +0 -0
  2102. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg3/deps/bar/baz.wit +0 -0
  2103. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg3/root.wit +0 -0
  2104. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg3.wit.result +0 -0
  2105. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg4/deps/bar/baz.wit +0 -0
  2106. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg4/root.wit +0 -0
  2107. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg4.wit.result +0 -0
  2108. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg5/deps/bar/baz.wit +0 -0
  2109. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg5/root.wit +0 -0
  2110. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg5.wit.result +0 -0
  2111. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg6/deps/bar/baz.wit +0 -0
  2112. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg6/root.wit +0 -0
  2113. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-pkg6.wit.result +0 -0
  2114. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource1.wit +0 -0
  2115. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource1.wit.result +0 -0
  2116. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource10.wit +0 -0
  2117. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource10.wit.result +0 -0
  2118. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource11.wit +0 -0
  2119. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource11.wit.result +0 -0
  2120. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource12.wit +0 -0
  2121. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource12.wit.result +0 -0
  2122. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource13.wit +0 -0
  2123. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource13.wit.result +0 -0
  2124. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource14.wit +0 -0
  2125. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource14.wit.result +0 -0
  2126. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource15/deps/foo/foo.wit +0 -0
  2127. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource15/foo.wit +0 -0
  2128. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource15.wit.result +0 -0
  2129. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource2.wit +0 -0
  2130. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource2.wit.result +0 -0
  2131. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource3.wit +0 -0
  2132. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource3.wit.result +0 -0
  2133. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource4.wit +0 -0
  2134. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource4.wit.result +0 -0
  2135. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource5.wit +0 -0
  2136. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource5.wit.result +0 -0
  2137. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource6.wit +0 -0
  2138. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource6.wit.result +0 -0
  2139. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource7.wit +0 -0
  2140. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource7.wit.result +0 -0
  2141. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource8.wit +0 -0
  2142. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource8.wit.result +0 -0
  2143. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource9.wit +0 -0
  2144. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-resource9.wit.result +0 -0
  2145. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-world-type1.wit +0 -0
  2146. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/bad-world-type1.wit.result +0 -0
  2147. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/conflicting-package/a.wit +0 -0
  2148. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/conflicting-package/b.wit +0 -0
  2149. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/conflicting-package.wit.result +0 -0
  2150. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/cycle.wit +0 -0
  2151. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/cycle.wit.result +0 -0
  2152. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/cycle2.wit +0 -0
  2153. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/cycle2.wit.result +0 -0
  2154. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/cycle3.wit +0 -0
  2155. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/cycle3.wit.result +0 -0
  2156. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/cycle4.wit +0 -0
  2157. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/cycle4.wit.result +0 -0
  2158. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/cycle5.wit +0 -0
  2159. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/cycle5.wit.result +0 -0
  2160. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/dangling-type.wit +0 -0
  2161. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/dangling-type.wit.result +0 -0
  2162. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/duplicate-functions.wit +0 -0
  2163. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/duplicate-functions.wit.result +0 -0
  2164. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/duplicate-interface.wit +0 -0
  2165. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/duplicate-interface.wit.result +0 -0
  2166. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/duplicate-interface2/foo.wit +0 -0
  2167. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/duplicate-interface2/foo2.wit +0 -0
  2168. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/duplicate-interface2.wit.result +0 -0
  2169. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/duplicate-type.wit +0 -0
  2170. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/duplicate-type.wit.result +0 -0
  2171. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/empty-enum.wit +0 -0
  2172. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/empty-enum.wit.result +0 -0
  2173. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/empty-variant1.wit +0 -0
  2174. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/empty-variant1.wit.result +0 -0
  2175. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/export-twice.wit +0 -0
  2176. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/export-twice.wit.result +0 -0
  2177. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-and-export1.wit +0 -0
  2178. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-and-export1.wit.result +0 -0
  2179. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-and-export2.wit +0 -0
  2180. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-and-export2.wit.result +0 -0
  2181. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-and-export3.wit +0 -0
  2182. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-and-export3.wit.result +0 -0
  2183. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-and-export4.wit +0 -0
  2184. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-and-export4.wit.result +0 -0
  2185. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-and-export5.wit +0 -0
  2186. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-and-export5.wit.result +0 -0
  2187. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-export-overlap1.wit +0 -0
  2188. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-export-overlap1.wit.result +0 -0
  2189. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-export-overlap2.wit +0 -0
  2190. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-export-overlap2.wit.result +0 -0
  2191. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-twice.wit +0 -0
  2192. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/import-twice.wit.result +0 -0
  2193. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/include-cycle.wit +0 -0
  2194. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/include-cycle.wit.result +0 -0
  2195. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/include-foreign/deps/bar/empty.wit +0 -0
  2196. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/include-foreign/root.wit +0 -0
  2197. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/include-foreign.wit.result +0 -0
  2198. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/include-with-id.wit +0 -0
  2199. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/include-with-id.wit.result +0 -0
  2200. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/include-with-on-id.wit +0 -0
  2201. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/include-with-on-id.wit.result +0 -0
  2202. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/invalid-md.md +0 -0
  2203. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/invalid-md.wit.result +0 -0
  2204. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/invalid-toplevel.wit +0 -0
  2205. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/invalid-toplevel.wit.result +0 -0
  2206. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/invalid-type-reference.wit +0 -0
  2207. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/invalid-type-reference.wit.result +0 -0
  2208. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/invalid-type-reference2.wit +0 -0
  2209. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/invalid-type-reference2.wit.result +0 -0
  2210. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/kebab-name-include-not-found.wit +0 -0
  2211. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/kebab-name-include-not-found.wit.result +0 -0
  2212. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/kebab-name-include.wit +0 -0
  2213. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/kebab-name-include.wit.result +0 -0
  2214. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/keyword.wit +0 -0
  2215. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/keyword.wit.result +0 -0
  2216. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/missing-package.wit +0 -0
  2217. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/missing-package.wit.result +0 -0
  2218. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/no-access-to-sibling-use/bar.wit +0 -0
  2219. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/no-access-to-sibling-use/foo.wit +0 -0
  2220. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/no-access-to-sibling-use.wit.result +0 -0
  2221. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/non-existance-world-include/deps/bar/baz.wit +0 -0
  2222. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/non-existance-world-include/root.wit +0 -0
  2223. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/non-existance-world-include.wit.result +0 -0
  2224. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/pkg-cycle/deps/a1/root.wit +0 -0
  2225. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/pkg-cycle/root.wit +0 -0
  2226. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/pkg-cycle.wit.result +0 -0
  2227. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/pkg-cycle2/deps/a1/root.wit +0 -0
  2228. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/pkg-cycle2/deps/a2/root.wit +0 -0
  2229. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/pkg-cycle2/root.wit +0 -0
  2230. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/pkg-cycle2.wit.result +0 -0
  2231. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/type-and-resource-same-name/deps/dep/foo.wit +0 -0
  2232. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/type-and-resource-same-name/foo.wit +0 -0
  2233. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/type-and-resource-same-name.wit.result +0 -0
  2234. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/undefined-typed.wit +0 -0
  2235. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/undefined-typed.wit.result +0 -0
  2236. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/union-fuzz-2.wit +0 -0
  2237. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/union-fuzz-2.wit.result +0 -0
  2238. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unknown-interface.wit +0 -0
  2239. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unknown-interface.wit.result +0 -0
  2240. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-interface1.wit +0 -0
  2241. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-interface1.wit.result +0 -0
  2242. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-interface2.wit +0 -0
  2243. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-interface2.wit.result +0 -0
  2244. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-interface3.wit +0 -0
  2245. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-interface3.wit.result +0 -0
  2246. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-interface4.wit +0 -0
  2247. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-interface4.wit.result +0 -0
  2248. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-use1.wit +0 -0
  2249. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-use1.wit.result +0 -0
  2250. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-use10/bar.wit +0 -0
  2251. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-use10/foo.wit +0 -0
  2252. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-use10.wit.result +0 -0
  2253. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-use2.wit +0 -0
  2254. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-use2.wit.result +0 -0
  2255. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-use3.wit +0 -0
  2256. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-use3.wit.result +0 -0
  2257. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-use7.wit +0 -0
  2258. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-use7.wit.result +0 -0
  2259. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-use8.wit +0 -0
  2260. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-use8.wit.result +0 -0
  2261. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-use9.wit +0 -0
  2262. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unresolved-use9.wit.result +0 -0
  2263. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/unterminated-string.wit.result +0 -0
  2264. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-and-include-world/deps/bar/baz.wit +0 -0
  2265. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-and-include-world/root.wit +0 -0
  2266. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-and-include-world.wit.result +0 -0
  2267. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-conflict.wit +0 -0
  2268. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-conflict.wit.result +0 -0
  2269. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-conflict2.wit +0 -0
  2270. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-conflict2.wit.result +0 -0
  2271. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-conflict3.wit +0 -0
  2272. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-conflict3.wit.result +0 -0
  2273. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-cycle1.wit +0 -0
  2274. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-cycle1.wit.result +0 -0
  2275. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-cycle4.wit +0 -0
  2276. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-cycle4.wit.result +0 -0
  2277. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-shadow1.wit +0 -0
  2278. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-shadow1.wit.result +0 -0
  2279. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-world/deps/bar/baz.wit +0 -0
  2280. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-world/root.wit +0 -0
  2281. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/use-world.wit.result +0 -0
  2282. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/world-interface-clash.wit +0 -0
  2283. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/world-interface-clash.wit.result +0 -0
  2284. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/world-same-fields2.wit +0 -0
  2285. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/world-same-fields2.wit.result +0 -0
  2286. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/world-same-fields3.wit +0 -0
  2287. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/world-same-fields3.wit.result +0 -0
  2288. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/world-top-level-func.wit +0 -0
  2289. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/world-top-level-func.wit.result +0 -0
  2290. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/world-top-level-func2.wit +0 -0
  2291. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/parse-fail/world-top-level-func2.wit.result +0 -0
  2292. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/resources-empty.wit +0 -0
  2293. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/resources-multiple-returns-borrow.wit +0 -0
  2294. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/resources-multiple-returns-own.wit +0 -0
  2295. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/resources-multiple.wit +0 -0
  2296. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/resources-return-borrow.wit +0 -0
  2297. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/resources-return-own.wit +0 -0
  2298. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/resources.wit +0 -0
  2299. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/resources1.wit +0 -0
  2300. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/shared-types.wit +0 -0
  2301. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/stress-export-elaborate.wit +0 -0
  2302. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/type-then-eof.wit +0 -0
  2303. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/union-fuzz-1.wit +0 -0
  2304. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/use-chain.wit +0 -0
  2305. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/use.wit +0 -0
  2306. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/versions/deps/a1/foo.wit +0 -0
  2307. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/versions/deps/a2/foo.wit +0 -0
  2308. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/versions/foo.wit +0 -0
  2309. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/wasi.wit +0 -0
  2310. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/world-iface-no-collide.wit +0 -0
  2311. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/world-implicit-import1.wit +0 -0
  2312. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/world-implicit-import2.wit +0 -0
  2313. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/world-implicit-import3.wit +0 -0
  2314. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/world-same-fields4.wit +0 -0
  2315. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/world-top-level-funcs.wit +0 -0
  2316. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/world-top-level-resources.wit +0 -0
  2317. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/worlds-union-dedup.wit +0 -0
  2318. /data/ext/cargo-vendor/{wit-parser-0.9.2 → wit-parser-0.11.1}/tests/ui/worlds-with-types.wit +0 -0
@@ -0,0 +1,4675 @@
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
+ ;; Base case for 8 and 16-bit types
45
+ (rule -6 (lower (has_type (fits_in_16 ty)
46
+ (iadd x y)))
47
+ (x64_add ty x y))
48
+
49
+ ;; Base case for 32 and 64-bit types which might end up using the `lea`
50
+ ;; instruction to fold multiple operations into one.
51
+ ;;
52
+ ;; Note that at this time this always generates a `lea` pseudo-instruction,
53
+ ;; but the actual instruction emitted might be an `add` if it's equivalent.
54
+ ;; For more details on this see the `emit.rs` logic to emit
55
+ ;; `LoadEffectiveAddress`.
56
+ (rule -5 (lower (has_type (ty_32_or_64 ty) (iadd x y)))
57
+ (x64_lea ty (to_amode_add (mem_flags_trusted) x y (zero_offset))))
58
+
59
+ ;; Higher-priority cases than the previous two where a load can be sunk into
60
+ ;; the add instruction itself. Note that both operands are tested for
61
+ ;; sink-ability since addition is commutative
62
+ (rule -4 (lower (has_type (fits_in_64 ty)
63
+ (iadd x (sinkable_load y))))
64
+ (x64_add ty x y))
65
+ (rule -3 (lower (has_type (fits_in_64 ty)
66
+ (iadd (sinkable_load x) y)))
67
+ (x64_add ty y x))
68
+
69
+ ;; SSE.
70
+
71
+ (rule (lower (has_type (multi_lane 8 16)
72
+ (iadd x y)))
73
+ (x64_paddb x y))
74
+
75
+ (rule (lower (has_type (multi_lane 16 8)
76
+ (iadd x y)))
77
+ (x64_paddw x y))
78
+
79
+ (rule (lower (has_type (multi_lane 32 4)
80
+ (iadd x y)))
81
+ (x64_paddd x y))
82
+
83
+ (rule (lower (has_type (multi_lane 64 2)
84
+ (iadd x y)))
85
+ (x64_paddq x y))
86
+
87
+ ;; `i128`
88
+ (rule 1 (lower (has_type $I128 (iadd x y)))
89
+ ;; Get the high/low registers for `x`.
90
+ (let ((x_regs ValueRegs x)
91
+ (x_lo Gpr (value_regs_get_gpr x_regs 0))
92
+ (x_hi Gpr (value_regs_get_gpr x_regs 1)))
93
+ ;; Get the high/low registers for `y`.
94
+ (let ((y_regs ValueRegs y)
95
+ (y_lo Gpr (value_regs_get_gpr y_regs 0))
96
+ (y_hi Gpr (value_regs_get_gpr y_regs 1)))
97
+ ;; Do an add followed by an add-with-carry.
98
+ (with_flags (x64_add_with_flags_paired $I64 x_lo y_lo)
99
+ (x64_adc_paired $I64 x_hi y_hi)))))
100
+
101
+ ;;;; Helpers for `*_overflow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
102
+
103
+ (decl construct_overflow_op (CC ProducesFlags) InstOutput)
104
+ (rule (construct_overflow_op cc inst)
105
+ (let ((results ValueRegs (with_flags inst
106
+ (x64_setcc_paired cc))))
107
+ (output_pair (value_regs_get results 0)
108
+ (value_regs_get results 1))))
109
+
110
+ (decl construct_overflow_op_alu (Type CC AluRmiROpcode Gpr GprMemImm) InstOutput)
111
+ (rule (construct_overflow_op_alu ty cc alu_op src1 src2)
112
+ (construct_overflow_op cc (x64_alurmi_with_flags_paired alu_op ty src1 src2)))
113
+
114
+ ;; This essentially creates
115
+ ;; alu_<op1> x_lo, y_lo
116
+ ;; alu_<op2> x_hi, y_hi
117
+ ;; set<cc> r8
118
+ (decl construct_overflow_op_alu_128 (CC AluRmiROpcode AluRmiROpcode Value Value) InstOutput)
119
+ (rule (construct_overflow_op_alu_128 cc op1 op2 x y)
120
+ ;; Get the high/low registers for `x`.
121
+ (let ((x_regs ValueRegs x)
122
+ (x_lo Gpr (value_regs_get_gpr x_regs 0))
123
+ (x_hi Gpr (value_regs_get_gpr x_regs 1)))
124
+ ;; Get the high/low registers for `y`.
125
+ (let ((y_regs ValueRegs y)
126
+ (y_lo Gpr (value_regs_get_gpr y_regs 0))
127
+ (y_hi Gpr (value_regs_get_gpr y_regs 1)))
128
+ (let ((lo_inst ProducesFlags (x64_alurmi_with_flags_paired op1 $I64 x_lo y_lo))
129
+ (hi_inst ConsumesAndProducesFlags (x64_alurmi_with_flags_chained op2 $I64 x_hi y_hi))
130
+ (of_inst ConsumesFlags (x64_setcc_paired cc))
131
+
132
+ (result MultiReg (with_flags_chained lo_inst hi_inst of_inst)))
133
+ (multi_reg_to_pair_and_single result)))))
134
+
135
+ ;;;; Rules for `uadd_overflow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
136
+
137
+ (rule 1 (lower (uadd_overflow x y @ (value_type (fits_in_64 ty))))
138
+ (construct_overflow_op_alu ty (CC.B) (AluRmiROpcode.Add) x y))
139
+
140
+ ;; i128 gets lowered into adc and add
141
+ (rule 0 (lower (uadd_overflow x y @ (value_type $I128)))
142
+ (construct_overflow_op_alu_128 (CC.B) (AluRmiROpcode.Add) (AluRmiROpcode.Adc) x y))
143
+
144
+ ;;;; Rules for `sadd_overflow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
145
+
146
+ (rule 1 (lower (sadd_overflow x y @ (value_type (fits_in_64 ty))))
147
+ (construct_overflow_op_alu ty (CC.O) (AluRmiROpcode.Add) x y))
148
+
149
+ (rule 0 (lower (sadd_overflow x y @ (value_type $I128)))
150
+ (construct_overflow_op_alu_128 (CC.O) (AluRmiROpcode.Add) (AluRmiROpcode.Adc) x y))
151
+
152
+ ;;;; Rules for `usub_overflow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
153
+
154
+ (rule 1 (lower (usub_overflow x y @ (value_type (fits_in_64 ty))))
155
+ (construct_overflow_op_alu ty (CC.B) (AluRmiROpcode.Sub) x y))
156
+
157
+ (rule 0 (lower (usub_overflow x y @ (value_type $I128)))
158
+ (construct_overflow_op_alu_128 (CC.B) (AluRmiROpcode.Sub) (AluRmiROpcode.Sbb) x y))
159
+
160
+ ;;;; Rules for `ssub_overflow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
161
+
162
+ (rule 1 (lower (ssub_overflow x y @ (value_type (fits_in_64 ty))))
163
+ (construct_overflow_op_alu ty (CC.O) (AluRmiROpcode.Sub) x y))
164
+
165
+ (rule 0 (lower (ssub_overflow x y @ (value_type $I128)))
166
+ (construct_overflow_op_alu_128 (CC.O) (AluRmiROpcode.Sub) (AluRmiROpcode.Sbb) x y))
167
+
168
+ ;;;; Rules for `umul_overflow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
169
+
170
+ (rule 2 (lower (umul_overflow x y @ (value_type (fits_in_64 ty))))
171
+ (construct_overflow_op (CC.O) (x64_umullo_with_flags_paired ty x y)))
172
+
173
+ ;;;; Rules for `smul_overflow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
174
+
175
+ (rule 2 (lower (smul_overflow x y @ (value_type (ty_int_ref_16_to_64 ty))))
176
+ (construct_overflow_op_alu ty (CC.O) (AluRmiROpcode.Mul) x y))
177
+
178
+ ;; there is no 8bit imul with an immediate operand so we need to put it in a register or memory
179
+ (rule 1 (lower (smul_overflow x y @ (value_type $I8)))
180
+ (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)))))
181
+
182
+ ;;;; Rules for `sadd_sat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
183
+
184
+ (rule (lower (has_type (multi_lane 8 16)
185
+ (sadd_sat x y)))
186
+ (x64_paddsb x y))
187
+
188
+ (rule (lower (has_type (multi_lane 16 8)
189
+ (sadd_sat x y)))
190
+ (x64_paddsw x y))
191
+
192
+ ;;;; Rules for `uadd_sat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
193
+
194
+ (rule (lower (has_type (multi_lane 8 16)
195
+ (uadd_sat x y)))
196
+ (x64_paddusb x y))
197
+
198
+ (rule (lower (has_type (multi_lane 16 8)
199
+ (uadd_sat x y)))
200
+ (x64_paddusw x y))
201
+
202
+ ;;;; Rules for `isub` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
203
+
204
+ ;; `i64` and smaller.
205
+
206
+ ;; Sub two registers.
207
+ (rule -3 (lower (has_type (fits_in_64 ty)
208
+ (isub x y)))
209
+ (x64_sub ty x y))
210
+
211
+ ;; SSE.
212
+
213
+ (rule (lower (has_type (multi_lane 8 16)
214
+ (isub x y)))
215
+ (x64_psubb x y))
216
+
217
+ (rule (lower (has_type (multi_lane 16 8)
218
+ (isub x y)))
219
+ (x64_psubw x y))
220
+
221
+ (rule (lower (has_type (multi_lane 32 4)
222
+ (isub x y)))
223
+ (x64_psubd x y))
224
+
225
+ (rule (lower (has_type (multi_lane 64 2)
226
+ (isub x y)))
227
+ (x64_psubq x y))
228
+
229
+ ;; `i128`
230
+ (rule 1 (lower (has_type $I128 (isub x y)))
231
+ ;; Get the high/low registers for `x`.
232
+ (let ((x_regs ValueRegs x)
233
+ (x_lo Gpr (value_regs_get_gpr x_regs 0))
234
+ (x_hi Gpr (value_regs_get_gpr x_regs 1)))
235
+ ;; Get the high/low registers for `y`.
236
+ (let ((y_regs ValueRegs y)
237
+ (y_lo Gpr (value_regs_get_gpr y_regs 0))
238
+ (y_hi Gpr (value_regs_get_gpr y_regs 1)))
239
+ ;; Do a sub followed by an sub-with-borrow.
240
+ (with_flags (x64_sub_with_flags_paired $I64 x_lo y_lo)
241
+ (x64_sbb_paired $I64 x_hi y_hi)))))
242
+
243
+ ;;;; Rules for `ssub_sat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
244
+
245
+ (rule (lower (has_type (multi_lane 8 16)
246
+ (ssub_sat x y)))
247
+ (x64_psubsb x y))
248
+
249
+ (rule (lower (has_type (multi_lane 16 8)
250
+ (ssub_sat x y)))
251
+ (x64_psubsw x y))
252
+
253
+ ;;;; Rules for `usub_sat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
254
+
255
+ (rule (lower (has_type (multi_lane 8 16)
256
+ (usub_sat x y)))
257
+ (x64_psubusb x y))
258
+
259
+ (rule (lower (has_type (multi_lane 16 8)
260
+ (usub_sat x y)))
261
+ (x64_psubusw x y))
262
+
263
+ ;;;; Rules for `band` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
264
+
265
+ ;; `{i,b}64` and smaller.
266
+
267
+ ;; And two registers.
268
+ (rule 0 (lower (has_type ty (band x y)))
269
+ (if (ty_int_ref_scalar_64 ty))
270
+ (x64_and ty x y))
271
+
272
+ ;; The above case automatically handles when the rhs is an immediate or a
273
+ ;; sinkable load, but additionally handle the lhs here.
274
+
275
+ (rule 1 (lower (has_type ty (band (sinkable_load x) y)))
276
+ (if (ty_int_ref_scalar_64 ty))
277
+ (x64_and ty y x))
278
+
279
+ (rule 2 (lower (has_type ty (band (simm32_from_value x) y)))
280
+ (if (ty_int_ref_scalar_64 ty))
281
+ (x64_and ty y x))
282
+
283
+ ;; f32 and f64
284
+
285
+ (rule 5 (lower (has_type (ty_scalar_float ty) (band x y)))
286
+ (sse_and ty x y))
287
+
288
+ ;; SSE.
289
+
290
+ (decl sse_and (Type Xmm XmmMem) Xmm)
291
+ (rule (sse_and $F32X4 x y) (x64_andps x y))
292
+ (rule (sse_and $F64X2 x y) (x64_andpd x y))
293
+ (rule (sse_and $F32 x y) (x64_andps x y))
294
+ (rule (sse_and $F64 x y) (x64_andpd x y))
295
+ (rule -1 (sse_and (multi_lane _bits _lanes) x y) (x64_pand x y))
296
+
297
+ (rule 6 (lower (has_type ty @ (multi_lane _bits _lanes)
298
+ (band x y)))
299
+ (sse_and ty x y))
300
+
301
+ ;; `i128`.
302
+
303
+ (decl and_i128 (ValueRegs ValueRegs) ValueRegs)
304
+ (rule (and_i128 x y)
305
+ (let ((x_regs ValueRegs x)
306
+ (x_lo Gpr (value_regs_get_gpr x_regs 0))
307
+ (x_hi Gpr (value_regs_get_gpr x_regs 1))
308
+ (y_regs ValueRegs y)
309
+ (y_lo Gpr (value_regs_get_gpr y_regs 0))
310
+ (y_hi Gpr (value_regs_get_gpr y_regs 1)))
311
+ (value_gprs (x64_and $I64 x_lo y_lo)
312
+ (x64_and $I64 x_hi y_hi))))
313
+
314
+ (rule 7 (lower (has_type $I128 (band x y)))
315
+ (and_i128 x y))
316
+
317
+ ;; Specialized lowerings for `(band x (bnot y))` which is additionally produced
318
+ ;; by Cranelift's `band_not` instruction that is legalized into the simpler
319
+ ;; forms early on.
320
+
321
+ (decl sse_and_not (Type Xmm XmmMem) Xmm)
322
+ (rule (sse_and_not $F32X4 x y) (x64_andnps x y))
323
+ (rule (sse_and_not $F64X2 x y) (x64_andnpd x y))
324
+ (rule -1 (sse_and_not (multi_lane _bits _lanes) x y) (x64_pandn x y))
325
+
326
+ ;; Note the flipping of operands below as we're match
327
+ ;;
328
+ ;; (band x (bnot y))
329
+ ;;
330
+ ;; while x86 does
331
+ ;;
332
+ ;; pandn(x, y) = and(not(x), y)
333
+ (rule 8 (lower (has_type ty @ (multi_lane _bits _lane) (band x (bnot y))))
334
+ (sse_and_not ty y x))
335
+ (rule 9 (lower (has_type ty @ (multi_lane _bits _lane) (band (bnot y) x)))
336
+ (sse_and_not ty y x))
337
+
338
+ (rule 10 (lower (has_type ty (band x (bnot y))))
339
+ (if (ty_int_ref_scalar_64 ty))
340
+ (if-let $true (use_bmi1))
341
+ ;; the first argument is the one that gets inverted with andn
342
+ (x64_andn ty y x))
343
+ (rule 11 (lower (has_type ty (band (bnot y) x)))
344
+ (if (ty_int_ref_scalar_64 ty))
345
+ (if-let $true (use_bmi1))
346
+ (x64_andn ty y x))
347
+
348
+ ;; Specialization of `blsr` for BMI1
349
+
350
+ (rule 12 (lower (has_type (ty_32_or_64 ty) (band (isub x (iconst (u64_from_imm64 1))) x)))
351
+ (if-let $true (use_bmi1))
352
+ (x64_blsr ty x))
353
+ (rule 13 (lower (has_type (ty_32_or_64 ty) (band x (isub x (iconst (u64_from_imm64 1))))))
354
+ (if-let $true (use_bmi1))
355
+ (x64_blsr ty x))
356
+
357
+ ;; Specialization of `blsi` for BMI1
358
+
359
+ (rule 12 (lower (has_type (ty_32_or_64 ty) (band (ineg x) x)))
360
+ (if-let $true (use_bmi1))
361
+ (x64_blsi ty x))
362
+ (rule 13 (lower (has_type (ty_32_or_64 ty) (band x (ineg x))))
363
+ (if-let $true (use_bmi1))
364
+ (x64_blsi ty x))
365
+
366
+ ;;;; Rules for `bor` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
367
+
368
+ ;; `{i,b}64` and smaller.
369
+
370
+ ;; Or two registers.
371
+ (rule 0 (lower (has_type ty (bor x y)))
372
+ (if (ty_int_ref_scalar_64 ty))
373
+ (x64_or ty x y))
374
+
375
+ ;; Handle immediates/sinkable loads on the lhs in addition to the automatic
376
+ ;; handling of the rhs above
377
+
378
+ (rule 1 (lower (has_type ty (bor (sinkable_load x) y)))
379
+ (if (ty_int_ref_scalar_64 ty))
380
+ (x64_or ty y x))
381
+
382
+ (rule 2 (lower (has_type ty (bor (simm32_from_value x) y)))
383
+ (if (ty_int_ref_scalar_64 ty))
384
+ (x64_or ty y x))
385
+
386
+ ;; f32 and f64
387
+
388
+ (rule 5 (lower (has_type (ty_scalar_float ty) (bor x y)))
389
+ (sse_or ty x y))
390
+
391
+ ;; SSE.
392
+
393
+ (decl sse_or (Type Xmm XmmMem) Xmm)
394
+ (rule (sse_or $F32X4 x y) (x64_orps x y))
395
+ (rule (sse_or $F64X2 x y) (x64_orpd x y))
396
+ (rule (sse_or $F32 x y) (x64_orps x y))
397
+ (rule (sse_or $F64 x y) (x64_orpd x y))
398
+ (rule -1 (sse_or (multi_lane _bits _lanes) x y) (x64_por x y))
399
+
400
+ (rule 6 (lower (has_type ty @ (multi_lane _bits _lanes)
401
+ (bor x y)))
402
+ (sse_or ty x y))
403
+
404
+ ;; `{i,b}128`.
405
+
406
+ (decl or_i128 (ValueRegs ValueRegs) ValueRegs)
407
+ (rule (or_i128 x y)
408
+ (let ((x_lo Gpr (value_regs_get_gpr x 0))
409
+ (x_hi Gpr (value_regs_get_gpr x 1))
410
+ (y_lo Gpr (value_regs_get_gpr y 0))
411
+ (y_hi Gpr (value_regs_get_gpr y 1)))
412
+ (value_gprs (x64_or $I64 x_lo y_lo)
413
+ (x64_or $I64 x_hi y_hi))))
414
+
415
+ (rule 7 (lower (has_type $I128 (bor x y)))
416
+ (or_i128 x y))
417
+
418
+ ;;;; Rules for `bxor` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
419
+
420
+ ;; `{i,b}64` and smaller.
421
+
422
+ ;; Xor two registers.
423
+ (rule 0 (lower (has_type ty (bxor x y)))
424
+ (if (ty_int_ref_scalar_64 ty))
425
+ (x64_xor ty x y))
426
+
427
+ ;; Handle xor with lhs immediates/sinkable loads in addition to the automatic
428
+ ;; handling of the rhs above.
429
+
430
+ (rule 1 (lower (has_type ty (bxor (sinkable_load x) y)))
431
+ (if (ty_int_ref_scalar_64 ty))
432
+ (x64_xor ty y x))
433
+
434
+ (rule 4 (lower (has_type ty (bxor (simm32_from_value x) y)))
435
+ (if (ty_int_ref_scalar_64 ty))
436
+ (x64_xor ty y x))
437
+
438
+ ;; f32 and f64
439
+
440
+ (rule 5 (lower (has_type (ty_scalar_float ty) (bxor x y)))
441
+ (x64_xor_vector ty x y))
442
+
443
+ ;; SSE.
444
+
445
+ (rule 6 (lower (has_type ty @ (multi_lane _bits _lanes) (bxor x y)))
446
+ (x64_xor_vector ty x y))
447
+
448
+ ;; `{i,b}128`.
449
+
450
+ (rule 7 (lower (has_type $I128 (bxor x y)))
451
+ (let ((x_regs ValueRegs x)
452
+ (x_lo Gpr (value_regs_get_gpr x_regs 0))
453
+ (x_hi Gpr (value_regs_get_gpr x_regs 1))
454
+ (y_regs ValueRegs y)
455
+ (y_lo Gpr (value_regs_get_gpr y_regs 0))
456
+ (y_hi Gpr (value_regs_get_gpr y_regs 1)))
457
+ (value_gprs (x64_xor $I64 x_lo y_lo)
458
+ (x64_xor $I64 x_hi y_hi))))
459
+
460
+ ;; Specialization of `blsmsk` for BMI1
461
+
462
+ (rule 8 (lower (has_type (ty_32_or_64 ty) (bxor (isub x (iconst (u64_from_imm64 1))) x)))
463
+ (if-let $true (use_bmi1))
464
+ (x64_blsmsk ty x))
465
+ (rule 9 (lower (has_type (ty_32_or_64 ty) (bxor x (isub x (iconst (u64_from_imm64 1))))))
466
+ (if-let $true (use_bmi1))
467
+ (x64_blsmsk ty x))
468
+
469
+ ;;;; Rules for `ishl` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
470
+
471
+ ;; `i64` and smaller.
472
+
473
+ (rule -1 (lower (has_type (fits_in_64 ty) (ishl src amt)))
474
+ (x64_shl ty src (put_masked_in_imm8_gpr amt ty)))
475
+
476
+ ;; `i128`.
477
+
478
+ (decl shl_i128 (ValueRegs Gpr) ValueRegs)
479
+ (rule (shl_i128 src amt)
480
+ ;; Unpack the registers that make up the 128-bit value being shifted.
481
+ (let ((src_lo Gpr (value_regs_get_gpr src 0))
482
+ (src_hi Gpr (value_regs_get_gpr src 1))
483
+ ;; Do two 64-bit shifts.
484
+ (lo_shifted Gpr (x64_shl $I64 src_lo amt))
485
+ (hi_shifted Gpr (x64_shl $I64 src_hi amt))
486
+ ;; `src_lo >> (64 - amt)` are the bits to carry over from the lo
487
+ ;; into the hi.
488
+ (carry Gpr (x64_shr $I64
489
+ src_lo
490
+ (x64_sub $I64
491
+ (imm $I64 64)
492
+ amt)))
493
+ (zero Gpr (imm $I64 0))
494
+ ;; Nullify the carry if we are shifting in by a multiple of 128.
495
+ (carry_ Gpr (with_flags_reg (x64_test (OperandSize.Size64)
496
+ (RegMemImm.Imm 127)
497
+ amt)
498
+ (cmove $I64
499
+ (CC.Z)
500
+ zero
501
+ carry)))
502
+ ;; Add the carry into the high half.
503
+ (hi_shifted_ Gpr (x64_or $I64 carry_ hi_shifted)))
504
+ ;; Combine the two shifted halves. However, if we are shifting by >= 64
505
+ ;; (modulo 128), then the low bits are zero and the high bits are our
506
+ ;; low bits.
507
+ (with_flags (x64_test (OperandSize.Size64) (RegMemImm.Imm 64) amt)
508
+ (consumes_flags_concat
509
+ (cmove $I64 (CC.Z) lo_shifted zero)
510
+ (cmove $I64 (CC.Z) hi_shifted_ lo_shifted)))))
511
+
512
+ (rule (lower (has_type $I128 (ishl src amt)))
513
+ ;; NB: Only the low bits of `amt` matter since we logically mask the shift
514
+ ;; amount to the value's bit width.
515
+ (let ((amt_ Gpr (lo_gpr amt)))
516
+ (shl_i128 src amt_)))
517
+
518
+ ;; SSE.
519
+
520
+ ;; Since the x86 instruction set does not have any 8x16 shift instructions (even
521
+ ;; in higher feature sets like AVX), we lower the `ishl.i8x16` to a sequence of
522
+ ;; instructions. The basic idea, whether the amount to shift by is an immediate
523
+ ;; or not, is to use a 16x8 shift and then mask off the incorrect bits to 0s.
524
+ (rule (lower (has_type ty @ $I8X16 (ishl src amt)))
525
+ (let (
526
+ ;; Mask the amount to ensure wrapping behaviour
527
+ (masked_amt RegMemImm (mask_xmm_shift ty amt))
528
+ ;; Shift `src` using 16x8. Unfortunately, a 16x8 shift will only be
529
+ ;; correct for half of the lanes; the others must be fixed up with
530
+ ;; the mask below.
531
+ (unmasked Xmm (x64_psllw src (mov_rmi_to_xmm masked_amt)))
532
+ (mask_addr SyntheticAmode (ishl_i8x16_mask masked_amt))
533
+ (mask Reg (x64_load $I8X16 mask_addr (ExtKind.None))))
534
+ (sse_and $I8X16 unmasked (RegMem.Reg mask))))
535
+
536
+ ;; Get the address of the mask to use when fixing up the lanes that weren't
537
+ ;; correctly generated by the 16x8 shift.
538
+ (decl ishl_i8x16_mask (RegMemImm) SyntheticAmode)
539
+
540
+ ;; When the shift amount is known, we can statically (i.e. at compile time)
541
+ ;; determine the mask to use and only emit that.
542
+ (decl ishl_i8x16_mask_for_const (u32) SyntheticAmode)
543
+ (extern constructor ishl_i8x16_mask_for_const ishl_i8x16_mask_for_const)
544
+ (rule (ishl_i8x16_mask (RegMemImm.Imm amt))
545
+ (ishl_i8x16_mask_for_const amt))
546
+
547
+ ;; Otherwise, we must emit the entire mask table and dynamically (i.e. at run
548
+ ;; time) find the correct mask offset in the table. We use `lea` to find the
549
+ ;; base address of the mask table and then complex addressing to offset to the
550
+ ;; right mask: `base_address + amt << 4`
551
+ (decl ishl_i8x16_mask_table () SyntheticAmode)
552
+ (extern constructor ishl_i8x16_mask_table ishl_i8x16_mask_table)
553
+ (rule (ishl_i8x16_mask (RegMemImm.Reg amt))
554
+ (let ((mask_table SyntheticAmode (ishl_i8x16_mask_table))
555
+ (base_mask_addr Gpr (x64_lea $I64 mask_table))
556
+ (mask_offset Gpr (x64_shl $I64 amt
557
+ (imm8_to_imm8_gpr 4))))
558
+ (Amode.ImmRegRegShift 0
559
+ base_mask_addr
560
+ mask_offset
561
+ 0
562
+ (mem_flags_trusted))))
563
+
564
+ (rule (ishl_i8x16_mask (RegMemImm.Mem amt))
565
+ (ishl_i8x16_mask (RegMemImm.Reg (x64_load $I64 amt (ExtKind.None)))))
566
+
567
+ ;; 16x8, 32x4, and 64x2 shifts can each use a single instruction, once the shift amount is masked.
568
+
569
+ (rule (lower (has_type ty @ $I16X8 (ishl src amt)))
570
+ (x64_psllw src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
571
+
572
+ (rule (lower (has_type ty @ $I32X4 (ishl src amt)))
573
+ (x64_pslld src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
574
+
575
+ (rule (lower (has_type ty @ $I64X2 (ishl src amt)))
576
+ (x64_psllq src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
577
+
578
+ ;;;; Rules for `ushr` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
579
+
580
+ ;; `i64` and smaller.
581
+
582
+ (rule -1 (lower (has_type (fits_in_64 ty) (ushr src amt)))
583
+ (let ((src_ Gpr (extend_to_gpr src ty (ExtendKind.Zero))))
584
+ (x64_shr ty src_ (put_masked_in_imm8_gpr amt ty))))
585
+
586
+ ;; `i128`.
587
+
588
+ (decl shr_i128 (ValueRegs Gpr) ValueRegs)
589
+ (rule (shr_i128 src amt)
590
+ ;; Unpack the lo/hi halves of `src`.
591
+ (let ((src_lo Gpr (value_regs_get_gpr src 0))
592
+ (src_hi Gpr (value_regs_get_gpr src 1))
593
+ ;; Do a shift on each half.
594
+ (lo_shifted Gpr (x64_shr $I64 src_lo amt))
595
+ (hi_shifted Gpr (x64_shr $I64 src_hi amt))
596
+ ;; `src_hi << (64 - amt)` are the bits to carry over from the hi
597
+ ;; into the lo.
598
+ (carry Gpr (x64_shl $I64
599
+ src_hi
600
+ (x64_sub $I64
601
+ (imm $I64 64)
602
+ amt)))
603
+ ;; Share the zero value to reduce register pressure
604
+ (zero Gpr (imm $I64 0))
605
+
606
+ ;; Nullify the carry if we are shifting by a multiple of 128.
607
+ (carry_ Gpr (with_flags_reg (x64_test (OperandSize.Size64) (RegMemImm.Imm 127) amt)
608
+ (cmove $I64 (CC.Z) zero carry)))
609
+ ;; Add the carry bits into the lo.
610
+ (lo_shifted_ Gpr (x64_or $I64 carry_ lo_shifted)))
611
+ ;; Combine the two shifted halves. However, if we are shifting by >= 64
612
+ ;; (modulo 128), then the hi bits are zero and the lo bits are what
613
+ ;; would otherwise be our hi bits.
614
+ (with_flags (x64_test (OperandSize.Size64) (RegMemImm.Imm 64) amt)
615
+ (consumes_flags_concat
616
+ (cmove $I64 (CC.Z) lo_shifted_ hi_shifted)
617
+ (cmove $I64 (CC.Z) hi_shifted zero)))))
618
+
619
+ (rule (lower (has_type $I128 (ushr src amt)))
620
+ ;; NB: Only the low bits of `amt` matter since we logically mask the shift
621
+ ;; amount to the value's bit width.
622
+ (let ((amt_ Gpr (lo_gpr amt)))
623
+ (shr_i128 src amt_)))
624
+
625
+ ;; SSE.
626
+
627
+ ;; There are no 8x16 shifts in x64. Do the same 16x8-shift-and-mask thing we do
628
+ ;; with 8x16 `ishl`.
629
+ (rule (lower (has_type ty @ $I8X16 (ushr src amt)))
630
+ (let (
631
+ ;; Mask the amount to ensure wrapping behaviour
632
+ (masked_amt RegMemImm (mask_xmm_shift ty amt))
633
+ ;; Shift `src` using 16x8. Unfortunately, a 16x8 shift will only be
634
+ ;; correct for half of the lanes; the others must be fixed up with
635
+ ;; the mask below.
636
+ (unmasked Xmm (x64_psrlw src (mov_rmi_to_xmm masked_amt))))
637
+ (sse_and $I8X16
638
+ unmasked
639
+ (ushr_i8x16_mask masked_amt))))
640
+
641
+ ;; Get the address of the mask to use when fixing up the lanes that weren't
642
+ ;; correctly generated by the 16x8 shift.
643
+ (decl ushr_i8x16_mask (RegMemImm) SyntheticAmode)
644
+
645
+ ;; When the shift amount is known, we can statically (i.e. at compile time)
646
+ ;; determine the mask to use and only emit that.
647
+ (decl ushr_i8x16_mask_for_const (u32) SyntheticAmode)
648
+ (extern constructor ushr_i8x16_mask_for_const ushr_i8x16_mask_for_const)
649
+ (rule (ushr_i8x16_mask (RegMemImm.Imm amt))
650
+ (ushr_i8x16_mask_for_const amt))
651
+
652
+ ;; Otherwise, we must emit the entire mask table and dynamically (i.e. at run
653
+ ;; time) find the correct mask offset in the table. We use `lea` to find the
654
+ ;; base address of the mask table and then complex addressing to offset to the
655
+ ;; right mask: `base_address + amt << 4`
656
+ (decl ushr_i8x16_mask_table () SyntheticAmode)
657
+ (extern constructor ushr_i8x16_mask_table ushr_i8x16_mask_table)
658
+ (rule (ushr_i8x16_mask (RegMemImm.Reg amt))
659
+ (let ((mask_table SyntheticAmode (ushr_i8x16_mask_table))
660
+ (base_mask_addr Gpr (x64_lea $I64 mask_table))
661
+ (mask_offset Gpr (x64_shl $I64
662
+ amt
663
+ (imm8_to_imm8_gpr 4))))
664
+ (Amode.ImmRegRegShift 0
665
+ base_mask_addr
666
+ mask_offset
667
+ 0
668
+ (mem_flags_trusted))))
669
+
670
+ (rule (ushr_i8x16_mask (RegMemImm.Mem amt))
671
+ (ushr_i8x16_mask (RegMemImm.Reg (x64_load $I64 amt (ExtKind.None)))))
672
+
673
+ ;; 16x8, 32x4, and 64x2 shifts can each use a single instruction, once the shift amount is masked.
674
+
675
+ (rule (lower (has_type ty @ $I16X8 (ushr src amt)))
676
+ (x64_psrlw src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
677
+
678
+ (rule (lower (has_type ty @ $I32X4 (ushr src amt)))
679
+ (x64_psrld src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
680
+
681
+ (rule (lower (has_type ty @ $I64X2 (ushr src amt)))
682
+ (x64_psrlq src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
683
+
684
+ (decl mask_xmm_shift (Type Value) RegMemImm)
685
+ (rule (mask_xmm_shift ty amt)
686
+ (gpr_to_reg (x64_and $I64 amt (RegMemImm.Imm (shift_mask ty)))))
687
+ (rule 1 (mask_xmm_shift ty (iconst n))
688
+ (RegMemImm.Imm (shift_amount_masked ty n)))
689
+
690
+ ;;;; Rules for `sshr` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
691
+
692
+ ;; `i64` and smaller.
693
+
694
+ (rule -1 (lower (has_type (fits_in_64 ty) (sshr src amt)))
695
+ (let ((src_ Gpr (extend_to_gpr src ty (ExtendKind.Sign))))
696
+ (x64_sar ty src_ (put_masked_in_imm8_gpr amt ty))))
697
+
698
+ ;; `i128`.
699
+
700
+ (decl sar_i128 (ValueRegs Gpr) ValueRegs)
701
+ (rule (sar_i128 src amt)
702
+ ;; Unpack the low/high halves of `src`.
703
+ (let ((src_lo Gpr (value_regs_get_gpr src 0))
704
+ (src_hi Gpr (value_regs_get_gpr src 1))
705
+ ;; Do a shift of each half. NB: the low half uses an unsigned shift
706
+ ;; because its MSB is not a sign bit.
707
+ (lo_shifted Gpr (x64_shr $I64 src_lo amt))
708
+ (hi_shifted Gpr (x64_sar $I64 src_hi amt))
709
+ ;; `src_hi << (64 - amt)` are the bits to carry over from the low
710
+ ;; half to the high half.
711
+ (carry Gpr (x64_shl $I64
712
+ src_hi
713
+ (x64_sub $I64
714
+ (imm $I64 64)
715
+ amt)))
716
+ ;; Nullify the carry if we are shifting by a multiple of 128.
717
+ (carry_ Gpr (with_flags_reg (x64_test (OperandSize.Size64) (RegMemImm.Imm 127) amt)
718
+ (cmove $I64 (CC.Z) (imm $I64 0) carry)))
719
+ ;; Add the carry into the low half.
720
+ (lo_shifted_ Gpr (x64_or $I64 lo_shifted carry_))
721
+ ;; Get all sign bits.
722
+ (sign_bits Gpr (x64_sar $I64 src_hi (imm8_to_imm8_gpr 63))))
723
+ ;; Combine the two shifted halves. However, if we are shifting by >= 64
724
+ ;; (modulo 128), then the hi bits are all sign bits and the lo bits are
725
+ ;; what would otherwise be our hi bits.
726
+ (with_flags (x64_test (OperandSize.Size64) (RegMemImm.Imm 64) amt)
727
+ (consumes_flags_concat
728
+ (cmove $I64 (CC.Z) lo_shifted_ hi_shifted)
729
+ (cmove $I64 (CC.Z) hi_shifted sign_bits)))))
730
+
731
+ (rule (lower (has_type $I128 (sshr src amt)))
732
+ ;; NB: Only the low bits of `amt` matter since we logically mask the shift
733
+ ;; amount to the value's bit width.
734
+ (let ((amt_ Gpr (lo_gpr amt)))
735
+ (sar_i128 src amt_)))
736
+
737
+ ;; SSE.
738
+
739
+ ;; Since the x86 instruction set does not have an 8x16 shift instruction and the
740
+ ;; approach used for `ishl` and `ushr` cannot be easily used (the masks do not
741
+ ;; preserve the sign), we use a different approach here: separate the low and
742
+ ;; high lanes, shift them separately, and merge them into the final result.
743
+ ;;
744
+ ;; Visually, this looks like the following, where `src.i8x16 = [s0, s1, ...,
745
+ ;; s15]:
746
+ ;;
747
+ ;; lo.i16x8 = [(s0, s0), (s1, s1), ..., (s7, s7)]
748
+ ;; shifted_lo.i16x8 = shift each lane of `low`
749
+ ;; hi.i16x8 = [(s8, s8), (s9, s9), ..., (s15, s15)]
750
+ ;; shifted_hi.i16x8 = shift each lane of `high`
751
+ ;; result = [s0'', s1'', ..., s15'']
752
+ (rule (lower (has_type ty @ $I8X16 (sshr src amt @ (value_type amt_ty))))
753
+ (let ((src_ Xmm (put_in_xmm src))
754
+ ;; Mask the amount to ensure wrapping behaviour
755
+ (masked_amt RegMemImm (mask_xmm_shift ty amt))
756
+ ;; In order for `packsswb` later to only use the high byte of each
757
+ ;; 16x8 lane, we shift right an extra 8 bits, relying on `psraw` to
758
+ ;; fill in the upper bits appropriately.
759
+ (lo Xmm (x64_punpcklbw src_ src_))
760
+ (hi Xmm (x64_punpckhbw src_ src_))
761
+ (amt_ XmmMemImm (sshr_i8x16_bigger_shift amt_ty masked_amt))
762
+ (shifted_lo Xmm (x64_psraw lo amt_))
763
+ (shifted_hi Xmm (x64_psraw hi amt_)))
764
+ (x64_packsswb shifted_lo shifted_hi)))
765
+
766
+ (decl sshr_i8x16_bigger_shift (Type RegMemImm) XmmMemImm)
767
+ (rule (sshr_i8x16_bigger_shift _ty (RegMemImm.Imm i))
768
+ (xmm_mem_imm_new (RegMemImm.Imm (u32_add i 8))))
769
+ (rule (sshr_i8x16_bigger_shift ty (RegMemImm.Reg r))
770
+ (mov_rmi_to_xmm (RegMemImm.Reg (x64_add ty
771
+ r
772
+ (RegMemImm.Imm 8)))))
773
+ (rule (sshr_i8x16_bigger_shift ty rmi @ (RegMemImm.Mem _m))
774
+ (mov_rmi_to_xmm (RegMemImm.Reg (x64_add ty
775
+ (imm ty 8)
776
+ rmi))))
777
+
778
+ ;; `sshr.{i16x8,i32x4}` can be a simple `psra{w,d}`, we just have to make sure
779
+ ;; that if the shift amount is in a register, it is in an XMM register.
780
+
781
+ (rule (lower (has_type ty @ $I16X8 (sshr src amt)))
782
+ (x64_psraw src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
783
+
784
+ (rule (lower (has_type ty @ $I32X4 (sshr src amt)))
785
+ (x64_psrad src (mov_rmi_to_xmm (mask_xmm_shift ty amt))))
786
+
787
+ ;; The `sshr.i64x2` CLIF instruction has no single x86 instruction in the older
788
+ ;; feature sets. To remedy this, a small dance is done with an unsigned right
789
+ ;; shift plus some extra ops.
790
+ (rule 3 (lower (has_type ty @ $I64X2 (sshr src (iconst n))))
791
+ (if-let $true (use_avx512vl))
792
+ (if-let $true (use_avx512f))
793
+ (x64_vpsraq_imm src (shift_amount_masked ty n)))
794
+
795
+ (rule 2 (lower (has_type ty @ $I64X2 (sshr src amt)))
796
+ (if-let $true (use_avx512vl))
797
+ (if-let $true (use_avx512f))
798
+ (let ((masked Gpr (x64_and $I64 amt (RegMemImm.Imm (shift_mask ty)))))
799
+ (x64_vpsraq src (x64_movd_to_xmm masked))))
800
+
801
+ (rule 1 (lower (has_type $I64X2 (sshr src (iconst (u64_from_imm64 (u64_as_u32 amt))))))
802
+ (lower_i64x2_sshr_imm src (u32_and amt 63)))
803
+
804
+ (rule (lower (has_type $I64X2 (sshr src amt)))
805
+ (lower_i64x2_sshr_gpr src (x64_and $I64 amt (RegMemImm.Imm 63))))
806
+
807
+ (decl lower_i64x2_sshr_imm (Xmm u32) Xmm)
808
+
809
+ ;; If the shift amount is less than 32 then do an sshr with 32-bit lanes to
810
+ ;; produce the upper halves of each result, followed by a ushr of 64-bit lanes
811
+ ;; to produce the lower halves of each result. Interleave results at the end.
812
+ (rule 2 (lower_i64x2_sshr_imm vec imm)
813
+ (if-let $true (u64_lt imm 32))
814
+ (let (
815
+ (high32 Xmm (x64_psrad vec (xmi_imm imm)))
816
+ (high32 Xmm (x64_pshufd high32 0b11_10_11_01))
817
+ (low32 Xmm (x64_psrlq vec (xmi_imm imm)))
818
+ (low32 Xmm (x64_pshufd low32 0b11_10_10_00))
819
+ )
820
+ (x64_punpckldq low32 high32)))
821
+
822
+ ;; If the shift amount is 32 then the `psrlq` from the above rule can be avoided
823
+ (rule 1 (lower_i64x2_sshr_imm vec 32)
824
+ (let (
825
+ (low32 Xmm (x64_pshufd vec 0b11_10_11_01))
826
+ (high32 Xmm (x64_psrad vec (xmi_imm 31)))
827
+ (high32 Xmm (x64_pshufd high32 0b11_10_11_01))
828
+ )
829
+ (x64_punpckldq low32 high32)))
830
+
831
+ ;; Shifts >= 32 use one `psrad` to generate the upper bits and second `psrad` to
832
+ ;; generate the lower bits. Everything is then woven back together with
833
+ ;; shuffles.
834
+ (rule (lower_i64x2_sshr_imm vec imm)
835
+ (if-let $true (u64_lt 32 imm))
836
+ (let (
837
+ (high32 Xmm (x64_psrad vec (xmi_imm 31)))
838
+ (high32 Xmm (x64_pshufd high32 0b11_10_11_01))
839
+ (low32 Xmm (x64_psrad vec (xmi_imm (u32_sub imm 32))))
840
+ (low32 Xmm (x64_pshufd low32 0b11_10_11_01))
841
+ )
842
+ (x64_punpckldq low32 high32)))
843
+
844
+ ;; A variable shift amount is slightly more complicated than the immediate
845
+ ;; shift amounts from above. The `Gpr` argument is guaranteed to be <= 63 by
846
+ ;; earlier masking. A `ushr` operation is used with some xor/sub math to
847
+ ;; generate the sign bits.
848
+ (decl lower_i64x2_sshr_gpr (Xmm Gpr) Xmm)
849
+ (rule (lower_i64x2_sshr_gpr vec val)
850
+ (let (
851
+ (val Xmm (x64_movq_to_xmm val))
852
+ (mask Xmm (flip_high_bit_mask $I64X2))
853
+ (sign_bit_loc Xmm (x64_psrlq mask val))
854
+ (ushr Xmm (x64_psrlq vec val))
855
+ (ushr_sign_bit_flip Xmm (x64_pxor sign_bit_loc ushr))
856
+ )
857
+ (x64_psubq ushr_sign_bit_flip sign_bit_loc)))
858
+
859
+ ;;;; Rules for `rotl` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
860
+
861
+ ;; `i64` and smaller: we can rely on x86's rotate-amount masking since
862
+ ;; we operate on the whole register. For const's we mask the constant.
863
+
864
+ (rule -1 (lower (has_type (fits_in_64 ty) (rotl src amt)))
865
+ (x64_rotl ty src (put_masked_in_imm8_gpr amt ty)))
866
+
867
+
868
+ ;; `i128`.
869
+
870
+ (rule (lower (has_type $I128 (rotl src amt)))
871
+ (let ((src_ ValueRegs src)
872
+ ;; NB: Only the low bits of `amt` matter since we logically mask the
873
+ ;; rotation amount to the value's bit width.
874
+ (amt_ Gpr (lo_gpr amt)))
875
+ (or_i128 (shl_i128 src_ amt_)
876
+ (shr_i128 src_ (x64_sub $I64
877
+ (imm $I64 128)
878
+ amt_)))))
879
+
880
+ ;;;; Rules for `rotr` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
881
+
882
+ ;; `i64` and smaller: we can rely on x86's rotate-amount masking since
883
+ ;; we operate on the whole register. For const's we mask the constant.
884
+
885
+ (rule -1 (lower (has_type (fits_in_64 ty) (rotr src amt)))
886
+ (x64_rotr ty src (put_masked_in_imm8_gpr amt ty)))
887
+
888
+
889
+ ;; `i128`.
890
+
891
+ (rule (lower (has_type $I128 (rotr src amt)))
892
+ (let ((src_ ValueRegs src)
893
+ ;; NB: Only the low bits of `amt` matter since we logically mask the
894
+ ;; rotation amount to the value's bit width.
895
+ (amt_ Gpr (lo_gpr amt)))
896
+ (or_i128 (shr_i128 src_ amt_)
897
+ (shl_i128 src_ (x64_sub $I64
898
+ (imm $I64 128)
899
+ amt_)))))
900
+
901
+ ;;;; Rules for `ineg` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
902
+
903
+ ;; `i64` and smaller.
904
+
905
+ (rule -1 (lower (has_type (fits_in_64 ty) (ineg x)))
906
+ (x64_neg ty x))
907
+
908
+ (rule -2 (lower (has_type $I128 (ineg x)))
909
+ ;; Get the high/low registers for `x`.
910
+ (let ((regs ValueRegs x)
911
+ (lo Gpr (value_regs_get_gpr regs 0))
912
+ (hi Gpr (value_regs_get_gpr regs 1)))
913
+ ;; Do a neg followed by an sub-with-borrow.
914
+ (with_flags (x64_neg_paired $I64 lo)
915
+ (x64_sbb_paired $I64 (imm $I64 0) hi))))
916
+
917
+ ;; SSE.
918
+
919
+ (rule (lower (has_type $I8X16 (ineg x)))
920
+ (x64_psubb (imm $I8X16 0) x))
921
+
922
+ (rule (lower (has_type $I16X8 (ineg x)))
923
+ (x64_psubw (imm $I16X8 0) x))
924
+
925
+ (rule (lower (has_type $I32X4 (ineg x)))
926
+ (x64_psubd (imm $I32X4 0) x))
927
+
928
+ (rule (lower (has_type $I64X2 (ineg x)))
929
+ (x64_psubq (imm $I64X2 0) x))
930
+
931
+ ;;;; Rules for `avg_round` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
932
+
933
+ (rule (lower (has_type (multi_lane 8 16)
934
+ (avg_round x y)))
935
+ (x64_pavgb x y))
936
+
937
+ (rule (lower (has_type (multi_lane 16 8)
938
+ (avg_round x y)))
939
+ (x64_pavgw x y))
940
+
941
+ ;;;; Rules for `imul` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
942
+
943
+ ;; `i64` and smaller.
944
+
945
+ ;; Multiply two registers.
946
+ (rule -5 (lower (has_type (fits_in_64 ty) (imul x y)))
947
+ (x64_mul ty x y))
948
+
949
+ ;; Handle multiplication where the lhs is an immediate or sinkable load in
950
+ ;; addition to the automatic rhs handling above.
951
+
952
+ (rule -4 (lower (has_type (fits_in_64 ty)
953
+ (imul (simm32_from_value x) y)))
954
+ (x64_mul ty y x))
955
+ (rule -3 (lower (has_type (fits_in_64 ty)
956
+ (imul (sinkable_load x) y)))
957
+ (x64_mul ty y x))
958
+
959
+ ;; `i128`.
960
+
961
+ ;; mul:
962
+ ;; dst_lo = lhs_lo * rhs_lo
963
+ ;; dst_hi = umulhi(lhs_lo, rhs_lo) +
964
+ ;; lhs_lo * rhs_hi +
965
+ ;; lhs_hi * rhs_lo
966
+ ;;
967
+ ;; so we emit:
968
+ ;; lo_hi = mul x_lo, y_hi
969
+ ;; hi_lo = mul x_hi, y_lo
970
+ ;; hilo_hilo = add lo_hi, hi_lo
971
+ ;; dst_lo:hi_lolo = mulhi_u x_lo, y_lo
972
+ ;; dst_hi = add hilo_hilo, hi_lolo
973
+ ;; return (dst_lo, dst_hi)
974
+ (rule 2 (lower (has_type $I128 (imul x y)))
975
+ ;; Put `x` into registers and unpack its hi/lo halves.
976
+ (let ((x_regs ValueRegs x)
977
+ (x_lo Gpr (value_regs_get_gpr x_regs 0))
978
+ (x_hi Gpr (value_regs_get_gpr x_regs 1))
979
+ ;; Put `y` into registers and unpack its hi/lo halves.
980
+ (y_regs ValueRegs y)
981
+ (y_lo Gpr (value_regs_get_gpr y_regs 0))
982
+ (y_hi Gpr (value_regs_get_gpr y_regs 1))
983
+ ;; lo_hi = mul x_lo, y_hi
984
+ (lo_hi Gpr (x64_mul $I64 x_lo y_hi))
985
+ ;; hi_lo = mul x_hi, y_lo
986
+ (hi_lo Gpr (x64_mul $I64 x_hi y_lo))
987
+ ;; hilo_hilo = add lo_hi, hi_lo
988
+ (hilo_hilo Gpr (x64_add $I64 lo_hi hi_lo))
989
+ ;; dst_lo:hi_lolo = mulhi_u x_lo, y_lo
990
+ (mul_regs ValueRegs (mulhi_u $I64 x_lo y_lo))
991
+ (dst_lo Gpr (value_regs_get_gpr mul_regs 0))
992
+ (hi_lolo Gpr (value_regs_get_gpr mul_regs 1))
993
+ ;; dst_hi = add hilo_hilo, hi_lolo
994
+ (dst_hi Gpr (x64_add $I64 hilo_hilo hi_lolo)))
995
+ (value_gprs dst_lo dst_hi)))
996
+
997
+ ;; SSE.
998
+
999
+ ;; (No i8x16 multiply.)
1000
+
1001
+ (rule (lower (has_type (multi_lane 16 8) (imul x y)))
1002
+ (x64_pmullw x y))
1003
+
1004
+ (rule (lower (has_type (multi_lane 32 4) (imul x y)))
1005
+ (if-let $true (use_sse41))
1006
+ (x64_pmulld x y))
1007
+
1008
+ ;; Without `pmulld` the `pmuludq` instruction is used instead which performs
1009
+ ;; 32-bit multiplication storing the 64-bit result. The 64-bit result is
1010
+ ;; truncated to 32-bits and everything else is woven into place.
1011
+ (rule -1 (lower (has_type (multi_lane 32 4) (imul x y)))
1012
+ (let (
1013
+ (x Xmm x)
1014
+ (y Xmm y)
1015
+ (x_hi Xmm (x64_pshufd x 0b00_11_00_01))
1016
+ (y_hi Xmm (x64_pshufd y 0b00_11_00_01))
1017
+ (mul_lo Xmm (x64_pshufd (x64_pmuludq x y) 0b00_00_10_00))
1018
+ (mul_hi Xmm (x64_pshufd (x64_pmuludq x_hi y_hi) 0b00_00_10_00))
1019
+ )
1020
+ (x64_punpckldq mul_lo mul_hi)))
1021
+
1022
+ ;; With AVX-512 we can implement `i64x2` multiplication with a single
1023
+ ;; instruction.
1024
+ (rule 3 (lower (has_type (multi_lane 64 2) (imul x y)))
1025
+ (if-let $true (use_avx512vl))
1026
+ (if-let $true (use_avx512dq))
1027
+ (x64_vpmullq x y))
1028
+
1029
+ ;; Otherwise, for i64x2 multiplication we describe a lane A as being composed of
1030
+ ;; a 32-bit upper half "Ah" and a 32-bit lower half "Al". The 32-bit long hand
1031
+ ;; multiplication can then be written as:
1032
+ ;;
1033
+ ;; Ah Al
1034
+ ;; * Bh Bl
1035
+ ;; -----
1036
+ ;; Al * Bl
1037
+ ;; + (Ah * Bl) << 32
1038
+ ;; + (Al * Bh) << 32
1039
+ ;;
1040
+ ;; So for each lane we will compute:
1041
+ ;;
1042
+ ;; A * B = (Al * Bl) + ((Ah * Bl) + (Al * Bh)) << 32
1043
+ ;;
1044
+ ;; Note, the algorithm will use `pmuludq` which operates directly on the lower
1045
+ ;; 32-bit (`Al` or `Bl`) of a lane and writes the result to the full 64-bits of
1046
+ ;; the lane of the destination. For this reason we don't need shifts to isolate
1047
+ ;; the lower 32-bits, however, we will need to use shifts to isolate the high
1048
+ ;; 32-bits when doing calculations, i.e., `Ah == A >> 32`.
1049
+ (rule (lower (has_type (multi_lane 64 2)
1050
+ (imul a b)))
1051
+ (let ((a0 Xmm a)
1052
+ (b0 Xmm b)
1053
+ ;; a_hi = A >> 32
1054
+ (a_hi Xmm (x64_psrlq a0 (xmi_imm 32)))
1055
+ ;; ah_bl = Ah * Bl
1056
+ (ah_bl Xmm (x64_pmuludq a_hi b0))
1057
+ ;; b_hi = B >> 32
1058
+ (b_hi Xmm (x64_psrlq b0 (xmi_imm 32)))
1059
+ ;; al_bh = Al * Bh
1060
+ (al_bh Xmm (x64_pmuludq a0 b_hi))
1061
+ ;; aa_bb = ah_bl + al_bh
1062
+ (aa_bb Xmm (x64_paddq ah_bl al_bh))
1063
+ ;; aa_bb_shifted = aa_bb << 32
1064
+ (aa_bb_shifted Xmm (x64_psllq aa_bb (xmi_imm 32)))
1065
+ ;; al_bl = Al * Bl
1066
+ (al_bl Xmm (x64_pmuludq a0 b0)))
1067
+ ;; al_bl + aa_bb_shifted
1068
+ (x64_paddq al_bl aa_bb_shifted)))
1069
+
1070
+ ;; Special case for `i32x4.extmul_high_i16x8_s`.
1071
+ (rule 1 (lower (has_type (multi_lane 32 4)
1072
+ (imul (swiden_high (and (value_type (multi_lane 16 8))
1073
+ x))
1074
+ (swiden_high (and (value_type (multi_lane 16 8))
1075
+ y)))))
1076
+ (let ((x2 Xmm x)
1077
+ (y2 Xmm y)
1078
+ (lo Xmm (x64_pmullw x2 y2))
1079
+ (hi Xmm (x64_pmulhw x2 y2)))
1080
+ (x64_punpckhwd lo hi)))
1081
+
1082
+ ;; Special case for `i64x2.extmul_high_i32x4_s`.
1083
+ (rule 1 (lower (has_type (multi_lane 64 2)
1084
+ (imul (swiden_high (and (value_type (multi_lane 32 4))
1085
+ x))
1086
+ (swiden_high (and (value_type (multi_lane 32 4))
1087
+ y)))))
1088
+ (if-let $true (use_sse41))
1089
+ (let ((x2 Xmm (x64_pshufd x 0xFA))
1090
+ (y2 Xmm (x64_pshufd y 0xFA)))
1091
+ (x64_pmuldq x2 y2)))
1092
+
1093
+ ;; Special case for `i32x4.extmul_low_i16x8_s`.
1094
+ (rule 1 (lower (has_type (multi_lane 32 4)
1095
+ (imul (swiden_low (and (value_type (multi_lane 16 8))
1096
+ x))
1097
+ (swiden_low (and (value_type (multi_lane 16 8))
1098
+ y)))))
1099
+ (let ((x2 Xmm x)
1100
+ (y2 Xmm y)
1101
+ (lo Xmm (x64_pmullw x2 y2))
1102
+ (hi Xmm (x64_pmulhw x2 y2)))
1103
+ (x64_punpcklwd lo hi)))
1104
+
1105
+ ;; Special case for `i64x2.extmul_low_i32x4_s`.
1106
+ (rule 1 (lower (has_type (multi_lane 64 2)
1107
+ (imul (swiden_low (and (value_type (multi_lane 32 4))
1108
+ x))
1109
+ (swiden_low (and (value_type (multi_lane 32 4))
1110
+ y)))))
1111
+ (if-let $true (use_sse41))
1112
+ (let ((x2 Xmm (x64_pshufd x 0x50))
1113
+ (y2 Xmm (x64_pshufd y 0x50)))
1114
+ (x64_pmuldq x2 y2)))
1115
+
1116
+ ;; Special case for `i32x4.extmul_high_i16x8_u`.
1117
+ (rule 1 (lower (has_type (multi_lane 32 4)
1118
+ (imul (uwiden_high (and (value_type (multi_lane 16 8))
1119
+ x))
1120
+ (uwiden_high (and (value_type (multi_lane 16 8))
1121
+ y)))))
1122
+ (let ((x2 Xmm x)
1123
+ (y2 Xmm y)
1124
+ (lo Xmm (x64_pmullw x2 y2))
1125
+ (hi Xmm (x64_pmulhuw x2 y2)))
1126
+ (x64_punpckhwd lo hi)))
1127
+
1128
+ ;; Special case for `i64x2.extmul_high_i32x4_u`.
1129
+ (rule 1 (lower (has_type (multi_lane 64 2)
1130
+ (imul (uwiden_high (and (value_type (multi_lane 32 4))
1131
+ x))
1132
+ (uwiden_high (and (value_type (multi_lane 32 4))
1133
+ y)))))
1134
+ (let ((x2 Xmm (x64_pshufd x 0xFA))
1135
+ (y2 Xmm (x64_pshufd y 0xFA)))
1136
+ (x64_pmuludq x2 y2)))
1137
+
1138
+ ;; Special case for `i32x4.extmul_low_i16x8_u`.
1139
+ (rule 1 (lower (has_type (multi_lane 32 4)
1140
+ (imul (uwiden_low (and (value_type (multi_lane 16 8))
1141
+ x))
1142
+ (uwiden_low (and (value_type (multi_lane 16 8))
1143
+ y)))))
1144
+ (let ((x2 Xmm x)
1145
+ (y2 Xmm y)
1146
+ (lo Xmm (x64_pmullw x2 y2))
1147
+ (hi Xmm (x64_pmulhuw x2 y2)))
1148
+ (x64_punpcklwd lo hi)))
1149
+
1150
+ ;; Special case for `i64x2.extmul_low_i32x4_u`.
1151
+ (rule 1 (lower (has_type (multi_lane 64 2)
1152
+ (imul (uwiden_low (and (value_type (multi_lane 32 4))
1153
+ x))
1154
+ (uwiden_low (and (value_type (multi_lane 32 4))
1155
+ y)))))
1156
+ (let ((x2 Xmm (x64_pshufd x 0x50))
1157
+ (y2 Xmm (x64_pshufd y 0x50)))
1158
+ (x64_pmuludq x2 y2)))
1159
+
1160
+ ;;;; Rules for `iabs` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1161
+
1162
+ (rule 1 (lower (has_type $I8X16 (iabs x)))
1163
+ (if-let $true (use_ssse3))
1164
+ (x64_pabsb x))
1165
+
1166
+ ;; Note the use of `pminub` with signed inputs will produce the positive signed
1167
+ ;; result which is what is desired here. The `pmaxub` isn't available until
1168
+ ;; SSE4.1 in which case the single-instruction above lowering would apply.
1169
+ (rule (lower (has_type $I8X16 (iabs x)))
1170
+ (let (
1171
+ (x Xmm x)
1172
+ (negated Xmm (x64_psubb (xmm_zero $I8X16) x))
1173
+ )
1174
+ (x64_pminub x negated)))
1175
+
1176
+ (rule 1 (lower (has_type $I16X8 (iabs x)))
1177
+ (if-let $true (use_ssse3))
1178
+ (x64_pabsw x))
1179
+
1180
+ (rule (lower (has_type $I16X8 (iabs x)))
1181
+ (let (
1182
+ (x Xmm x)
1183
+ (negated Xmm (x64_psubw (xmm_zero $I16X8) x))
1184
+ )
1185
+ (x64_pmaxsw x negated)))
1186
+
1187
+ (rule 1 (lower (has_type $I32X4 (iabs x)))
1188
+ (if-let $true (use_ssse3))
1189
+ (x64_pabsd x))
1190
+
1191
+ ;; Generate a `negative_mask` which is either numerically -1 or 0 depending on
1192
+ ;; if the lane is negative. If the lane is positive then the xor operation
1193
+ ;; won't change the lane but otherwise it'll bit-flip everything. By then
1194
+ ;; subtracting the mask this subtracts 0 for positive lanes (does nothing) or
1195
+ ;; ends up adding one for negative lanes. This means that for a negative lane
1196
+ ;; `x` the result is `!x + 1` which is the result of negating it.
1197
+ (rule (lower (has_type $I32X4 (iabs x)))
1198
+ (let (
1199
+ (x Xmm x)
1200
+ (negative_mask Xmm (x64_psrad x (xmi_imm 31)))
1201
+ (flipped_if_negative Xmm (x64_pxor x negative_mask))
1202
+ )
1203
+ (x64_psubd flipped_if_negative negative_mask)))
1204
+
1205
+ ;; When AVX512 is available, we can use a single `vpabsq` instruction.
1206
+ (rule 2 (lower (has_type $I64X2 (iabs x)))
1207
+ (if-let $true (use_avx512vl))
1208
+ (if-let $true (use_avx512f))
1209
+ (x64_vpabsq x))
1210
+
1211
+ ;; Otherwise, we use a separate register, `neg`, to contain the results of `0 -
1212
+ ;; x` and then blend in those results with `blendvpd` if the MSB of `neg` was
1213
+ ;; set to 1 (i.e. if `neg` was negative or, conversely, if `x` was originally
1214
+ ;; positive).
1215
+ (rule 1 (lower (has_type $I64X2 (iabs x)))
1216
+ (if-let $true (use_sse41))
1217
+ (let ((rx Xmm x)
1218
+ (neg Xmm (x64_psubq (imm $I64X2 0) rx)))
1219
+ (x64_blendvpd neg rx neg)))
1220
+
1221
+ ;; and if `blendvpd` isn't available then perform a shift/shuffle to generate a
1222
+ ;; mask of which lanes are negative, followed by flipping bits/sub to make both
1223
+ ;; positive.
1224
+ (rule (lower (has_type $I64X2 (iabs x)))
1225
+ (let ((x Xmm x)
1226
+ (signs Xmm (x64_psrad x (RegMemImm.Imm 31)))
1227
+ (signs Xmm (x64_pshufd signs 0b11_11_01_01))
1228
+ (xor_if_negative Xmm (x64_pxor x signs)))
1229
+ (x64_psubq xor_if_negative signs)))
1230
+
1231
+ ;; `i64` and smaller.
1232
+
1233
+ (rule -1 (lower (has_type (fits_in_64 ty) (iabs x)))
1234
+ (let ((src Gpr x)
1235
+ (neg ProducesFlags (x64_neg_paired ty src))
1236
+ ;; Manually extract the result from the neg, then ignore
1237
+ ;; it below, since we need to pass it into the cmove
1238
+ ;; before we pass the cmove to with_flags_reg.
1239
+ (neg_result Gpr (produces_flags_get_reg neg))
1240
+ ;; When the neg instruction sets the sign flag,
1241
+ ;; takes the original (non-negative) value.
1242
+ (cmove ConsumesFlags (cmove ty (CC.S) src neg_result)))
1243
+ (with_flags_reg (produces_flags_ignore neg) cmove)))
1244
+
1245
+ ;;;; Rules for `fabs` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1246
+
1247
+ (rule (lower (has_type $F32 (fabs x)))
1248
+ (x64_andps x (imm $F32 0x7fffffff)))
1249
+
1250
+ (rule (lower (has_type $F64 (fabs x)))
1251
+ (x64_andpd x (imm $F64 0x7fffffffffffffff)))
1252
+
1253
+ ;; Special case for `f32x4.abs`.
1254
+ (rule (lower (has_type $F32X4 (fabs x)))
1255
+ (x64_andps x
1256
+ (x64_psrld (vector_all_ones) (xmi_imm 1))))
1257
+
1258
+ ;; Special case for `f64x2.abs`.
1259
+ (rule (lower (has_type $F64X2 (fabs x)))
1260
+ (x64_andpd x
1261
+ (x64_psrlq (vector_all_ones) (xmi_imm 1))))
1262
+
1263
+ ;;;; Rules for `fneg` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1264
+
1265
+ (rule (lower (has_type $F32 (fneg x)))
1266
+ (x64_xorps x (imm $F32 0x80000000)))
1267
+
1268
+ (rule (lower (has_type $F64 (fneg x)))
1269
+ (x64_xorpd x (imm $F64 0x8000000000000000)))
1270
+
1271
+ (rule (lower (has_type $F32X4 (fneg x)))
1272
+ (x64_xorps x
1273
+ (x64_pslld (vector_all_ones) (xmi_imm 31))))
1274
+
1275
+ (rule (lower (has_type $F64X2 (fneg x)))
1276
+ (x64_xorpd x
1277
+ (x64_psllq (vector_all_ones) (xmi_imm 63))))
1278
+
1279
+ ;;;; Rules for `bmask` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1280
+
1281
+ (decl lower_bmask (Type Type ValueRegs) ValueRegs)
1282
+
1283
+ ;; Values that fit in a register
1284
+ ;;
1285
+ ;; Use the neg instruction on the input which sets the CF (carry) flag
1286
+ ;; to 0 if the input is 0 or 1 otherwise.
1287
+ ;; We then subtract the output register with itself, which always gives a 0,
1288
+ ;; however use the carry flag from the previous negate to generate a -1 if it
1289
+ ;; was nonzero.
1290
+ ;;
1291
+ ;; neg in_reg
1292
+ ;; sbb out_reg, out_reg
1293
+ (rule 0
1294
+ (lower_bmask (fits_in_64 out_ty) (fits_in_64 in_ty) val)
1295
+ (let ((reg Gpr (value_regs_get_gpr val 0))
1296
+ (out ValueRegs (with_flags
1297
+ (x64_neg_paired in_ty reg)
1298
+ (x64_sbb_paired out_ty reg reg))))
1299
+ ;; Extract only the output of the sbb instruction
1300
+ (value_reg (value_regs_get out 1))))
1301
+
1302
+
1303
+ ;; If the input type is I128 we can `or` the registers, and recurse to the general case.
1304
+ (rule 1
1305
+ (lower_bmask (fits_in_64 out_ty) $I128 val)
1306
+ (let ((lo Gpr (value_regs_get_gpr val 0))
1307
+ (hi Gpr (value_regs_get_gpr val 1))
1308
+ (mixed Gpr (x64_or $I64 lo hi)))
1309
+ (lower_bmask out_ty $I64 (value_reg mixed))))
1310
+
1311
+ ;; If the output type is I128 we just duplicate the result of the I64 lowering
1312
+ (rule 2
1313
+ (lower_bmask $I128 in_ty val)
1314
+ (let ((res ValueRegs (lower_bmask $I64 in_ty val))
1315
+ (res Gpr (value_regs_get_gpr res 0)))
1316
+ (value_regs res res)))
1317
+
1318
+
1319
+ ;; Call the lower_bmask rule that does all the procssing
1320
+ (rule (lower (has_type out_ty (bmask x @ (value_type in_ty))))
1321
+ (lower_bmask out_ty in_ty x))
1322
+
1323
+ ;;;; Rules for `bnot` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1324
+
1325
+ ;; `i64` and smaller.
1326
+
1327
+ (rule -2 (lower (has_type ty (bnot x)))
1328
+ (if (ty_int_ref_scalar_64 ty))
1329
+ (x64_not ty x))
1330
+
1331
+
1332
+ ;; `i128`.
1333
+
1334
+ (decl i128_not (Value) ValueRegs)
1335
+ (rule (i128_not x)
1336
+ (let ((x_regs ValueRegs x)
1337
+ (x_lo Gpr (value_regs_get_gpr x_regs 0))
1338
+ (x_hi Gpr (value_regs_get_gpr x_regs 1)))
1339
+ (value_gprs (x64_not $I64 x_lo)
1340
+ (x64_not $I64 x_hi))))
1341
+
1342
+ (rule (lower (has_type $I128 (bnot x)))
1343
+ (i128_not x))
1344
+
1345
+ ;; f32 and f64
1346
+
1347
+ (rule -3 (lower (has_type (ty_scalar_float ty) (bnot x)))
1348
+ (x64_xor_vector ty x (vector_all_ones)))
1349
+
1350
+ ;; Special case for vector-types where bit-negation is an xor against an
1351
+ ;; all-one value
1352
+ (rule -1 (lower (has_type ty @ (multi_lane _bits _lanes) (bnot x)))
1353
+ (x64_xor_vector ty x (vector_all_ones)))
1354
+
1355
+ ;;;; Rules for `bitselect` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1356
+
1357
+ (rule (lower (has_type ty @ (multi_lane _bits _lanes)
1358
+ (bitselect condition
1359
+ if_true
1360
+ if_false)))
1361
+ ;; a = and if_true, condition
1362
+ ;; b = and_not condition, if_false
1363
+ ;; or b, a
1364
+ (let ((cond_xmm Xmm condition)
1365
+ (a Xmm (sse_and ty if_true cond_xmm))
1366
+ (b Xmm (sse_and_not ty cond_xmm if_false)))
1367
+ (sse_or ty b a)))
1368
+
1369
+ ;; If every byte of the condition is guaranteed to be all ones or all zeroes,
1370
+ ;; we can use x64_blend.
1371
+ (rule 1 (lower (has_type ty @ (multi_lane _bits _lanes)
1372
+ (bitselect condition
1373
+ if_true
1374
+ if_false)))
1375
+ (if-let $true (use_sse41))
1376
+ (if (all_ones_or_all_zeros condition))
1377
+ (x64_pblendvb if_false if_true condition))
1378
+
1379
+ (decl pure partial all_ones_or_all_zeros (Value) bool)
1380
+ (rule (all_ones_or_all_zeros (and (icmp _ _ _) (value_type (multi_lane _ _)))) $true)
1381
+ (rule (all_ones_or_all_zeros (and (fcmp _ _ _) (value_type (multi_lane _ _)))) $true)
1382
+ (rule (all_ones_or_all_zeros (vconst (vconst_all_ones_or_all_zeros))) $true)
1383
+
1384
+ (decl pure vconst_all_ones_or_all_zeros () Constant)
1385
+ (extern extractor vconst_all_ones_or_all_zeros vconst_all_ones_or_all_zeros)
1386
+
1387
+ ;; Specializations for floating-pointer compares to generate a `minp*` or a
1388
+ ;; `maxp*` instruction. These are equivalent to the wasm `f32x4.{pmin,pmax}`
1389
+ ;; instructions and how they're lowered into CLIF. Note the careful ordering
1390
+ ;; of all the operands here to ensure that the input CLIF matched is implemented
1391
+ ;; by the corresponding x64 instruction.
1392
+ (rule 2 (lower (has_type $F32X4 (bitselect (bitcast _ (fcmp (FloatCC.LessThan) x y)) x y)))
1393
+ (x64_minps x y))
1394
+ (rule 2 (lower (has_type $F64X2 (bitselect (bitcast _ (fcmp (FloatCC.LessThan) x y)) x y)))
1395
+ (x64_minpd x y))
1396
+
1397
+ (rule 3 (lower (has_type $F32X4 (bitselect (bitcast _ (fcmp (FloatCC.LessThan) y x)) x y)))
1398
+ (x64_maxps x y))
1399
+ (rule 3 (lower (has_type $F64X2 (bitselect (bitcast _ (fcmp (FloatCC.LessThan) y x)) x y)))
1400
+ (x64_maxpd x y))
1401
+
1402
+ ;; Scalar rules
1403
+
1404
+ (rule 3 (lower (has_type $I128 (bitselect c t f)))
1405
+ (let ((a ValueRegs (and_i128 c t))
1406
+ (b ValueRegs (and_i128 (i128_not c) f)))
1407
+ (or_i128 a b)))
1408
+
1409
+ (rule 4 (lower (has_type (ty_int_ref_scalar_64 ty) (bitselect c t f)))
1410
+ (let ((a Gpr (x64_and ty c t))
1411
+ (b Gpr (x64_and ty (x64_not ty c) f)))
1412
+ (x64_or ty a b)))
1413
+
1414
+ (rule 5 (lower (has_type (ty_scalar_float ty) (bitselect c t f)))
1415
+ (let ((a Xmm (sse_and ty c t))
1416
+ (c_neg Xmm (x64_xor_vector ty c (vector_all_ones)))
1417
+ (b Xmm (sse_and ty c_neg f)))
1418
+ (sse_or ty a b)))
1419
+
1420
+ ;;;; Rules for `x86_blendv` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1421
+
1422
+ (rule (lower (has_type $I8X16
1423
+ (x86_blendv condition if_true if_false)))
1424
+ (if-let $true (use_sse41))
1425
+ (x64_pblendvb if_false if_true condition))
1426
+
1427
+ (rule (lower (has_type $I32X4
1428
+ (x86_blendv condition if_true if_false)))
1429
+ (if-let $true (use_sse41))
1430
+ (x64_blendvps if_false if_true condition))
1431
+
1432
+ (rule (lower (has_type $I64X2
1433
+ (x86_blendv condition if_true if_false)))
1434
+ (if-let $true (use_sse41))
1435
+ (x64_blendvpd if_false if_true condition))
1436
+
1437
+ ;;;; Rules for `insertlane` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1438
+
1439
+ (rule (lower (insertlane vec @ (value_type ty) val (u8_from_uimm8 idx)))
1440
+ (vec_insert_lane ty vec val idx))
1441
+
1442
+ ;; Helper function used below for `insertlane` but also here for other
1443
+ ;; lowerings.
1444
+ ;;
1445
+ ;; Note that the `Type` used here is the type of vector the insertion is
1446
+ ;; happening into, or the type of the first `Reg` argument.
1447
+ (decl vec_insert_lane (Type Xmm RegMem u8) Xmm)
1448
+
1449
+ ;; i8x16.replace_lane
1450
+ (rule 1 (vec_insert_lane $I8X16 vec val idx)
1451
+ (if-let $true (use_sse41))
1452
+ (x64_pinsrb vec val idx))
1453
+
1454
+ ;; This lowering is particularly unoptimized and is mostly just here to work
1455
+ ;; rather than here to be fast. Requiring SSE 4.1 for the above lowering isn't
1456
+ ;; the end of the world hopefully as that's a pretty old instruction set, so
1457
+ ;; this is the "simplest" version that works on SSE2 for now.
1458
+ ;;
1459
+ ;; This lowering masks the original vector with a constant with all 1s except
1460
+ ;; for the "hole" where this value will get placed into, meaning the desired
1461
+ ;; lane is guaranteed as all 0s. Next the `val` is shuffled into this hole with
1462
+ ;; a few operations:
1463
+ ;;
1464
+ ;; 1. The `val` is zero-extended to 32-bits to guarantee the lower 32-bits
1465
+ ;; are all defined.
1466
+ ;; 2. An arithmetic shift-left is used with the low two bits of `n`, the
1467
+ ;; desired lane, to move the value into the right position within the 32-bit
1468
+ ;; register value.
1469
+ ;; 3. The 32-bit register is moved with `movd` into an XMM register
1470
+ ;; 4. The XMM register, where all lanes are 0 except for the first lane which
1471
+ ;; has the shifted value, is then shuffled with `pshufd` to move the
1472
+ ;; shifted value to the correct and final lane. This uses the upper two
1473
+ ;; bits of `n` to index the i32x4 lane that we're targeting.
1474
+ ;;
1475
+ ;; This all, laboriously, gets the `val` into the desired lane so it's then
1476
+ ;; `por`'d with the original vec-with-a-hole to produce the final result of the
1477
+ ;; insertion.
1478
+ (rule (vec_insert_lane $I8X16 vec val n)
1479
+ (let ((vec_with_hole Xmm (x64_pand vec (insert_i8x16_lane_hole n)))
1480
+ (val Gpr (x64_movzx (ExtMode.BL) val))
1481
+ (val Gpr (x64_shl $I32 val (Imm8Reg.Imm8 (u8_shl (u8_and n 3) 3))))
1482
+ (val Xmm (x64_movd_to_xmm val))
1483
+ (val_at_hole Xmm (x64_pshufd val (insert_i8x16_lane_pshufd_imm (u8_shr n 2)))))
1484
+ (x64_por vec_with_hole val_at_hole)))
1485
+
1486
+ (decl insert_i8x16_lane_hole (u8) VCodeConstant)
1487
+ (extern constructor insert_i8x16_lane_hole insert_i8x16_lane_hole)
1488
+ (decl insert_i8x16_lane_pshufd_imm (u8) u8)
1489
+ (rule (insert_i8x16_lane_pshufd_imm 0) 0b01_01_01_00)
1490
+ (rule (insert_i8x16_lane_pshufd_imm 1) 0b01_01_00_01)
1491
+ (rule (insert_i8x16_lane_pshufd_imm 2) 0b01_00_01_01)
1492
+ (rule (insert_i8x16_lane_pshufd_imm 3) 0b00_01_01_01)
1493
+
1494
+ ;; i16x8.replace_lane
1495
+ (rule (vec_insert_lane $I16X8 vec val idx)
1496
+ (x64_pinsrw vec val idx))
1497
+
1498
+ ;; i32x4.replace_lane
1499
+ (rule 1 (vec_insert_lane $I32X4 vec val idx)
1500
+ (if-let $true (use_sse41))
1501
+ (x64_pinsrd vec val idx))
1502
+
1503
+ (rule (vec_insert_lane $I32X4 vec val 0)
1504
+ (x64_movss_regmove vec (x64_movd_to_xmm val)))
1505
+
1506
+ ;; tmp = [ vec[1] vec[0] val[1] val[0] ]
1507
+ ;; result = [ vec[3] vec[2] tmp[0] tmp[2] ]
1508
+ (rule (vec_insert_lane $I32X4 vec val 1)
1509
+ (let ((val Xmm (x64_movd_to_xmm val))
1510
+ (vec Xmm vec))
1511
+ (x64_shufps (x64_punpcklqdq val vec) vec 0b11_10_00_10)))
1512
+
1513
+ ;; tmp = [ vec[0] vec[3] val[0] val[0] ]
1514
+ ;; result = [ tmp[2] tmp[0] vec[1] vec[0] ]
1515
+ (rule (vec_insert_lane $I32X4 vec val 2)
1516
+ (let ((val Xmm (x64_movd_to_xmm val))
1517
+ (vec Xmm vec))
1518
+ (x64_shufps vec (x64_shufps val vec 0b00_11_00_00) 0b10_00_01_00)))
1519
+
1520
+ ;; tmp = [ vec[3] vec[2] val[1] val[0] ]
1521
+ ;; result = [ tmp[0] tmp[2] vec[1] vec[0] ]
1522
+ (rule (vec_insert_lane $I32X4 vec val 3)
1523
+ (let ((val Xmm (x64_movd_to_xmm val))
1524
+ (vec Xmm vec))
1525
+ (x64_shufps vec (x64_shufps val vec 0b11_10_01_00) 0b00_10_01_00)))
1526
+
1527
+ ;; i64x2.replace_lane
1528
+ (rule 1 (vec_insert_lane $I64X2 vec val idx)
1529
+ (if-let $true (use_sse41))
1530
+ (x64_pinsrq vec val idx))
1531
+ (rule (vec_insert_lane $I64X2 vec val 0)
1532
+ (x64_movsd_regmove vec (x64_movq_to_xmm val)))
1533
+ (rule (vec_insert_lane $I64X2 vec val 1)
1534
+ (x64_punpcklqdq vec (x64_movq_to_xmm val)))
1535
+
1536
+ ;; f32x4.replace_lane
1537
+ (rule 1 (vec_insert_lane $F32X4 vec val idx)
1538
+ (if-let $true (use_sse41))
1539
+ (x64_insertps vec val (sse_insertps_lane_imm idx)))
1540
+
1541
+ ;; f32x4.replace_lane 0 - without insertps
1542
+ (rule (vec_insert_lane $F32X4 vec (RegMem.Reg val) 0)
1543
+ (x64_movss_regmove vec val))
1544
+
1545
+ ;; f32x4.replace_lane 1 - without insertps
1546
+ ;; tmp = [ vec[1] vec[0] val[1] val[0] ]
1547
+ ;; result = [ vec[3] vec[2] tmp[0] tmp[2] ]
1548
+ (rule (vec_insert_lane $F32X4 vec (RegMem.Reg val) 1)
1549
+ (let ((tmp Xmm (x64_movlhps val vec)))
1550
+ (x64_shufps tmp vec 0b11_10_00_10)))
1551
+
1552
+ ;; f32x4.replace_lane 2 - without insertps
1553
+ ;; tmp = [ vec[0] vec[3] val[0] val[0] ]
1554
+ ;; result = [ tmp[2] tmp[0] vec[1] vec[0] ]
1555
+ (rule (vec_insert_lane $F32X4 vec (RegMem.Reg val) 2)
1556
+ (let ((tmp Xmm (x64_shufps val vec 0b00_11_00_00)))
1557
+ (x64_shufps vec tmp 0b10_00_01_00)))
1558
+
1559
+ ;; f32x4.replace_lane 3 - without insertps
1560
+ ;; tmp = [ vec[3] vec[2] val[1] val[0] ]
1561
+ ;; result = [ tmp[0] tmp[2] vec[1] vec[0] ]
1562
+ (rule (vec_insert_lane $F32X4 vec (RegMem.Reg val) 3)
1563
+ (let ((tmp Xmm (x64_shufps val vec 0b11_10_01_00)))
1564
+ (x64_shufps vec tmp 0b00_10_01_00)))
1565
+
1566
+ ;; Recursively delegate to the above rules by loading from memory first.
1567
+ (rule (vec_insert_lane $F32X4 vec (RegMem.Mem addr) idx)
1568
+ (vec_insert_lane $F32X4 vec (x64_movss_load addr) idx))
1569
+
1570
+ ;; External rust code used to calculate the immediate value to `insertps`.
1571
+ (decl sse_insertps_lane_imm (u8) u8)
1572
+ (extern constructor sse_insertps_lane_imm sse_insertps_lane_imm)
1573
+
1574
+ ;; f64x2.replace_lane 0
1575
+ ;;
1576
+ ;; Here the `movsd` instruction is used specifically to specialize moving
1577
+ ;; into the fist lane where unlike above cases we're not using the lane
1578
+ ;; immediate as an immediate to the instruction itself.
1579
+ (rule (vec_insert_lane $F64X2 vec (RegMem.Reg val) 0)
1580
+ (x64_movsd_regmove vec val))
1581
+ (rule (vec_insert_lane $F64X2 vec (RegMem.Mem val) 0)
1582
+ (x64_movsd_regmove vec (x64_movsd_load val)))
1583
+
1584
+ ;; f64x2.replace_lane 1
1585
+ ;;
1586
+ ;; Here the `movlhps` instruction is used specifically to specialize moving
1587
+ ;; into the second lane where unlike above cases we're not using the lane
1588
+ ;; immediate as an immediate to the instruction itself.
1589
+ (rule (vec_insert_lane $F64X2 vec val 1)
1590
+ (x64_movlhps vec val))
1591
+
1592
+ ;;;; Rules for `smin`, `smax`, `umin`, `umax` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1593
+
1594
+ ;; `i64` and smaller.
1595
+
1596
+ (decl cmp_and_choose (Type CC Value Value) ValueRegs)
1597
+ (rule (cmp_and_choose (fits_in_64 ty) cc x y)
1598
+ (let ((size OperandSize (raw_operand_size_of_type ty))
1599
+ ;; We need to put x and y in registers explicitly because
1600
+ ;; we use the values more than once. Hence, even if these
1601
+ ;; are "unique uses" at the CLIF level and would otherwise
1602
+ ;; allow for load-op merging, here we cannot do that.
1603
+ (x_reg Reg x)
1604
+ (y_reg Reg y))
1605
+ (with_flags_reg (x64_cmp size x_reg y_reg)
1606
+ (cmove ty cc y_reg x_reg))))
1607
+
1608
+ (rule -1 (lower (has_type (fits_in_64 ty) (umin x y)))
1609
+ (cmp_and_choose ty (CC.B) x y))
1610
+
1611
+ (rule -1 (lower (has_type (fits_in_64 ty) (umax x y)))
1612
+ (cmp_and_choose ty (CC.NB) x y))
1613
+
1614
+ (rule -1 (lower (has_type (fits_in_64 ty) (smin x y)))
1615
+ (cmp_and_choose ty (CC.L) x y))
1616
+
1617
+ (rule -1 (lower (has_type (fits_in_64 ty) (smax x y)))
1618
+ (cmp_and_choose ty (CC.NL) x y))
1619
+
1620
+ ;; SSE helpers for determining if single-instruction lowerings are available.
1621
+
1622
+ (decl pure has_pmins (Type) bool)
1623
+ (rule 1 (has_pmins $I16X8) $true)
1624
+ (rule 1 (has_pmins $I64X2) $false)
1625
+ (rule (has_pmins _) (use_sse41))
1626
+
1627
+ (decl pure has_pmaxs (Type) bool)
1628
+ (rule 1 (has_pmaxs $I16X8) $true)
1629
+ (rule 1 (has_pmaxs $I64X2) $false)
1630
+ (rule (has_pmaxs _) (use_sse41))
1631
+
1632
+ (decl pure has_pmaxu (Type) bool)
1633
+ (rule 1 (has_pmaxu $I8X16) $true)
1634
+ (rule 1 (has_pmaxu $I64X2) $false)
1635
+ (rule (has_pmaxu _) (use_sse41))
1636
+
1637
+ (decl pure has_pminu (Type) bool)
1638
+ (rule 1 (has_pminu $I8X16) $true)
1639
+ (rule 1 (has_pminu $I64X2) $false)
1640
+ (rule (has_pminu _) (use_sse41))
1641
+
1642
+ ;; SSE `smax`.
1643
+
1644
+ (rule (lower (has_type (ty_vec128 ty) (smax x y)))
1645
+ (lower_vec_smax ty x y))
1646
+
1647
+ (decl lower_vec_smax (Type Xmm Xmm) Xmm)
1648
+ (rule 1 (lower_vec_smax ty x y)
1649
+ (if-let $true (has_pmaxs ty))
1650
+ (x64_pmaxs ty x y))
1651
+
1652
+ (rule (lower_vec_smax ty x y)
1653
+ (let (
1654
+ (x Xmm x)
1655
+ (y Xmm y)
1656
+ (cmp Xmm (x64_pcmpgt ty x y))
1657
+ (x_is_max Xmm (x64_pand cmp x))
1658
+ (y_is_max Xmm (x64_pandn cmp y))
1659
+ )
1660
+ (x64_por x_is_max y_is_max)))
1661
+
1662
+ ;; SSE `smin`.
1663
+
1664
+ (rule 1 (lower (has_type (ty_vec128 ty) (smin x y)))
1665
+ (if-let $true (has_pmins ty))
1666
+ (x64_pmins ty x y))
1667
+
1668
+ (rule (lower (has_type (ty_vec128 ty) (smin x y)))
1669
+ (let (
1670
+ (x Xmm x)
1671
+ (y Xmm y)
1672
+ (cmp Xmm (x64_pcmpgt ty y x))
1673
+ (x_is_min Xmm (x64_pand cmp x))
1674
+ (y_is_min Xmm (x64_pandn cmp y))
1675
+ )
1676
+ (x64_por x_is_min y_is_min)))
1677
+
1678
+ ;; SSE `umax`.
1679
+
1680
+ (rule 2 (lower (has_type (ty_vec128 ty) (umax x y)))
1681
+ (if-let $true (has_pmaxu ty))
1682
+ (x64_pmaxu ty x y))
1683
+
1684
+ ;; If y < x then the saturating subtraction will be zero, otherwise when added
1685
+ ;; back to x it'll return y.
1686
+ (rule 1 (lower (has_type $I16X8 (umax x y)))
1687
+ (let ((x Xmm x))
1688
+ (x64_paddw x (x64_psubusw y x))))
1689
+
1690
+ ;; Flip the upper bits of each lane so the signed comparison has the same
1691
+ ;; result as a signed comparison, and then select the results with the output
1692
+ ;; mask. See `pcmpgt` lowering for info on flipping the upper bit.
1693
+ (rule (lower (has_type (ty_vec128 ty) (umax x y)))
1694
+ (let (
1695
+ (x Xmm x)
1696
+ (y Xmm y)
1697
+ (mask Xmm (flip_high_bit_mask ty))
1698
+ (x_masked Xmm (x64_pxor x mask))
1699
+ (y_masked Xmm (x64_pxor y mask))
1700
+ (cmp Xmm (x64_pcmpgt ty x_masked y_masked))
1701
+ (x_is_max Xmm (x64_pand cmp x))
1702
+ (y_is_max Xmm (x64_pandn cmp y))
1703
+ )
1704
+ (x64_por x_is_max y_is_max)))
1705
+
1706
+ (decl flip_high_bit_mask (Type) Xmm)
1707
+ (rule (flip_high_bit_mask $I16X8)
1708
+ (x64_movdqu_load (emit_u128_le_const 0x8000_8000_8000_8000_8000_8000_8000_8000)))
1709
+ (rule (flip_high_bit_mask $I32X4)
1710
+ (x64_movdqu_load (emit_u128_le_const 0x80000000_80000000_80000000_80000000)))
1711
+ (rule (flip_high_bit_mask $I64X2)
1712
+ (x64_movdqu_load (emit_u128_le_const 0x8000000000000000_8000000000000000)))
1713
+
1714
+ ;; SSE `umin`.
1715
+
1716
+ (rule 2 (lower (has_type (ty_vec128 ty) (umin x y)))
1717
+ (if-let $true (has_pminu ty))
1718
+ (x64_pminu ty x y))
1719
+
1720
+ ;; If x < y then the saturating subtraction will be 0. Otherwise if x > y then
1721
+ ;; the saturated result, when subtracted again, will go back to `y`.
1722
+ (rule 1 (lower (has_type $I16X8 (umin x y)))
1723
+ (let ((x Xmm x))
1724
+ (x64_psubw x (x64_psubusw x y))))
1725
+
1726
+ ;; Same as `umax`, and see `pcmpgt` for docs on flipping the upper bit.
1727
+ (rule (lower (has_type (ty_vec128 ty) (umin x y)))
1728
+ (let (
1729
+ (x Xmm x)
1730
+ (y Xmm y)
1731
+ (mask Xmm (flip_high_bit_mask ty))
1732
+ (x_masked Xmm (x64_pxor x mask))
1733
+ (y_masked Xmm (x64_pxor y mask))
1734
+ (cmp Xmm (x64_pcmpgt ty y_masked x_masked))
1735
+ (x_is_max Xmm (x64_pand cmp x))
1736
+ (y_is_max Xmm (x64_pandn cmp y))
1737
+ )
1738
+ (x64_por x_is_max y_is_max)))
1739
+
1740
+ ;;;; Rules for `trap` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1741
+
1742
+ (rule (lower (trap code))
1743
+ (side_effect (x64_ud2 code)))
1744
+
1745
+ ;;;; Rules for `uadd_overflow_trap` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1746
+
1747
+ (rule (lower (has_type (fits_in_64 ty) (uadd_overflow_trap a b tc)))
1748
+ (with_flags
1749
+ (x64_add_with_flags_paired ty a b)
1750
+ (trap_if (CC.B) tc)))
1751
+
1752
+ ;; Handle lhs immediates/sinkable loads in addition to the automatic rhs
1753
+ ;; handling of above.
1754
+
1755
+ (rule 1 (lower (has_type (fits_in_64 ty)
1756
+ (uadd_overflow_trap (simm32_from_value a) b tc)))
1757
+ (with_flags
1758
+ (x64_add_with_flags_paired ty b a)
1759
+ (trap_if (CC.B) tc)))
1760
+
1761
+ (rule 2 (lower (has_type (fits_in_64 ty)
1762
+ (uadd_overflow_trap (sinkable_load a) b tc)))
1763
+ (with_flags
1764
+ (x64_add_with_flags_paired ty b a)
1765
+ (trap_if (CC.B) tc)))
1766
+
1767
+ ;;;; Rules for `resumable_trap` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1768
+
1769
+ (rule (lower (resumable_trap code))
1770
+ (side_effect (x64_ud2 code)))
1771
+
1772
+ ;;;; Rules for `return` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1773
+
1774
+ ;; N.B.: the Ret itself is generated by the ABI.
1775
+ (rule (lower (return args))
1776
+ (lower_return args))
1777
+
1778
+ ;;;; Rules for `icmp` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1779
+
1780
+ (rule -2 (lower (icmp cc a @ (value_type (fits_in_64 ty)) b))
1781
+ (lower_icmp_bool (emit_cmp cc a b)))
1782
+
1783
+ (rule -1 (lower (icmp cc a @ (value_type $I128) b))
1784
+ (lower_icmp_bool (emit_cmp cc a b)))
1785
+
1786
+ ;; Peephole optimization for `x < 0`, when x is a signed 64 bit value
1787
+ (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedLessThan) x @ (value_type $I64) (u64_from_iconst 0))))
1788
+ (x64_shr $I64 x (Imm8Reg.Imm8 63)))
1789
+
1790
+ ;; Peephole optimization for `0 > x`, when x is a signed 64 bit value
1791
+ (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedGreaterThan) (u64_from_iconst 0) x @ (value_type $I64))))
1792
+ (x64_shr $I64 x (Imm8Reg.Imm8 63)))
1793
+
1794
+ ;; Peephole optimization for `0 <= x`, when x is a signed 64 bit value
1795
+ (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedLessThanOrEqual) (u64_from_iconst 0) x @ (value_type $I64))))
1796
+ (x64_shr $I64 (x64_not $I64 x) (Imm8Reg.Imm8 63)))
1797
+
1798
+ ;; Peephole optimization for `x >= 0`, when x is a signed 64 bit value
1799
+ (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedGreaterThanOrEqual) x @ (value_type $I64) (u64_from_iconst 0))))
1800
+ (x64_shr $I64 (x64_not $I64 x) (Imm8Reg.Imm8 63)))
1801
+
1802
+ ;; Peephole optimization for `x < 0`, when x is a signed 32 bit value
1803
+ (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedLessThan) x @ (value_type $I32) (u64_from_iconst 0))))
1804
+ (x64_shr $I32 x (Imm8Reg.Imm8 31)))
1805
+
1806
+ ;; Peephole optimization for `0 > x`, when x is a signed 32 bit value
1807
+ (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedGreaterThan) (u64_from_iconst 0) x @ (value_type $I32))))
1808
+ (x64_shr $I32 x (Imm8Reg.Imm8 31)))
1809
+
1810
+ ;; Peephole optimization for `0 <= x`, when x is a signed 32 bit value
1811
+ (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedLessThanOrEqual) (u64_from_iconst 0) x @ (value_type $I32))))
1812
+ (x64_shr $I32 (x64_not $I64 x) (Imm8Reg.Imm8 31)))
1813
+
1814
+ ;; Peephole optimization for `x >= 0`, when x is a signed 32 bit value
1815
+ (rule 2 (lower (has_type $I8 (icmp (IntCC.SignedGreaterThanOrEqual) x @ (value_type $I32) (u64_from_iconst 0))))
1816
+ (x64_shr $I32 (x64_not $I64 x) (Imm8Reg.Imm8 31)))
1817
+
1818
+ ;; For XMM-held values, we lower to `PCMP*` instructions, sometimes more than
1819
+ ;; one. To note: what is different here about the output values is that each
1820
+ ;; lane will be filled with all 1s or all 0s according to the comparison,
1821
+ ;; whereas for GPR-held values, the result will be simply 0 or 1 (upper bits
1822
+ ;; unset).
1823
+ (rule (lower (icmp (IntCC.Equal) a @ (value_type (ty_vec128 ty)) b))
1824
+ (x64_pcmpeq ty a b))
1825
+
1826
+ ;; To lower a not-equals comparison, we perform an equality comparison
1827
+ ;; (PCMPEQ*) and then invert the bits (PXOR with all 1s).
1828
+ (rule (lower (icmp (IntCC.NotEqual) a @ (value_type (ty_vec128 ty)) b))
1829
+ (let ((checked Xmm (x64_pcmpeq ty a b))
1830
+ (all_ones Xmm (vector_all_ones)))
1831
+ (x64_pxor checked all_ones)))
1832
+
1833
+ ;; SSE `sgt`
1834
+
1835
+ (rule (lower (icmp (IntCC.SignedGreaterThan) a @ (value_type (ty_vec128 ty)) b))
1836
+ (x64_pcmpgt ty a b))
1837
+
1838
+ ;; SSE `slt`
1839
+
1840
+ (rule (lower (icmp (IntCC.SignedLessThan) a @ (value_type (ty_vec128 ty)) b))
1841
+ (x64_pcmpgt ty b a))
1842
+
1843
+ ;; SSE `ugt`
1844
+
1845
+ ;; N.B.: we must manually prevent load coalescing operands; the
1846
+ ;; register allocator gets confused otherwise.
1847
+ (rule 1 (lower (icmp (IntCC.UnsignedGreaterThan) a @ (value_type (ty_vec128 ty)) b))
1848
+ (if-let $true (has_pmaxu ty))
1849
+ (let ((a Xmm a)
1850
+ (b Xmm b)
1851
+ (max Xmm (x64_pmaxu ty a b))
1852
+ (eq Xmm (x64_pcmpeq ty max b)))
1853
+ (x64_pxor eq (vector_all_ones))))
1854
+
1855
+ ;; Flip the upper bit of each lane so the result of a signed comparison is the
1856
+ ;; same as the result of an unsigned comparison (see docs on `pcmpgt` for more)
1857
+ (rule (lower (icmp (IntCC.UnsignedGreaterThan) a @ (value_type (ty_vec128 ty)) b))
1858
+ (let ((mask Xmm (flip_high_bit_mask ty))
1859
+ (a_masked Xmm (x64_pxor a mask))
1860
+ (b_masked Xmm (x64_pxor b mask)))
1861
+ (x64_pcmpgt ty a_masked b_masked)))
1862
+
1863
+ ;; SSE `ult`
1864
+
1865
+ (rule 1 (lower (icmp (IntCC.UnsignedLessThan) a @ (value_type (ty_vec128 ty)) b))
1866
+ (if-let $true (has_pminu ty))
1867
+ ;; N.B.: see note above.
1868
+ (let ((a Xmm a)
1869
+ (b Xmm b)
1870
+ (min Xmm (x64_pminu ty a b))
1871
+ (eq Xmm (x64_pcmpeq ty min b)))
1872
+ (x64_pxor eq (vector_all_ones))))
1873
+
1874
+ ;; Flip the upper bit of `a` and `b` so the signed comparison result will
1875
+ ;; be the same as the unsigned comparison result (see docs on `pcmpgt` for more).
1876
+ (rule (lower (icmp (IntCC.UnsignedLessThan) a @ (value_type (ty_vec128 ty)) b))
1877
+ (let ((mask Xmm (flip_high_bit_mask ty))
1878
+ (a_masked Xmm (x64_pxor a mask))
1879
+ (b_masked Xmm (x64_pxor b mask)))
1880
+ (x64_pcmpgt ty b_masked a_masked)))
1881
+
1882
+ ;; SSE `sge`
1883
+
1884
+ ;; Use `pmaxs*` and compare the result to `a` to see if it's `>= b`.
1885
+ (rule 1 (lower (icmp (IntCC.SignedGreaterThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1886
+ (if-let $true (has_pmaxs ty))
1887
+ (x64_pcmpeq ty a (x64_pmaxs ty a b)))
1888
+
1889
+ ;; Without `pmaxs*` use a `pcmpgt*` with reversed operands and invert the
1890
+ ;; result.
1891
+ (rule (lower (icmp (IntCC.SignedGreaterThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1892
+ (x64_pxor (x64_pcmpgt ty b a) (vector_all_ones)))
1893
+
1894
+ ;; SSE `sle`
1895
+
1896
+ ;; With `pmins*` use that and compare the result to `a`.
1897
+ (rule 1 (lower (icmp (IntCC.SignedLessThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1898
+ (if-let $true (has_pmins ty))
1899
+ (x64_pcmpeq ty a (x64_pmins ty a b)))
1900
+
1901
+ ;; Without `pmins*` perform a greater-than test and invert the result.
1902
+ (rule (lower (icmp (IntCC.SignedLessThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1903
+ (x64_pxor (x64_pcmpgt ty a b) (vector_all_ones)))
1904
+
1905
+ ;; SSE `uge`
1906
+
1907
+ (rule 2 (lower (icmp (IntCC.UnsignedGreaterThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1908
+ (if-let $true (has_pmaxu ty))
1909
+ (x64_pcmpeq ty a (x64_pmaxu ty a b)))
1910
+
1911
+ ;; Perform a saturating subtract of `a` from `b` and if the result is zero then
1912
+ ;; `a` is greater or equal.
1913
+ (rule 1 (lower (icmp (IntCC.UnsignedGreaterThanOrEqual) a @ (value_type $I16X8) b))
1914
+ (x64_pcmpeqw (x64_psubusw b a) (xmm_zero $I16X8)))
1915
+
1916
+ ;; Flip the upper bit of each lane so the signed comparison is the same as
1917
+ ;; an unsigned one and then invert the result. See docs on `pcmpgt` for why
1918
+ ;; flipping the upper bit works.
1919
+ (rule (lower (icmp (IntCC.UnsignedGreaterThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1920
+ (let (
1921
+ (mask Xmm (flip_high_bit_mask ty))
1922
+ (a_masked Xmm (x64_pxor a mask))
1923
+ (b_masked Xmm (x64_pxor b mask))
1924
+ (cmp Xmm (x64_pcmpgt ty b_masked a_masked))
1925
+ )
1926
+ (x64_pxor cmp (vector_all_ones))))
1927
+
1928
+ ;; SSE `ule`
1929
+
1930
+ (rule 2 (lower (icmp (IntCC.UnsignedLessThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1931
+ (if-let $true (has_pminu ty))
1932
+ (x64_pcmpeq ty a (x64_pminu ty a b)))
1933
+
1934
+ ;; A saturating subtraction will produce zeros if `a` is less than `b`, so
1935
+ ;; compare that result to an all-zeros result to figure out lanes of `a` that
1936
+ ;; are <= to the lanes in `b`
1937
+ (rule 1 (lower (icmp (IntCC.UnsignedLessThanOrEqual) a @ (value_type $I16X8) b))
1938
+ (let ((zeros_if_a_is_min Xmm (x64_psubusw a b)))
1939
+ (x64_pcmpeqw zeros_if_a_is_min (xmm_zero $I8X16))))
1940
+
1941
+ ;; Flip the upper bit of each lane in `a` and `b` so a signed comparison
1942
+ ;; produces the same result as an unsigned comparison. Then test test for `gt`
1943
+ ;; and invert the result to get the `le` that is desired here. See docs on
1944
+ ;; `pcmpgt` for why flipping the upper bit works.
1945
+ (rule (lower (icmp (IntCC.UnsignedLessThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1946
+ (let (
1947
+ (mask Xmm (flip_high_bit_mask ty))
1948
+ (a_masked Xmm (x64_pxor a mask))
1949
+ (b_masked Xmm (x64_pxor b mask))
1950
+ (cmp Xmm (x64_pcmpgt ty a_masked b_masked))
1951
+ )
1952
+ (x64_pxor cmp (vector_all_ones))))
1953
+
1954
+ ;;;; Rules for `fcmp` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1955
+
1956
+ ;; CLIF's `fcmp` instruction always operates on XMM registers--both scalar and
1957
+ ;; vector. For the scalar versions, we use the flag-setting behavior of the
1958
+ ;; `UCOMIS*` instruction to `SETcc` a 0 or 1 in a GPR register. Note that CLIF's
1959
+ ;; `select` uses the same kind of flag-setting behavior but chooses values other
1960
+ ;; than 0 or 1.
1961
+ ;;
1962
+ ;; Checking the result of `UCOMIS*` is unfortunately difficult in some cases
1963
+ ;; because we do not have `SETcc` instructions that explicitly check
1964
+ ;; simultaneously for the condition (i.e., `eq`, `le`, `gt`, etc.) *and*
1965
+ ;; orderedness. Instead, we must check the flags multiple times. The UCOMIS*
1966
+ ;; documentation (see Intel's Software Developer's Manual, volume 2, chapter 4)
1967
+ ;; is helpful:
1968
+ ;; - unordered assigns Z = 1, P = 1, C = 1
1969
+ ;; - greater than assigns Z = 0, P = 0, C = 0
1970
+ ;; - less than assigns Z = 0, P = 0, C = 1
1971
+ ;; - equal assigns Z = 1, P = 0, C = 0
1972
+
1973
+ (rule -1 (lower (fcmp cc a @ (value_type (ty_scalar_float ty)) b))
1974
+ (lower_fcmp_bool (emit_fcmp cc a b)))
1975
+
1976
+ ;; For vector lowerings, we use `CMPP*` instructions with a 3-bit operand that
1977
+ ;; determines the comparison to make. Note that comparisons that succeed will
1978
+ ;; fill the lane with 1s; comparisons that do not will fill the lane with 0s.
1979
+
1980
+ (rule (lower (fcmp (FloatCC.Equal) a @ (value_type (ty_vec128 ty)) b))
1981
+ (x64_cmpp ty a b (FcmpImm.Equal)))
1982
+ (rule (lower (fcmp (FloatCC.NotEqual) a @ (value_type (ty_vec128 ty)) b))
1983
+ (x64_cmpp ty a b (FcmpImm.NotEqual)))
1984
+ (rule (lower (fcmp (FloatCC.LessThan) a @ (value_type (ty_vec128 ty)) b))
1985
+ (x64_cmpp ty a b (FcmpImm.LessThan)))
1986
+ (rule (lower (fcmp (FloatCC.LessThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1987
+ (x64_cmpp ty a b (FcmpImm.LessThanOrEqual)))
1988
+ (rule (lower (fcmp (FloatCC.Ordered) a @ (value_type (ty_vec128 ty)) b))
1989
+ (x64_cmpp ty a b (FcmpImm.Ordered)))
1990
+ (rule (lower (fcmp (FloatCC.Unordered) a @ (value_type (ty_vec128 ty)) b))
1991
+ (x64_cmpp ty a b (FcmpImm.Unordered)))
1992
+ (rule (lower (fcmp (FloatCC.UnorderedOrGreaterThan) a @ (value_type (ty_vec128 ty)) b))
1993
+ (x64_cmpp ty a b (FcmpImm.UnorderedOrGreaterThan)))
1994
+ (rule (lower (fcmp (FloatCC.UnorderedOrGreaterThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
1995
+ (x64_cmpp ty a b (FcmpImm.UnorderedOrGreaterThanOrEqual)))
1996
+
1997
+ ;; Some vector lowerings rely on flipping the operands and using a reversed
1998
+ ;; comparison code.
1999
+
2000
+ (rule (lower (fcmp (FloatCC.GreaterThan) a @ (value_type (ty_vec128 ty)) b))
2001
+ (x64_cmpp ty b a (FcmpImm.LessThan)))
2002
+ (rule (lower (fcmp (FloatCC.GreaterThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
2003
+ (x64_cmpp ty b a (FcmpImm.LessThanOrEqual)))
2004
+ (rule (lower (fcmp (FloatCC.UnorderedOrLessThan) a @ (value_type (ty_vec128 ty)) b))
2005
+ (x64_cmpp ty b a (FcmpImm.UnorderedOrGreaterThan)))
2006
+ (rule (lower (fcmp (FloatCC.UnorderedOrLessThanOrEqual) a @ (value_type (ty_vec128 ty)) b))
2007
+ (x64_cmpp ty b a (FcmpImm.UnorderedOrGreaterThanOrEqual)))
2008
+
2009
+ ;; Some vector lowerings are simply not supported for certain codes:
2010
+ ;; - FloatCC::OrderedNotEqual
2011
+ ;; - FloatCC::UnorderedOrEqual
2012
+
2013
+ ;;;; Rules for `select` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2014
+
2015
+ ;; When a `select` has an `fcmp` as a condition then rely on `emit_fcmp` to
2016
+ ;; figure out how to perform the comparison.
2017
+ ;;
2018
+ ;; Note, though, that the `FloatCC.Equal` requires an "and" to happen for two
2019
+ ;; condition codes which isn't the easiest thing to lower to a `cmove`
2020
+ ;; instruction. For this reason a `select (fcmp eq ..) ..` is instead
2021
+ ;; flipped around to be `select (fcmp ne ..) ..` with all operands reversed.
2022
+ ;; This will produce a `FcmpCondResult.OrCondition` which is easier to codegen
2023
+ ;; for.
2024
+ (rule (lower (has_type ty (select (maybe_uextend (fcmp cc a b)) x y)))
2025
+ (lower_select_fcmp ty (emit_fcmp cc a b) x y))
2026
+ (rule 1 (lower (has_type ty (select (maybe_uextend (fcmp (FloatCC.Equal) a b)) x y)))
2027
+ (lower_select_fcmp ty (emit_fcmp (FloatCC.NotEqual) a b) y x))
2028
+
2029
+ (decl lower_select_fcmp (Type FcmpCondResult Value Value) InstOutput)
2030
+ (rule (lower_select_fcmp ty (FcmpCondResult.Condition flags cc) x y)
2031
+ (with_flags flags (cmove_from_values ty cc x y)))
2032
+ (rule (lower_select_fcmp ty (FcmpCondResult.OrCondition flags cc1 cc2) x y)
2033
+ (with_flags flags (cmove_or_from_values ty cc1 cc2 x y)))
2034
+
2035
+ ;; We also can lower `select`s that depend on an `icmp` test, but more simply
2036
+ ;; than the `fcmp` variants above. In these cases, we lower to a `CMP`
2037
+ ;; instruction plus a `CMOV`; recall that `cmove_from_values` here may emit more
2038
+ ;; than one instruction for certain types (e.g., XMM-held, I128).
2039
+
2040
+ (rule (lower (has_type ty (select (maybe_uextend (icmp cc a @ (value_type (fits_in_64 a_ty)) b)) x y)))
2041
+ (let ((size OperandSize (raw_operand_size_of_type a_ty)))
2042
+ (with_flags (x64_cmp size b a) (cmove_from_values ty cc x y))))
2043
+
2044
+ ;; Finally, we lower `select` from a condition value `c`. These rules are meant
2045
+ ;; to be the final, default lowerings if no other patterns matched above.
2046
+
2047
+ (rule -1 (lower (has_type ty (select c @ (value_type (fits_in_64 a_ty)) x y)))
2048
+ (let ((size OperandSize (raw_operand_size_of_type a_ty))
2049
+ ;; N.B.: disallow load-op fusion, see above. TODO:
2050
+ ;; https://github.com/bytecodealliance/wasmtime/issues/3953.
2051
+ (gpr_c Gpr (put_in_gpr c)))
2052
+ (with_flags (x64_test size gpr_c gpr_c) (cmove_from_values ty (CC.NZ) x y))))
2053
+
2054
+ (rule -2 (lower (has_type ty (select c @ (value_type $I128) x y)))
2055
+ (let ((cond_result IcmpCondResult (cmp_zero_i128 (CC.Z) c)))
2056
+ (select_icmp cond_result x y)))
2057
+
2058
+ ;; Specializations for floating-point compares to generate a `mins*` or a
2059
+ ;; `maxs*` instruction. These are equivalent to the "pseudo-m{in,ax}"
2060
+ ;; specializations for vectors.
2061
+ (rule 2 (lower (has_type $F32 (select (maybe_uextend (fcmp (FloatCC.LessThan) x y)) x y)))
2062
+ (x64_minss x y))
2063
+ (rule 2 (lower (has_type $F64 (select (maybe_uextend (fcmp (FloatCC.LessThan) x y)) x y)))
2064
+ (x64_minsd x y))
2065
+ (rule 3 (lower (has_type $F32 (select (maybe_uextend (fcmp (FloatCC.LessThan) y x)) x y)))
2066
+ (x64_maxss x y))
2067
+ (rule 3 (lower (has_type $F64 (select (maybe_uextend (fcmp (FloatCC.LessThan) y x)) x y)))
2068
+ (x64_maxsd x y))
2069
+
2070
+ ;; Rules for `clz` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2071
+
2072
+ ;; If available, we can use a plain lzcnt instruction here. Note no
2073
+ ;; special handling is required for zero inputs, because the machine
2074
+ ;; instruction does what the CLIF expects for zero, i.e. it returns
2075
+ ;; zero.
2076
+ (rule 3 (lower (has_type (ty_32_or_64 ty) (clz src)))
2077
+ (if-let $true (use_lzcnt))
2078
+ (x64_lzcnt ty src))
2079
+
2080
+ (rule 2 (lower (has_type (ty_32_or_64 ty) (clz src)))
2081
+ (do_clz ty ty src))
2082
+
2083
+ (rule 1 (lower
2084
+ (has_type (ty_8_or_16 ty)
2085
+ (clz src)))
2086
+ (do_clz $I32 ty (extend_to_gpr src $I32 (ExtendKind.Zero))))
2087
+
2088
+ (rule 0 (lower
2089
+ (has_type $I128
2090
+ (clz src)))
2091
+ (let ((upper Gpr (do_clz $I64 $I64 (value_regs_get_gpr src 1)))
2092
+ (lower Gpr (x64_add $I64
2093
+ (do_clz $I64 $I64 (value_regs_get_gpr src 0))
2094
+ (RegMemImm.Imm 64)))
2095
+ (result_lo Gpr
2096
+ (with_flags_reg
2097
+ (x64_cmp_imm (OperandSize.Size64) 64 upper)
2098
+ (cmove $I64 (CC.NZ) upper lower))))
2099
+ (value_regs result_lo (imm $I64 0))))
2100
+
2101
+ ;; Implementation helper for clz; operates on 32 or 64-bit units.
2102
+ (decl do_clz (Type Type Gpr) Gpr)
2103
+ (rule (do_clz ty orig_ty src)
2104
+ (let ((highest_bit_index Reg (bsr_or_else ty src (imm_i64 $I64 -1)))
2105
+ (bits_minus_1 Reg (imm ty (u64_sub (ty_bits_u64 orig_ty) 1))))
2106
+ (x64_sub ty bits_minus_1 highest_bit_index)))
2107
+
2108
+ ;; Rules for `ctz` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2109
+
2110
+ ;; Analogous to `clz` cases above, but using mirror instructions
2111
+ ;; (tzcnt vs lzcnt, bsf vs bsr).
2112
+
2113
+ (rule 3 (lower (has_type (ty_32_or_64 ty) (ctz src)))
2114
+ (if-let $true (use_bmi1))
2115
+ (x64_tzcnt ty src))
2116
+
2117
+ (rule 2 (lower (has_type (ty_32_or_64 ty) (ctz src)))
2118
+ (do_ctz ty ty src))
2119
+
2120
+ (rule 1 (lower
2121
+ (has_type (ty_8_or_16 ty)
2122
+ (ctz src)))
2123
+ (do_ctz $I32 ty (extend_to_gpr src $I32 (ExtendKind.Zero))))
2124
+
2125
+ (rule 0 (lower
2126
+ (has_type $I128
2127
+ (ctz src)))
2128
+ (let ((lower Gpr (do_ctz $I64 $I64 (value_regs_get_gpr src 0)))
2129
+ (upper Gpr (x64_add $I64
2130
+ (do_ctz $I64 $I64 (value_regs_get_gpr src 1))
2131
+ (RegMemImm.Imm 64)))
2132
+ (result_lo Gpr
2133
+ (with_flags_reg
2134
+ (x64_cmp_imm (OperandSize.Size64) 64 lower)
2135
+ (cmove $I64 (CC.Z) upper lower))))
2136
+ (value_regs result_lo (imm $I64 0))))
2137
+
2138
+ (decl do_ctz (Type Type Gpr) Gpr)
2139
+ (rule (do_ctz ty orig_ty src)
2140
+ (bsf_or_else ty src (imm $I64 (ty_bits_u64 orig_ty))))
2141
+
2142
+ ;; Rules for `popcnt` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2143
+
2144
+ (rule 4 (lower (has_type (ty_32_or_64 ty) (popcnt src)))
2145
+ (if-let $true (use_popcnt))
2146
+ (x64_popcnt ty src))
2147
+
2148
+ (rule 3 (lower (has_type (ty_8_or_16 ty) (popcnt src)))
2149
+ (if-let $true (use_popcnt))
2150
+ (x64_popcnt $I32 (extend_to_gpr src $I32 (ExtendKind.Zero))))
2151
+
2152
+ (rule 1 (lower (has_type $I128 (popcnt src)))
2153
+ (if-let $true (use_popcnt))
2154
+ (let ((lo_count Gpr (x64_popcnt $I64 (value_regs_get_gpr src 0)))
2155
+ (hi_count Gpr (x64_popcnt $I64 (value_regs_get_gpr src 1))))
2156
+ (value_regs (x64_add $I64 lo_count hi_count) (imm $I64 0))))
2157
+
2158
+ (rule -1 (lower
2159
+ (has_type (ty_32_or_64 ty)
2160
+ (popcnt src)))
2161
+ (do_popcnt ty src))
2162
+
2163
+ (rule -2 (lower
2164
+ (has_type (ty_8_or_16 ty)
2165
+ (popcnt src)))
2166
+ (do_popcnt $I32 (extend_to_gpr src $I32 (ExtendKind.Zero))))
2167
+
2168
+ (rule (lower
2169
+ (has_type $I128
2170
+ (popcnt src)))
2171
+ (let ((lo_count Gpr (do_popcnt $I64 (value_regs_get_gpr src 0)))
2172
+ (hi_count Gpr (do_popcnt $I64 (value_regs_get_gpr src 1))))
2173
+ (value_regs (x64_add $I64 lo_count hi_count) (imm $I64 0))))
2174
+
2175
+ ;; Implementation of popcount when we don't nave a native popcount
2176
+ ;; instruction.
2177
+ (decl do_popcnt (Type Gpr) Gpr)
2178
+ (rule (do_popcnt $I64 src)
2179
+ (let ((shifted1 Gpr (x64_shr $I64 src (Imm8Reg.Imm8 1)))
2180
+ (sevens Gpr (imm $I64 0x7777777777777777))
2181
+ (masked1 Gpr (x64_and $I64 shifted1 sevens))
2182
+ ;; diff1 := src - ((src >> 1) & 0b0111_0111_0111...)
2183
+ (diff1 Gpr (x64_sub $I64 src masked1))
2184
+ (shifted2 Gpr (x64_shr $I64 masked1 (Imm8Reg.Imm8 1)))
2185
+ (masked2 Gpr (x64_and $I64 shifted2 sevens))
2186
+ ;; diff2 := diff1 - ((diff1 >> 1) & 0b0111_0111_0111...)
2187
+ (diff2 Gpr (x64_sub $I64 diff1 masked2))
2188
+ (shifted3 Gpr (x64_shr $I64 masked2 (Imm8Reg.Imm8 1)))
2189
+ (masked3 Gpr (x64_and $I64 shifted3 sevens))
2190
+ ;; diff3 := diff2 - ((diff2 >> 1) & 0b0111_0111_0111...)
2191
+ ;;
2192
+ ;; At this point, each nibble of diff3 is the popcount of
2193
+ ;; that nibble. This works because at each step above, we
2194
+ ;; are basically subtracting floor(value / 2) from the
2195
+ ;; running value; the leftover remainder is 1 if the LSB
2196
+ ;; was 1. After three steps, we have (nibble / 8) -- 0 or
2197
+ ;; 1 for the MSB of the nibble -- plus three possible
2198
+ ;; additions for the three other bits.
2199
+ (diff3 Gpr (x64_sub $I64 diff2 masked3))
2200
+ ;; Add the two nibbles of each byte together.
2201
+ (sum1 Gpr (x64_add $I64
2202
+ (x64_shr $I64 diff3 (Imm8Reg.Imm8 4))
2203
+ diff3))
2204
+ ;; Mask the above sum to have the popcount for each byte
2205
+ ;; in the lower nibble of that byte.
2206
+ (ofof Gpr (imm $I64 0x0f0f0f0f0f0f0f0f))
2207
+ (masked4 Gpr (x64_and $I64 sum1 ofof))
2208
+ (ones Gpr (imm $I64 0x0101010101010101))
2209
+ ;; Use a multiply to sum all of the bytes' popcounts into
2210
+ ;; the top byte. Consider the binomial expansion for the
2211
+ ;; top byte: it is the sum of the bytes (masked4 >> 56) *
2212
+ ;; 0x01 + (masked4 >> 48) * 0x01 + (masked4 >> 40) * 0x01
2213
+ ;; + ... + (masked4 >> 0).
2214
+ (mul Gpr (x64_mul $I64 masked4 ones))
2215
+ ;; Now take that top byte and return it as the popcount.
2216
+ (final Gpr (x64_shr $I64 mul (Imm8Reg.Imm8 56))))
2217
+ final))
2218
+
2219
+ ;; This is the 32-bit version of the above; the steps for each nibble
2220
+ ;; are the same, we just use constants half as wide.
2221
+ (rule (do_popcnt $I32 src)
2222
+ (let ((shifted1 Gpr (x64_shr $I32 src (Imm8Reg.Imm8 1)))
2223
+ (sevens Gpr (imm $I32 0x77777777))
2224
+ (masked1 Gpr (x64_and $I32 shifted1 sevens))
2225
+ (diff1 Gpr (x64_sub $I32 src masked1))
2226
+ (shifted2 Gpr (x64_shr $I32 masked1 (Imm8Reg.Imm8 1)))
2227
+ (masked2 Gpr (x64_and $I32 shifted2 sevens))
2228
+ (diff2 Gpr (x64_sub $I32 diff1 masked2))
2229
+ (shifted3 Gpr (x64_shr $I32 masked2 (Imm8Reg.Imm8 1)))
2230
+ (masked3 Gpr (x64_and $I32 shifted3 sevens))
2231
+ (diff3 Gpr (x64_sub $I32 diff2 masked3))
2232
+ (sum1 Gpr (x64_add $I32
2233
+ (x64_shr $I32 diff3 (Imm8Reg.Imm8 4))
2234
+ diff3))
2235
+ (masked4 Gpr (x64_and $I32 sum1 (RegMemImm.Imm 0x0f0f0f0f)))
2236
+ (mul Gpr (x64_mul $I32 masked4 (RegMemImm.Imm 0x01010101)))
2237
+ (final Gpr (x64_shr $I32 mul (Imm8Reg.Imm8 24))))
2238
+ final))
2239
+
2240
+
2241
+ (rule 2 (lower (has_type $I8X16 (popcnt src)))
2242
+ (if-let $true (use_avx512vl))
2243
+ (if-let $true (use_avx512bitalg))
2244
+ (x64_vpopcntb src))
2245
+
2246
+
2247
+ ;; For SSE 4.2 we use Mula's algorithm (https://arxiv.org/pdf/1611.07612.pdf):
2248
+ ;;
2249
+ ;; __m128i count_bytes ( __m128i v) {
2250
+ ;; __m128i lookup = _mm_setr_epi8(0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4);
2251
+ ;; __m128i low_mask = _mm_set1_epi8 (0x0f);
2252
+ ;; __m128i lo = _mm_and_si128 (v, low_mask);
2253
+ ;; __m128i hi = _mm_and_si128 (_mm_srli_epi16 (v, 4), low_mask);
2254
+ ;; __m128i cnt1 = _mm_shuffle_epi8 (lookup, lo);
2255
+ ;; __m128i cnt2 = _mm_shuffle_epi8 (lookup, hi);
2256
+ ;; return _mm_add_epi8 (cnt1, cnt2);
2257
+ ;; }
2258
+ ;;
2259
+ ;; Details of the above algorithm can be found in the reference noted above, but the basics
2260
+ ;; are to create a lookup table that pre populates the popcnt values for each number [0,15].
2261
+ ;; The algorithm uses shifts to isolate 4 bit sections of the vector, pshufb as part of the
2262
+ ;; lookup process, and adds together the results.
2263
+ ;;
2264
+ ;; __m128i lookup = _mm_setr_epi8(0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4);
2265
+
2266
+
2267
+ (rule 1 (lower (has_type $I8X16 (popcnt src)))
2268
+ (if-let $true (use_ssse3))
2269
+ (let ((low_mask XmmMem (emit_u128_le_const 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f))
2270
+ (low_nibbles Xmm (sse_and $I8X16 src low_mask))
2271
+ ;; Note that this is a 16x8 shift, but that's OK; we mask
2272
+ ;; off anything that traverses from one byte to the next
2273
+ ;; with the low_mask below.
2274
+ (shifted_src Xmm (x64_psrlw src (xmi_imm 4)))
2275
+ (high_nibbles Xmm (sse_and $I8X16 shifted_src low_mask))
2276
+ (lookup Xmm (x64_xmm_load_const $I8X16
2277
+ (emit_u128_le_const 0x04030302_03020201_03020201_02010100)))
2278
+ (bit_counts_low Xmm (x64_pshufb lookup low_nibbles))
2279
+ (bit_counts_high Xmm (x64_pshufb lookup high_nibbles)))
2280
+ (x64_paddb bit_counts_low bit_counts_high)))
2281
+
2282
+ ;; A modified version of the popcnt method from Hacker's Delight.
2283
+ (rule (lower (has_type $I8X16 (popcnt src)))
2284
+ (let ((mask1 XmmMem (emit_u128_le_const 0x77777777777777777777777777777777))
2285
+ (src Xmm src)
2286
+ (shifted Xmm (x64_pand (x64_psrlq src (xmi_imm 1)) mask1))
2287
+ (src Xmm (x64_psubb src shifted))
2288
+ (shifted Xmm (x64_pand (x64_psrlq shifted (xmi_imm 1)) mask1))
2289
+ (src Xmm (x64_psubb src shifted))
2290
+ (shifted Xmm (x64_pand (x64_psrlq shifted (xmi_imm 1)) mask1))
2291
+ (src Xmm (x64_psubb src shifted))
2292
+ (src Xmm (x64_paddb src (x64_psrlw src (xmi_imm 4)))))
2293
+ (x64_pand src (emit_u128_le_const 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f))))
2294
+
2295
+ ;; Rules for `bitrev` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2296
+
2297
+ (rule (lower (has_type $I8 (bitrev src)))
2298
+ (do_bitrev8 $I32 src))
2299
+
2300
+ (rule (lower (has_type $I16 (bitrev src)))
2301
+ (do_bitrev16 $I32 src))
2302
+
2303
+ (rule (lower (has_type $I32 (bitrev src)))
2304
+ (do_bitrev32 $I32 src))
2305
+
2306
+ (rule (lower (has_type $I64 (bitrev src)))
2307
+ (do_bitrev64 $I64 src))
2308
+
2309
+ (rule (lower (has_type $I128 (bitrev src)))
2310
+ (value_regs
2311
+ (do_bitrev64 $I64 (value_regs_get_gpr src 1))
2312
+ (do_bitrev64 $I64 (value_regs_get_gpr src 0))))
2313
+
2314
+ (decl do_bitrev8 (Type Gpr) Gpr)
2315
+ (rule (do_bitrev8 ty src)
2316
+ (let ((tymask u64 (ty_mask ty))
2317
+ (mask1 Gpr (imm ty (u64_and tymask 0x5555555555555555)))
2318
+ (lo1 Gpr (x64_and ty src mask1))
2319
+ (hi1 Gpr (x64_and ty (x64_shr ty src (Imm8Reg.Imm8 1)) mask1))
2320
+ (swap1 Gpr (x64_or ty
2321
+ (x64_shl ty lo1 (Imm8Reg.Imm8 1))
2322
+ hi1))
2323
+ (mask2 Gpr (imm ty (u64_and tymask 0x3333333333333333)))
2324
+ (lo2 Gpr (x64_and ty swap1 mask2))
2325
+ (hi2 Gpr (x64_and ty (x64_shr ty swap1 (Imm8Reg.Imm8 2)) mask2))
2326
+ (swap2 Gpr (x64_or ty
2327
+ (x64_shl ty lo2 (Imm8Reg.Imm8 2))
2328
+ hi2))
2329
+ (mask4 Gpr (imm ty (u64_and tymask 0x0f0f0f0f0f0f0f0f)))
2330
+ (lo4 Gpr (x64_and ty swap2 mask4))
2331
+ (hi4 Gpr (x64_and ty (x64_shr ty swap2 (Imm8Reg.Imm8 4)) mask4))
2332
+ (swap4 Gpr (x64_or ty
2333
+ (x64_shl ty lo4 (Imm8Reg.Imm8 4))
2334
+ hi4)))
2335
+ swap4))
2336
+
2337
+ (decl do_bitrev16 (Type Gpr) Gpr)
2338
+ (rule (do_bitrev16 ty src)
2339
+ (let ((src_ Gpr (do_bitrev8 ty src))
2340
+ (tymask u64 (ty_mask ty))
2341
+ (mask8 Gpr (imm ty (u64_and tymask 0x00ff00ff00ff00ff)))
2342
+ (lo8 Gpr (x64_and ty src_ mask8))
2343
+ (hi8 Gpr (x64_and ty (x64_shr ty src_ (Imm8Reg.Imm8 8)) mask8))
2344
+ (swap8 Gpr (x64_or ty
2345
+ (x64_shl ty lo8 (Imm8Reg.Imm8 8))
2346
+ hi8)))
2347
+ swap8))
2348
+
2349
+ (decl do_bitrev32 (Type Gpr) Gpr)
2350
+ (rule (do_bitrev32 ty src)
2351
+ (let ((src_ Gpr (do_bitrev16 ty src))
2352
+ (tymask u64 (ty_mask ty))
2353
+ (mask16 Gpr (imm ty (u64_and tymask 0x0000ffff0000ffff)))
2354
+ (lo16 Gpr (x64_and ty src_ mask16))
2355
+ (hi16 Gpr (x64_and ty (x64_shr ty src_ (Imm8Reg.Imm8 16)) mask16))
2356
+ (swap16 Gpr (x64_or ty
2357
+ (x64_shl ty lo16 (Imm8Reg.Imm8 16))
2358
+ hi16)))
2359
+ swap16))
2360
+
2361
+ (decl do_bitrev64 (Type Gpr) Gpr)
2362
+ (rule (do_bitrev64 ty @ $I64 src)
2363
+ (let ((src_ Gpr (do_bitrev32 ty src))
2364
+ (mask32 Gpr (imm ty 0xffffffff))
2365
+ (lo32 Gpr (x64_and ty src_ mask32))
2366
+ (hi32 Gpr (x64_shr ty src_ (Imm8Reg.Imm8 32)))
2367
+ (swap32 Gpr (x64_or ty
2368
+ (x64_shl ty lo32 (Imm8Reg.Imm8 32))
2369
+ hi32)))
2370
+ swap32))
2371
+
2372
+ ;; Rules for `bswap` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2373
+
2374
+ ;; x64 bswap instruction is only for 32- or 64-bit swaps
2375
+ ;; implement the 16-bit swap as a rotl by 8
2376
+ (rule (lower (has_type $I16 (bswap src)))
2377
+ (x64_rotl $I16 src (Imm8Reg.Imm8 8)))
2378
+
2379
+ (rule (lower (has_type $I32 (bswap src)))
2380
+ (x64_bswap $I32 src))
2381
+
2382
+ (rule (lower (has_type $I64 (bswap src)))
2383
+ (x64_bswap $I64 src))
2384
+
2385
+ (rule (lower (has_type $I128 (bswap src)))
2386
+ (value_regs
2387
+ (x64_bswap $I64 (value_regs_get_gpr src 1))
2388
+ (x64_bswap $I64 (value_regs_get_gpr src 0))))
2389
+
2390
+ ;; Rules for `is_null` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2391
+
2392
+ ;; Null references are represented by the constant value `0`.
2393
+ (rule (lower (is_null src @ (value_type $R64)))
2394
+ (with_flags
2395
+ (x64_cmp_imm (OperandSize.Size64) 0 src)
2396
+ (x64_setcc (CC.Z))))
2397
+
2398
+ ;; Rules for `is_invalid` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2399
+
2400
+ ;; Invalid references are represented by the constant value `-1`.
2401
+ (rule (lower (is_invalid src @ (value_type $R64)))
2402
+ (with_flags
2403
+ (x64_cmp_imm (OperandSize.Size64) 0xffffffff src) ;; simm32 0xffff_ffff is sign-extended to -1.
2404
+ (x64_setcc (CC.Z))))
2405
+
2406
+
2407
+ ;; Rules for `uextend` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2408
+
2409
+ ;; I{8,16,32,64} -> I128.
2410
+ (rule (lower (has_type $I128 (uextend src)))
2411
+ (value_regs (extend_to_gpr src $I64 (ExtendKind.Zero)) (imm $I64 0)))
2412
+
2413
+ ;; I{8,16,32} -> I64.
2414
+ (rule (lower (has_type $I64 (uextend src)))
2415
+ (extend_to_gpr src $I64 (ExtendKind.Zero)))
2416
+
2417
+ ;; I{8,16} -> I32
2418
+ ;; I8 -> I16
2419
+ (rule -1 (lower (has_type (fits_in_32 _) (uextend src)))
2420
+ (extend_to_gpr src $I32 (ExtendKind.Zero)))
2421
+
2422
+ ;; Rules for `sextend` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2423
+
2424
+ ;; I{8,16,32} -> I128.
2425
+ ;;
2426
+ ;; Produce upper 64 bits sign-extended from lower 64: shift right by
2427
+ ;; 63 bits to spread the sign bit across the result.
2428
+ (rule (lower (has_type $I128 (sextend src)))
2429
+ (let ((lo Gpr (extend_to_gpr src $I64 (ExtendKind.Sign)))
2430
+ (hi Gpr (x64_sar $I64 lo (Imm8Reg.Imm8 63))))
2431
+ (value_regs lo hi)))
2432
+
2433
+ ;; I{8,16,32} -> I64.
2434
+ (rule (lower (has_type $I64 (sextend src)))
2435
+ (extend_to_gpr src $I64 (ExtendKind.Sign)))
2436
+
2437
+ ;; I{8,16} -> I32
2438
+ ;; I8 -> I16
2439
+ (rule -1 (lower (has_type (fits_in_32 _) (sextend src)))
2440
+ (extend_to_gpr src $I32 (ExtendKind.Sign)))
2441
+
2442
+ ;; Rules for `ireduce` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2443
+
2444
+ ;; T -> T is always a no-op, even I128 -> I128.
2445
+ (rule (lower (has_type ty (ireduce src @ (value_type ty))))
2446
+ src)
2447
+
2448
+ ;; T -> I{64,32,16,8}: We can simply pass through the value: values
2449
+ ;; are always stored with high bits undefined, so we can just leave
2450
+ ;; them be.
2451
+ (rule 1 (lower (has_type (fits_in_64 ty) (ireduce src)))
2452
+ (value_regs_get_gpr src 0))
2453
+
2454
+ ;; Rules for `debugtrap` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2455
+
2456
+ (rule (lower (debugtrap))
2457
+ (side_effect (x64_hlt)))
2458
+
2459
+ ;; Rules for `x86_pmaddubsw` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2460
+
2461
+ (rule (lower (has_type $I16X8 (x86_pmaddubsw x y)))
2462
+ (if-let $true (use_ssse3))
2463
+ (x64_pmaddubsw y x))
2464
+
2465
+ ;; Rules for `fadd` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2466
+
2467
+ (rule (lower (has_type $F32 (fadd x y)))
2468
+ (x64_addss x y))
2469
+ (rule (lower (has_type $F64 (fadd x y)))
2470
+ (x64_addsd x y))
2471
+ (rule (lower (has_type $F32X4 (fadd x y)))
2472
+ (x64_addps x y))
2473
+ (rule (lower (has_type $F64X2 (fadd x y)))
2474
+ (x64_addpd x y))
2475
+
2476
+ ;; The above rules automatically sink loads for rhs operands, so additionally
2477
+ ;; add rules for sinking loads with lhs operands.
2478
+ (rule 1 (lower (has_type $F32 (fadd (sinkable_load x) y)))
2479
+ (x64_addss y x))
2480
+ (rule 1 (lower (has_type $F64 (fadd (sinkable_load x) y)))
2481
+ (x64_addsd y x))
2482
+ (rule 1 (lower (has_type $F32X4 (fadd (sinkable_load x) y)))
2483
+ (x64_addps y x))
2484
+ (rule 1 (lower (has_type $F64X2 (fadd (sinkable_load x) y)))
2485
+ (x64_addpd y x))
2486
+
2487
+ ;; Rules for `fsub` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2488
+
2489
+ (rule (lower (has_type $F32 (fsub x y)))
2490
+ (x64_subss x y))
2491
+ (rule (lower (has_type $F64 (fsub x y)))
2492
+ (x64_subsd x y))
2493
+ (rule (lower (has_type $F32X4 (fsub x y)))
2494
+ (x64_subps x y))
2495
+ (rule (lower (has_type $F64X2 (fsub x y)))
2496
+ (x64_subpd x y))
2497
+
2498
+ ;; Rules for `fmul` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2499
+
2500
+ (rule (lower (has_type $F32 (fmul x y)))
2501
+ (x64_mulss x y))
2502
+ (rule (lower (has_type $F64 (fmul x y)))
2503
+ (x64_mulsd x y))
2504
+ (rule (lower (has_type $F32X4 (fmul x y)))
2505
+ (x64_mulps x y))
2506
+ (rule (lower (has_type $F64X2 (fmul x y)))
2507
+ (x64_mulpd x y))
2508
+
2509
+ ;; The above rules automatically sink loads for rhs operands, so additionally
2510
+ ;; add rules for sinking loads with lhs operands.
2511
+ (rule 1 (lower (has_type $F32 (fmul (sinkable_load x) y)))
2512
+ (x64_mulss y x))
2513
+ (rule 1 (lower (has_type $F64 (fmul (sinkable_load x) y)))
2514
+ (x64_mulsd y x))
2515
+ (rule 1 (lower (has_type $F32X4 (fmul (sinkable_load x) y)))
2516
+ (x64_mulps y x))
2517
+ (rule 1 (lower (has_type $F64X2 (fmul (sinkable_load x) y)))
2518
+ (x64_mulpd y x))
2519
+
2520
+ ;; Rules for `fdiv` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2521
+
2522
+ (rule (lower (has_type $F32 (fdiv x y)))
2523
+ (x64_divss x y))
2524
+ (rule (lower (has_type $F64 (fdiv x y)))
2525
+ (x64_divsd x y))
2526
+ (rule (lower (has_type $F32X4 (fdiv x y)))
2527
+ (x64_divps x y))
2528
+ (rule (lower (has_type $F64X2 (fdiv x y)))
2529
+ (x64_divpd x y))
2530
+
2531
+ ;; Rules for `sqrt` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2532
+ (rule (lower (has_type $F32 (sqrt x)))
2533
+ (x64_sqrtss x))
2534
+ (rule (lower (has_type $F64 (sqrt x)))
2535
+ (x64_sqrtsd x))
2536
+ (rule (lower (has_type $F32X4 (sqrt x)))
2537
+ (x64_sqrtps x))
2538
+ (rule (lower (has_type $F64X2 (sqrt x)))
2539
+ (x64_sqrtpd x))
2540
+
2541
+ ;; Rules for `fpromote` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2542
+ (rule (lower (has_type $F64 (fpromote x)))
2543
+ (x64_cvtss2sd x))
2544
+
2545
+ ;; Rules for `fvpromote` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2546
+ (rule (lower (has_type $F64X2 (fvpromote_low x)))
2547
+ (x64_cvtps2pd (put_in_xmm x)))
2548
+
2549
+ ;; Rules for `fdemote` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2550
+ (rule (lower (has_type $F32 (fdemote x)))
2551
+ (x64_cvtsd2ss x))
2552
+
2553
+ ;; Rules for `fvdemote` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2554
+ (rule (lower (has_type $F32X4 (fvdemote x)))
2555
+ (x64_cvtpd2ps x))
2556
+
2557
+ ;; Rules for `fmin` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2558
+
2559
+ (rule (lower (has_type $F32 (fmin x y)))
2560
+ (xmm_min_max_seq $F32 $true x y))
2561
+ (rule (lower (has_type $F64 (fmin x y)))
2562
+ (xmm_min_max_seq $F64 $true x y))
2563
+
2564
+ ;; Vector-typed version. We don't use single pseudoinstructions as
2565
+ ;; above, because we don't need to generate a mini-CFG. Instead, we
2566
+ ;; perform a branchless series of operations.
2567
+ ;;
2568
+ ;; We cannot simply use native min instructions (minps, minpd) because
2569
+ ;; NaN handling is different per CLIF semantics than on
2570
+ ;; x86. Specifically, if an argument is NaN, or the arguments are both
2571
+ ;; zero but of opposite signs, then the x86 instruction always
2572
+ ;; produces the second argument. However, per CLIF semantics, we
2573
+ ;; require that fmin(NaN, _) = fmin(_, NaN) = NaN, and fmin(+0, -0) =
2574
+ ;; fmin(-0, +0) = -0.
2575
+
2576
+ (rule (lower (has_type $F32X4 (fmin x y)))
2577
+ ;; Compute min(x, y) and min(y, x) with native
2578
+ ;; instructions. These will differ in one of the edge cases
2579
+ ;; above that we have to handle properly. (Conversely, if they
2580
+ ;; don't differ, then the native instruction's answer is the
2581
+ ;; right one per CLIF semantics.)
2582
+ (let ((min1 Xmm (x64_minps x y))
2583
+ (min2 Xmm (x64_minps y x))
2584
+ ;; Compute the OR of the two. Note that NaNs have an
2585
+ ;; exponent field of all-ones (0xFF for F32), so if either
2586
+ ;; result is a NaN, this OR will be. And if either is a
2587
+ ;; zero (which has an exponent of 0 and mantissa of 0),
2588
+ ;; this captures a sign-bit of 1 (negative) if either
2589
+ ;; input is negative.
2590
+ ;;
2591
+ ;; In the case where we don't have a +/-0 mismatch or
2592
+ ;; NaNs, then `min1` and `min2` are equal and `min_or` is
2593
+ ;; the correct minimum.
2594
+ (min_or Xmm (x64_orps min1 min2))
2595
+ ;; "compare unordered" produces a true mask (all ones) in
2596
+ ;; a given lane if the min is a NaN. We use this to
2597
+ ;; generate a mask to ensure quiet NaNs.
2598
+ (is_nan_mask Xmm (x64_cmpps min_or min2 (FcmpImm.Unordered)))
2599
+ ;; OR in the NaN mask.
2600
+ (min_or_2 Xmm (x64_orps min_or is_nan_mask))
2601
+ ;; Shift the NaN mask down so that it covers just the
2602
+ ;; fraction below the NaN signalling bit; we'll use this
2603
+ ;; to mask off non-canonical NaN payloads.
2604
+ ;;
2605
+ ;; All-ones for NaN, shifted down to leave 10 top bits (1
2606
+ ;; sign, 8 exponent, 1 QNaN bit that must remain set)
2607
+ ;; cleared.
2608
+ (nan_fraction_mask Xmm (x64_psrld is_nan_mask (xmi_imm 10)))
2609
+ ;; Do a NAND, so that we retain every bit not set in
2610
+ ;; `nan_fraction_mask`. This mask will be all zeroes (so
2611
+ ;; we retain every bit) in non-NaN cases, and will have
2612
+ ;; ones (so we clear those bits) in NaN-payload bits
2613
+ ;; otherwise.
2614
+ (final Xmm (x64_andnps nan_fraction_mask min_or_2)))
2615
+ final))
2616
+
2617
+ ;; Likewise for F64 lanes, except that the right-shift is by 13 bits
2618
+ ;; (1 sign, 11 exponent, 1 QNaN bit).
2619
+ (rule (lower (has_type $F64X2 (fmin x y)))
2620
+ (let ((min1 Xmm (x64_minpd x y))
2621
+ (min2 Xmm (x64_minpd y x))
2622
+ (min_or Xmm (x64_orpd min1 min2))
2623
+ (is_nan_mask Xmm (x64_cmppd min1 min2 (FcmpImm.Unordered)))
2624
+ (min_or_2 Xmm (x64_orpd min_or is_nan_mask))
2625
+ (nan_fraction_mask Xmm (x64_psrlq is_nan_mask (xmi_imm 13)))
2626
+ (final Xmm (x64_andnpd nan_fraction_mask min_or_2)))
2627
+ final))
2628
+
2629
+ ;; Rules for `fmax` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2630
+
2631
+ (rule (lower (has_type $F32 (fmax x y)))
2632
+ (xmm_min_max_seq $F32 $false x y))
2633
+ (rule (lower (has_type $F64 (fmax x y)))
2634
+ (xmm_min_max_seq $F64 $false x y))
2635
+
2636
+ ;; The vector version of fmax here is a dual to the fmin sequence
2637
+ ;; above, almost, with a few differences.
2638
+
2639
+ (rule (lower (has_type $F32X4 (fmax x y)))
2640
+ ;; Compute max(x, y) and max(y, x) with native
2641
+ ;; instructions. These will differ in one of the edge cases
2642
+ ;; above that we have to handle properly. (Conversely, if they
2643
+ ;; don't differ, then the native instruction's answer is the
2644
+ ;; right one per CLIF semantics.)
2645
+ (let ((max1 Xmm (x64_maxps x y))
2646
+ (max2 Xmm (x64_maxps y x))
2647
+ ;; Compute the XOR of the two maxima. In the case
2648
+ ;; where we don't have a +/-0 mismatch or NaNs, then
2649
+ ;; `min1` and `min2` are equal and this XOR is zero.
2650
+ (max_xor Xmm (x64_xorps max1 max2))
2651
+ ;; OR the XOR into one of the original maxima. If they are
2652
+ ;; equal, this does nothing. If max2 was NaN, its exponent
2653
+ ;; bits were all-ones, so the xor's exponent bits were the
2654
+ ;; complement of max1, and the OR of max1 and max_xor has
2655
+ ;; an all-ones exponent (is a NaN). If max1 was NaN, then
2656
+ ;; its exponent bits were already all-ones, so the OR will
2657
+ ;; be a NaN as well.
2658
+ (max_blended_nan Xmm (x64_orps max1 max_xor))
2659
+ ;; Subtract the XOR. This ensures that if we had +0 and
2660
+ ;; -0, we end up with +0.
2661
+ (max_blended_nan_positive Xmm (x64_subps max_blended_nan max_xor))
2662
+ ;; "compare unordered" produces a true mask (all ones) in
2663
+ ;; a given lane if the min is a NaN. We use this to
2664
+ ;; generate a mask to ensure quiet NaNs.
2665
+ (is_nan_mask Xmm (x64_cmpps max_blended_nan max_blended_nan (FcmpImm.Unordered)))
2666
+ ;; Shift the NaN mask down so that it covers just the
2667
+ ;; fraction below the NaN signalling bit; we'll use this
2668
+ ;; to mask off non-canonical NaN payloads.
2669
+ ;;
2670
+ ;; All-ones for NaN, shifted down to leave 10 top bits (1
2671
+ ;; sign, 8 exponent, 1 QNaN bit that must remain set)
2672
+ ;; cleared.
2673
+ (nan_fraction_mask Xmm (x64_psrld is_nan_mask (xmi_imm 10)))
2674
+ ;; Do a NAND, so that we retain every bit not set in
2675
+ ;; `nan_fraction_mask`. This mask will be all zeroes (so
2676
+ ;; we retain every bit) in non-NaN cases, and will have
2677
+ ;; ones (so we clear those bits) in NaN-payload bits
2678
+ ;; otherwise.
2679
+ (final Xmm (x64_andnps nan_fraction_mask max_blended_nan_positive)))
2680
+ final))
2681
+
2682
+ (rule (lower (has_type $F64X2 (fmax x y)))
2683
+ ;; Compute max(x, y) and max(y, x) with native
2684
+ ;; instructions. These will differ in one of the edge cases
2685
+ ;; above that we have to handle properly. (Conversely, if they
2686
+ ;; don't differ, then the native instruction's answer is the
2687
+ ;; right one per CLIF semantics.)
2688
+ (let ((max1 Xmm (x64_maxpd x y))
2689
+ (max2 Xmm (x64_maxpd y x))
2690
+ ;; Compute the XOR of the two maxima. In the case
2691
+ ;; where we don't have a +/-0 mismatch or NaNs, then
2692
+ ;; `min1` and `min2` are equal and this XOR is zero.
2693
+ (max_xor Xmm (x64_xorpd max1 max2))
2694
+ ;; OR the XOR into one of the original maxima. If they are
2695
+ ;; equal, this does nothing. If max2 was NaN, its exponent
2696
+ ;; bits were all-ones, so the xor's exponent bits were the
2697
+ ;; complement of max1, and the OR of max1 and max_xor has
2698
+ ;; an all-ones exponent (is a NaN). If max1 was NaN, then
2699
+ ;; its exponent bits were already all-ones, so the OR will
2700
+ ;; be a NaN as well.
2701
+ (max_blended_nan Xmm (x64_orpd max1 max_xor))
2702
+ ;; Subtract the XOR. This ensures that if we had +0 and
2703
+ ;; -0, we end up with +0.
2704
+ (max_blended_nan_positive Xmm (x64_subpd max_blended_nan max_xor))
2705
+ ;; `cmpps` with predicate index `3` is `cmpunordps`, or
2706
+ ;; "compare unordered": it produces a true mask (all ones)
2707
+ ;; in a given lane if the min is a NaN. We use this to
2708
+ ;; generate a mask to ensure quiet NaNs.
2709
+ (is_nan_mask Xmm (x64_cmppd max_blended_nan max_blended_nan (FcmpImm.Unordered)))
2710
+ ;; Shift the NaN mask down so that it covers just the
2711
+ ;; fraction below the NaN signalling bit; we'll use this
2712
+ ;; to mask off non-canonical NaN payloads.
2713
+ ;;
2714
+ ;; All-ones for NaN, shifted down to leave 13 top bits (1
2715
+ ;; sign, 11 exponent, 1 QNaN bit that must remain set)
2716
+ ;; cleared.
2717
+ (nan_fraction_mask Xmm (x64_psrlq is_nan_mask (xmi_imm 13)))
2718
+ ;; Do a NAND, so that we retain every bit not set in
2719
+ ;; `nan_fraction_mask`. This mask will be all zeroes (so
2720
+ ;; we retain every bit) in non-NaN cases, and will have
2721
+ ;; ones (so we clear those bits) in NaN-payload bits
2722
+ ;; otherwise.
2723
+ (final Xmm (x64_andnpd nan_fraction_mask max_blended_nan_positive)))
2724
+ final))
2725
+
2726
+ ;; Rules for `fma` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2727
+
2728
+ ;; Base case for fma is to call out to one of two libcalls. For vectors they
2729
+ ;; need to be decomposed, handle each element individually, and then recomposed.
2730
+
2731
+ (rule (lower (has_type $F32 (fma x y z)))
2732
+ (libcall_3 (LibCall.FmaF32) x y z))
2733
+ (rule (lower (has_type $F64 (fma x y z)))
2734
+ (libcall_3 (LibCall.FmaF64) x y z))
2735
+
2736
+ (rule (lower (has_type $F32X4 (fma x y z)))
2737
+ (let (
2738
+ (x Xmm (put_in_xmm x))
2739
+ (y Xmm (put_in_xmm y))
2740
+ (z Xmm (put_in_xmm z))
2741
+ (x0 Xmm (libcall_3 (LibCall.FmaF32) x y z))
2742
+ (x1 Xmm (libcall_3 (LibCall.FmaF32)
2743
+ (x64_pshufd x 1)
2744
+ (x64_pshufd y 1)
2745
+ (x64_pshufd z 1)))
2746
+ (x2 Xmm (libcall_3 (LibCall.FmaF32)
2747
+ (x64_pshufd x 2)
2748
+ (x64_pshufd y 2)
2749
+ (x64_pshufd z 2)))
2750
+ (x3 Xmm (libcall_3 (LibCall.FmaF32)
2751
+ (x64_pshufd x 3)
2752
+ (x64_pshufd y 3)
2753
+ (x64_pshufd z 3)))
2754
+
2755
+ (tmp Xmm (vec_insert_lane $F32X4 x0 x1 1))
2756
+ (tmp Xmm (vec_insert_lane $F32X4 tmp x2 2))
2757
+ (tmp Xmm (vec_insert_lane $F32X4 tmp x3 3))
2758
+ )
2759
+ tmp))
2760
+ (rule (lower (has_type $F64X2 (fma x y z)))
2761
+ (let (
2762
+ (x Xmm (put_in_xmm x))
2763
+ (y Xmm (put_in_xmm y))
2764
+ (z Xmm (put_in_xmm z))
2765
+ (x0 Xmm (libcall_3 (LibCall.FmaF64) x y z))
2766
+ (x1 Xmm (libcall_3 (LibCall.FmaF64)
2767
+ (x64_pshufd x 0xee)
2768
+ (x64_pshufd y 0xee)
2769
+ (x64_pshufd z 0xee)))
2770
+ )
2771
+ (vec_insert_lane $F64X2 x0 x1 1)))
2772
+
2773
+
2774
+ ;; Special case for when the `fma` feature is active and a native instruction
2775
+ ;; can be used.
2776
+ (rule 1 (lower (has_type ty (fma x y z)))
2777
+ (if-let $true (use_fma))
2778
+ (fmadd ty x y z))
2779
+
2780
+ (decl fmadd (Type Value Value Value) Xmm)
2781
+ (decl fnmadd (Type Value Value Value) Xmm)
2782
+
2783
+ ;; Base case. Note that this will automatically sink a load with `z`, the value
2784
+ ;; to add.
2785
+ (rule (fmadd ty x y z) (x64_vfmadd213 ty x y z))
2786
+
2787
+ ;; Allow sinking loads with one of the two values being multiplied in addition
2788
+ ;; to the value being added. Note that both x and y can be sunk here due to
2789
+ ;; multiplication being commutative.
2790
+ (rule 1 (fmadd ty (sinkable_load x) y z) (x64_vfmadd132 ty y z x))
2791
+ (rule 2 (fmadd ty x (sinkable_load y) z) (x64_vfmadd132 ty x z y))
2792
+
2793
+ ;; If one of the values being multiplied is negated then use a `vfnmadd*`
2794
+ ;; instruction instead
2795
+ (rule 3 (fmadd ty (fneg x) y z) (fnmadd ty x y z))
2796
+ (rule 4 (fmadd ty x (fneg y) z) (fnmadd ty x y z))
2797
+
2798
+ (rule (fnmadd ty x y z) (x64_vfnmadd213 ty x y z))
2799
+ (rule 1 (fnmadd ty (sinkable_load x) y z) (x64_vfnmadd132 ty y z x))
2800
+ (rule 2 (fnmadd ty x (sinkable_load y) z) (x64_vfnmadd132 ty x z y))
2801
+
2802
+ ;; Like `fmadd` if one argument is negated switch which one is being codegen'd
2803
+ (rule 3 (fnmadd ty (fneg x) y z) (fmadd ty x y z))
2804
+ (rule 4 (fnmadd ty x (fneg y) z) (fmadd ty x y z))
2805
+
2806
+ ;; Rules for `load*` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2807
+
2808
+ ;; In order to load a value from memory to a GPR register, we may need to extend
2809
+ ;; the loaded value from 8-, 16-, or 32-bits to this backend's expected GPR
2810
+ ;; width: 64 bits. Note that `ext_mode` will load 1-bit types (booleans) as
2811
+ ;; 8-bit loads.
2812
+ ;;
2813
+ ;; By default, we zero-extend all sub-64-bit loads to a GPR.
2814
+ (rule -4 (lower (has_type (and (fits_in_32 ty) (is_gpr_type _)) (load flags address offset)))
2815
+ (x64_movzx (ext_mode (ty_bits_u16 ty) 64) (to_amode flags address offset)))
2816
+ ;; But if we know that both the `from` and `to` are 64 bits, we simply load with
2817
+ ;; no extension.
2818
+ (rule -1 (lower (has_type (ty_int_ref_64 ty) (load flags address offset)))
2819
+ (x64_mov (to_amode flags address offset)))
2820
+ ;; Also, certain scalar loads have a specific `from` width and extension kind
2821
+ ;; (signed -> `sx`, zeroed -> `zx`). We overwrite the high bits of the 64-bit
2822
+ ;; GPR even if the `to` type is smaller (e.g., 16-bits).
2823
+ (rule (lower (has_type (is_gpr_type ty) (uload8 flags address offset)))
2824
+ (x64_movzx (ExtMode.BQ) (to_amode flags address offset)))
2825
+ (rule (lower (has_type (is_gpr_type ty) (sload8 flags address offset)))
2826
+ (x64_movsx (ExtMode.BQ) (to_amode flags address offset)))
2827
+ (rule (lower (has_type (is_gpr_type ty) (uload16 flags address offset)))
2828
+ (x64_movzx (ExtMode.WQ) (to_amode flags address offset)))
2829
+ (rule (lower (has_type (is_gpr_type ty) (sload16 flags address offset)))
2830
+ (x64_movsx (ExtMode.WQ) (to_amode flags address offset)))
2831
+ (rule (lower (has_type (is_gpr_type ty) (uload32 flags address offset)))
2832
+ (x64_movzx (ExtMode.LQ) (to_amode flags address offset)))
2833
+ (rule (lower (has_type (is_gpr_type ty) (sload32 flags address offset)))
2834
+ (x64_movsx (ExtMode.LQ) (to_amode flags address offset)))
2835
+
2836
+ ;; To load to XMM registers, we use the x64-specific instructions for each type.
2837
+ ;; For `$F32` and `$F64` this is important--we only want to load 32 or 64 bits.
2838
+ ;; But for the 128-bit types, this is not strictly necessary for performance but
2839
+ ;; might help with clarity during disassembly.
2840
+ (rule (lower (has_type $F32 (load flags address offset)))
2841
+ (x64_movss_load (to_amode flags address offset)))
2842
+ (rule (lower (has_type $F64 (load flags address offset)))
2843
+ (x64_movsd_load (to_amode flags address offset)))
2844
+ (rule (lower (has_type $F32X4 (load flags address offset)))
2845
+ (x64_movups_load (to_amode flags address offset)))
2846
+ (rule (lower (has_type $F64X2 (load flags address offset)))
2847
+ (x64_movupd_load (to_amode flags address offset)))
2848
+ (rule -2 (lower (has_type (ty_vec128 ty) (load flags address offset)))
2849
+ (x64_movdqu_load (to_amode flags address offset)))
2850
+
2851
+ ;; We can load an I128 by doing two 64-bit loads.
2852
+ (rule -3 (lower (has_type $I128
2853
+ (load flags address offset)))
2854
+ (let ((addr_lo Amode (to_amode flags address offset))
2855
+ (addr_hi Amode (amode_offset addr_lo 8))
2856
+ (value_lo Reg (x64_mov addr_lo))
2857
+ (value_hi Reg (x64_mov addr_hi)))
2858
+ (value_regs value_lo value_hi)))
2859
+
2860
+ ;; We also include widening vector loads; these sign- or zero-extend each lane
2861
+ ;; to the next wider width (e.g., 16x4 -> 32x4).
2862
+ (rule 1 (lower (has_type $I16X8 (sload8x8 flags address offset)))
2863
+ (if-let $true (use_sse41))
2864
+ (x64_pmovsxbw (to_amode flags address offset)))
2865
+ (rule 1 (lower (has_type $I16X8 (uload8x8 flags address offset)))
2866
+ (if-let $true (use_sse41))
2867
+ (x64_pmovzxbw (to_amode flags address offset)))
2868
+ (rule 1 (lower (has_type $I32X4 (sload16x4 flags address offset)))
2869
+ (if-let $true (use_sse41))
2870
+ (x64_pmovsxwd (to_amode flags address offset)))
2871
+ (rule 1 (lower (has_type $I32X4 (uload16x4 flags address offset)))
2872
+ (if-let $true (use_sse41))
2873
+ (x64_pmovzxwd (to_amode flags address offset)))
2874
+ (rule 1 (lower (has_type $I64X2 (sload32x2 flags address offset)))
2875
+ (if-let $true (use_sse41))
2876
+ (x64_pmovsxdq (to_amode flags address offset)))
2877
+ (rule 1 (lower (has_type $I64X2 (uload32x2 flags address offset)))
2878
+ (if-let $true (use_sse41))
2879
+ (x64_pmovzxdq (to_amode flags address offset)))
2880
+
2881
+ (rule (lower (has_type $I16X8 (sload8x8 flags address offset)))
2882
+ (lower_swiden_low $I16X8 (x64_movq_to_xmm (to_amode flags address offset))))
2883
+ (rule (lower (has_type $I16X8 (uload8x8 flags address offset)))
2884
+ (lower_uwiden_low $I16X8 (x64_movq_to_xmm (to_amode flags address offset))))
2885
+ (rule (lower (has_type $I32X4 (sload16x4 flags address offset)))
2886
+ (lower_swiden_low $I32X4 (x64_movq_to_xmm (to_amode flags address offset))))
2887
+ (rule (lower (has_type $I32X4 (uload16x4 flags address offset)))
2888
+ (lower_uwiden_low $I32X4 (x64_movq_to_xmm (to_amode flags address offset))))
2889
+ (rule (lower (has_type $I64X2 (sload32x2 flags address offset)))
2890
+ (lower_swiden_low $I64X2 (x64_movq_to_xmm (to_amode flags address offset))))
2891
+ (rule (lower (has_type $I64X2 (uload32x2 flags address offset)))
2892
+ (lower_uwiden_low $I64X2 (x64_movq_to_xmm (to_amode flags address offset))))
2893
+
2894
+ ;; Rules for `store*` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2895
+
2896
+ ;; 8-, 16-, 32- and 64-bit GPR stores.
2897
+ (rule -2 (lower (store flags
2898
+ value @ (value_type (is_gpr_type ty))
2899
+ address
2900
+ offset))
2901
+ (side_effect
2902
+ (x64_movrm ty (to_amode flags address offset) value)))
2903
+
2904
+ ;; Explicit 8/16/32-bit opcodes.
2905
+ (rule (lower (istore8 flags value address offset))
2906
+ (side_effect
2907
+ (x64_movrm $I8 (to_amode flags address offset) value)))
2908
+ (rule (lower (istore16 flags value address offset))
2909
+ (side_effect
2910
+ (x64_movrm $I16 (to_amode flags address offset) value)))
2911
+ (rule (lower (istore32 flags value address offset))
2912
+ (side_effect
2913
+ (x64_movrm $I32 (to_amode flags address offset) value)))
2914
+
2915
+ ;; F32 stores of values in XMM registers.
2916
+ (rule 1 (lower (store flags
2917
+ value @ (value_type $F32)
2918
+ address
2919
+ offset))
2920
+ (side_effect
2921
+ (x64_movss_store (to_amode flags address offset) value)))
2922
+
2923
+ ;; F64 stores of values in XMM registers.
2924
+ (rule 1 (lower (store flags
2925
+ value @ (value_type $F64)
2926
+ address
2927
+ offset))
2928
+ (side_effect
2929
+ (x64_movsd_store (to_amode flags address offset) value)))
2930
+
2931
+ ;; Stores of F32X4 vectors.
2932
+ (rule 1 (lower (store flags
2933
+ value @ (value_type $F32X4)
2934
+ address
2935
+ offset))
2936
+ (side_effect
2937
+ (x64_movups_store (to_amode flags address offset) value)))
2938
+
2939
+ ;; Stores of F64X2 vectors.
2940
+ (rule 1 (lower (store flags
2941
+ value @ (value_type $F64X2)
2942
+ address
2943
+ offset))
2944
+ (side_effect
2945
+ (x64_movupd_store (to_amode flags address offset) value)))
2946
+
2947
+ ;; Stores of all other 128-bit vector types with integer lanes.
2948
+ (rule -1 (lower (store flags
2949
+ value @ (value_type (ty_vec128_int _))
2950
+ address
2951
+ offset))
2952
+ (side_effect
2953
+ (x64_movdqu_store (to_amode flags address offset) value)))
2954
+
2955
+ ;; Stores of I128 values: store the two 64-bit halves separately.
2956
+ (rule 0 (lower (store flags
2957
+ value @ (value_type $I128)
2958
+ address
2959
+ offset))
2960
+ (let ((value_reg ValueRegs value)
2961
+ (value_lo Gpr (value_regs_get_gpr value_reg 0))
2962
+ (value_hi Gpr (value_regs_get_gpr value_reg 1))
2963
+ (addr_lo Amode (to_amode flags address offset))
2964
+ (addr_hi Amode (amode_offset addr_lo 8)))
2965
+ (side_effect
2966
+ (side_effect_concat
2967
+ (x64_movrm $I64 addr_lo value_lo)
2968
+ (x64_movrm $I64 addr_hi value_hi)))))
2969
+
2970
+ ;; Slightly optimize the extraction of the first lane from a vector which is
2971
+ ;; stored in memory. In the case the first lane specifically is selected the
2972
+ ;; standard `movss` and `movsd` instructions can be used as-if we're storing a
2973
+ ;; f32 or f64 despite the source perhaps being an integer vector since the
2974
+ ;; result of the instruction is the same.
2975
+ (rule 2 (lower (store flags
2976
+ (has_type $F32 (extractlane value (u8_from_uimm8 0)))
2977
+ address
2978
+ offset))
2979
+ (side_effect
2980
+ (x64_movss_store (to_amode flags address offset) value)))
2981
+ (rule 2 (lower (store flags
2982
+ (has_type $F64 (extractlane value (u8_from_uimm8 0)))
2983
+ address
2984
+ offset))
2985
+ (side_effect
2986
+ (x64_movsd_store (to_amode flags address offset) value)))
2987
+ (rule 2 (lower (store flags
2988
+ (has_type $I8 (extractlane value (u8_from_uimm8 n)))
2989
+ address
2990
+ offset))
2991
+ (if-let $true (use_sse41))
2992
+ (side_effect
2993
+ (x64_pextrb_store (to_amode flags address offset) value n)))
2994
+ (rule 2 (lower (store flags
2995
+ (has_type $I16 (extractlane value (u8_from_uimm8 n)))
2996
+ address
2997
+ offset))
2998
+ (if-let $true (use_sse41))
2999
+ (side_effect
3000
+ (x64_pextrw_store (to_amode flags address offset) value n)))
3001
+ (rule 2 (lower (store flags
3002
+ (has_type $I32 (extractlane value (u8_from_uimm8 n)))
3003
+ address
3004
+ offset))
3005
+ (if-let $true (use_sse41))
3006
+ (side_effect
3007
+ (x64_pextrd_store (to_amode flags address offset) value n)))
3008
+ (rule 2 (lower (store flags
3009
+ (has_type $I64 (extractlane value (u8_from_uimm8 n)))
3010
+ address
3011
+ offset))
3012
+ (if-let $true (use_sse41))
3013
+ (side_effect
3014
+ (x64_pextrq_store (to_amode flags address offset) value n)))
3015
+
3016
+ ;; Rules for `load*` + ALU op + `store*` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3017
+
3018
+ ;; Add mem, reg
3019
+ (rule 3 (lower
3020
+ (store flags
3021
+ (has_type (ty_32_or_64 ty)
3022
+ (iadd (and
3023
+ (sinkable_load sink)
3024
+ (load flags addr offset))
3025
+ src2))
3026
+ addr
3027
+ offset))
3028
+ (let ((_ RegMemImm sink))
3029
+ (side_effect
3030
+ (x64_add_mem ty (to_amode flags addr offset) src2))))
3031
+
3032
+ ;; Add mem, reg with args swapped
3033
+ (rule 2 (lower
3034
+ (store flags
3035
+ (has_type (ty_32_or_64 ty)
3036
+ (iadd src2
3037
+ (and
3038
+ (sinkable_load sink)
3039
+ (load flags addr offset))))
3040
+ addr
3041
+ offset))
3042
+ (let ((_ RegMemImm sink))
3043
+ (side_effect
3044
+ (x64_add_mem ty (to_amode flags addr offset) src2))))
3045
+
3046
+ ;; Sub mem, reg
3047
+ (rule 2 (lower
3048
+ (store flags
3049
+ (has_type (ty_32_or_64 ty)
3050
+ (isub (and
3051
+ (sinkable_load sink)
3052
+ (load flags addr offset))
3053
+ src2))
3054
+ addr
3055
+ offset))
3056
+ (let ((_ RegMemImm sink))
3057
+ (side_effect
3058
+ (x64_sub_mem ty (to_amode flags addr offset) src2))))
3059
+
3060
+ ;; And mem, reg
3061
+ (rule 3 (lower
3062
+ (store flags
3063
+ (has_type (ty_32_or_64 ty)
3064
+ (band (and
3065
+ (sinkable_load sink)
3066
+ (load flags addr offset))
3067
+ src2))
3068
+ addr
3069
+ offset))
3070
+ (let ((_ RegMemImm sink))
3071
+ (side_effect
3072
+ (x64_and_mem ty (to_amode flags addr offset) src2))))
3073
+
3074
+ ;; And mem, reg with args swapped
3075
+ (rule 2 (lower
3076
+ (store flags
3077
+ (has_type (ty_32_or_64 ty)
3078
+ (band src2
3079
+ (and
3080
+ (sinkable_load sink)
3081
+ (load flags addr offset))))
3082
+ addr
3083
+ offset))
3084
+ (let ((_ RegMemImm sink))
3085
+ (side_effect
3086
+ (x64_and_mem ty (to_amode flags addr offset) src2))))
3087
+
3088
+ ;; Or mem, reg
3089
+ (rule 3 (lower
3090
+ (store flags
3091
+ (has_type (ty_32_or_64 ty)
3092
+ (bor (and
3093
+ (sinkable_load sink)
3094
+ (load flags addr offset))
3095
+ src2))
3096
+ addr
3097
+ offset))
3098
+ (let ((_ RegMemImm sink))
3099
+ (side_effect
3100
+ (x64_or_mem ty (to_amode flags addr offset) src2))))
3101
+
3102
+ ;; Or mem, reg with args swapped
3103
+ (rule 2 (lower
3104
+ (store flags
3105
+ (has_type (ty_32_or_64 ty)
3106
+ (bor src2
3107
+ (and
3108
+ (sinkable_load sink)
3109
+ (load flags addr offset))))
3110
+ addr
3111
+ offset))
3112
+ (let ((_ RegMemImm sink))
3113
+ (side_effect
3114
+ (x64_or_mem ty (to_amode flags addr offset) src2))))
3115
+
3116
+ ;; Xor mem, reg
3117
+ (rule 3 (lower
3118
+ (store flags
3119
+ (has_type (ty_32_or_64 ty)
3120
+ (bxor (and
3121
+ (sinkable_load sink)
3122
+ (load flags addr offset))
3123
+ src2))
3124
+ addr
3125
+ offset))
3126
+ (let ((_ RegMemImm sink))
3127
+ (side_effect
3128
+ (x64_xor_mem ty (to_amode flags addr offset) src2))))
3129
+
3130
+ ;; Xor mem, reg with args swapped
3131
+ (rule 2 (lower
3132
+ (store flags
3133
+ (has_type (ty_32_or_64 ty)
3134
+ (bxor src2
3135
+ (and
3136
+ (sinkable_load sink)
3137
+ (load flags addr offset))))
3138
+ addr
3139
+ offset))
3140
+ (let ((_ RegMemImm sink))
3141
+ (side_effect
3142
+ (x64_xor_mem ty (to_amode flags addr offset) src2))))
3143
+
3144
+ ;; Rules for `fence` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3145
+
3146
+ (rule (lower (fence))
3147
+ (side_effect (x64_mfence)))
3148
+
3149
+ ;; Rules for `func_addr` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3150
+
3151
+ (rule (lower (func_addr (func_ref_data _ extname dist)))
3152
+ (load_ext_name extname 0 dist))
3153
+
3154
+ ;; Rules for `symbol_value` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3155
+
3156
+ (rule (lower (symbol_value (symbol_value_data extname dist offset)))
3157
+ (load_ext_name extname offset dist))
3158
+
3159
+ ;; Rules for `atomic_load` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3160
+
3161
+ ;; This is a normal load. The x86-TSO memory model provides sufficient
3162
+ ;; sequencing to satisfy the CLIF synchronisation requirements for `AtomicLoad`
3163
+ ;; without the need for any fence instructions.
3164
+ ;;
3165
+ ;; As described in the `atomic_load` documentation, this lowering is only valid
3166
+ ;; for I8, I16, I32, and I64. The sub-64-bit types are zero extended, as with a
3167
+ ;; normal load.
3168
+ (rule 1 (lower (has_type $I64 (atomic_load flags address)))
3169
+ (x64_mov (to_amode flags address (zero_offset))))
3170
+ (rule (lower (has_type (and (fits_in_32 ty) (ty_int _)) (atomic_load flags address)))
3171
+ (x64_movzx (ext_mode (ty_bits_u16 ty) 64) (to_amode flags address (zero_offset))))
3172
+
3173
+ ;; Rules for `atomic_store` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3174
+
3175
+ ;; This is a normal store followed by an `mfence` instruction. As described in
3176
+ ;; the `atomic_load` documentation, this lowering is only valid for I8, I16,
3177
+ ;; I32, and I64.
3178
+ (rule (lower (atomic_store flags
3179
+ value @ (value_type (and (fits_in_64 ty) (ty_int _)))
3180
+ address))
3181
+ (side_effect (side_effect_concat
3182
+ (x64_movrm ty (to_amode flags address (zero_offset)) value)
3183
+ (x64_mfence))))
3184
+
3185
+ ;; Rules for `atomic_cas` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3186
+
3187
+ (rule (lower (has_type (and (fits_in_64 ty) (ty_int _))
3188
+ (atomic_cas flags address expected replacement)))
3189
+ (x64_cmpxchg ty expected replacement (to_amode flags address (zero_offset))))
3190
+
3191
+ ;; Rules for `atomic_rmw` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3192
+
3193
+ ;; This is a simple, general-case atomic update, based on a loop involving
3194
+ ;; `cmpxchg`. Note that we could do much better than this in the case where the
3195
+ ;; old value at the location (that is to say, the SSA `Value` computed by this
3196
+ ;; CLIF instruction) is not required. In that case, we could instead implement
3197
+ ;; this using a single `lock`-prefixed x64 read-modify-write instruction. Also,
3198
+ ;; even in the case where the old value is required, for the `add` and `sub`
3199
+ ;; cases, we can use the single instruction `lock xadd`. However, those
3200
+ ;; improvements have been left for another day. TODO: filed as
3201
+ ;; https://github.com/bytecodealliance/wasmtime/issues/2153.
3202
+
3203
+ (rule (lower (has_type (and (fits_in_64 ty) (ty_int _))
3204
+ (atomic_rmw flags op address input)))
3205
+ (x64_atomic_rmw_seq ty op (to_amode flags address (zero_offset)) input))
3206
+
3207
+ ;; Rules for `call` and `call_indirect` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3208
+
3209
+ (rule (lower (call (func_ref_data sig_ref extname dist) inputs))
3210
+ (gen_call sig_ref extname dist inputs))
3211
+
3212
+ (rule (lower (call_indirect sig_ref val inputs))
3213
+ (gen_call_indirect sig_ref val inputs))
3214
+
3215
+ ;;;; Rules for `return_call` and `return_call_indirect` ;;;;;;;;;;;;;;;;;;;;;;;;
3216
+
3217
+ (rule (lower (return_call (func_ref_data sig_ref extname dist) args))
3218
+ (gen_return_call sig_ref extname dist args))
3219
+
3220
+ (rule (lower (return_call_indirect sig_ref callee args))
3221
+ (gen_return_call_indirect sig_ref callee args))
3222
+
3223
+ ;;;; Rules for `get_{frame,stack}_pointer` and `get_return_address` ;;;;;;;;;;;;
3224
+
3225
+ (rule (lower (get_frame_pointer))
3226
+ (x64_rbp))
3227
+
3228
+ (rule (lower (get_stack_pointer))
3229
+ (x64_rsp))
3230
+
3231
+ (rule (lower (get_return_address))
3232
+ (x64_load $I64
3233
+ (Amode.ImmReg 8 (x64_rbp) (mem_flags_trusted))
3234
+ (ExtKind.None)))
3235
+
3236
+ ;; Rules for `jump` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3237
+
3238
+ (rule (lower_branch (jump _) (single_target target))
3239
+ (emit_side_effect (jmp_known target)))
3240
+
3241
+ ;; Rules for `brif` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3242
+
3243
+ (rule 2 (lower_branch (brif (maybe_uextend (icmp cc a b)) _ _) (two_targets then else))
3244
+ (emit_side_effect (jmp_cond_icmp (emit_cmp cc a b) then else)))
3245
+
3246
+ (rule 2 (lower_branch (brif (maybe_uextend (fcmp cc a b)) _ _) (two_targets then else))
3247
+ (emit_side_effect (jmp_cond_fcmp (emit_fcmp cc a b) then else)))
3248
+
3249
+ (rule 1 (lower_branch (brif val @ (value_type $I128) _ _)
3250
+ (two_targets then else))
3251
+ (emit_side_effect (jmp_cond_icmp (cmp_zero_i128 (CC.Z) val) then else)))
3252
+
3253
+ (rule (lower_branch (brif val @ (value_type (ty_int_bool_or_ref)) _ _)
3254
+ (two_targets then else))
3255
+ (emit_side_effect (with_flags_side_effect
3256
+ (cmp_zero_int_bool_ref val)
3257
+ (jmp_cond (CC.NZ) then else))))
3258
+
3259
+
3260
+ ;; Compare an I128 value to zero, returning a flags result suitable for making a
3261
+ ;; jump decision. The comparison is implemented as `(hi == 0) && (low == 0)`,
3262
+ ;; and the result can be interpreted as follows
3263
+ ;; * CC.Z indicates that the value was non-zero, as one or both of the halves of
3264
+ ;; the value were non-zero
3265
+ ;; * CC.NZ indicates that both halves of the value were 0
3266
+ (decl cmp_zero_i128 (CC ValueRegs) IcmpCondResult)
3267
+ (rule (cmp_zero_i128 (cc_nz_or_z cc) val)
3268
+ (let ((lo Gpr (value_regs_get_gpr val 0))
3269
+ (hi Gpr (value_regs_get_gpr val 1))
3270
+ (lo_z Gpr (with_flags_reg (x64_cmp (OperandSize.Size64) (RegMemImm.Imm 0) lo)
3271
+ (x64_setcc (CC.Z))))
3272
+ (hi_z Gpr (with_flags_reg (x64_cmp (OperandSize.Size64) (RegMemImm.Imm 0) hi)
3273
+ (x64_setcc (CC.Z)))))
3274
+ (icmp_cond_result (x64_test (OperandSize.Size8) lo_z hi_z) cc)))
3275
+
3276
+
3277
+ (decl cmp_zero_int_bool_ref (Value) ProducesFlags)
3278
+ (rule (cmp_zero_int_bool_ref val @ (value_type ty))
3279
+ (let ((size OperandSize (raw_operand_size_of_type ty))
3280
+ (src Gpr val))
3281
+ (x64_test size src src)))
3282
+
3283
+ ;; Rules for `br_table` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3284
+
3285
+ (rule (lower_branch (br_table idx @ (value_type ty) _) (jump_table_targets default_target jt_targets))
3286
+ (let ((size OperandSize (raw_operand_size_of_type ty))
3287
+ (jt_size u32 (jump_table_size jt_targets))
3288
+ (size_reg Reg (imm ty (u32_as_u64 jt_size)))
3289
+ (idx_reg Gpr (extend_to_gpr idx $I64 (ExtendKind.Zero)))
3290
+ (clamped_idx Reg (with_flags_reg
3291
+ (x64_cmp size size_reg idx_reg)
3292
+ (cmove ty (CC.B) idx_reg size_reg))))
3293
+ (emit_side_effect (jmp_table_seq ty clamped_idx default_target jt_targets))))
3294
+
3295
+ ;; Rules for `select_spectre_guard` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3296
+
3297
+ (rule (lower (select_spectre_guard (icmp cc a b) x y))
3298
+ (select_icmp (emit_cmp cc a b) x y))
3299
+
3300
+ (rule -1 (lower (has_type ty (select_spectre_guard c @ (value_type (fits_in_64 a_ty)) x y)))
3301
+ (let ((size OperandSize (raw_operand_size_of_type a_ty))
3302
+ (gpr_c Gpr (put_in_gpr c)))
3303
+ (with_flags (x64_test size gpr_c gpr_c) (cmove_from_values ty (CC.NZ) x y))))
3304
+
3305
+ (rule -2 (lower (has_type ty (select_spectre_guard c @ (value_type $I128) x y)))
3306
+ (let ((cond_result IcmpCondResult (cmp_zero_i128 (CC.Z) c)))
3307
+ (select_icmp cond_result x y)))
3308
+
3309
+ ;; Rules for `fcvt_from_sint` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3310
+
3311
+ (rule 2 (lower (has_type $F32 (fcvt_from_sint a @ (value_type $I8))))
3312
+ (x64_cvtsi2ss $I32 (extend_to_gpr a $I32 (ExtendKind.Sign))))
3313
+
3314
+ (rule 2 (lower (has_type $F32 (fcvt_from_sint a @ (value_type $I16))))
3315
+ (x64_cvtsi2ss $I32 (extend_to_gpr a $I32 (ExtendKind.Sign))))
3316
+
3317
+ (rule 1 (lower (has_type $F32 (fcvt_from_sint a @ (value_type (ty_int (fits_in_64 ty))))))
3318
+ (x64_cvtsi2ss ty a))
3319
+
3320
+ (rule 2 (lower (has_type $F64 (fcvt_from_sint a @ (value_type $I8))))
3321
+ (x64_cvtsi2sd $I32 (extend_to_gpr a $I32 (ExtendKind.Sign))))
3322
+
3323
+ (rule 2 (lower (has_type $F64 (fcvt_from_sint a @ (value_type $I16))))
3324
+ (x64_cvtsi2sd $I32 (extend_to_gpr a $I32 (ExtendKind.Sign))))
3325
+
3326
+ (rule 1 (lower (has_type $F64 (fcvt_from_sint a @ (value_type (ty_int (fits_in_64 ty))))))
3327
+ (x64_cvtsi2sd ty a))
3328
+
3329
+ (rule 0 (lower (fcvt_from_sint a @ (value_type $I32X4)))
3330
+ (x64_cvtdq2ps a))
3331
+
3332
+ (rule 1 (lower (has_type $F64X2 (fcvt_from_sint (swiden_low a @ (value_type $I32X4)))))
3333
+ (x64_cvtdq2pd a))
3334
+
3335
+ ;; Rules for `fcvt_from_uint` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3336
+
3337
+ (rule 1 (lower (has_type $F32 (fcvt_from_uint val @ (value_type (fits_in_32 (ty_int ty))))))
3338
+ (x64_cvtsi2ss $I64 (extend_to_gpr val $I64 (ExtendKind.Zero))))
3339
+
3340
+ (rule 1 (lower (has_type $F64 (fcvt_from_uint val @ (value_type (fits_in_32 (ty_int ty))))))
3341
+ (x64_cvtsi2sd $I64 (extend_to_gpr val $I64 (ExtendKind.Zero))))
3342
+
3343
+ (rule (lower (has_type ty (fcvt_from_uint val @ (value_type $I64))))
3344
+ (cvt_u64_to_float_seq ty val))
3345
+
3346
+ ;; Algorithm uses unpcklps to help create a float that is equivalent
3347
+ ;; 0x1.0p52 + double(src). 0x1.0p52 is unique because at this exponent
3348
+ ;; every value of the mantissa represents a corresponding uint32 number.
3349
+ ;; When we subtract 0x1.0p52 we are left with double(src).
3350
+ (rule 1 (lower (has_type $F64X2 (fcvt_from_uint (uwiden_low val @ (value_type $I32X4)))))
3351
+ (let ((uint_mask XmmMem (emit_u128_le_const 0x43300000_43300000))
3352
+ (res Xmm (x64_unpcklps val uint_mask))
3353
+ (uint_mask_high XmmMem (emit_u128_le_const 0x4330000000000000_4330000000000000)))
3354
+ (x64_subpd res uint_mask_high)))
3355
+
3356
+ ;; When AVX512VL and AVX512F are available,
3357
+ ;; `fcvt_from_uint` can be lowered to a single instruction.
3358
+ (rule 2 (lower (has_type $F32X4 (fcvt_from_uint src)))
3359
+ (if-let $true (use_avx512vl))
3360
+ (if-let $true (use_avx512f))
3361
+ (x64_vcvtudq2ps src))
3362
+
3363
+ ;; Converting packed unsigned integers to packed floats
3364
+ ;; requires a few steps. There is no single instruction
3365
+ ;; lowering for converting unsigned floats but there is for
3366
+ ;; converting packed signed integers to float (cvtdq2ps). In
3367
+ ;; the steps below we isolate the upper half (16 bits) and
3368
+ ;; lower half (16 bits) of each lane and then we convert
3369
+ ;; each half separately using cvtdq2ps meant for signed
3370
+ ;; integers. In order for this to work for the upper half
3371
+ ;; bits we must shift right by 1 (divide by 2) these bits in
3372
+ ;; order to ensure the most significant bit is 0 not signed,
3373
+ ;; and then after the conversion we double the value.
3374
+ ;; Finally we add the converted values where addition will
3375
+ ;; correctly round.
3376
+ ;;
3377
+ ;; Sequence:
3378
+ ;; -> A = 0xffffffff
3379
+ ;; -> Ah = 0xffff0000
3380
+ ;; -> Al = 0x0000ffff
3381
+ ;; -> Convert(Al) // Convert int to float
3382
+ ;; -> Ah = Ah >> 1 // Shift right 1 to assure Ah conversion isn't treated as signed
3383
+ ;; -> Convert(Ah) // Convert .. with no loss of significant digits from previous shift
3384
+ ;; -> Ah = Ah + Ah // Double Ah to account for shift right before the conversion.
3385
+ ;; -> dst = Ah + Al // Add the two floats together
3386
+ (rule 1 (lower (has_type $F32X4 (fcvt_from_uint val)))
3387
+ (let ((a Xmm val)
3388
+
3389
+ ;; get the low 16 bits
3390
+ (a_lo Xmm (x64_pslld a (xmi_imm 16)))
3391
+ (a_lo Xmm (x64_psrld a_lo (xmi_imm 16)))
3392
+
3393
+ ;; get the high 16 bits
3394
+ (a_hi Xmm (x64_psubd a a_lo))
3395
+
3396
+ ;; convert the low 16 bits
3397
+ (a_lo Xmm (x64_cvtdq2ps a_lo))
3398
+
3399
+ ;; shift the high bits by 1, convert, and double to get the correct
3400
+ ;; value
3401
+ (a_hi Xmm (x64_psrld a_hi (xmi_imm 1)))
3402
+ (a_hi Xmm (x64_cvtdq2ps a_hi))
3403
+ (a_hi Xmm (x64_addps a_hi a_hi)))
3404
+
3405
+ ;; add together the two converted values
3406
+ (x64_addps a_hi a_lo)))
3407
+
3408
+ ;; Rules for `fcvt_to_uint` and `fcvt_to_sint` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3409
+
3410
+ (rule (lower (has_type out_ty (fcvt_to_uint val @ (value_type (ty_scalar_float _)))))
3411
+ (cvt_float_to_uint_seq out_ty val $false))
3412
+
3413
+ (rule (lower (has_type out_ty (fcvt_to_uint_sat val @ (value_type (ty_scalar_float _)))))
3414
+ (cvt_float_to_uint_seq out_ty val $true))
3415
+
3416
+ (rule (lower (has_type out_ty (fcvt_to_sint val @ (value_type (ty_scalar_float _)))))
3417
+ (cvt_float_to_sint_seq out_ty val $false))
3418
+
3419
+ (rule (lower (has_type out_ty (fcvt_to_sint_sat val @ (value_type (ty_scalar_float _)))))
3420
+ (cvt_float_to_sint_seq out_ty val $true))
3421
+
3422
+ ;; The x64 backend currently only supports these two type combinations.
3423
+ (rule 1 (lower (has_type $I32X4 (fcvt_to_sint_sat val @ (value_type $F32X4))))
3424
+ (let ((src Xmm val)
3425
+
3426
+ ;; Sets tmp to zero if float is NaN
3427
+ (tmp Xmm (x64_cmpps src src (FcmpImm.Equal)))
3428
+ (dst Xmm (x64_andps src tmp))
3429
+
3430
+ ;; Sets top bit of tmp if float is positive
3431
+ ;; Setting up to set top bit on negative float values
3432
+ (tmp Xmm (x64_pxor tmp dst))
3433
+
3434
+ ;; Convert the packed float to packed doubleword.
3435
+ (dst Xmm (x64_cvttps2dq dst))
3436
+
3437
+ ;; Set top bit only if < 0
3438
+ (tmp Xmm (x64_pand dst tmp))
3439
+ (tmp Xmm (x64_psrad tmp (xmi_imm 31))))
3440
+
3441
+ ;; On overflow 0x80000000 is returned to a lane.
3442
+ ;; Below sets positive overflow lanes to 0x7FFFFFFF
3443
+ ;; Keeps negative overflow lanes as is.
3444
+ (x64_pxor tmp dst)))
3445
+
3446
+ ;; The algorithm for converting floats to unsigned ints is a little tricky. The
3447
+ ;; complication arises because we are converting from a signed 64-bit int with a positive
3448
+ ;; integer range from 1..INT_MAX (0x1..0x7FFFFFFF) to an unsigned integer with an extended
3449
+ ;; range from (INT_MAX+1)..UINT_MAX. It's this range from (INT_MAX+1)..UINT_MAX
3450
+ ;; (0x80000000..0xFFFFFFFF) that needs to be accounted for as a special case since our
3451
+ ;; conversion instruction (cvttps2dq) only converts as high as INT_MAX (0x7FFFFFFF), but
3452
+ ;; which conveniently setting underflows and overflows (smaller than MIN_INT or larger than
3453
+ ;; MAX_INT) to be INT_MAX+1 (0x80000000). Nothing that the range (INT_MAX+1)..UINT_MAX includes
3454
+ ;; precisely INT_MAX values we can correctly account for and convert every value in this range
3455
+ ;; if we simply subtract INT_MAX+1 before doing the cvttps2dq conversion. After the subtraction
3456
+ ;; every value originally (INT_MAX+1)..UINT_MAX is now the range (0..INT_MAX).
3457
+ ;; After the conversion we add INT_MAX+1 back to this converted value, noting again that
3458
+ ;; values we are trying to account for were already set to INT_MAX+1 during the original conversion.
3459
+ ;; We simply have to create a mask and make sure we are adding together only the lanes that need
3460
+ ;; to be accounted for. Digesting it all the steps then are:
3461
+ ;;
3462
+ ;; Step 1 - Account for NaN and negative floats by setting these src values to zero.
3463
+ ;; Step 2 - Make a copy (tmp1) of the src value since we need to convert twice for
3464
+ ;; reasons described above.
3465
+ ;; Step 3 - Convert the original src values. This will convert properly all floats up to INT_MAX
3466
+ ;; Step 4 - Subtract INT_MAX from the copy set (tmp1). Note, all zero and negative values are those
3467
+ ;; values that were originally in the range (0..INT_MAX). This will come in handy during
3468
+ ;; step 7 when we zero negative lanes.
3469
+ ;; Step 5 - Create a bit mask for tmp1 that will correspond to all lanes originally less than
3470
+ ;; UINT_MAX that are now less than INT_MAX thanks to the subtraction.
3471
+ ;; Step 6 - Convert the second set of values (tmp1)
3472
+ ;; Step 7 - Prep the converted second set by zeroing out negative lanes (these have already been
3473
+ ;; converted correctly with the first set) and by setting overflow lanes to 0x7FFFFFFF
3474
+ ;; as this will allow us to properly saturate overflow lanes when adding to 0x80000000
3475
+ ;; Step 8 - Add the orginal converted src and the converted tmp1 where float values originally less
3476
+ ;; than and equal to INT_MAX will be unchanged, float values originally between INT_MAX+1 and
3477
+ ;; UINT_MAX will add together (INT_MAX) + (SRC - INT_MAX), and float values originally
3478
+ ;; greater than UINT_MAX will be saturated to UINT_MAX (0xFFFFFFFF) after adding (0x8000000 + 0x7FFFFFFF).
3479
+ ;;
3480
+ ;;
3481
+ ;; The table below illustrates the result after each step where it matters for the converted set.
3482
+ ;; Note the original value range (original src set) is the final dst in Step 8:
3483
+ ;;
3484
+ ;; Original src set:
3485
+ ;; | Original Value Range | Step 1 | Step 3 | Step 8 |
3486
+ ;; | -FLT_MIN..FLT_MAX | 0.0..FLT_MAX | 0..INT_MAX(w/overflow) | 0..UINT_MAX(w/saturation) |
3487
+ ;;
3488
+ ;; Copied src set (tmp1):
3489
+ ;; | Step 2 | Step 4 |
3490
+ ;; | 0.0..FLT_MAX | (0.0-(INT_MAX+1))..(FLT_MAX-(INT_MAX+1)) |
3491
+ ;;
3492
+ ;; | Step 6 | Step 7 |
3493
+ ;; | (0-(INT_MAX+1))..(UINT_MAX-(INT_MAX+1))(w/overflow) | ((INT_MAX+1)-(INT_MAX+1))..(INT_MAX+1) |
3494
+ (rule 1 (lower (has_type $I32X4 (fcvt_to_uint_sat val @ (value_type $F32X4))))
3495
+ (let ((src Xmm val)
3496
+
3497
+ ;; Converting to unsigned int so if float src is negative or NaN
3498
+ ;; will first set to zero.
3499
+ (tmp2 Xmm (xmm_zero $F32X4))
3500
+ (dst Xmm (x64_maxps src tmp2))
3501
+
3502
+ ;; Set tmp2 to INT_MAX+1. It is important to note here that after it looks
3503
+ ;; like we are only converting INT_MAX (0x7FFFFFFF) but in fact because
3504
+ ;; single precision IEEE-754 floats can only accurately represent contingous
3505
+ ;; integers up to 2^23 and outside of this range it rounds to the closest
3506
+ ;; integer that it can represent. In the case of INT_MAX, this value gets
3507
+ ;; represented as 0x4f000000 which is the integer value (INT_MAX+1).
3508
+ (tmp2 Xmm (x64_pcmpeqd tmp2 tmp2))
3509
+ (tmp2 Xmm (x64_psrld tmp2 (xmi_imm 1)))
3510
+ (tmp2 Xmm (x64_cvtdq2ps tmp2))
3511
+
3512
+ ;; Make a copy of these lanes and then do the first conversion.
3513
+ ;; Overflow lanes greater than the maximum allowed signed value will
3514
+ ;; set to 0x80000000. Negative and NaN lanes will be 0x0
3515
+ (tmp1 Xmm dst)
3516
+ (dst Xmm (x64_cvttps2dq dst))
3517
+
3518
+ ;; Set lanes to src - max_signed_int
3519
+ (tmp1 Xmm (x64_subps tmp1 tmp2))
3520
+
3521
+ ;; Create mask for all positive lanes to saturate (i.e. greater than
3522
+ ;; or equal to the maxmimum allowable unsigned int).
3523
+ (tmp2 Xmm (x64_cmpps tmp2 tmp1 (FcmpImm.LessThanOrEqual)))
3524
+
3525
+ ;; Convert those set of lanes that have the max_signed_int factored out.
3526
+ (tmp1 Xmm (x64_cvttps2dq tmp1))
3527
+
3528
+ ;; Prepare converted lanes by zeroing negative lanes and prepping lanes
3529
+ ;; that have positive overflow (based on the mask) by setting these lanes
3530
+ ;; to 0x7FFFFFFF
3531
+ (tmp1 Xmm (x64_pxor tmp1 tmp2))
3532
+ (tmp2 Xmm (xmm_zero $I32X4))
3533
+ (tmp1 Xmm (lower_vec_smax $I32X4 tmp1 tmp2)))
3534
+
3535
+ ;; Add this second set of converted lanes to the original to properly handle
3536
+ ;; values greater than max signed int.
3537
+ (x64_paddd tmp1 dst)))
3538
+
3539
+ ;; Rules for `x86_cvtt2dq` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3540
+
3541
+ (rule (lower (has_type $I32X4 (x86_cvtt2dq val @ (value_type $F32X4))))
3542
+ (x64_cvttps2dq val))
3543
+
3544
+ ;; Rules for `iadd_pairwise` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3545
+
3546
+ (rule (lower (has_type $I8X16 (iadd_pairwise x y)))
3547
+ (let (
3548
+ ;; Shuffle all the even lanes of `x` and `y` into one register
3549
+ (even_lane_mask Xmm (x64_movdqu_load (emit_u128_le_const 0x00ff_00ff_00ff_00ff_00ff_00ff_00ff_00ff)))
3550
+ (x_evens Xmm (x64_pand x even_lane_mask))
3551
+ (y_evens Xmm (x64_pand y even_lane_mask))
3552
+ (evens Xmm (x64_packuswb x_evens y_evens))
3553
+
3554
+ ;; Shuffle all the odd lanes of `x` and `y` into one register
3555
+ (x_odds Xmm (x64_psrlw x (xmi_imm 8)))
3556
+ (y_odds Xmm (x64_psrlw y (xmi_imm 8)))
3557
+ (odds Xmm (x64_packuswb x_odds y_odds))
3558
+ )
3559
+ (x64_paddb evens odds)))
3560
+
3561
+
3562
+ (rule 1 (lower (has_type $I16X8 (iadd_pairwise x y)))
3563
+ (if-let $true (use_ssse3))
3564
+ (x64_phaddw x y))
3565
+
3566
+ (rule (lower (has_type $I16X8 (iadd_pairwise x y)))
3567
+ (let (
3568
+ (x Xmm x)
3569
+ (y Xmm y)
3570
+
3571
+ ;; Shuffle the even-numbered 16-bit lanes into low four lanes of each
3572
+ ;; vector by shuffling 16-bit lanes then shuffling 32-bit lanes.
3573
+ ;; With these in place generate a new vector from the two low 64-bits
3574
+ ;; of each vector (the low four 16-bit lanes).
3575
+ ;;
3576
+ ;; 0xe8 == 0b11_10_10_00
3577
+ (x_evens Xmm (x64_pshufd (x64_pshufhw (x64_pshuflw x 0xe8) 0xe8) 0xe8))
3578
+ (y_evens Xmm (x64_pshufd (x64_pshufhw (x64_pshuflw y 0xe8) 0xe8) 0xe8))
3579
+ (evens Xmm (x64_punpcklqdq x_evens y_evens))
3580
+
3581
+ ;; Shuffle the odd-numbered 16-bit lanes into the low 8 lanes by
3582
+ ;; performing `sshr` operation on 32-bit lanes, effectively moving the
3583
+ ;; odd lanes into even lanes while leaving their sign bits in the
3584
+ ;; odd lanes. The `packssdw` instruction then conveniently will
3585
+ ;; put everything into one vector for us.
3586
+ (x_shifted Xmm (x64_psrad x (xmi_imm 16)))
3587
+ (y_shifted Xmm (x64_psrad y (xmi_imm 16)))
3588
+ (odds Xmm (x64_packssdw x_shifted y_shifted))
3589
+ )
3590
+ (x64_paddw evens odds)))
3591
+
3592
+ (rule 1 (lower (has_type $I32X4 (iadd_pairwise x y)))
3593
+ (if-let $true (use_ssse3))
3594
+ (x64_phaddd x y))
3595
+
3596
+ (rule (lower (has_type $I32X4 (iadd_pairwise x y)))
3597
+ (let (
3598
+ (x Xmm x)
3599
+ (y Xmm y)
3600
+ ;; evens = [ x[0] x[2] y[0] y[2] ]
3601
+ (evens Xmm (x64_shufps x y 0b10_00_10_00))
3602
+ ;; odds = [ x[1] x[3] y[1] y[3] ]
3603
+ (odds Xmm (x64_shufps x y 0b11_01_11_01))
3604
+ )
3605
+ (x64_paddd evens odds)))
3606
+
3607
+ ;; special case for the `i16x8.extadd_pairwise_i8x16_s` wasm instruction
3608
+ (rule 2 (lower
3609
+ (has_type $I16X8 (iadd_pairwise
3610
+ (swiden_low val @ (value_type $I8X16))
3611
+ (swiden_high val))))
3612
+ (if-let $true (use_ssse3))
3613
+ (let ((mul_const Xmm (x64_xmm_load_const $I8X16
3614
+ (emit_u128_le_const 0x01010101010101010101010101010101))))
3615
+ (x64_pmaddubsw mul_const val)))
3616
+
3617
+ ;; special case for the `i32x4.extadd_pairwise_i16x8_s` wasm instruction
3618
+ (rule 2 (lower
3619
+ (has_type $I32X4 (iadd_pairwise
3620
+ (swiden_low val @ (value_type $I16X8))
3621
+ (swiden_high val))))
3622
+ (let ((mul_const XmmMem (emit_u128_le_const 0x0001_0001_0001_0001_0001_0001_0001_0001)))
3623
+ (x64_pmaddwd val mul_const)))
3624
+
3625
+ ;; special case for the `i16x8.extadd_pairwise_i8x16_u` wasm instruction
3626
+ (rule 2 (lower
3627
+ (has_type $I16X8 (iadd_pairwise
3628
+ (uwiden_low val @ (value_type $I8X16))
3629
+ (uwiden_high val))))
3630
+ (if-let $true (use_ssse3))
3631
+ (let ((mul_const XmmMem (emit_u128_le_const 0x01010101010101010101010101010101)))
3632
+ (x64_pmaddubsw val mul_const)))
3633
+
3634
+ ;; special case for the `i32x4.extadd_pairwise_i16x8_u` wasm instruction
3635
+ (rule 2 (lower
3636
+ (has_type $I32X4 (iadd_pairwise
3637
+ (uwiden_low val @ (value_type $I16X8))
3638
+ (uwiden_high val))))
3639
+ (let ((xor_const XmmMem (emit_u128_le_const 0x8000_8000_8000_8000_8000_8000_8000_8000))
3640
+ (dst Xmm (x64_pxor val xor_const))
3641
+
3642
+ (madd_const XmmMem (emit_u128_le_const 0x0001_0001_0001_0001_0001_0001_0001_0001))
3643
+ (dst Xmm (x64_pmaddwd dst madd_const))
3644
+
3645
+ (addd_const XmmMem (emit_u128_le_const 0x00010000_00010000_00010000_00010000)))
3646
+ (x64_paddd dst addd_const)))
3647
+
3648
+ ;; special case for the `i32x4.dot_i16x8_s` wasm instruction
3649
+ (rule 2 (lower
3650
+ (has_type $I32X4 (iadd_pairwise
3651
+ (imul (swiden_low x) (swiden_low y))
3652
+ (imul (swiden_high x) (swiden_high y)))))
3653
+ (x64_pmaddwd x y))
3654
+
3655
+ ;; Rules for `swiden_low` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3656
+
3657
+ ;; With SSE4.1 use the `pmovsx*` instructions for this
3658
+ (rule 1 (lower (has_type $I16X8 (swiden_low val @ (value_type $I8X16))))
3659
+ (if-let $true (use_sse41))
3660
+ (x64_pmovsxbw val))
3661
+ (rule 1 (lower (has_type $I32X4 (swiden_low val @ (value_type $I16X8))))
3662
+ (if-let $true (use_sse41))
3663
+ (x64_pmovsxwd val))
3664
+ (rule 1 (lower (has_type $I64X2 (swiden_low val @ (value_type $I32X4))))
3665
+ (if-let $true (use_sse41))
3666
+ (x64_pmovsxdq val))
3667
+
3668
+ (rule (lower (has_type ty (swiden_low val))) (lower_swiden_low ty val))
3669
+
3670
+ (decl lower_swiden_low (Type Xmm) Xmm)
3671
+
3672
+ ;; Duplicate the low lanes next to each other, then perform a wider shift-right
3673
+ ;; by the low lane width to move the upper of each pair back into the lower lane
3674
+ ;; of each pair, achieving the widening of the lower lanes.
3675
+ (rule (lower_swiden_low $I16X8 val)
3676
+ (x64_psraw (x64_punpcklbw val val) (xmi_imm 8)))
3677
+ (rule (lower_swiden_low $I32X4 val)
3678
+ (x64_psrad (x64_punpcklwd val val) (xmi_imm 16)))
3679
+
3680
+ ;; Generate the sign-extended halves with a `val < 0` comparison (expressed
3681
+ ;; reversed here), then interleave the low 32-bit halves to create the full
3682
+ ;; 64-bit results.
3683
+ (rule (lower_swiden_low $I64X2 val)
3684
+ (let ((tmp Xmm (x64_pcmpgtd (xmm_zero $I32X4) val)))
3685
+ (x64_punpckldq val tmp)))
3686
+
3687
+ ;; Rules for `swiden_high` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3688
+
3689
+ ;; Similar to `swiden_low` with SSE4.1 except that the upper lanes are moved
3690
+ ;; to the lower lanes first.
3691
+ (rule 1 (lower (has_type $I16X8 (swiden_high val @ (value_type $I8X16))))
3692
+ (if-let $true (use_sse41))
3693
+ (if-let $true (use_ssse3))
3694
+ (let ((x Xmm val))
3695
+ (x64_pmovsxbw (x64_palignr x x 8))))
3696
+ (rule 1 (lower (has_type $I32X4 (swiden_high val @ (value_type $I16X8))))
3697
+ (if-let $true (use_sse41))
3698
+ (if-let $true (use_ssse3))
3699
+ (let ((x Xmm val))
3700
+ (x64_pmovsxwd (x64_palignr x x 8))))
3701
+ (rule 1 (lower (has_type $I64X2 (swiden_high val @ (value_type $I32X4))))
3702
+ (if-let $true (use_sse41))
3703
+ (x64_pmovsxdq (x64_pshufd val 0b11_10_11_10)))
3704
+
3705
+ ;; Similar to `swiden_low` versions but using `punpckh*` instructions to
3706
+ ;; pair the high lanes next to each other.
3707
+ (rule (lower (has_type $I16X8 (swiden_high val @ (value_type $I8X16))))
3708
+ (let ((val Xmm val))
3709
+ (x64_psraw (x64_punpckhbw val val) (xmi_imm 8))))
3710
+ (rule (lower (has_type $I32X4 (swiden_high val @ (value_type $I16X8))))
3711
+ (let ((val Xmm val))
3712
+ (x64_psrad (x64_punpckhwd val val) (xmi_imm 16))))
3713
+
3714
+ ;; Same as `swiden_low`, but `val` has its high lanes moved down.
3715
+ (rule (lower (has_type $I64X2 (swiden_high val @ (value_type $I32X4))))
3716
+ (let ((val Xmm (x64_pshufd val 0b00_00_11_10))
3717
+ (tmp Xmm (x64_pcmpgtd (xmm_zero $I32X4) val)))
3718
+ (x64_punpckldq val tmp)))
3719
+
3720
+ ;; Rules for `uwiden_low` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3721
+
3722
+ ;; With SSE4.1 use the `pmovzx*` instructions for this
3723
+ (rule 1 (lower (has_type $I16X8 (uwiden_low val @ (value_type $I8X16))))
3724
+ (if-let $true (use_sse41))
3725
+ (x64_pmovzxbw val))
3726
+ (rule 1 (lower (has_type $I32X4 (uwiden_low val @ (value_type $I16X8))))
3727
+ (if-let $true (use_sse41))
3728
+ (x64_pmovzxwd val))
3729
+ (rule 1 (lower (has_type $I64X2 (uwiden_low val @ (value_type $I32X4))))
3730
+ (if-let $true (use_sse41))
3731
+ (x64_pmovzxdq val))
3732
+
3733
+ (rule (lower (has_type ty (uwiden_low val))) (lower_uwiden_low ty val))
3734
+
3735
+ ;; Interleave an all-zero register with the low lanes to produce zero-extended
3736
+ ;; results.
3737
+ (decl lower_uwiden_low (Type Xmm) Xmm)
3738
+ (rule (lower_uwiden_low $I16X8 val) (x64_punpcklbw val (xmm_zero $I8X16)))
3739
+ (rule (lower_uwiden_low $I32X4 val) (x64_punpcklwd val (xmm_zero $I8X16)))
3740
+ (rule (lower_uwiden_low $I64X2 val) (x64_unpcklps val (xmm_zero $F32X4)))
3741
+
3742
+ ;; Rules for `uwiden_high` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3743
+
3744
+ ;; Same as `uwiden_high`, but interleaving high lanes instead.
3745
+ ;;
3746
+ ;; Note that according to `llvm-mca` at least these instructions are faster
3747
+ ;; than using `pmovzx*` in terms of cycles, even if SSE4.1 is available.
3748
+ (rule (lower (has_type $I16X8 (uwiden_high val @ (value_type $I8X16))))
3749
+ (x64_punpckhbw val (xmm_zero $I8X16)))
3750
+ (rule (lower (has_type $I32X4 (uwiden_high val @ (value_type $I16X8))))
3751
+ (x64_punpckhwd val (xmm_zero $I8X16)))
3752
+ (rule (lower (has_type $I64X2 (uwiden_high val @ (value_type $I32X4))))
3753
+ (x64_unpckhps val (xmm_zero $F32X4)))
3754
+
3755
+ ;; Rules for `snarrow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3756
+
3757
+ (rule (lower (has_type $I8X16 (snarrow a @ (value_type $I16X8) b)))
3758
+ (x64_packsswb a b))
3759
+
3760
+ (rule (lower (has_type $I16X8 (snarrow a @ (value_type $I32X4) b)))
3761
+ (x64_packssdw a b))
3762
+
3763
+ ;; We're missing a `snarrow` case for $I64X2
3764
+ ;; https://github.com/bytecodealliance/wasmtime/issues/4734
3765
+
3766
+ ;; This rule is a special case for handling the translation of the wasm op
3767
+ ;; `i32x4.trunc_sat_f64x2_s_zero`. It can be removed once we have an
3768
+ ;; implementation of `snarrow` for `I64X2`.
3769
+ (rule (lower (has_type $I32X4 (snarrow (has_type $I64X2 (fcvt_to_sint_sat val))
3770
+ (vconst (u128_from_constant 0)))))
3771
+ (let ((a Xmm val)
3772
+
3773
+ ;; y = i32x4.trunc_sat_f64x2_s_zero(x) is lowered to:
3774
+ ;; MOVE xmm_tmp, xmm_x
3775
+ ;; CMPEQPD xmm_tmp, xmm_x
3776
+ ;; MOVE xmm_y, xmm_x
3777
+ ;; ANDPS xmm_tmp, [wasm_f64x2_splat(2147483647.0)]
3778
+ ;; MINPD xmm_y, xmm_tmp
3779
+ ;; CVTTPD2DQ xmm_y, xmm_y
3780
+
3781
+ (tmp1 Xmm (x64_cmppd a a (FcmpImm.Equal)))
3782
+
3783
+ ;; 2147483647.0 is equivalent to 0x41DFFFFFFFC00000
3784
+ (umax_mask XmmMem (emit_u128_le_const 0x41DFFFFFFFC00000_41DFFFFFFFC00000))
3785
+
3786
+ ;; ANDPD xmm_y, [wasm_f64x2_splat(2147483647.0)]
3787
+ (tmp1 Xmm (x64_andps tmp1 umax_mask))
3788
+ (dst Xmm (x64_minpd a tmp1)))
3789
+ (x64_cvttpd2dq dst)))
3790
+
3791
+ ;; This rule is a special case for handling the translation of the wasm op
3792
+ ;; `i32x4.relaxed_trunc_f64x2_s_zero`.
3793
+ (rule (lower (has_type $I32X4 (snarrow (has_type $I64X2 (x86_cvtt2dq val))
3794
+ (vconst (u128_from_constant 0)))))
3795
+ (x64_cvttpd2dq val))
3796
+
3797
+ ;; Rules for `unarrow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3798
+
3799
+ (rule (lower (has_type $I8X16 (unarrow a @ (value_type $I16X8) b)))
3800
+ (x64_packuswb a b))
3801
+
3802
+ (rule 1 (lower (has_type $I16X8 (unarrow a @ (value_type $I32X4) b)))
3803
+ (if-let $true (use_sse41))
3804
+ (x64_packusdw a b))
3805
+
3806
+ ;; For each input `a` and `b` take the four 32-bit lanes and compress them to
3807
+ ;; the low 64-bits of the vector as four 16-bit lanes. Then these are woven
3808
+ ;; into one final vector with a `punpcklqdq`.
3809
+ ;;
3810
+ ;; If this is performance sensitive then it's probably best to upgrade the CPU
3811
+ ;; to get the above single-instruction lowering.
3812
+ (rule (lower (has_type $I16X8 (unarrow a @ (value_type $I32X4) b)))
3813
+ (let (
3814
+ (a Xmm (unarrow_i32x4_lanes_to_low_u16_lanes a))
3815
+ (b Xmm (unarrow_i32x4_lanes_to_low_u16_lanes b))
3816
+ )
3817
+ (x64_punpcklqdq a b)))
3818
+
3819
+ (decl unarrow_i32x4_lanes_to_low_u16_lanes (Xmm) Xmm)
3820
+ (rule (unarrow_i32x4_lanes_to_low_u16_lanes val)
3821
+ (let (
3822
+ ;; First convert all negative values in `val` to zero lanes.
3823
+ (val_gt_zero Xmm (x64_pcmpgtd val (xmm_zero $I32X4)))
3824
+ (val Xmm (x64_pand val val_gt_zero))
3825
+
3826
+ ;; Next clamp all larger-than-u16-max lanes to u16::MAX.
3827
+ (max Xmm (x64_movdqu_load (emit_u128_le_const 0x0000ffff_0000ffff_0000ffff_0000ffff)))
3828
+ (cmp Xmm (x64_pcmpgtd max val))
3829
+ (valid_lanes Xmm (x64_pand val cmp))
3830
+ (clamped_lanes Xmm (x64_pandn cmp max))
3831
+ (val Xmm (x64_por valid_lanes clamped_lanes))
3832
+
3833
+ ;; Within each 64-bit half of the 32x4 vector move the first 16 bits
3834
+ ;; and the third 16 bits to the bottom of the half. Afterwards
3835
+ ;; for the 32x4 vector move the first and third lanes to the bottom
3836
+ ;; lanes, which finishes up the conversion here as all the lanes
3837
+ ;; are now converted to 16-bit values in the low 4 lanes.
3838
+ (val Xmm (x64_pshuflw val 0b00_00_10_00))
3839
+ (val Xmm (x64_pshufhw val 0b00_00_10_00))
3840
+ )
3841
+ (x64_pshufd val 0b00_00_10_00)))
3842
+
3843
+
3844
+ ;; We're missing a `unarrow` case for $I64X2
3845
+ ;; https://github.com/bytecodealliance/wasmtime/issues/4734
3846
+
3847
+ ;; Rules for `bitcast` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3848
+
3849
+ (rule (lower (has_type $I32 (bitcast _ src @ (value_type $F32))))
3850
+ (bitcast_xmm_to_gpr $F32 src))
3851
+
3852
+ (rule (lower (has_type $F32 (bitcast _ src @ (value_type $I32))))
3853
+ (bitcast_gpr_to_xmm $I32 src))
3854
+
3855
+ (rule (lower (has_type $I64 (bitcast _ src @ (value_type $F64))))
3856
+ (bitcast_xmm_to_gpr $F64 src))
3857
+
3858
+ (rule (lower (has_type $F64 (bitcast _ src @ (value_type $I64))))
3859
+ (bitcast_gpr_to_xmm $I64 src))
3860
+
3861
+ ;; Bitcast between types residing in GPR registers is a no-op.
3862
+ (rule 1 (lower (has_type (is_gpr_type _)
3863
+ (bitcast _ x @ (value_type (is_gpr_type _))))) x)
3864
+
3865
+ ;; Bitcast between types residing in XMM registers is a no-op.
3866
+ (rule 2 (lower (has_type (is_xmm_type _)
3867
+ (bitcast _ x @ (value_type (is_xmm_type _))))) x)
3868
+
3869
+ ;; Rules for `fcopysign` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3870
+
3871
+ (rule (lower (has_type $F32 (fcopysign a @ (value_type $F32) b)))
3872
+ (let ((sign_bit Xmm (imm $F32 0x80000000)))
3873
+ (x64_orps
3874
+ (x64_andnps sign_bit a)
3875
+ (x64_andps sign_bit b))))
3876
+
3877
+ (rule (lower (has_type $F64 (fcopysign a @ (value_type $F64) b)))
3878
+ (let ((sign_bit Xmm (imm $F64 0x8000000000000000)))
3879
+ (x64_orpd
3880
+ (x64_andnpd sign_bit a)
3881
+ (x64_andpd sign_bit b))))
3882
+
3883
+ ;; Helper for the `ceil`/`floor`/`nearest`/`trunc` instructions ;;;;;;;;;;;;;;;;
3884
+
3885
+ ;; Emits either a `round{ss,sd,ps,pd}` instruction, as appropriate, or generates
3886
+ ;; the appropriate libcall and sequence to call that.
3887
+ (decl x64_round (Type RegMem RoundImm) Xmm)
3888
+ (rule 1 (x64_round $F32 a imm)
3889
+ (if-let $true (use_sse41))
3890
+ (x64_roundss a imm))
3891
+ (rule 1 (x64_round $F64 a imm)
3892
+ (if-let $true (use_sse41))
3893
+ (x64_roundsd a imm))
3894
+ (rule 1 (x64_round $F32X4 a imm)
3895
+ (if-let $true (use_sse41))
3896
+ (x64_roundps a imm))
3897
+ (rule 1 (x64_round $F64X2 a imm)
3898
+ (if-let $true (use_sse41))
3899
+ (x64_roundpd a imm))
3900
+
3901
+ (rule (x64_round $F32 (RegMem.Reg a) imm) (libcall_1 (round_libcall $F32 imm) a))
3902
+ (rule (x64_round $F64 (RegMem.Reg a) imm) (libcall_1 (round_libcall $F64 imm) a))
3903
+ (rule (x64_round $F32X4 (RegMem.Reg a) imm)
3904
+ (let (
3905
+ (libcall LibCall (round_libcall $F32 imm))
3906
+ (result Xmm (libcall_1 libcall a))
3907
+ (a1 Xmm (libcall_1 libcall (x64_pshufd a 1)))
3908
+ (result Xmm (vec_insert_lane $F32X4 result a1 1))
3909
+ (a2 Xmm (libcall_1 libcall (x64_pshufd a 2)))
3910
+ (result Xmm (vec_insert_lane $F32X4 result a2 2))
3911
+ (a3 Xmm (libcall_1 libcall (x64_pshufd a 3)))
3912
+ (result Xmm (vec_insert_lane $F32X4 result a3 3))
3913
+ )
3914
+ result))
3915
+ (rule (x64_round $F64X2 (RegMem.Reg a) imm)
3916
+ (let (
3917
+ (libcall LibCall (round_libcall $F64 imm))
3918
+ (result Xmm (libcall_1 libcall a))
3919
+ (a1 Xmm (libcall_1 libcall (x64_pshufd a 0b00_00_11_10)))
3920
+ (result Xmm (vec_insert_lane $F64X2 result a1 1))
3921
+ )
3922
+ result))
3923
+ (rule (x64_round ty (RegMem.Mem addr) imm)
3924
+ (x64_round ty (RegMem.Reg (x64_load ty addr (ExtKind.ZeroExtend))) imm))
3925
+
3926
+ (decl round_libcall (Type RoundImm) LibCall)
3927
+ (rule (round_libcall $F32 (RoundImm.RoundUp)) (LibCall.CeilF32))
3928
+ (rule (round_libcall $F64 (RoundImm.RoundUp)) (LibCall.CeilF64))
3929
+ (rule (round_libcall $F32 (RoundImm.RoundDown)) (LibCall.FloorF32))
3930
+ (rule (round_libcall $F64 (RoundImm.RoundDown)) (LibCall.FloorF64))
3931
+ (rule (round_libcall $F32 (RoundImm.RoundNearest)) (LibCall.NearestF32))
3932
+ (rule (round_libcall $F64 (RoundImm.RoundNearest)) (LibCall.NearestF64))
3933
+ (rule (round_libcall $F32 (RoundImm.RoundZero)) (LibCall.TruncF32))
3934
+ (rule (round_libcall $F64 (RoundImm.RoundZero)) (LibCall.TruncF64))
3935
+
3936
+ ;; Rules for `ceil` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3937
+
3938
+ (rule (lower (ceil a @ (value_type ty)))
3939
+ (x64_round ty a (RoundImm.RoundUp)))
3940
+
3941
+ ;; Rules for `floor` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3942
+
3943
+ (rule (lower (floor a @ (value_type ty)))
3944
+ (x64_round ty a (RoundImm.RoundDown)))
3945
+
3946
+ ;; Rules for `nearest` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3947
+
3948
+ (rule (lower (nearest a @ (value_type ty)))
3949
+ (x64_round ty a (RoundImm.RoundNearest)))
3950
+
3951
+ ;; Rules for `trunc` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3952
+
3953
+ (rule (lower (trunc a @ (value_type ty)))
3954
+ (x64_round ty a (RoundImm.RoundZero)))
3955
+
3956
+ ;; Rules for `stack_addr` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3957
+
3958
+ (rule (lower (stack_addr stack_slot offset))
3959
+ (stack_addr_impl stack_slot offset))
3960
+
3961
+ ;; Rules for `udiv` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3962
+
3963
+ ;; NB: a `RegMem` divisor, while allowed in the instruction encoding, isn't
3964
+ ;; used right now to prevent a possibly-trapping load getting folded into the
3965
+ ;; `div` instruction. Ideally non-trapping loads would get folded, however, or
3966
+ ;; alternatively Wasmtime/Cranelift would grow support for multiple traps on
3967
+ ;; a single opcode and the signal kind would differentiate at runtime.
3968
+
3969
+ ;; The inputs to the `div` instruction are different for 8-bit division so
3970
+ ;; it needs a special case here since the instruction being crafted has a
3971
+ ;; different shape.
3972
+ (rule 2 (lower (udiv a @ (value_type $I8) b))
3973
+ (x64_div8 (extend_to_gpr a $I32 (ExtendKind.Zero))
3974
+ (put_in_gpr b)
3975
+ (DivSignedness.Unsigned)
3976
+ (TrapCode.IntegerDivisionByZero)))
3977
+
3978
+ ;; 16-to-64-bit division is all done with a similar instruction and the only
3979
+ ;; tricky requirement here is that when div traps are disallowed the divisor
3980
+ ;; must not be zero.
3981
+ (rule 1 (lower (udiv a @ (value_type (fits_in_64 ty)) b))
3982
+ (x64_div_quotient a
3983
+ (imm $I64 0)
3984
+ (put_in_gpr b)
3985
+ (raw_operand_size_of_type ty)
3986
+ (DivSignedness.Unsigned)
3987
+ (TrapCode.IntegerDivisionByZero)))
3988
+
3989
+ ;; Rules for `sdiv` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3990
+
3991
+ (rule 2 (lower (sdiv a @ (value_type $I8) b))
3992
+ (x64_div8 (x64_sign_extend_data a (OperandSize.Size8))
3993
+ (nonzero_sdiv_divisor $I8 b)
3994
+ (DivSignedness.Signed)
3995
+ (TrapCode.IntegerOverflow)))
3996
+
3997
+ (rule 1 (lower (sdiv a @ (value_type (fits_in_64 ty)) b))
3998
+ (let (
3999
+ (a Gpr a)
4000
+ (size OperandSize (raw_operand_size_of_type ty))
4001
+ )
4002
+ (x64_div_quotient a
4003
+ (x64_sign_extend_data a size)
4004
+ (nonzero_sdiv_divisor ty b)
4005
+ size
4006
+ (DivSignedness.Signed)
4007
+ (TrapCode.IntegerOverflow))))
4008
+
4009
+ ;; Checks to make sure that the input `Value` is a non-zero value for `sdiv`.
4010
+ ;;
4011
+ ;; This is required to differentiate the divide-by-zero trap from the
4012
+ ;; integer-overflow trap, the two trapping conditions of signed division.
4013
+ (decl nonzero_sdiv_divisor (Type Value) Reg)
4014
+ (rule 1 (nonzero_sdiv_divisor ty (iconst imm))
4015
+ (if-let n (safe_divisor_from_imm64 ty imm))
4016
+ (imm ty n))
4017
+ (rule 0 (nonzero_sdiv_divisor ty val)
4018
+ (let (
4019
+ (val Reg val)
4020
+ (_ InstOutput (side_effect (with_flags_side_effect
4021
+ (x64_test (raw_operand_size_of_type ty) val val)
4022
+ (trap_if (CC.Z) (TrapCode.IntegerDivisionByZero)))))
4023
+ )
4024
+ val))
4025
+
4026
+ ;; Rules for `urem` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4027
+
4028
+ ;; The remainder is in AH, so take the result of the division and right-shift
4029
+ ;; by 8.
4030
+ (rule 2 (lower (urem a @ (value_type $I8) b))
4031
+ (let (
4032
+ (result Gpr (x64_div8 (extend_to_gpr a $I32 (ExtendKind.Zero))
4033
+ (put_in_gpr b) ;; see `udiv` for why not `gpr_mem`
4034
+ (DivSignedness.Unsigned)
4035
+ (TrapCode.IntegerDivisionByZero)))
4036
+ )
4037
+ (x64_shr $I64 result (Imm8Reg.Imm8 8))))
4038
+
4039
+ (rule 1 (lower (urem a @ (value_type (fits_in_64 ty)) b))
4040
+ (x64_div_remainder a
4041
+ (imm $I64 0)
4042
+ (put_in_gpr b) ;; see `udiv` for why not `gpr_mem`
4043
+ (raw_operand_size_of_type ty)
4044
+ (DivSignedness.Unsigned)
4045
+ (TrapCode.IntegerDivisionByZero)))
4046
+
4047
+ ;; Rules for `srem` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4048
+
4049
+ ;; Special-cases first for constant `srem` where the checks for 0 and -1 aren't
4050
+ ;; applicable.
4051
+ ;;
4052
+ ;; Note that like `urem` for i8 types the result is in AH so to get the result
4053
+ ;; it's right-shifted down.
4054
+ (rule 3 (lower (srem a @ (value_type $I8) (iconst imm)))
4055
+ (if-let n (safe_divisor_from_imm64 $I8 imm))
4056
+ (let (
4057
+ (a Gpr (x64_sign_extend_data a (OperandSize.Size8)))
4058
+ (result Gpr (x64_div8 a (imm $I8 n) (DivSignedness.Signed) (TrapCode.IntegerDivisionByZero)))
4059
+ )
4060
+ (x64_shr $I64 result (Imm8Reg.Imm8 8))))
4061
+
4062
+ ;; Same as the above rule but for 16-to-64 bit types.
4063
+ (rule 2 (lower (srem a @ (value_type ty) (iconst imm)))
4064
+ (if-let n (safe_divisor_from_imm64 ty imm))
4065
+ (let (
4066
+ (a Gpr a)
4067
+ (size OperandSize (raw_operand_size_of_type ty))
4068
+ )
4069
+ (x64_div_remainder a
4070
+ (x64_sign_extend_data a size)
4071
+ (imm ty n)
4072
+ size
4073
+ (DivSignedness.Signed)
4074
+ (TrapCode.IntegerDivisionByZero))))
4075
+
4076
+ (rule 1 (lower (srem a @ (value_type $I8) b))
4077
+ (let (
4078
+ (a Gpr (x64_sign_extend_data a (OperandSize.Size8)))
4079
+ )
4080
+ (x64_shr $I64 (x64_checked_srem_seq8 a b) (Imm8Reg.Imm8 8))))
4081
+
4082
+ (rule (lower (srem a @ (value_type ty) b))
4083
+ (let (
4084
+ (a Gpr a)
4085
+ (size OperandSize (raw_operand_size_of_type ty))
4086
+ (hi Gpr (x64_sign_extend_data a size))
4087
+ (tmp ValueRegs (x64_checked_srem_seq size a hi b))
4088
+ )
4089
+ (value_regs_get tmp 1)))
4090
+
4091
+ ;; Rules for `umulhi` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4092
+
4093
+ (rule (lower (umulhi a @ (value_type $I16) b))
4094
+ (let ((res ValueRegs (mul_hi $I16 $false a b))
4095
+ (hi Gpr (value_regs_get_gpr res 1)))
4096
+ hi))
4097
+
4098
+ (rule (lower (umulhi a @ (value_type $I32) b))
4099
+ (let ((res ValueRegs (mul_hi $I32 $false a b))
4100
+ (hi Gpr (value_regs_get_gpr res 1)))
4101
+ hi))
4102
+
4103
+ (rule (lower (umulhi a @ (value_type $I64) b))
4104
+ (let ((res ValueRegs (mul_hi $I64 $false a b))
4105
+ (hi Gpr (value_regs_get_gpr res 1)))
4106
+ hi))
4107
+
4108
+ ;; Rules for `smulhi` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4109
+
4110
+ (rule (lower (smulhi a @ (value_type $I16) b))
4111
+ (let ((res ValueRegs (mul_hi $I16 $true a b))
4112
+ (hi Gpr (value_regs_get_gpr res 1)))
4113
+ hi))
4114
+
4115
+ (rule (lower (smulhi a @ (value_type $I32) b))
4116
+ (let ((res ValueRegs (mul_hi $I32 $true a b))
4117
+ (hi Gpr (value_regs_get_gpr res 1)))
4118
+ hi))
4119
+
4120
+ (rule (lower (smulhi a @ (value_type $I64) b))
4121
+ (let ((res ValueRegs (mul_hi $I64 $true a b))
4122
+ (hi Gpr (value_regs_get_gpr res 1)))
4123
+ hi))
4124
+
4125
+ ;; Rules for `get_pinned_reg` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4126
+
4127
+ (rule (lower (get_pinned_reg))
4128
+ (read_pinned_gpr))
4129
+
4130
+ ;; Rules for `set_pinned_reg` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4131
+
4132
+ (rule (lower (set_pinned_reg a @ (value_type ty)))
4133
+ (side_effect (write_pinned_gpr a)))
4134
+
4135
+ ;; Rules for `vconst` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4136
+
4137
+ (rule (lower (has_type ty (vconst const)))
4138
+ ;; TODO use Inst::gen_constant() instead.
4139
+ (x64_xmm_load_const ty (const_to_vconst const)))
4140
+
4141
+ ;; Rules for `shuffle` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4142
+
4143
+ ;; Special case for `pblendw` which takes an 8-bit immediate where each bit
4144
+ ;; indicates which lane of the two operands is chosen for the output. A bit of
4145
+ ;; 0 chooses the corresponding 16-it lane from `a` and a bit of 1 chooses the
4146
+ ;; corresponding 16-bit lane from `b`.
4147
+ (rule 14 (lower (shuffle a b (pblendw_imm n)))
4148
+ (if-let $true (use_sse41))
4149
+ (x64_pblendw a b n))
4150
+ (decl pblendw_imm (u8) Immediate)
4151
+ (extern extractor pblendw_imm pblendw_imm)
4152
+
4153
+ ;; When the shuffle looks like "concatenate `a` and `b` and shift right by n*8
4154
+ ;; bytes", that's a `palignr` instruction. Note that the order of operands are
4155
+ ;; swapped in the instruction here. The `palignr` instruction uses the second
4156
+ ;; operand as the low-order bytes and the first operand as high-order bytes,
4157
+ ;; so put `a` second.
4158
+ (rule 13 (lower (shuffle a b (palignr_imm_from_immediate n)))
4159
+ (if-let $true (use_ssse3))
4160
+ (x64_palignr b a n))
4161
+ (decl palignr_imm_from_immediate (u8) Immediate)
4162
+ (extern extractor palignr_imm_from_immediate palignr_imm_from_immediate)
4163
+
4164
+ ;; Special case the `pshuf{l,h}w` instruction which shuffles four 16-bit
4165
+ ;; integers within one value, preserving the other four 16-bit integers in that
4166
+ ;; value (either the high or low half). The complicated logic is in the
4167
+ ;; extractors here implemented in Rust and note that there's two cases for each
4168
+ ;; instruction here to match when either the first or second shuffle operand is
4169
+ ;; used.
4170
+ (rule 12 (lower (shuffle x y (pshuflw_lhs_imm imm)))
4171
+ (x64_pshuflw x imm))
4172
+ (rule 11 (lower (shuffle x y (pshuflw_rhs_imm imm)))
4173
+ (x64_pshuflw y imm))
4174
+ (rule 10 (lower (shuffle x y (pshufhw_lhs_imm imm)))
4175
+ (x64_pshufhw x imm))
4176
+ (rule 9 (lower (shuffle x y (pshufhw_rhs_imm imm)))
4177
+ (x64_pshufhw y imm))
4178
+
4179
+ (decl pshuflw_lhs_imm (u8) Immediate)
4180
+ (extern extractor pshuflw_lhs_imm pshuflw_lhs_imm)
4181
+ (decl pshuflw_rhs_imm (u8) Immediate)
4182
+ (extern extractor pshuflw_rhs_imm pshuflw_rhs_imm)
4183
+ (decl pshufhw_lhs_imm (u8) Immediate)
4184
+ (extern extractor pshufhw_lhs_imm pshufhw_lhs_imm)
4185
+ (decl pshufhw_rhs_imm (u8) Immediate)
4186
+ (extern extractor pshufhw_rhs_imm pshufhw_rhs_imm)
4187
+
4188
+ ;; Special case for the `pshufd` instruction which will permute 32-bit values
4189
+ ;; within a single register. This is only applicable if the `imm` specified
4190
+ ;; selects 32-bit values from either `x` or `y`, but not both. This means
4191
+ ;; there's one rule for selecting from `x` and another rule for selecting from
4192
+ ;; `y`.
4193
+ (rule 8 (lower (shuffle x y (pshufd_lhs_imm imm)))
4194
+ (x64_pshufd x imm))
4195
+ (rule 7 (lower (shuffle x y (pshufd_rhs_imm imm)))
4196
+ (x64_pshufd y imm))
4197
+
4198
+ (decl pshufd_lhs_imm (u8) Immediate)
4199
+ (extern extractor pshufd_lhs_imm pshufd_lhs_imm)
4200
+ (decl pshufd_rhs_imm (u8) Immediate)
4201
+ (extern extractor pshufd_rhs_imm pshufd_rhs_imm)
4202
+
4203
+ ;; Special case for i8-level interleaving of upper/low bytes.
4204
+ (rule 6 (lower (shuffle a b (u128_from_immediate 0x1f0f_1e0e_1d0d_1c0c_1b0b_1a0a_1909_1808)))
4205
+ (x64_punpckhbw a b))
4206
+ (rule 6 (lower (shuffle a b (u128_from_immediate 0x1707_1606_1505_1404_1303_1202_1101_1000)))
4207
+ (x64_punpcklbw a b))
4208
+
4209
+ ;; Special case for i16-level interleaving of upper/low bytes.
4210
+ (rule 6 (lower (shuffle a b (u128_from_immediate 0x1f1e_0f0e_1d1c_0d0c_1b1a_0b0a_1918_0908)))
4211
+ (x64_punpckhwd a b))
4212
+ (rule 6 (lower (shuffle a b (u128_from_immediate 0x1716_0706_1514_0504_1312_0302_1110_0100)))
4213
+ (x64_punpcklwd a b))
4214
+
4215
+ ;; Special case for i32-level interleaving of upper/low bytes.
4216
+ (rule 6 (lower (shuffle a b (u128_from_immediate 0x1f1e1d1c_0f0e0d0c_1b1a1918_0b0a0908)))
4217
+ (x64_punpckhdq a b))
4218
+ (rule 6 (lower (shuffle a b (u128_from_immediate 0x17161514_07060504_13121110_03020100)))
4219
+ (x64_punpckldq a b))
4220
+
4221
+ ;; Special case for i64-level interleaving of upper/low bytes.
4222
+ (rule 6 (lower (shuffle a b (u128_from_immediate 0x1f1e1d1c1b1a1918_0f0e0d0c0b0a0908)))
4223
+ (x64_punpckhqdq a b))
4224
+ (rule 6 (lower (shuffle a b (u128_from_immediate 0x1716151413121110_0706050403020100)))
4225
+ (x64_punpcklqdq a b))
4226
+
4227
+ ;; If the vector shift mask is all 0s then that means the first byte of the
4228
+ ;; first operand is broadcast to all bytes. Falling through would load an
4229
+ ;; all-zeros constant from a rip-relative location but it should be slightly
4230
+ ;; more efficient to execute the `pshufb` here-and-now with an xor'd-to-be-zero
4231
+ ;; register.
4232
+ (rule 6 (lower (shuffle a _ (u128_from_immediate 0)))
4233
+ (if-let $true (use_ssse3))
4234
+ (x64_pshufb a (xmm_zero $I8X16)))
4235
+
4236
+ ;; Special case for the `shufps` instruction which will select two 32-bit values
4237
+ ;; from the first operand and two 32-bit values from the second operand. Note
4238
+ ;; that there is a second case here as well for when the operands can be
4239
+ ;; swapped.
4240
+ ;;
4241
+ ;; Note that the priority of this instruction is currently lower than the above
4242
+ ;; special cases since `shufps` handles many of them and for now it's
4243
+ ;; hypothesized that the dedicated instructions are better than `shufps`.
4244
+ ;; Someone with more knowledge about x86 timings should perhaps reorder the
4245
+ ;; rules here eventually though.
4246
+ (rule 5 (lower (shuffle x y (shufps_imm imm)))
4247
+ (x64_shufps x y imm))
4248
+ (rule 4 (lower (shuffle x y (shufps_rev_imm imm)))
4249
+ (x64_shufps y x imm))
4250
+
4251
+ (decl shufps_imm(u8) Immediate)
4252
+ (extern extractor shufps_imm shufps_imm)
4253
+ (decl shufps_rev_imm(u8) Immediate)
4254
+ (extern extractor shufps_rev_imm shufps_rev_imm)
4255
+
4256
+
4257
+ ;; If `lhs` and `rhs` are the same we can use a single PSHUFB to shuffle the XMM
4258
+ ;; register. We statically build `constructed_mask` to zero out any unknown lane
4259
+ ;; indices (may not be completely necessary: verification could fail incorrect
4260
+ ;; mask values) and fix the indexes to all point to the `dst` vector.
4261
+ (rule 3 (lower (shuffle a a (vec_mask_from_immediate mask)))
4262
+ (if-let $true (use_ssse3))
4263
+ (x64_pshufb a (shuffle_0_31_mask mask)))
4264
+
4265
+ ;; For the case where the shuffle mask contains out-of-bounds values (values
4266
+ ;; greater than 31) we must mask off those resulting values in the result of
4267
+ ;; `vpermi2b`.
4268
+ (rule 2 (lower (shuffle a b (vec_mask_from_immediate (perm_from_mask_with_zeros mask zeros))))
4269
+ (if-let $true (use_avx512vl))
4270
+ (if-let $true (use_avx512vbmi))
4271
+ (x64_andps (x64_vpermi2b (x64_xmm_load_const $I8X16 mask) a b) zeros))
4272
+
4273
+ ;; However, if the shuffle mask contains no out-of-bounds values, we can use
4274
+ ;; `vpermi2b` without any masking.
4275
+ (rule 1 (lower (shuffle a b (vec_mask_from_immediate mask)))
4276
+ (if-let $true (use_avx512vl))
4277
+ (if-let $true (use_avx512vbmi))
4278
+ (x64_vpermi2b (x64_xmm_load_const $I8X16 (perm_from_mask mask)) a b))
4279
+
4280
+ ;; If `lhs` and `rhs` are different, we must shuffle each separately and then OR
4281
+ ;; them together. This is necessary due to PSHUFB semantics. As in the case
4282
+ ;; above, we build the `constructed_mask` for each case statically.
4283
+ (rule (lower (shuffle a b (vec_mask_from_immediate mask)))
4284
+ (x64_por
4285
+ (lower_pshufb a (shuffle_0_15_mask mask))
4286
+ (lower_pshufb b (shuffle_16_31_mask mask))))
4287
+
4288
+ ;; Rules for `swizzle` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4289
+
4290
+ ;; SIMD swizzle; the following inefficient implementation is due to the Wasm
4291
+ ;; SIMD spec requiring mask indexes greater than 15 to have the same semantics
4292
+ ;; as a 0 index. For the spec discussion, see
4293
+ ;; https://github.com/WebAssembly/simd/issues/93. The CLIF semantics match the
4294
+ ;; Wasm SIMD semantics for this instruction. The instruction format maps to
4295
+ ;; variables like: %dst = swizzle %src, %mask
4296
+ (rule (lower (swizzle src mask))
4297
+ (let ((mask Xmm (x64_paddusb mask (emit_u128_le_const 0x70707070707070707070707070707070))))
4298
+ (lower_pshufb src mask)))
4299
+
4300
+ ;; Rules for `x86_pshufb` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4301
+
4302
+ (rule (lower (x86_pshufb src mask))
4303
+ (if-let $true (use_ssse3))
4304
+ (x64_pshufb src mask))
4305
+
4306
+ ;; A helper function to generate either the `pshufb` instruction or a libcall to
4307
+ ;; the `X86Pshufb` libcall. Note that the libcall is not exactly the most
4308
+ ;; performant thing in the world so this is primarily here for completeness
4309
+ ;; of lowerings on all x86 cpus but if rules are ideally gated on the presence
4310
+ ;; of SSSE3 to use the `pshufb` instruction itself.
4311
+ (decl lower_pshufb (Xmm RegMem) Xmm)
4312
+ (rule 1 (lower_pshufb src mask)
4313
+ (if-let $true (use_ssse3))
4314
+ (x64_pshufb src mask))
4315
+ (rule (lower_pshufb src (RegMem.Reg mask))
4316
+ (libcall_2 (LibCall.X86Pshufb) src mask))
4317
+ (rule (lower_pshufb src (RegMem.Mem addr))
4318
+ (lower_pshufb src (x64_movdqu_load addr)))
4319
+
4320
+ ;; Rules for `extractlane` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4321
+
4322
+ ;; Remove the extractlane instruction, leaving the float where it is. The upper
4323
+ ;; bits will remain unchanged; for correctness, this relies on Cranelift type
4324
+ ;; checking to avoid using those bits.
4325
+ (rule 3 (lower (has_type (ty_scalar_float _) (extractlane val 0)))
4326
+ val)
4327
+
4328
+ ;; `f32x4.extract_lane N` where `N != 0`
4329
+ (rule 1 (lower (extractlane val @ (value_type $F32X4) (u8_from_uimm8 lane)))
4330
+ (x64_pshufd val lane))
4331
+
4332
+ ;; `f64x2.extract_lane N` where `N != 0` (aka N == 1)
4333
+ (rule (lower (extractlane val @ (value_type $F64X2) 1))
4334
+ (x64_pshufd val 0b11_10_11_10))
4335
+
4336
+ ;; `i8x16.extract_lane N`
4337
+ ;;
4338
+ ;; Note that without SSE4.1 a 16-bit lane extraction is performed and then
4339
+ ;; the result is updated if the desired index is either odd or even.
4340
+ (rule 2 (lower (extractlane val @ (value_type ty @ $I8X16) (u8_from_uimm8 lane)))
4341
+ (if-let $true (use_sse41))
4342
+ (x64_pextrb val lane))
4343
+ ;; extracting an odd lane has an extra shift-right
4344
+ (rule 1 (lower (extractlane val @ (value_type ty @ $I8X16) (u8_from_uimm8 lane)))
4345
+ (if-let 1 (u8_and lane 1))
4346
+ (x64_shr $I16 (x64_pextrw val (u8_shr lane 1)) (Imm8Reg.Imm8 8)))
4347
+ ;; Extracting an even lane already has the desired lane in the lower bits. Note
4348
+ ;; that having arbitrary upper bits in the returned register should be ok since
4349
+ ;; all operators on the resulting `i8` type should work correctly regardless of
4350
+ ;; the bits in the rest of the register.
4351
+ (rule (lower (extractlane val @ (value_type ty @ $I8X16) (u8_from_uimm8 lane)))
4352
+ (if-let 0 (u8_and lane 1))
4353
+ (x64_pextrw val (u8_shr lane 1)))
4354
+
4355
+ ;; `i16x8.extract_lane N`
4356
+ (rule (lower (extractlane val @ (value_type ty @ $I16X8) (u8_from_uimm8 lane)))
4357
+ (x64_pextrw val lane))
4358
+
4359
+ ;; `i32x4.extract_lane N`
4360
+ (rule 2 (lower (extractlane val @ (value_type ty @ $I32X4) (u8_from_uimm8 lane)))
4361
+ (if-let $true (use_sse41))
4362
+ (x64_pextrd val lane))
4363
+ (rule 1 (lower (extractlane val @ (value_type $I32X4) 0))
4364
+ (x64_movd_to_gpr val))
4365
+ (rule (lower (extractlane val @ (value_type $I32X4) (u8_from_uimm8 n)))
4366
+ (x64_movd_to_gpr (x64_pshufd val n)))
4367
+
4368
+ ;; `i64x2.extract_lane N`
4369
+ (rule 1 (lower (extractlane val @ (value_type $I64X2) (u8_from_uimm8 lane)))
4370
+ (if-let $true (use_sse41))
4371
+ (x64_pextrq val lane))
4372
+ (rule (lower (extractlane val @ (value_type $I64X2) 0))
4373
+ (x64_movq_to_gpr val))
4374
+ (rule (lower (extractlane val @ (value_type $I64X2) 1))
4375
+ (x64_movq_to_gpr (x64_pshufd val 0b00_00_11_10)))
4376
+
4377
+ ;; Rules for `scalar_to_vector` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4378
+
4379
+ ;; Case 1: when moving a scalar float, we simply move from one XMM register
4380
+ ;; to another, expecting the register allocator to elide this. Here we
4381
+ ;; assume that the upper bits of a scalar float have not been munged with
4382
+ ;; (the same assumption the old backend makes).
4383
+ (rule 1 (lower (scalar_to_vector src @ (value_type (ty_scalar_float _))))
4384
+ src)
4385
+
4386
+ ;; Case 2: when moving a scalar value of any other type, use MOVD to zero
4387
+ ;; the upper lanes.
4388
+ (rule (lower (scalar_to_vector src @ (value_type ty)))
4389
+ (bitcast_gpr_to_xmm ty src))
4390
+
4391
+ ;; Case 3: when presented with `load + scalar_to_vector`, coalesce into a single
4392
+ ;; MOVSS/MOVSD instruction.
4393
+ (rule 2 (lower (scalar_to_vector (and (sinkable_load src) (value_type (ty_32 _)))))
4394
+ (x64_movss_load src))
4395
+ (rule 3 (lower (scalar_to_vector (and (sinkable_load src) (value_type (ty_64 _)))))
4396
+ (x64_movsd_load src))
4397
+
4398
+ ;; Rules for `splat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4399
+
4400
+ ;; For all the splat rules below one of the goals is that splatting a value
4401
+ ;; doesn't end up accidentally depending on the previous value in a register.
4402
+ ;; This means that instructions are chosen to avoid false dependencies where
4403
+ ;; new values are created fresh or otherwise overwrite previous register
4404
+ ;; contents where possible.
4405
+ ;;
4406
+ ;; Additionally splats are specialized to special-case load-and-splat which
4407
+ ;; has a number of micro-optimizations available.
4408
+
4409
+ ;; i8x16 splats: use `vpbroadcastb` on AVX2 and otherwise `pshufb` broadcasts
4410
+ ;; with a mask of zero which is calculated with an xor-against-itself register.
4411
+ (rule 0 (lower (has_type $I8X16 (splat src)))
4412
+ (let ((src Xmm (x64_movd_to_xmm src)))
4413
+ (x64_pshufd (x64_pshuflw (x64_punpcklbw src src) 0) 0)))
4414
+ (rule 1 (lower (has_type $I8X16 (splat src)))
4415
+ (if-let $true (use_ssse3))
4416
+ (x64_pshufb (bitcast_gpr_to_xmm $I32 src) (xmm_zero $I8X16)))
4417
+ (rule 2 (lower (has_type $I8X16 (splat src)))
4418
+ (if-let $true (use_avx2))
4419
+ (x64_vpbroadcastb (bitcast_gpr_to_xmm $I32 src)))
4420
+ (rule 3 (lower (has_type $I8X16 (splat (sinkable_load_exact addr))))
4421
+ (if-let $true (use_sse41))
4422
+ (if-let $true (use_ssse3))
4423
+ (x64_pshufb (x64_pinsrb (xmm_uninit_value) addr 0) (xmm_zero $I8X16)))
4424
+ (rule 4 (lower (has_type $I8X16 (splat (sinkable_load_exact addr))))
4425
+ (if-let $true (use_avx2))
4426
+ (x64_vpbroadcastb addr))
4427
+
4428
+ ;; i16x8 splats: use `vpbroadcastw` on AVX2 and otherwise a 16-bit value is
4429
+ ;; loaded into an xmm register, `pshuflw` broadcasts the low 16-bit lane
4430
+ ;; to the low four lanes, and `pshufd` broadcasts the low 32-bit lane (which
4431
+ ;; at that point is two of the 16-bit values we want to broadcast) to all the
4432
+ ;; lanes.
4433
+ (rule 0 (lower (has_type $I16X8 (splat src)))
4434
+ (x64_pshufd (x64_pshuflw (bitcast_gpr_to_xmm $I32 src) 0) 0))
4435
+ (rule 1 (lower (has_type $I16X8 (splat src)))
4436
+ (if-let $true (use_avx2))
4437
+ (x64_vpbroadcastw (bitcast_gpr_to_xmm $I32 src)))
4438
+ (rule 2 (lower (has_type $I16X8 (splat (sinkable_load_exact addr))))
4439
+ (x64_pshufd (x64_pshuflw (x64_pinsrw (xmm_uninit_value) addr 0) 0) 0))
4440
+ (rule 3 (lower (has_type $I16X8 (splat (sinkable_load_exact addr))))
4441
+ (if-let $true (use_avx2))
4442
+ (x64_vpbroadcastw addr))
4443
+
4444
+ ;; i32x4.splat - use `vpbroadcastd` on AVX2 and otherwise `pshufd` can be
4445
+ ;; used to broadcast the low lane to all other lanes.
4446
+ ;;
4447
+ ;; Note that sinkable-load cases come later
4448
+ (rule 0 (lower (has_type $I32X4 (splat src)))
4449
+ (x64_pshufd (bitcast_gpr_to_xmm $I32 src) 0))
4450
+ (rule 1 (lower (has_type $I32X4 (splat src)))
4451
+ (if-let $true (use_avx2))
4452
+ (x64_vpbroadcastd (bitcast_gpr_to_xmm $I32 src)))
4453
+
4454
+ ;; f32x4.splat - the source is already in an xmm register so `shufps` is all
4455
+ ;; that's necessary to complete the splat. This is specialized to `vbroadcastss`
4456
+ ;; on AVX2 to leverage that specific instruction for this operation.
4457
+ (rule 0 (lower (has_type $F32X4 (splat src)))
4458
+ (let ((tmp Xmm src))
4459
+ (x64_shufps src src 0)))
4460
+ (rule 1 (lower (has_type $F32X4 (splat src)))
4461
+ (if-let $true (use_avx2))
4462
+ (x64_vbroadcastss src))
4463
+
4464
+ ;; t32x4.splat of a load - use a `movss` to load into an xmm register and then
4465
+ ;; `shufps` broadcasts to the other lanes. Note that this is used for both i32
4466
+ ;; and f32 splats.
4467
+ ;;
4468
+ ;; With AVX the `vbroadcastss` instruction suits this purpose precisely. Note
4469
+ ;; that the memory-operand encoding of `vbroadcastss` is usable with AVX, but
4470
+ ;; the register-based encoding is only available with AVX2. With the
4471
+ ;; `sinkable_load` extractor this should be guaranteed to use the memory-based
4472
+ ;; encoding hence the `use_avx` test.
4473
+ (rule 5 (lower (has_type (multi_lane 32 4) (splat (sinkable_load addr))))
4474
+ (let ((tmp Xmm (x64_movss_load addr)))
4475
+ (x64_shufps tmp tmp 0)))
4476
+ (rule 6 (lower (has_type (multi_lane 32 4) (splat (sinkable_load addr))))
4477
+ (if-let $true (use_avx))
4478
+ (x64_vbroadcastss addr))
4479
+
4480
+ ;; t64x2.splat - use `pshufd` to broadcast the lower 64-bit lane to the upper
4481
+ ;; lane. A minor specialization for sinkable loads to avoid going through a gpr
4482
+ ;; for i64 splats is used as well when `movddup` is available.
4483
+ (rule 0 (lower (has_type $I64X2 (splat src)))
4484
+ (x64_pshufd (bitcast_gpr_to_xmm $I64 src) 0b01_00_01_00))
4485
+ (rule 0 (lower (has_type $F64X2 (splat src)))
4486
+ (x64_pshufd src 0b01_00_01_00))
4487
+ (rule 6 (lower (has_type (multi_lane 64 2) (splat (sinkable_load addr))))
4488
+ (if-let $true (use_ssse3))
4489
+ (x64_movddup addr))
4490
+
4491
+ ;; Rules for `vany_true` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4492
+
4493
+ (rule 1 (lower (vany_true val))
4494
+ (if-let $true (use_sse41))
4495
+ (let ((val Xmm val))
4496
+ (with_flags (x64_ptest val val) (x64_setcc (CC.NZ)))))
4497
+
4498
+ ;; Any nonzero byte in `val` means that any lane is true. Compare `val` with a
4499
+ ;; zeroed register and extract the high bits to a gpr mask. If the mask is
4500
+ ;; 0xffff then every byte was equal to zero, so test if the comparison is
4501
+ ;; not-equal or NZ.
4502
+ (rule (lower (vany_true val))
4503
+ (let (
4504
+ (any_byte_zero Xmm (x64_pcmpeqb val (xmm_zero $I8X16)))
4505
+ (mask Gpr (x64_pmovmskb (OperandSize.Size32) any_byte_zero))
4506
+ )
4507
+ (with_flags (x64_cmp (OperandSize.Size32) (RegMemImm.Imm 0xffff) mask)
4508
+ (x64_setcc (CC.NZ)))))
4509
+
4510
+ ;; Rules for `vall_true` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4511
+
4512
+ (rule 1 (lower (vall_true val @ (value_type ty)))
4513
+ (if-let $true (use_sse41))
4514
+ (let ((src Xmm val)
4515
+ (zeros Xmm (xmm_zero ty))
4516
+ (cmp Xmm (x64_pcmpeq (vec_int_type ty) src zeros)))
4517
+ (with_flags (x64_ptest cmp cmp) (x64_setcc (CC.Z)))))
4518
+
4519
+ ;; Perform an appropriately-sized lane-wise comparison with zero. If the
4520
+ ;; result is all 0s then all of them are true because nothing was equal to
4521
+ ;; zero.
4522
+ (rule (lower (vall_true val @ (value_type ty)))
4523
+ (let ((lanes_with_zero Xmm (x64_pcmpeq (vec_int_type ty) val (xmm_zero ty)))
4524
+ (mask Gpr (x64_pmovmskb (OperandSize.Size32) lanes_with_zero)))
4525
+ (with_flags (x64_test (OperandSize.Size32) mask mask)
4526
+ (x64_setcc (CC.Z)))))
4527
+
4528
+ ;; Rules for `vhigh_bits` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4529
+
4530
+ ;; The Intel specification allows using both 32-bit and 64-bit GPRs as
4531
+ ;; destination for the "move mask" instructions. This is controlled by the REX.R
4532
+ ;; bit: "In 64-bit mode, the instruction can access additional registers when
4533
+ ;; used with a REX.R prefix. The default operand size is 64-bit in 64-bit mode"
4534
+ ;; (PMOVMSKB in IA Software Development Manual, vol. 2). This being the case, we
4535
+ ;; will always clear REX.W since its use is unnecessary (`OperandSize` is used
4536
+ ;; for setting/clearing REX.W) as we need at most 16 bits of output for
4537
+ ;; `vhigh_bits`.
4538
+
4539
+ (rule (lower (vhigh_bits val @ (value_type (multi_lane 8 16))))
4540
+ (x64_pmovmskb (OperandSize.Size32) val))
4541
+
4542
+ (rule (lower (vhigh_bits val @ (value_type (multi_lane 32 4))))
4543
+ (x64_movmskps (OperandSize.Size32) val))
4544
+
4545
+ (rule (lower (vhigh_bits val @ (value_type (multi_lane 64 2))))
4546
+ (x64_movmskpd (OperandSize.Size32) val))
4547
+
4548
+ ;; There is no x86 instruction for extracting the high bit of 16-bit lanes so
4549
+ ;; here we:
4550
+ ;; - duplicate the 16-bit lanes of `src` into 8-bit lanes:
4551
+ ;; PACKSSWB([x1, x2, ...], [x1, x2, ...]) = [x1', x2', ..., x1', x2', ...]
4552
+ ;; - use PMOVMSKB to gather the high bits; now we have duplicates, though
4553
+ ;; - shift away the bottom 8 high bits to remove the duplicates.
4554
+ (rule (lower (vhigh_bits val @ (value_type (multi_lane 16 8))))
4555
+ (let ((src Xmm val)
4556
+ (tmp Xmm (x64_packsswb src src))
4557
+ (tmp Gpr (x64_pmovmskb (OperandSize.Size32) tmp)))
4558
+ (x64_shr $I64 tmp (Imm8Reg.Imm8 8))))
4559
+
4560
+ ;; Rules for `iconcat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4561
+
4562
+ (rule (lower (iconcat lo @ (value_type $I64) hi))
4563
+ (value_regs lo hi))
4564
+
4565
+ ;; Rules for `isplit` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4566
+
4567
+ (rule (lower (isplit val @ (value_type $I128)))
4568
+ (let ((regs ValueRegs val)
4569
+ (lo Reg (value_regs_get regs 0))
4570
+ (hi Reg (value_regs_get regs 1)))
4571
+ (output_pair lo hi)))
4572
+
4573
+ ;; Rules for `tls_value` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4574
+
4575
+ (rule (lower (has_type (tls_model (TlsModel.ElfGd)) (tls_value (symbol_value_data name _ _))))
4576
+ (elf_tls_get_addr name))
4577
+
4578
+ (rule (lower (has_type (tls_model (TlsModel.Macho)) (tls_value (symbol_value_data name _ _))))
4579
+ (macho_tls_get_addr name))
4580
+
4581
+ (rule (lower (has_type (tls_model (TlsModel.Coff)) (tls_value (symbol_value_data name _ _))))
4582
+ (coff_tls_get_addr name))
4583
+
4584
+ ;; Rules for `sqmul_round_sat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4585
+
4586
+ (rule 1 (lower (sqmul_round_sat qx @ (value_type $I16X8) qy))
4587
+ (if-let $true (use_ssse3))
4588
+ (let ((src1 Xmm qx)
4589
+ (src2 Xmm qy)
4590
+
4591
+ (mask XmmMem (emit_u128_le_const 0x8000_8000_8000_8000_8000_8000_8000_8000))
4592
+ (dst Xmm (x64_pmulhrsw src1 src2))
4593
+ (cmp Xmm (x64_pcmpeqw dst mask)))
4594
+ (x64_pxor dst cmp)))
4595
+
4596
+ ;; This operation is defined in wasm as:
4597
+ ;;
4598
+ ;; S.SignedSaturate((x * y + 0x4000) >> 15)
4599
+ ;;
4600
+ ;; so perform all those operations here manually with a lack of the native
4601
+ ;; instruction.
4602
+ (rule (lower (sqmul_round_sat qx @ (value_type $I16X8) qy))
4603
+ (let (
4604
+ (qx Xmm qx)
4605
+ (qy Xmm qy)
4606
+ ;; Multiply `qx` and `qy` generating 32-bit intermediate results. The
4607
+ ;; 32-bit results have their low-halves stored in `mul_lsb` and the
4608
+ ;; high halves are stored in `mul_msb`. These are then shuffled into
4609
+ ;; `mul_lo` and `mul_hi` which represent the low 4 multiplications
4610
+ ;; and the upper 4 multiplications.
4611
+ (mul_lsb Xmm (x64_pmullw qx qy))
4612
+ (mul_msb Xmm (x64_pmulhw qx qy))
4613
+ (mul_lo Xmm (x64_punpcklwd mul_lsb mul_msb))
4614
+ (mul_hi Xmm (x64_punpckhwd mul_lsb mul_msb))
4615
+ ;; Add the 0x4000 constant to all multiplications
4616
+ (val Xmm (x64_movdqu_load (emit_u128_le_const 0x00004000_00004000_00004000_00004000)))
4617
+ (mul_lo Xmm (x64_paddd mul_lo val))
4618
+ (mul_hi Xmm (x64_paddd mul_hi val))
4619
+ ;; Perform the right-shift by 15 to all multiplications
4620
+ (lo Xmm (x64_psrad mul_lo (xmi_imm 15)))
4621
+ (hi Xmm (x64_psrad mul_hi (xmi_imm 15)))
4622
+ )
4623
+ ;; And finally perform a saturating 32-to-16-bit conversion.
4624
+ (x64_packssdw lo hi)))
4625
+
4626
+ ;; Rules for `x86_pmulhrsw` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4627
+
4628
+ (rule (lower (x86_pmulhrsw qx @ (value_type $I16X8) qy))
4629
+ (if-let $true (use_ssse3))
4630
+ (x64_pmulhrsw qx qy))
4631
+
4632
+ ;; Rules for `uunarrow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4633
+
4634
+ ;; TODO: currently we only lower a special case of `uunarrow` needed to support
4635
+ ;; the translation of wasm's i32x4.trunc_sat_f64x2_u_zero operation.
4636
+ ;; https://github.com/bytecodealliance/wasmtime/issues/4791
4637
+ ;;
4638
+ ;; y = i32x4.trunc_sat_f64x2_u_zero(x) is lowered to:
4639
+ ;; MOVAPD xmm_y, xmm_x
4640
+ ;; XORPD xmm_tmp, xmm_tmp
4641
+ ;; MAXPD xmm_y, xmm_tmp
4642
+ ;; MINPD xmm_y, [wasm_f64x2_splat(4294967295.0)]
4643
+ ;; ROUNDPD xmm_y, xmm_y, 0x0B
4644
+ ;; ADDPD xmm_y, [wasm_f64x2_splat(0x1.0p+52)]
4645
+ ;; SHUFPS xmm_y, xmm_xmp, 0x88
4646
+ (rule (lower (uunarrow (fcvt_to_uint_sat src @ (value_type $F64X2))
4647
+ (vconst (u128_from_constant 0))))
4648
+ (let ((src Xmm src)
4649
+
4650
+ ;; MOVAPD xmm_y, xmm_x
4651
+ ;; XORPD xmm_tmp, xmm_tmp
4652
+ (zeros Xmm (xmm_zero $F64X2))
4653
+ (dst Xmm (x64_maxpd src zeros))
4654
+
4655
+ ;; 4294967295.0 is equivalent to 0x41EFFFFFFFE00000
4656
+ (umax_mask XmmMem (emit_u128_le_const 0x41EFFFFFFFE00000_41EFFFFFFFE00000))
4657
+
4658
+ ;; MINPD xmm_y, [wasm_f64x2_splat(4294967295.0)]
4659
+ (dst Xmm (x64_minpd dst umax_mask))
4660
+
4661
+ ;; ROUNDPD xmm_y, xmm_y, 0x0B
4662
+ (dst Xmm (x64_round $F64X2 dst (RoundImm.RoundZero)))
4663
+
4664
+ ;; ADDPD xmm_y, [wasm_f64x2_splat(0x1.0p+52)]
4665
+ (uint_mask XmmMem (emit_u128_le_const 0x4330000000000000_4330000000000000))
4666
+
4667
+ (dst Xmm (x64_addpd dst uint_mask)))
4668
+
4669
+ ;; SHUFPS xmm_y, xmm_xmp, 0x88
4670
+ (x64_shufps dst zeros 0x88)))
4671
+
4672
+ ;; Rules for `nop` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4673
+
4674
+ (rule (lower (nop))
4675
+ (invalid_reg))