wasmtime 15.0.1 → 16.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1212) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +83 -103
  3. data/ext/Cargo.toml +6 -6
  4. data/ext/cargo-vendor/cranelift-bforest-0.103.0/.cargo-checksum.json +1 -0
  5. data/ext/cargo-vendor/cranelift-bforest-0.103.0/Cargo.toml +40 -0
  6. data/ext/cargo-vendor/cranelift-bforest-0.103.0/src/lib.rs +183 -0
  7. data/ext/cargo-vendor/cranelift-codegen-0.103.0/.cargo-checksum.json +1 -0
  8. data/ext/cargo-vendor/cranelift-codegen-0.103.0/Cargo.toml +175 -0
  9. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/binemit/mod.rs +171 -0
  10. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/egraph/cost.rs +171 -0
  11. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/egraph/elaborate.rs +750 -0
  12. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/egraph.rs +703 -0
  13. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/ir/dfg.rs +1735 -0
  14. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/ir/pcc.rs +1682 -0
  15. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/aarch64/lower/isle.rs +874 -0
  16. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/riscv64/inst/mod.rs +2041 -0
  17. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/riscv64/inst.isle +2928 -0
  18. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/riscv64/lower.isle +2864 -0
  19. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/s390x/lower/isle.rs +1029 -0
  20. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/x64/lower/isle.rs +1064 -0
  21. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isa/x64/pcc.rs +916 -0
  22. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/isle_prelude.rs +977 -0
  23. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/lib.rs +106 -0
  24. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/machinst/isle.rs +896 -0
  25. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/arithmetic.isle +152 -0
  26. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/cprop.isle +237 -0
  27. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/icmp.isle +199 -0
  28. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts/selects.isle +76 -0
  29. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/opts.rs +172 -0
  30. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/prelude.isle +649 -0
  31. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/timing.rs +297 -0
  32. data/ext/cargo-vendor/cranelift-codegen-0.103.0/src/unionfind.rs +75 -0
  33. data/ext/cargo-vendor/cranelift-codegen-meta-0.103.0/.cargo-checksum.json +1 -0
  34. data/ext/cargo-vendor/cranelift-codegen-meta-0.103.0/Cargo.toml +35 -0
  35. data/ext/cargo-vendor/cranelift-codegen-shared-0.103.0/.cargo-checksum.json +1 -0
  36. data/ext/cargo-vendor/cranelift-codegen-shared-0.103.0/Cargo.toml +22 -0
  37. data/ext/cargo-vendor/cranelift-codegen-shared-0.103.0/src/lib.rs +10 -0
  38. data/ext/cargo-vendor/cranelift-control-0.103.0/.cargo-checksum.json +1 -0
  39. data/ext/cargo-vendor/cranelift-control-0.103.0/Cargo.toml +30 -0
  40. data/ext/cargo-vendor/cranelift-entity-0.103.0/.cargo-checksum.json +1 -0
  41. data/ext/cargo-vendor/cranelift-entity-0.103.0/Cargo.toml +50 -0
  42. data/ext/cargo-vendor/cranelift-entity-0.103.0/src/lib.rs +317 -0
  43. data/ext/cargo-vendor/cranelift-entity-0.103.0/src/primary.rs +516 -0
  44. data/ext/cargo-vendor/cranelift-entity-0.103.0/src/unsigned.rs +71 -0
  45. data/ext/cargo-vendor/cranelift-frontend-0.103.0/.cargo-checksum.json +1 -0
  46. data/ext/cargo-vendor/cranelift-frontend-0.103.0/Cargo.toml +68 -0
  47. data/ext/cargo-vendor/cranelift-frontend-0.103.0/src/lib.rs +189 -0
  48. data/ext/cargo-vendor/cranelift-isle-0.103.0/.cargo-checksum.json +1 -0
  49. data/ext/cargo-vendor/cranelift-isle-0.103.0/Cargo.toml +46 -0
  50. data/ext/cargo-vendor/cranelift-isle-0.103.0/isle_examples/link/multi_constructor_main.rs +88 -0
  51. data/ext/cargo-vendor/cranelift-isle-0.103.0/isle_examples/link/multi_extractor_main.rs +63 -0
  52. data/ext/cargo-vendor/cranelift-isle-0.103.0/src/codegen.rs +886 -0
  53. data/ext/cargo-vendor/cranelift-native-0.103.0/.cargo-checksum.json +1 -0
  54. data/ext/cargo-vendor/cranelift-native-0.103.0/Cargo.toml +43 -0
  55. data/ext/cargo-vendor/cranelift-native-0.103.0/src/lib.rs +184 -0
  56. data/ext/cargo-vendor/cranelift-wasm-0.103.0/.cargo-checksum.json +1 -0
  57. data/ext/cargo-vendor/cranelift-wasm-0.103.0/Cargo.toml +106 -0
  58. data/ext/cargo-vendor/cranelift-wasm-0.103.0/src/environ/dummy.rs +953 -0
  59. data/ext/cargo-vendor/cranelift-wasm-0.103.0/src/lib.rs +62 -0
  60. data/ext/cargo-vendor/cranelift-wasm-0.103.0/src/translation_utils.rs +89 -0
  61. data/ext/cargo-vendor/wasi-cap-std-sync-16.0.0/.cargo-checksum.json +1 -0
  62. data/ext/cargo-vendor/wasi-cap-std-sync-16.0.0/Cargo.toml +102 -0
  63. data/ext/cargo-vendor/wasi-common-16.0.0/.cargo-checksum.json +1 -0
  64. data/ext/cargo-vendor/wasi-common-16.0.0/Cargo.toml +131 -0
  65. data/ext/cargo-vendor/wasi-common-16.0.0/src/lib.rs +76 -0
  66. data/ext/cargo-vendor/wasi-common-16.0.0/src/snapshots/preview_1.rs +1492 -0
  67. data/ext/cargo-vendor/wasmtime-16.0.0/.cargo-checksum.json +1 -0
  68. data/ext/cargo-vendor/wasmtime-16.0.0/Cargo.toml +211 -0
  69. data/ext/cargo-vendor/wasmtime-16.0.0/src/compiler.rs +682 -0
  70. data/ext/cargo-vendor/wasmtime-16.0.0/src/component/component.rs +505 -0
  71. data/ext/cargo-vendor/wasmtime-16.0.0/src/component/func/typed.rs +2400 -0
  72. data/ext/cargo-vendor/wasmtime-16.0.0/src/config.rs +2422 -0
  73. data/ext/cargo-vendor/wasmtime-16.0.0/src/func.rs +2391 -0
  74. data/ext/cargo-vendor/wasmtime-16.0.0/src/lib.rs +520 -0
  75. data/ext/cargo-vendor/wasmtime-16.0.0/src/memory.rs +998 -0
  76. data/ext/cargo-vendor/wasmtime-16.0.0/src/module.rs +1370 -0
  77. data/ext/cargo-vendor/wasmtime-16.0.0/src/stack.rs +73 -0
  78. data/ext/cargo-vendor/wasmtime-16.0.0/src/v128.rs +122 -0
  79. data/ext/cargo-vendor/wasmtime-asm-macros-16.0.0/.cargo-checksum.json +1 -0
  80. data/ext/cargo-vendor/wasmtime-asm-macros-16.0.0/Cargo.toml +22 -0
  81. data/ext/cargo-vendor/wasmtime-cache-16.0.0/.cargo-checksum.json +1 -0
  82. data/ext/cargo-vendor/wasmtime-cache-16.0.0/Cargo.toml +81 -0
  83. data/ext/cargo-vendor/wasmtime-cache-16.0.0/src/lib.rs +235 -0
  84. data/ext/cargo-vendor/wasmtime-cache-16.0.0/src/worker.rs +890 -0
  85. data/ext/cargo-vendor/wasmtime-component-macro-16.0.0/.cargo-checksum.json +1 -0
  86. data/ext/cargo-vendor/wasmtime-component-macro-16.0.0/Cargo.toml +67 -0
  87. data/ext/cargo-vendor/wasmtime-component-util-16.0.0/.cargo-checksum.json +1 -0
  88. data/ext/cargo-vendor/wasmtime-component-util-16.0.0/Cargo.toml +25 -0
  89. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/.cargo-checksum.json +1 -0
  90. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/Cargo.toml +112 -0
  91. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/compiler/component.rs +959 -0
  92. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/compiler.rs +1317 -0
  93. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/debug/transform/expression.rs +1252 -0
  94. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/debug/transform/simulate.rs +410 -0
  95. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/debug.rs +18 -0
  96. data/ext/cargo-vendor/wasmtime-cranelift-16.0.0/src/func_environ.rs +2750 -0
  97. data/ext/cargo-vendor/wasmtime-cranelift-shared-16.0.0/.cargo-checksum.json +1 -0
  98. data/ext/cargo-vendor/wasmtime-cranelift-shared-16.0.0/Cargo.toml +71 -0
  99. data/ext/cargo-vendor/wasmtime-environ-16.0.0/.cargo-checksum.json +1 -0
  100. data/ext/cargo-vendor/wasmtime-environ-16.0.0/Cargo.lock +660 -0
  101. data/ext/cargo-vendor/wasmtime-environ-16.0.0/Cargo.toml +125 -0
  102. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/compilation.rs +402 -0
  103. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/component/compiler.rs +47 -0
  104. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/component/translate.rs +951 -0
  105. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/component/types.rs +1876 -0
  106. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/lib.rs +59 -0
  107. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/module.rs +1075 -0
  108. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/module_environ.rs +892 -0
  109. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/module_types.rs +120 -0
  110. data/ext/cargo-vendor/wasmtime-environ-16.0.0/src/scopevec.rs +78 -0
  111. data/ext/cargo-vendor/wasmtime-fiber-16.0.0/.cargo-checksum.json +1 -0
  112. data/ext/cargo-vendor/wasmtime-fiber-16.0.0/Cargo.toml +63 -0
  113. data/ext/cargo-vendor/wasmtime-fiber-16.0.0/src/lib.rs +328 -0
  114. data/ext/cargo-vendor/wasmtime-fiber-16.0.0/src/unix.rs +265 -0
  115. data/ext/cargo-vendor/wasmtime-fiber-16.0.0/src/windows.c +9 -0
  116. data/ext/cargo-vendor/wasmtime-jit-16.0.0/.cargo-checksum.json +1 -0
  117. data/ext/cargo-vendor/wasmtime-jit-16.0.0/Cargo.toml +125 -0
  118. data/ext/cargo-vendor/wasmtime-jit-16.0.0/src/code_memory.rs +319 -0
  119. data/ext/cargo-vendor/wasmtime-jit-16.0.0/src/instantiate.rs +772 -0
  120. data/ext/cargo-vendor/wasmtime-jit-16.0.0/src/lib.rs +21 -0
  121. data/ext/cargo-vendor/wasmtime-jit-debug-16.0.0/.cargo-checksum.json +1 -0
  122. data/ext/cargo-vendor/wasmtime-jit-debug-16.0.0/Cargo.toml +67 -0
  123. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-16.0.0/.cargo-checksum.json +1 -0
  124. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-16.0.0/Cargo.toml +46 -0
  125. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/.cargo-checksum.json +1 -0
  126. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/Cargo.toml +139 -0
  127. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/build.rs +28 -0
  128. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/proptest-regressions/instance/allocator/pooling/memory_pool.txt +9 -0
  129. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/aarch64.rs +120 -0
  130. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/mod.rs +32 -0
  131. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/riscv64.rs +88 -0
  132. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/s390x.rs +61 -0
  133. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/arch/x86_64.rs +106 -0
  134. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/cow.rs +888 -0
  135. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/helpers.c +113 -0
  136. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling/memory_pool.rs +1005 -0
  137. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling/stack_pool.rs +242 -0
  138. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling/table_pool.rs +227 -0
  139. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/instance/allocator/pooling.rs +698 -0
  140. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/lib.rs +264 -0
  141. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/libcalls.rs +776 -0
  142. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/mmap.rs +214 -0
  143. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/mpk/enabled.rs +204 -0
  144. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/mpk/pkru.rs +102 -0
  145. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/mod.rs +10 -0
  146. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/traphandlers.rs +42 -0
  147. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/unwind.rs +17 -0
  148. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/miri/vm.rs +63 -0
  149. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/mod.rs +30 -0
  150. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/machports.rs +487 -0
  151. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/macos_traphandlers.rs +28 -0
  152. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/mod.rs +21 -0
  153. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/signals.rs +402 -0
  154. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/unwind.rs +91 -0
  155. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/unix/vm.rs +208 -0
  156. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/mod.rs +6 -0
  157. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/traphandlers.rs +105 -0
  158. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/unwind.rs +46 -0
  159. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/sys/windows/vm.rs +79 -0
  160. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/traphandlers/backtrace.rs +265 -0
  161. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/traphandlers.rs +733 -0
  162. data/ext/cargo-vendor/wasmtime-runtime-16.0.0/src/vmcontext.rs +1197 -0
  163. data/ext/cargo-vendor/wasmtime-types-16.0.0/.cargo-checksum.json +1 -0
  164. data/ext/cargo-vendor/wasmtime-types-16.0.0/Cargo.toml +36 -0
  165. data/ext/cargo-vendor/wasmtime-types-16.0.0/src/lib.rs +504 -0
  166. data/ext/cargo-vendor/wasmtime-versioned-export-macros-16.0.0/.cargo-checksum.json +1 -0
  167. data/ext/cargo-vendor/wasmtime-versioned-export-macros-16.0.0/Cargo.toml +32 -0
  168. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/.cargo-checksum.json +1 -0
  169. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/Cargo.toml +261 -0
  170. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/lib.rs +137 -0
  171. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/io.rs +368 -0
  172. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/network.rs +570 -0
  173. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/tcp.rs +632 -0
  174. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/host/udp.rs +550 -0
  175. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/mod.rs +328 -0
  176. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/preview0.rs +870 -0
  177. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/preview1.rs +2348 -0
  178. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/stdio.rs +259 -0
  179. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/stream.rs +182 -0
  180. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/src/preview2/table.rs +337 -0
  181. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/api.rs +218 -0
  182. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/async_.rs +360 -0
  183. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/main.rs +113 -0
  184. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/preview1.rs +239 -0
  185. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/all/sync.rs +299 -0
  186. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/tests/process_stdin.rs +165 -0
  187. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/command-extended.wit +6 -0
  188. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/cli/command.wit +7 -0
  189. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/cli/imports.wit +20 -0
  190. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/http/proxy.wit +32 -0
  191. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/deps/http/types.wit +570 -0
  192. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/wit/test.wit +22 -0
  193. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/witx/preview0/typenames.witx +746 -0
  194. data/ext/cargo-vendor/wasmtime-wasi-16.0.0/witx/preview0/wasi_unstable.witx +513 -0
  195. data/ext/cargo-vendor/wasmtime-winch-16.0.0/.cargo-checksum.json +1 -0
  196. data/ext/cargo-vendor/wasmtime-winch-16.0.0/Cargo.toml +77 -0
  197. data/ext/cargo-vendor/wasmtime-winch-16.0.0/src/compiler.rs +243 -0
  198. data/ext/cargo-vendor/wasmtime-wit-bindgen-16.0.0/.cargo-checksum.json +1 -0
  199. data/ext/cargo-vendor/wasmtime-wit-bindgen-16.0.0/Cargo.toml +41 -0
  200. data/ext/cargo-vendor/wasmtime-wmemcheck-16.0.0/.cargo-checksum.json +1 -0
  201. data/ext/cargo-vendor/wasmtime-wmemcheck-16.0.0/Cargo.toml +29 -0
  202. data/ext/cargo-vendor/wiggle-16.0.0/.cargo-checksum.json +1 -0
  203. data/ext/cargo-vendor/wiggle-16.0.0/Cargo.toml +115 -0
  204. data/ext/cargo-vendor/wiggle-16.0.0/src/lib.rs +1198 -0
  205. data/ext/cargo-vendor/wiggle-generate-16.0.0/.cargo-checksum.json +1 -0
  206. data/ext/cargo-vendor/wiggle-generate-16.0.0/Cargo.toml +65 -0
  207. data/ext/cargo-vendor/wiggle-generate-16.0.0/src/types/handle.rs +84 -0
  208. data/ext/cargo-vendor/wiggle-generate-16.0.0/src/types/record.rs +132 -0
  209. data/ext/cargo-vendor/wiggle-generate-16.0.0/src/types/variant.rs +191 -0
  210. data/ext/cargo-vendor/wiggle-macro-16.0.0/.cargo-checksum.json +1 -0
  211. data/ext/cargo-vendor/wiggle-macro-16.0.0/Cargo.toml +55 -0
  212. data/ext/cargo-vendor/winch-codegen-0.14.0/.cargo-checksum.json +1 -0
  213. data/ext/cargo-vendor/winch-codegen-0.14.0/Cargo.toml +76 -0
  214. data/ext/cargo-vendor/winch-codegen-0.14.0/src/abi/local.rs +81 -0
  215. data/ext/cargo-vendor/winch-codegen-0.14.0/src/abi/mod.rs +614 -0
  216. data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/call.rs +345 -0
  217. data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/context.rs +545 -0
  218. data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/control.rs +497 -0
  219. data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/env.rs +251 -0
  220. data/ext/cargo-vendor/winch-codegen-0.14.0/src/codegen/mod.rs +428 -0
  221. data/ext/cargo-vendor/winch-codegen-0.14.0/src/frame/mod.rs +221 -0
  222. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/aarch64/abi.rs +313 -0
  223. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/aarch64/masm.rs +444 -0
  224. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/aarch64/mod.rs +137 -0
  225. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/mod.rs +225 -0
  226. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/abi.rs +524 -0
  227. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/asm.rs +1117 -0
  228. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/masm.rs +994 -0
  229. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/mod.rs +172 -0
  230. data/ext/cargo-vendor/winch-codegen-0.14.0/src/isa/x64/regs.rs +247 -0
  231. data/ext/cargo-vendor/winch-codegen-0.14.0/src/masm.rs +679 -0
  232. data/ext/cargo-vendor/winch-codegen-0.14.0/src/stack.rs +436 -0
  233. data/ext/cargo-vendor/winch-codegen-0.14.0/src/trampoline.rs +734 -0
  234. data/ext/cargo-vendor/winch-codegen-0.14.0/src/visitor.rs +1383 -0
  235. data/lib/wasmtime/version.rb +1 -1
  236. metadata +903 -977
  237. data/ext/cargo-vendor/cranelift-bforest-0.102.1/.cargo-checksum.json +0 -1
  238. data/ext/cargo-vendor/cranelift-bforest-0.102.1/Cargo.toml +0 -31
  239. data/ext/cargo-vendor/cranelift-bforest-0.102.1/src/lib.rs +0 -184
  240. data/ext/cargo-vendor/cranelift-codegen-0.102.1/.cargo-checksum.json +0 -1
  241. data/ext/cargo-vendor/cranelift-codegen-0.102.1/Cargo.toml +0 -164
  242. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/binemit/mod.rs +0 -171
  243. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/egraph/cost.rs +0 -91
  244. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/egraph/elaborate.rs +0 -731
  245. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/egraph.rs +0 -678
  246. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/ir/dfg.rs +0 -1730
  247. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/ir/pcc.rs +0 -1682
  248. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/aarch64/lower/isle.rs +0 -875
  249. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/riscv64/inst/mod.rs +0 -2041
  250. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/riscv64/inst.isle +0 -2909
  251. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/riscv64/lower.isle +0 -2860
  252. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/s390x/lower/isle.rs +0 -1029
  253. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/x64/lower/isle.rs +0 -1070
  254. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isa/x64/pcc.rs +0 -884
  255. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/isle_prelude.rs +0 -972
  256. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/lib.rs +0 -108
  257. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/machinst/isle.rs +0 -897
  258. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/arithmetic.isle +0 -128
  259. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/cprop.isle +0 -210
  260. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/icmp.isle +0 -177
  261. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts/selects.isle +0 -59
  262. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/opts.rs +0 -138
  263. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/prelude.isle +0 -646
  264. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/timing.rs +0 -271
  265. data/ext/cargo-vendor/cranelift-codegen-0.102.1/src/unionfind.rs +0 -74
  266. data/ext/cargo-vendor/cranelift-codegen-meta-0.102.1/.cargo-checksum.json +0 -1
  267. data/ext/cargo-vendor/cranelift-codegen-meta-0.102.1/Cargo.toml +0 -26
  268. data/ext/cargo-vendor/cranelift-codegen-shared-0.102.1/.cargo-checksum.json +0 -1
  269. data/ext/cargo-vendor/cranelift-codegen-shared-0.102.1/Cargo.toml +0 -22
  270. data/ext/cargo-vendor/cranelift-codegen-shared-0.102.1/src/lib.rs +0 -12
  271. data/ext/cargo-vendor/cranelift-control-0.102.1/.cargo-checksum.json +0 -1
  272. data/ext/cargo-vendor/cranelift-control-0.102.1/Cargo.toml +0 -30
  273. data/ext/cargo-vendor/cranelift-entity-0.102.1/.cargo-checksum.json +0 -1
  274. data/ext/cargo-vendor/cranelift-entity-0.102.1/Cargo.toml +0 -41
  275. data/ext/cargo-vendor/cranelift-entity-0.102.1/src/lib.rs +0 -316
  276. data/ext/cargo-vendor/cranelift-entity-0.102.1/src/primary.rs +0 -456
  277. data/ext/cargo-vendor/cranelift-frontend-0.102.1/.cargo-checksum.json +0 -1
  278. data/ext/cargo-vendor/cranelift-frontend-0.102.1/Cargo.toml +0 -59
  279. data/ext/cargo-vendor/cranelift-frontend-0.102.1/src/lib.rs +0 -191
  280. data/ext/cargo-vendor/cranelift-isle-0.102.1/.cargo-checksum.json +0 -1
  281. data/ext/cargo-vendor/cranelift-isle-0.102.1/Cargo.toml +0 -37
  282. data/ext/cargo-vendor/cranelift-isle-0.102.1/isle_examples/link/multi_constructor_main.rs +0 -71
  283. data/ext/cargo-vendor/cranelift-isle-0.102.1/isle_examples/link/multi_extractor_main.rs +0 -50
  284. data/ext/cargo-vendor/cranelift-isle-0.102.1/src/codegen.rs +0 -763
  285. data/ext/cargo-vendor/cranelift-native-0.102.1/.cargo-checksum.json +0 -1
  286. data/ext/cargo-vendor/cranelift-native-0.102.1/Cargo.toml +0 -43
  287. data/ext/cargo-vendor/cranelift-native-0.102.1/src/lib.rs +0 -190
  288. data/ext/cargo-vendor/cranelift-wasm-0.102.1/.cargo-checksum.json +0 -1
  289. data/ext/cargo-vendor/cranelift-wasm-0.102.1/Cargo.toml +0 -97
  290. data/ext/cargo-vendor/cranelift-wasm-0.102.1/src/environ/dummy.rs +0 -953
  291. data/ext/cargo-vendor/cranelift-wasm-0.102.1/src/lib.rs +0 -64
  292. data/ext/cargo-vendor/cranelift-wasm-0.102.1/src/translation_utils.rs +0 -97
  293. data/ext/cargo-vendor/wasi-cap-std-sync-15.0.1/.cargo-checksum.json +0 -1
  294. data/ext/cargo-vendor/wasi-cap-std-sync-15.0.1/Cargo.toml +0 -93
  295. data/ext/cargo-vendor/wasi-common-15.0.1/.cargo-checksum.json +0 -1
  296. data/ext/cargo-vendor/wasi-common-15.0.1/Cargo.toml +0 -122
  297. data/ext/cargo-vendor/wasi-common-15.0.1/src/lib.rs +0 -73
  298. data/ext/cargo-vendor/wasi-common-15.0.1/src/snapshots/preview_1.rs +0 -1490
  299. data/ext/cargo-vendor/wasm-encoder-0.36.2/.cargo-checksum.json +0 -1
  300. data/ext/cargo-vendor/wasm-encoder-0.36.2/Cargo.toml +0 -37
  301. data/ext/cargo-vendor/wasm-encoder-0.36.2/README.md +0 -80
  302. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/aliases.rs +0 -160
  303. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/builder.rs +0 -455
  304. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/canonicals.rs +0 -159
  305. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/components.rs +0 -29
  306. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/exports.rs +0 -124
  307. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/imports.rs +0 -175
  308. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/instances.rs +0 -200
  309. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/modules.rs +0 -29
  310. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/names.rs +0 -149
  311. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/start.rs +0 -52
  312. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component/types.rs +0 -771
  313. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/component.rs +0 -168
  314. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/code.rs +0 -2989
  315. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/custom.rs +0 -73
  316. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/data.rs +0 -185
  317. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/dump.rs +0 -627
  318. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/elements.rs +0 -220
  319. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/exports.rs +0 -98
  320. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/functions.rs +0 -63
  321. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/globals.rs +0 -100
  322. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/imports.rs +0 -155
  323. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/linking.rs +0 -263
  324. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/memories.rs +0 -111
  325. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/names.rs +0 -265
  326. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/producers.rs +0 -180
  327. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/start.rs +0 -39
  328. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/tables.rs +0 -115
  329. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/tags.rs +0 -104
  330. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core/types.rs +0 -584
  331. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/core.rs +0 -168
  332. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/lib.rs +0 -215
  333. data/ext/cargo-vendor/wasm-encoder-0.36.2/src/raw.rs +0 -30
  334. data/ext/cargo-vendor/wasmparser-0.116.1/.cargo-checksum.json +0 -1
  335. data/ext/cargo-vendor/wasmparser-0.116.1/Cargo.lock +0 -674
  336. data/ext/cargo-vendor/wasmparser-0.116.1/Cargo.toml +0 -60
  337. data/ext/cargo-vendor/wasmparser-0.116.1/README.md +0 -36
  338. data/ext/cargo-vendor/wasmparser-0.116.1/benches/benchmark.rs +0 -370
  339. data/ext/cargo-vendor/wasmparser-0.116.1/examples/simple.rs +0 -37
  340. data/ext/cargo-vendor/wasmparser-0.116.1/src/binary_reader.rs +0 -1706
  341. data/ext/cargo-vendor/wasmparser-0.116.1/src/define_types.rs +0 -782
  342. data/ext/cargo-vendor/wasmparser-0.116.1/src/lib.rs +0 -729
  343. data/ext/cargo-vendor/wasmparser-0.116.1/src/limits.rs +0 -58
  344. data/ext/cargo-vendor/wasmparser-0.116.1/src/parser.rs +0 -1612
  345. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/aliases.rs +0 -119
  346. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/canonicals.rs +0 -120
  347. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/exports.rs +0 -135
  348. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/imports.rs +0 -129
  349. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/instances.rs +0 -163
  350. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/names.rs +0 -102
  351. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/start.rs +0 -30
  352. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component/types.rs +0 -549
  353. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/component.rs +0 -17
  354. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/code.rs +0 -146
  355. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/coredumps.rs +0 -243
  356. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/custom.rs +0 -63
  357. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/data.rs +0 -96
  358. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/dylink0.rs +0 -132
  359. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/elements.rs +0 -152
  360. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/exports.rs +0 -65
  361. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/functions.rs +0 -17
  362. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/globals.rs +0 -49
  363. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/imports.rs +0 -76
  364. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/init.rs +0 -51
  365. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/memories.rs +0 -56
  366. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/names.rs +0 -153
  367. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/operators.rs +0 -354
  368. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/producers.rs +0 -83
  369. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/tables.rs +0 -87
  370. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/tags.rs +0 -32
  371. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core/types.rs +0 -544
  372. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers/core.rs +0 -37
  373. data/ext/cargo-vendor/wasmparser-0.116.1/src/readers.rs +0 -316
  374. data/ext/cargo-vendor/wasmparser-0.116.1/src/resources.rs +0 -398
  375. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/component.rs +0 -3203
  376. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/core.rs +0 -1341
  377. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/func.rs +0 -348
  378. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/names.rs +0 -859
  379. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/operators.rs +0 -3466
  380. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator/types.rs +0 -4011
  381. data/ext/cargo-vendor/wasmparser-0.116.1/src/validator.rs +0 -1603
  382. data/ext/cargo-vendor/wasmparser-0.116.1/tests/big-module.rs +0 -33
  383. data/ext/cargo-vendor/wasmtime-15.0.1/.cargo-checksum.json +0 -1
  384. data/ext/cargo-vendor/wasmtime-15.0.1/Cargo.toml +0 -202
  385. data/ext/cargo-vendor/wasmtime-15.0.1/src/compiler.rs +0 -682
  386. data/ext/cargo-vendor/wasmtime-15.0.1/src/component/component.rs +0 -505
  387. data/ext/cargo-vendor/wasmtime-15.0.1/src/component/func/typed.rs +0 -2398
  388. data/ext/cargo-vendor/wasmtime-15.0.1/src/config.rs +0 -2422
  389. data/ext/cargo-vendor/wasmtime-15.0.1/src/func.rs +0 -2428
  390. data/ext/cargo-vendor/wasmtime-15.0.1/src/lib.rs +0 -518
  391. data/ext/cargo-vendor/wasmtime-15.0.1/src/memory.rs +0 -996
  392. data/ext/cargo-vendor/wasmtime-15.0.1/src/module.rs +0 -1370
  393. data/ext/cargo-vendor/wasmtime-15.0.1/src/stack.rs +0 -73
  394. data/ext/cargo-vendor/wasmtime-15.0.1/src/v128.rs +0 -151
  395. data/ext/cargo-vendor/wasmtime-asm-macros-15.0.1/.cargo-checksum.json +0 -1
  396. data/ext/cargo-vendor/wasmtime-asm-macros-15.0.1/Cargo.toml +0 -22
  397. data/ext/cargo-vendor/wasmtime-cache-15.0.1/.cargo-checksum.json +0 -1
  398. data/ext/cargo-vendor/wasmtime-cache-15.0.1/Cargo.toml +0 -72
  399. data/ext/cargo-vendor/wasmtime-cache-15.0.1/src/lib.rs +0 -238
  400. data/ext/cargo-vendor/wasmtime-cache-15.0.1/src/worker.rs +0 -894
  401. data/ext/cargo-vendor/wasmtime-component-macro-15.0.1/.cargo-checksum.json +0 -1
  402. data/ext/cargo-vendor/wasmtime-component-macro-15.0.1/Cargo.toml +0 -58
  403. data/ext/cargo-vendor/wasmtime-component-util-15.0.1/.cargo-checksum.json +0 -1
  404. data/ext/cargo-vendor/wasmtime-component-util-15.0.1/Cargo.toml +0 -25
  405. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/.cargo-checksum.json +0 -1
  406. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/Cargo.toml +0 -103
  407. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/compiler/component.rs +0 -959
  408. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/compiler.rs +0 -1317
  409. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/debug/transform/expression.rs +0 -1250
  410. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/debug/transform/simulate.rs +0 -410
  411. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/debug.rs +0 -18
  412. data/ext/cargo-vendor/wasmtime-cranelift-15.0.1/src/func_environ.rs +0 -2746
  413. data/ext/cargo-vendor/wasmtime-cranelift-shared-15.0.1/.cargo-checksum.json +0 -1
  414. data/ext/cargo-vendor/wasmtime-cranelift-shared-15.0.1/Cargo.toml +0 -62
  415. data/ext/cargo-vendor/wasmtime-environ-15.0.1/.cargo-checksum.json +0 -1
  416. data/ext/cargo-vendor/wasmtime-environ-15.0.1/Cargo.lock +0 -677
  417. data/ext/cargo-vendor/wasmtime-environ-15.0.1/Cargo.toml +0 -116
  418. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/compilation.rs +0 -402
  419. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/component/compiler.rs +0 -47
  420. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/component/translate.rs +0 -951
  421. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/component/types.rs +0 -1870
  422. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/lib.rs +0 -59
  423. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/module.rs +0 -1083
  424. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/module_environ.rs +0 -876
  425. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/module_types.rs +0 -78
  426. data/ext/cargo-vendor/wasmtime-environ-15.0.1/src/scopevec.rs +0 -57
  427. data/ext/cargo-vendor/wasmtime-fiber-15.0.1/.cargo-checksum.json +0 -1
  428. data/ext/cargo-vendor/wasmtime-fiber-15.0.1/Cargo.toml +0 -54
  429. data/ext/cargo-vendor/wasmtime-fiber-15.0.1/src/lib.rs +0 -327
  430. data/ext/cargo-vendor/wasmtime-fiber-15.0.1/src/unix.rs +0 -265
  431. data/ext/cargo-vendor/wasmtime-fiber-15.0.1/src/windows.c +0 -9
  432. data/ext/cargo-vendor/wasmtime-jit-15.0.1/.cargo-checksum.json +0 -1
  433. data/ext/cargo-vendor/wasmtime-jit-15.0.1/Cargo.toml +0 -115
  434. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/code_memory.rs +0 -321
  435. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/instantiate.rs +0 -766
  436. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/lib.rs +0 -22
  437. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind/miri.rs +0 -15
  438. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind/systemv.rs +0 -90
  439. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind/winx64.rs +0 -44
  440. data/ext/cargo-vendor/wasmtime-jit-15.0.1/src/unwind.rs +0 -14
  441. data/ext/cargo-vendor/wasmtime-jit-debug-15.0.1/.cargo-checksum.json +0 -1
  442. data/ext/cargo-vendor/wasmtime-jit-debug-15.0.1/Cargo.toml +0 -58
  443. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-15.0.1/.cargo-checksum.json +0 -1
  444. data/ext/cargo-vendor/wasmtime-jit-icache-coherence-15.0.1/Cargo.toml +0 -37
  445. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/.cargo-checksum.json +0 -1
  446. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/Cargo.toml +0 -126
  447. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/build.rs +0 -19
  448. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/proptest-regressions/instance/allocator/pooling/memory_pool.txt +0 -8
  449. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/cow.rs +0 -1060
  450. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/helpers.c +0 -108
  451. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/memory_pool.rs +0 -999
  452. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/stack_pool.rs +0 -242
  453. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/table_pool.rs +0 -225
  454. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/unix.rs +0 -56
  455. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling/windows.rs +0 -38
  456. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/instance/allocator/pooling.rs +0 -708
  457. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/lib.rs +0 -279
  458. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/libcalls.rs +0 -775
  459. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/mmap.rs +0 -226
  460. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/mpk/enabled.rs +0 -201
  461. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/mpk/pkru.rs +0 -93
  462. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/aarch64.rs +0 -42
  463. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/riscv64.rs +0 -45
  464. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/s390x.rs +0 -25
  465. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines/x86_64.rs +0 -64
  466. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/trampolines.rs +0 -19
  467. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/aarch64.rs +0 -55
  468. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/riscv64.rs +0 -18
  469. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/s390x.rs +0 -22
  470. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace/x86_64.rs +0 -20
  471. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/backtrace.rs +0 -291
  472. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/macos.rs +0 -492
  473. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/unix.rs +0 -402
  474. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers/windows.rs +0 -89
  475. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/traphandlers.rs +0 -815
  476. data/ext/cargo-vendor/wasmtime-runtime-15.0.1/src/vmcontext.rs +0 -1197
  477. data/ext/cargo-vendor/wasmtime-types-15.0.1/.cargo-checksum.json +0 -1
  478. data/ext/cargo-vendor/wasmtime-types-15.0.1/Cargo.toml +0 -36
  479. data/ext/cargo-vendor/wasmtime-types-15.0.1/src/lib.rs +0 -504
  480. data/ext/cargo-vendor/wasmtime-versioned-export-macros-15.0.1/.cargo-checksum.json +0 -1
  481. data/ext/cargo-vendor/wasmtime-versioned-export-macros-15.0.1/Cargo.toml +0 -32
  482. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/.cargo-checksum.json +0 -1
  483. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/Cargo.toml +0 -248
  484. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/lib.rs +0 -135
  485. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/io.rs +0 -368
  486. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/network.rs +0 -515
  487. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/tcp.rs +0 -630
  488. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/host/udp.rs +0 -543
  489. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/mod.rs +0 -326
  490. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/preview1.rs +0 -2342
  491. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/stdio.rs +0 -450
  492. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/stream.rs +0 -182
  493. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/src/preview2/table.rs +0 -258
  494. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/command-extended.wit +0 -6
  495. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/cli/command.wit +0 -7
  496. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/cli/reactor.wit +0 -31
  497. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/http/proxy.wit +0 -33
  498. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/deps/http/types.wit +0 -559
  499. data/ext/cargo-vendor/wasmtime-wasi-15.0.1/wit/test.wit +0 -22
  500. data/ext/cargo-vendor/wasmtime-winch-15.0.1/.cargo-checksum.json +0 -1
  501. data/ext/cargo-vendor/wasmtime-winch-15.0.1/Cargo.toml +0 -68
  502. data/ext/cargo-vendor/wasmtime-winch-15.0.1/src/compiler.rs +0 -242
  503. data/ext/cargo-vendor/wasmtime-wit-bindgen-15.0.1/.cargo-checksum.json +0 -1
  504. data/ext/cargo-vendor/wasmtime-wit-bindgen-15.0.1/Cargo.toml +0 -32
  505. data/ext/cargo-vendor/wasmtime-wmemcheck-15.0.1/.cargo-checksum.json +0 -1
  506. data/ext/cargo-vendor/wasmtime-wmemcheck-15.0.1/Cargo.toml +0 -22
  507. data/ext/cargo-vendor/wiggle-15.0.1/.cargo-checksum.json +0 -1
  508. data/ext/cargo-vendor/wiggle-15.0.1/Cargo.toml +0 -106
  509. data/ext/cargo-vendor/wiggle-15.0.1/src/lib.rs +0 -1198
  510. data/ext/cargo-vendor/wiggle-generate-15.0.1/.cargo-checksum.json +0 -1
  511. data/ext/cargo-vendor/wiggle-generate-15.0.1/Cargo.toml +0 -58
  512. data/ext/cargo-vendor/wiggle-generate-15.0.1/LICENSE +0 -220
  513. data/ext/cargo-vendor/wiggle-generate-15.0.1/src/types/handle.rs +0 -84
  514. data/ext/cargo-vendor/wiggle-generate-15.0.1/src/types/record.rs +0 -132
  515. data/ext/cargo-vendor/wiggle-generate-15.0.1/src/types/variant.rs +0 -191
  516. data/ext/cargo-vendor/wiggle-macro-15.0.1/.cargo-checksum.json +0 -1
  517. data/ext/cargo-vendor/wiggle-macro-15.0.1/Cargo.toml +0 -55
  518. data/ext/cargo-vendor/wiggle-macro-15.0.1/LICENSE +0 -220
  519. data/ext/cargo-vendor/winch-codegen-0.13.1/.cargo-checksum.json +0 -1
  520. data/ext/cargo-vendor/winch-codegen-0.13.1/Cargo.toml +0 -67
  521. data/ext/cargo-vendor/winch-codegen-0.13.1/src/abi/local.rs +0 -70
  522. data/ext/cargo-vendor/winch-codegen-0.13.1/src/abi/mod.rs +0 -304
  523. data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/call.rs +0 -353
  524. data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/context.rs +0 -465
  525. data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/control.rs +0 -456
  526. data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/env.rs +0 -181
  527. data/ext/cargo-vendor/winch-codegen-0.13.1/src/codegen/mod.rs +0 -436
  528. data/ext/cargo-vendor/winch-codegen-0.13.1/src/frame/mod.rs +0 -189
  529. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/aarch64/abi.rs +0 -267
  530. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/aarch64/masm.rs +0 -436
  531. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/aarch64/mod.rs +0 -136
  532. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/mod.rs +0 -218
  533. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/abi.rs +0 -410
  534. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/asm.rs +0 -1106
  535. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/masm.rs +0 -953
  536. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/mod.rs +0 -172
  537. data/ext/cargo-vendor/winch-codegen-0.13.1/src/isa/x64/regs.rs +0 -247
  538. data/ext/cargo-vendor/winch-codegen-0.13.1/src/masm.rs +0 -592
  539. data/ext/cargo-vendor/winch-codegen-0.13.1/src/stack.rs +0 -366
  540. data/ext/cargo-vendor/winch-codegen-0.13.1/src/trampoline.rs +0 -489
  541. data/ext/cargo-vendor/winch-codegen-0.13.1/src/visitor.rs +0 -1339
  542. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/LICENSE +0 -0
  543. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/README.md +0 -0
  544. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/map.rs +0 -0
  545. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/node.rs +0 -0
  546. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/path.rs +0 -0
  547. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/pool.rs +0 -0
  548. /data/ext/cargo-vendor/{cranelift-bforest-0.102.1 → cranelift-bforest-0.103.0}/src/set.rs +0 -0
  549. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/LICENSE +0 -0
  550. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/README.md +0 -0
  551. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/benches/x64-evex-encoding.rs +0 -0
  552. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/build.rs +0 -0
  553. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/alias_analysis.rs +0 -0
  554. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/binemit/stack_map.rs +0 -0
  555. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/bitset.rs +0 -0
  556. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/cfg_printer.rs +0 -0
  557. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/constant_hash.rs +0 -0
  558. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/context.rs +0 -0
  559. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ctxhash.rs +0 -0
  560. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/cursor.rs +0 -0
  561. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/data_value.rs +0 -0
  562. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/dbg.rs +0 -0
  563. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/dce.rs +0 -0
  564. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/dominator_tree.rs +0 -0
  565. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/egraph/domtree.rs +0 -0
  566. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/flowgraph.rs +0 -0
  567. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/fx.rs +0 -0
  568. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/incremental_cache.rs +0 -0
  569. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/inst_predicates.rs +0 -0
  570. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/atomic_rmw_op.rs +0 -0
  571. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/builder.rs +0 -0
  572. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/condcodes.rs +0 -0
  573. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/constant.rs +0 -0
  574. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/dynamic_type.rs +0 -0
  575. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/entities.rs +0 -0
  576. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/extfunc.rs +0 -0
  577. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/extname.rs +0 -0
  578. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/function.rs +0 -0
  579. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/globalvalue.rs +0 -0
  580. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/immediates.rs +0 -0
  581. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/instructions.rs +0 -0
  582. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/jumptable.rs +0 -0
  583. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/known_symbol.rs +0 -0
  584. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/layout.rs +0 -0
  585. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/libcall.rs +0 -0
  586. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/memflags.rs +0 -0
  587. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/memtype.rs +0 -0
  588. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/mod.rs +0 -0
  589. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/progpoint.rs +0 -0
  590. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/sourceloc.rs +0 -0
  591. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/stackslot.rs +0 -0
  592. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/table.rs +0 -0
  593. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/trapcode.rs +0 -0
  594. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/ir/types.rs +0 -0
  595. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/abi.rs +0 -0
  596. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/args.rs +0 -0
  597. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/emit.rs +0 -0
  598. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/emit_tests.rs +0 -0
  599. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/imms.rs +0 -0
  600. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/mod.rs +0 -0
  601. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/regs.rs +0 -0
  602. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/unwind/systemv.rs +0 -0
  603. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst/unwind.rs +0 -0
  604. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst.isle +0 -0
  605. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/inst_neon.isle +0 -0
  606. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower/isle/generated_code.rs +0 -0
  607. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower.isle +0 -0
  608. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower.rs +0 -0
  609. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/lower_dynamic_neon.isle +0 -0
  610. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/mod.rs +0 -0
  611. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/pcc.rs +0 -0
  612. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/aarch64/settings.rs +0 -0
  613. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/call_conv.rs +0 -0
  614. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/mod.rs +0 -0
  615. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/abi.rs +0 -0
  616. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/args.rs +0 -0
  617. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/emit.rs +0 -0
  618. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/emit_tests.rs +0 -0
  619. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/encode.rs +0 -0
  620. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/imms.rs +0 -0
  621. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/regs.rs +0 -0
  622. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/unwind/systemv.rs +0 -0
  623. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/unwind.rs +0 -0
  624. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst/vector.rs +0 -0
  625. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/inst_vector.isle +0 -0
  626. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/lower/isle/generated_code.rs +0 -0
  627. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/lower/isle.rs +0 -0
  628. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/lower.rs +0 -0
  629. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/mod.rs +0 -0
  630. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/riscv64/settings.rs +0 -0
  631. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/abi.rs +0 -0
  632. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/args.rs +0 -0
  633. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/emit.rs +0 -0
  634. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/emit_tests.rs +0 -0
  635. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/imms.rs +0 -0
  636. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/mod.rs +0 -0
  637. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/regs.rs +0 -0
  638. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/unwind/systemv.rs +0 -0
  639. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst/unwind.rs +0 -0
  640. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/inst.isle +0 -0
  641. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/lower/isle/generated_code.rs +0 -0
  642. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/lower.isle +0 -0
  643. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/lower.rs +0 -0
  644. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/mod.rs +0 -0
  645. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/s390x/settings.rs +0 -0
  646. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/unwind/systemv.rs +0 -0
  647. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/unwind/winx64.rs +0 -0
  648. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/unwind.rs +0 -0
  649. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/abi.rs +0 -0
  650. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/evex.rs +0 -0
  651. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/mod.rs +0 -0
  652. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/rex.rs +0 -0
  653. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/encoding/vex.rs +0 -0
  654. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/args.rs +0 -0
  655. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/emit.rs +0 -0
  656. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/emit_state.rs +0 -0
  657. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/emit_tests.rs +0 -0
  658. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/mod.rs +0 -0
  659. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/regs.rs +0 -0
  660. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/unwind/systemv.rs +0 -0
  661. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/unwind/winx64.rs +0 -0
  662. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst/unwind.rs +0 -0
  663. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/inst.isle +0 -0
  664. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/lower/isle/generated_code.rs +0 -0
  665. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/lower.isle +0 -0
  666. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/lower.rs +0 -0
  667. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/mod.rs +0 -0
  668. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/isa/x64/settings.rs +0 -0
  669. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/iterators.rs +0 -0
  670. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/legalizer/globalvalue.rs +0 -0
  671. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/legalizer/mod.rs +0 -0
  672. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/legalizer/table.rs +0 -0
  673. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/loop_analysis.rs +0 -0
  674. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/abi.rs +0 -0
  675. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/blockorder.rs +0 -0
  676. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/buffer.rs +0 -0
  677. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/compile.rs +0 -0
  678. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/helpers.rs +0 -0
  679. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/inst_common.rs +0 -0
  680. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/lower.rs +0 -0
  681. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/mod.rs +0 -0
  682. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/pcc.rs +0 -0
  683. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/reg.rs +0 -0
  684. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/valueregs.rs +0 -0
  685. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/machinst/vcode.rs +0 -0
  686. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/nan_canonicalization.rs +0 -0
  687. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/README.md +0 -0
  688. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/bitops.isle +0 -0
  689. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/extends.isle +0 -0
  690. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/generated_code.rs +0 -0
  691. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/remat.isle +0 -0
  692. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/shifts.isle +0 -0
  693. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/opts/vector.isle +0 -0
  694. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/prelude_lower.isle +0 -0
  695. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/prelude_opt.isle +0 -0
  696. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/print_errors.rs +0 -0
  697. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/remove_constant_phis.rs +0 -0
  698. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/result.rs +0 -0
  699. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/scoped_hash_map.rs +0 -0
  700. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/settings.rs +0 -0
  701. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/souper_harvest.rs +0 -0
  702. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/unreachable_code.rs +0 -0
  703. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/value_label.rs +0 -0
  704. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/verifier/mod.rs +0 -0
  705. /data/ext/cargo-vendor/{cranelift-codegen-0.102.1 → cranelift-codegen-0.103.0}/src/write.rs +0 -0
  706. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/LICENSE +0 -0
  707. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/README.md +0 -0
  708. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/formats.rs +0 -0
  709. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/instructions.rs +0 -0
  710. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/isa.rs +0 -0
  711. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/mod.rs +0 -0
  712. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/operands.rs +0 -0
  713. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/settings.rs +0 -0
  714. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/types.rs +0 -0
  715. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/cdsl/typevar.rs +0 -0
  716. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/constant_hash.rs +0 -0
  717. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/error.rs +0 -0
  718. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/gen_inst.rs +0 -0
  719. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/gen_settings.rs +0 -0
  720. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/gen_types.rs +0 -0
  721. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/arm64.rs +0 -0
  722. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/mod.rs +0 -0
  723. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/riscv64.rs +0 -0
  724. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/s390x.rs +0 -0
  725. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/isa/x86.rs +0 -0
  726. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/lib.rs +0 -0
  727. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/entities.rs +0 -0
  728. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/formats.rs +0 -0
  729. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/immediates.rs +0 -0
  730. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/instructions.rs +0 -0
  731. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/mod.rs +0 -0
  732. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/settings.rs +0 -0
  733. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/shared/types.rs +0 -0
  734. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/srcgen.rs +0 -0
  735. /data/ext/cargo-vendor/{cranelift-codegen-meta-0.102.1 → cranelift-codegen-meta-0.103.0}/src/unique_table.rs +0 -0
  736. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/LICENSE +0 -0
  737. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/README.md +0 -0
  738. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/src/constant_hash.rs +0 -0
  739. /data/ext/cargo-vendor/{cranelift-codegen-shared-0.102.1 → cranelift-codegen-shared-0.103.0}/src/constants.rs +0 -0
  740. /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/LICENSE +0 -0
  741. /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/README.md +0 -0
  742. /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/src/chaos.rs +0 -0
  743. /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/src/lib.rs +0 -0
  744. /data/ext/cargo-vendor/{cranelift-control-0.102.1 → cranelift-control-0.103.0}/src/zero_sized.rs +0 -0
  745. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/LICENSE +0 -0
  746. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/README.md +0 -0
  747. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/boxed_slice.rs +0 -0
  748. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/iter.rs +0 -0
  749. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/keys.rs +0 -0
  750. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/list.rs +0 -0
  751. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/map.rs +0 -0
  752. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/packed_option.rs +0 -0
  753. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/set.rs +0 -0
  754. /data/ext/cargo-vendor/{cranelift-entity-0.102.1 → cranelift-entity-0.103.0}/src/sparse.rs +0 -0
  755. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/LICENSE +0 -0
  756. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/README.md +0 -0
  757. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/frontend.rs +0 -0
  758. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/ssa.rs +0 -0
  759. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/switch.rs +0 -0
  760. /data/ext/cargo-vendor/{cranelift-frontend-0.102.1 → cranelift-frontend-0.103.0}/src/variable.rs +0 -0
  761. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/README.md +0 -0
  762. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/build.rs +0 -0
  763. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/bad_converters.isle +0 -0
  764. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/bound_var_type_mismatch.isle +0 -0
  765. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/converter_extractor_constructor.isle +0 -0
  766. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/error1.isle +0 -0
  767. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/extra_parens.isle +0 -0
  768. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/impure_expression.isle +0 -0
  769. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/impure_rhs.isle +0 -0
  770. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/multi_internal_etor.isle +0 -0
  771. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/fail/multi_prio.isle +0 -0
  772. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/borrows.isle +0 -0
  773. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/borrows_main.rs +0 -0
  774. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/iflets.isle +0 -0
  775. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/iflets_main.rs +0 -0
  776. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/multi_constructor.isle +0 -0
  777. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/multi_extractor.isle +0 -0
  778. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/test.isle +0 -0
  779. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/link/test_main.rs +0 -0
  780. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/bound_var.isle +0 -0
  781. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/construct_and_extract.isle +0 -0
  782. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/conversions.isle +0 -0
  783. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/conversions_extern.isle +0 -0
  784. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/let.isle +0 -0
  785. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/nodebug.isle +0 -0
  786. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/prio_trie_bug.isle +0 -0
  787. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/test2.isle +0 -0
  788. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/test3.isle +0 -0
  789. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/test4.isle +0 -0
  790. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/pass/tutorial.isle +0 -0
  791. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/iconst.isle +0 -0
  792. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/iconst_main.rs +0 -0
  793. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/let_shadowing.isle +0 -0
  794. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/isle_examples/run/let_shadowing_main.rs +0 -0
  795. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/ast.rs +0 -0
  796. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/compile.rs +0 -0
  797. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/error.rs +0 -0
  798. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/lexer.rs +0 -0
  799. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/lib.rs +0 -0
  800. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/log.rs +0 -0
  801. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/overlap.rs +0 -0
  802. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/parser.rs +0 -0
  803. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/sema.rs +0 -0
  804. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/serialize.rs +0 -0
  805. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/src/trie_again.rs +0 -0
  806. /data/ext/cargo-vendor/{cranelift-isle-0.102.1 → cranelift-isle-0.103.0}/tests/run_tests.rs +0 -0
  807. /data/ext/cargo-vendor/{cranelift-native-0.102.1 → cranelift-native-0.103.0}/LICENSE +0 -0
  808. /data/ext/cargo-vendor/{cranelift-native-0.102.1 → cranelift-native-0.103.0}/README.md +0 -0
  809. /data/ext/cargo-vendor/{cranelift-native-0.102.1 → cranelift-native-0.103.0}/src/riscv.rs +0 -0
  810. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/LICENSE +0 -0
  811. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/README.md +0 -0
  812. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/code_translator/bounds_checks.rs +0 -0
  813. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/code_translator.rs +0 -0
  814. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/environ/mod.rs +0 -0
  815. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/environ/spec.rs +0 -0
  816. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/func_translator.rs +0 -0
  817. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/heap.rs +0 -0
  818. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/module_translator.rs +0 -0
  819. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/sections_translator.rs +0 -0
  820. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/src/state.rs +0 -0
  821. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/tests/wasm_testsuite.rs +0 -0
  822. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/arith.wat +0 -0
  823. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/br_table.wat +0 -0
  824. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/call-simd.wat +0 -0
  825. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/call.wat +0 -0
  826. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_fannkuch.wat +0 -0
  827. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_fasta.wat +0 -0
  828. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_ifs.wat +0 -0
  829. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/embenchen_primes.wat +0 -0
  830. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/fac-multi-value.wat +0 -0
  831. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/fibonacci.wat +0 -0
  832. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/globals.wat +0 -0
  833. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/icall-simd.wat +0 -0
  834. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/icall.wat +0 -0
  835. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-0.wat +0 -0
  836. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-1.wat +0 -0
  837. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-2.wat +0 -0
  838. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-3.wat +0 -0
  839. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-4.wat +0 -0
  840. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-5.wat +0 -0
  841. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-reachability-translation-6.wat +0 -0
  842. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-unreachable-else-params-2.wat +0 -0
  843. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/if-unreachable-else-params.wat +0 -0
  844. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/issue-1306-name-section-with-u32-max-function-index.wasm +0 -0
  845. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/memory.wat +0 -0
  846. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-0.wat +0 -0
  847. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-1.wat +0 -0
  848. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-10.wat +0 -0
  849. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-11.wat +0 -0
  850. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-12.wat +0 -0
  851. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-13.wat +0 -0
  852. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-14.wat +0 -0
  853. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-15.wat +0 -0
  854. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-16.wat +0 -0
  855. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-17.wat +0 -0
  856. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-2.wat +0 -0
  857. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-3.wat +0 -0
  858. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-4.wat +0 -0
  859. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-5.wat +0 -0
  860. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-6.wat +0 -0
  861. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-7.wat +0 -0
  862. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-8.wat +0 -0
  863. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/multi-9.wat +0 -0
  864. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/nullref.wat +0 -0
  865. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/passive-data.wat +0 -0
  866. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/pr2303.wat +0 -0
  867. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/pr2559.wat +0 -0
  868. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/ref-func-0.wat +0 -0
  869. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/rust_fannkuch.wat +0 -0
  870. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/select.wat +0 -0
  871. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/simd-store.wat +0 -0
  872. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/simd.wat +0 -0
  873. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/table-copy.wat +0 -0
  874. /data/ext/cargo-vendor/{cranelift-wasm-0.102.1 → cranelift-wasm-0.103.0}/wasmtests/unreachable_code.wat +0 -0
  875. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/LICENSE +0 -0
  876. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/README.md +0 -0
  877. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/clocks.rs +0 -0
  878. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/dir.rs +0 -0
  879. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/file.rs +0 -0
  880. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/lib.rs +0 -0
  881. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/net.rs +0 -0
  882. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/sched/unix.rs +0 -0
  883. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/sched/windows.rs +0 -0
  884. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/sched.rs +0 -0
  885. /data/ext/cargo-vendor/{wasi-cap-std-sync-15.0.1 → wasi-cap-std-sync-16.0.0}/src/stdio.rs +0 -0
  886. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/LICENSE +0 -0
  887. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/README.md +0 -0
  888. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/README.md +0 -0
  889. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/docs/README.md +0 -0
  890. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/README.md +0 -0
  891. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/docs.md +0 -0
  892. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/typenames.witx +0 -0
  893. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_args.witx +0 -0
  894. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_clock.witx +0 -0
  895. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_environ.witx +0 -0
  896. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_fd.witx +0 -0
  897. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_path.witx +0 -0
  898. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_poll.witx +0 -0
  899. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_proc.witx +0 -0
  900. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_random.witx +0 -0
  901. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_sched.witx +0 -0
  902. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/ephemeral/witx/wasi_ephemeral_sock.witx +0 -0
  903. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/old/snapshot_0/docs.md +0 -0
  904. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/old/snapshot_0/witx/typenames.witx +0 -0
  905. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/old/snapshot_0/witx/wasi_unstable.witx +0 -0
  906. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/docs.html +0 -0
  907. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/docs.md +0 -0
  908. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/witx/typenames.witx +0 -0
  909. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx +0 -0
  910. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/proposal-template/README.md +0 -0
  911. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/proposals/README.md +0 -0
  912. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/snapshots/README.md +0 -0
  913. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/WASI/standard/README.md +0 -0
  914. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/build.rs +0 -0
  915. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/clocks.rs +0 -0
  916. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/ctx.rs +0 -0
  917. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/dir.rs +0 -0
  918. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/error.rs +0 -0
  919. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/file.rs +0 -0
  920. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/pipe.rs +0 -0
  921. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/random.rs +0 -0
  922. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/sched/subscription.rs +0 -0
  923. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/sched.rs +0 -0
  924. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/snapshots/mod.rs +0 -0
  925. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/snapshots/preview_0.rs +0 -0
  926. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/snapshots/preview_1/error.rs +0 -0
  927. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/string_array.rs +0 -0
  928. /data/ext/cargo-vendor/{wasi-common-15.0.1 → wasi-common-16.0.0}/src/table.rs +0 -0
  929. /data/ext/cargo-vendor/{wasm-encoder-0.36.2 → wasmtime-16.0.0}/LICENSE +0 -0
  930. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/README.md +0 -0
  931. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/code.rs +0 -0
  932. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/func/host.rs +0 -0
  933. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/func/options.rs +0 -0
  934. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/func.rs +0 -0
  935. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/instance.rs +0 -0
  936. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/linker.rs +0 -0
  937. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/matching.rs +0 -0
  938. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/mod.rs +0 -0
  939. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/resources.rs +0 -0
  940. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/storage.rs +0 -0
  941. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/store.rs +0 -0
  942. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/types.rs +0 -0
  943. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/component/values.rs +0 -0
  944. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/coredump.rs +0 -0
  945. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/engine/serialization.rs +0 -0
  946. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/engine.rs +0 -0
  947. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/externals/global.rs +0 -0
  948. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/externals/table.rs +0 -0
  949. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/externals.rs +0 -0
  950. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/func/typed.rs +0 -0
  951. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/instance.rs +0 -0
  952. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/limits.rs +0 -0
  953. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/linker.rs +0 -0
  954. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/module/registry.rs +0 -0
  955. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/profiling.rs +0 -0
  956. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/ref.rs +0 -0
  957. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/resources.rs +0 -0
  958. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/signatures.rs +0 -0
  959. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store/context.rs +0 -0
  960. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store/data.rs +0 -0
  961. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store/func_refs.rs +0 -0
  962. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/store.rs +0 -0
  963. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/func.rs +0 -0
  964. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/global.rs +0 -0
  965. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/memory.rs +0 -0
  966. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline/table.rs +0 -0
  967. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trampoline.rs +0 -0
  968. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/trap.rs +0 -0
  969. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/types/matching.rs +0 -0
  970. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/types.rs +0 -0
  971. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/unix.rs +0 -0
  972. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/values.rs +0 -0
  973. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-16.0.0}/src/windows.rs +0 -0
  974. /data/ext/cargo-vendor/{wasmtime-asm-macros-15.0.1 → wasmtime-asm-macros-16.0.0}/src/lib.rs +0 -0
  975. /data/ext/cargo-vendor/{wasmparser-0.116.1 → wasmtime-cache-16.0.0}/LICENSE +0 -0
  976. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/build.rs +0 -0
  977. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/config/tests.rs +0 -0
  978. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/config.rs +0 -0
  979. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/tests.rs +0 -0
  980. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/worker/tests/system_time_stub.rs +0 -0
  981. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/src/worker/tests.rs +0 -0
  982. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-cache-16.0.0}/tests/cache_write_default_config.rs +0 -0
  983. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/src/bindgen.rs +0 -0
  984. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/src/component.rs +0 -0
  985. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/src/lib.rs +0 -0
  986. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/char.wit +0 -0
  987. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/conventions.wit +0 -0
  988. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/direct-import.wit +0 -0
  989. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/empty.wit +0 -0
  990. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/flags.wit +0 -0
  991. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/floats.wit +0 -0
  992. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/function-new.wit +0 -0
  993. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/integers.wit +0 -0
  994. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/lists.wit +0 -0
  995. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/many-arguments.wit +0 -0
  996. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multi-return.wit +0 -0
  997. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multiversion/deps/v1/root.wit +0 -0
  998. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multiversion/deps/v2/root.wit +0 -0
  999. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/multiversion/root.wit +0 -0
  1000. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/records.wit +0 -0
  1001. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/rename.wit +0 -0
  1002. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/resources-export.wit +0 -0
  1003. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/resources-import.wit +0 -0
  1004. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/share-types.wit +0 -0
  1005. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/simple-functions.wit +0 -0
  1006. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/simple-lists.wit +0 -0
  1007. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/simple-wasi.wit +0 -0
  1008. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/small-anonymous.wit +0 -0
  1009. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/smoke-default.wit +0 -0
  1010. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/smoke-export.wit +0 -0
  1011. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/smoke.wit +0 -0
  1012. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/strings.wit +0 -0
  1013. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/use-paths.wit +0 -0
  1014. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/variants.wit +0 -0
  1015. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen/worlds-with-types.wit +0 -0
  1016. /data/ext/cargo-vendor/{wasmtime-component-macro-15.0.1 → wasmtime-component-macro-16.0.0}/tests/codegen.rs +0 -0
  1017. /data/ext/cargo-vendor/{wasmtime-component-util-15.0.1 → wasmtime-component-util-16.0.0}/src/lib.rs +0 -0
  1018. /data/ext/cargo-vendor/{wasmtime-15.0.1 → wasmtime-cranelift-16.0.0}/LICENSE +0 -0
  1019. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/SECURITY.md +0 -0
  1020. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/builder.rs +0 -0
  1021. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/gc.rs +0 -0
  1022. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/address_transform.rs +0 -0
  1023. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/attr.rs +0 -0
  1024. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/line_program.rs +0 -0
  1025. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/mod.rs +0 -0
  1026. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/range_info_builder.rs +0 -0
  1027. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/refs.rs +0 -0
  1028. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/unit.rs +0 -0
  1029. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/transform/utils.rs +0 -0
  1030. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/debug/write_debuginfo.rs +0 -0
  1031. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-cranelift-16.0.0}/src/lib.rs +0 -0
  1032. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/compiled_function.rs +0 -0
  1033. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/isa_builder.rs +0 -0
  1034. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/lib.rs +0 -0
  1035. /data/ext/cargo-vendor/{wasmtime-cranelift-shared-15.0.1 → wasmtime-cranelift-shared-16.0.0}/src/obj.rs +0 -0
  1036. /data/ext/cargo-vendor/{wasmtime-cache-15.0.1 → wasmtime-environ-16.0.0}/LICENSE +0 -0
  1037. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/examples/factc.rs +0 -0
  1038. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/address_map.rs +0 -0
  1039. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/builtin.rs +0 -0
  1040. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/dfg.rs +0 -0
  1041. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/info.rs +0 -0
  1042. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/translate/adapt.rs +0 -0
  1043. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/translate/inline.rs +0 -0
  1044. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/types/resources.rs +0 -0
  1045. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component/vmcomponent_offsets.rs +0 -0
  1046. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/component.rs +0 -0
  1047. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/core_types.rs +0 -0
  1048. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/signature.rs +0 -0
  1049. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/trampoline.rs +0 -0
  1050. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/transcode.rs +0 -0
  1051. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact/traps.rs +0 -0
  1052. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/fact.rs +0 -0
  1053. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/obj.rs +0 -0
  1054. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/ref_bits.rs +0 -0
  1055. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/stack_map.rs +0 -0
  1056. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/trap_encoding.rs +0 -0
  1057. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/tunables.rs +0 -0
  1058. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-environ-16.0.0}/src/vmoffsets.rs +0 -0
  1059. /data/ext/cargo-vendor/{wasmtime-cranelift-15.0.1 → wasmtime-fiber-16.0.0}/LICENSE +0 -0
  1060. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/build.rs +0 -0
  1061. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/aarch64.rs +0 -0
  1062. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/arm.rs +0 -0
  1063. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/riscv64.rs +0 -0
  1064. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/s390x.S +0 -0
  1065. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/x86.rs +0 -0
  1066. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/unix/x86_64.rs +0 -0
  1067. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-fiber-16.0.0}/src/windows.rs +0 -0
  1068. /data/ext/cargo-vendor/{wasmtime-environ-15.0.1 → wasmtime-jit-16.0.0}/LICENSE +0 -0
  1069. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/debug.rs +0 -0
  1070. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/demangling.rs +0 -0
  1071. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling/jitdump.rs +0 -0
  1072. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling/perfmap.rs +0 -0
  1073. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling/vtune.rs +0 -0
  1074. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-jit-16.0.0}/src/profiling.rs +0 -0
  1075. /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/README.md +0 -0
  1076. /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/src/gdb_jit_int.rs +0 -0
  1077. /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/src/lib.rs +0 -0
  1078. /data/ext/cargo-vendor/{wasmtime-jit-debug-15.0.1 → wasmtime-jit-debug-16.0.0}/src/perf_jitdump.rs +0 -0
  1079. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/lib.rs +0 -0
  1080. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/libc.rs +0 -0
  1081. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/miri.rs +0 -0
  1082. /data/ext/cargo-vendor/{wasmtime-jit-icache-coherence-15.0.1 → wasmtime-jit-icache-coherence-16.0.0}/src/win.rs +0 -0
  1083. /data/ext/cargo-vendor/{wasmtime-fiber-15.0.1 → wasmtime-runtime-16.0.0}/LICENSE +0 -0
  1084. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/trampolines → wasmtime-runtime-16.0.0/src/arch}/s390x.S +0 -0
  1085. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/component/libcalls.rs +0 -0
  1086. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/component/resources.rs +0 -0
  1087. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/component.rs +0 -0
  1088. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/debug_builtins.rs +0 -0
  1089. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/export.rs +0 -0
  1090. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/externref.rs +0 -0
  1091. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/imports.rs +0 -0
  1092. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance/allocator/on_demand.rs +0 -0
  1093. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance/allocator/pooling/index_allocator.rs +0 -0
  1094. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance/allocator.rs +0 -0
  1095. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/instance.rs +0 -0
  1096. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/memory.rs +0 -0
  1097. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mmap_vec.rs +0 -0
  1098. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/module_id.rs +0 -0
  1099. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mpk/disabled.rs +0 -0
  1100. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mpk/mod.rs +0 -0
  1101. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/mpk/sys.rs +0 -0
  1102. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/parking_spot.rs +0 -0
  1103. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/send_sync_ptr.rs +0 -0
  1104. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/store_box.rs +0 -0
  1105. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/mmap/miri.rs → wasmtime-runtime-16.0.0/src/sys/miri/mmap.rs} +0 -0
  1106. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/mmap/unix.rs → wasmtime-runtime-16.0.0/src/sys/unix/mmap.rs} +0 -0
  1107. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1/src/mmap/windows.rs → wasmtime-runtime-16.0.0/src/sys/windows/mmap.rs} +0 -0
  1108. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/table.rs +0 -0
  1109. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/traphandlers/coredump.rs +0 -0
  1110. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-runtime-16.0.0}/src/vmcontext/vm_host_func_context.rs +0 -0
  1111. /data/ext/cargo-vendor/{wasmtime-jit-15.0.1 → wasmtime-types-16.0.0}/LICENSE +0 -0
  1112. /data/ext/cargo-vendor/{wasmtime-types-15.0.1 → wasmtime-types-16.0.0}/src/error.rs +0 -0
  1113. /data/ext/cargo-vendor/{wasmtime-versioned-export-macros-15.0.1 → wasmtime-versioned-export-macros-16.0.0}/src/lib.rs +0 -0
  1114. /data/ext/cargo-vendor/{wasmtime-runtime-15.0.1 → wasmtime-wasi-16.0.0}/LICENSE +0 -0
  1115. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/README.md +0 -0
  1116. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/build.rs +0 -0
  1117. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/clocks/host.rs +0 -0
  1118. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/clocks.rs +0 -0
  1119. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/command.rs +0 -0
  1120. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/ctx.rs +0 -0
  1121. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/error.rs +0 -0
  1122. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/filesystem.rs +0 -0
  1123. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/clocks.rs +0 -0
  1124. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/env.rs +0 -0
  1125. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/exit.rs +0 -0
  1126. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/filesystem/sync.rs +0 -0
  1127. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/filesystem.rs +0 -0
  1128. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/instance_network.rs +0 -0
  1129. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/mod.rs +0 -0
  1130. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/random.rs +0 -0
  1131. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/tcp_create_socket.rs +0 -0
  1132. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/host/udp_create_socket.rs +0 -0
  1133. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/ip_name_lookup.rs +0 -0
  1134. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/network.rs +0 -0
  1135. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/pipe.rs +0 -0
  1136. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/poll.rs +0 -0
  1137. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/random.rs +0 -0
  1138. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/stdio/worker_thread_stdin.rs +0 -0
  1139. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/tcp.rs +0 -0
  1140. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/udp.rs +0 -0
  1141. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/src/preview2/write_stream.rs +0 -0
  1142. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/environment.wit +0 -0
  1143. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/exit.wit +0 -0
  1144. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/run.wit +0 -0
  1145. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/stdio.wit +0 -0
  1146. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/cli/terminal.wit +0 -0
  1147. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/clocks/monotonic-clock.wit +0 -0
  1148. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/clocks/wall-clock.wit +0 -0
  1149. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/clocks/world.wit +0 -0
  1150. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/filesystem/preopens.wit +0 -0
  1151. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/filesystem/types.wit +0 -0
  1152. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/filesystem/world.wit +0 -0
  1153. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/http/handler.wit +0 -0
  1154. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/error.wit +0 -0
  1155. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/poll.wit +0 -0
  1156. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/streams.wit +0 -0
  1157. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/io/world.wit +0 -0
  1158. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/insecure-seed.wit +0 -0
  1159. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/insecure.wit +0 -0
  1160. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/random.wit +0 -0
  1161. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/random/world.wit +0 -0
  1162. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/instance-network.wit +0 -0
  1163. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/ip-name-lookup.wit +0 -0
  1164. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/network.wit +0 -0
  1165. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/tcp-create-socket.wit +0 -0
  1166. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/tcp.wit +0 -0
  1167. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/udp-create-socket.wit +0 -0
  1168. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/udp.wit +0 -0
  1169. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wasmtime-wasi-16.0.0}/wit/deps/sockets/world.wit +0 -0
  1170. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1/witx → wasmtime-wasi-16.0.0/witx/preview1}/typenames.witx +0 -0
  1171. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1/witx → wasmtime-wasi-16.0.0/witx/preview1}/wasi_snapshot_preview1.witx +0 -0
  1172. /data/ext/cargo-vendor/{wasmtime-winch-15.0.1 → wasmtime-winch-16.0.0}/LICENSE +0 -0
  1173. /data/ext/cargo-vendor/{wasmtime-winch-15.0.1 → wasmtime-winch-16.0.0}/src/builder.rs +0 -0
  1174. /data/ext/cargo-vendor/{wasmtime-winch-15.0.1 → wasmtime-winch-16.0.0}/src/lib.rs +0 -0
  1175. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/lib.rs +0 -0
  1176. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/rust.rs +0 -0
  1177. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/source.rs +0 -0
  1178. /data/ext/cargo-vendor/{wasmtime-wit-bindgen-15.0.1 → wasmtime-wit-bindgen-16.0.0}/src/types.rs +0 -0
  1179. /data/ext/cargo-vendor/{wasmtime-wmemcheck-15.0.1 → wasmtime-wmemcheck-16.0.0}/src/lib.rs +0 -0
  1180. /data/ext/cargo-vendor/{wasmtime-types-15.0.1 → wiggle-16.0.0}/LICENSE +0 -0
  1181. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/README.md +0 -0
  1182. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/borrow.rs +0 -0
  1183. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/error.rs +0 -0
  1184. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/guest_type.rs +0 -0
  1185. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/region.rs +0 -0
  1186. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-16.0.0}/src/wasmtime.rs +0 -0
  1187. /data/ext/cargo-vendor/{wasmtime-wasi-15.0.1 → wiggle-generate-16.0.0}/LICENSE +0 -0
  1188. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/README.md +0 -0
  1189. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/codegen_settings.rs +0 -0
  1190. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/config.rs +0 -0
  1191. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/funcs.rs +0 -0
  1192. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/lib.rs +0 -0
  1193. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/lifetimes.rs +0 -0
  1194. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/module_trait.rs +0 -0
  1195. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/names.rs +0 -0
  1196. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/types/error.rs +0 -0
  1197. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/types/flags.rs +0 -0
  1198. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/types/mod.rs +0 -0
  1199. /data/ext/cargo-vendor/{wiggle-generate-15.0.1 → wiggle-generate-16.0.0}/src/wasmtime.rs +0 -0
  1200. /data/ext/cargo-vendor/{wiggle-15.0.1 → wiggle-macro-16.0.0}/LICENSE +0 -0
  1201. /data/ext/cargo-vendor/{wiggle-macro-15.0.1 → wiggle-macro-16.0.0}/src/lib.rs +0 -0
  1202. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/LICENSE +0 -0
  1203. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/build.rs +0 -0
  1204. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/codegen/builtin.rs +0 -0
  1205. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/aarch64/address.rs +0 -0
  1206. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/aarch64/asm.rs +0 -0
  1207. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/aarch64/regs.rs +0 -0
  1208. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/reg.rs +0 -0
  1209. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/isa/x64/address.rs +0 -0
  1210. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/lib.rs +0 -0
  1211. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/regalloc.rs +0 -0
  1212. /data/ext/cargo-vendor/{winch-codegen-0.13.1 → winch-codegen-0.14.0}/src/regset.rs +0 -0
@@ -0,0 +1,2864 @@
1
+ ;; riscv64 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
+ ;;;; Rules for `iconst` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
8
+
9
+ (rule (lower (has_type ty (iconst (u64_from_imm64 n))))
10
+ (imm ty n))
11
+
12
+ ;; ;;;; Rules for `vconst` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
13
+
14
+ (rule (lower (has_type (ty_vec_fits_in_register ty) (vconst n)))
15
+ (gen_constant ty (const_to_vconst n)))
16
+
17
+ ;;;; Rules for `f32const` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
18
+
19
+ (rule (lower (f32const (u32_from_ieee32 n)))
20
+ (imm $F32 n))
21
+
22
+ ;;;; Rules for `f64const` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
23
+
24
+ (rule (lower (f64const (u64_from_ieee64 n)))
25
+ (imm $F64 n))
26
+
27
+ ;;;; Rules for `null` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
28
+
29
+ (rule (lower (has_type ty (null)))
30
+ (imm ty 0))
31
+
32
+
33
+ ;;;; Rules for `iadd` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
34
+
35
+ ;; Base case, simply adding things in registers.
36
+ (rule -1 (lower (has_type (fits_in_32 (ty_int ty)) (iadd x y)))
37
+ (rv_addw x y))
38
+
39
+ (rule 0 (lower (has_type $I64 (iadd x y)))
40
+ (rv_add x y))
41
+
42
+ ;; Special cases for when one operand is an immediate that fits in 12 bits.
43
+ (rule 1 (lower (has_type (ty_int_ref_scalar_64 ty) (iadd x (imm12_from_value y))))
44
+ (alu_rr_imm12 (select_addi ty) x y))
45
+
46
+ (rule 2 (lower (has_type (ty_int_ref_scalar_64 ty) (iadd (imm12_from_value x) y)))
47
+ (alu_rr_imm12 (select_addi ty) y x))
48
+
49
+ ;; Special case when one of the operands is uextended
50
+ ;; Needs `Zba`
51
+ (rule 3 (lower (has_type $I64 (iadd x (uextend y @ (value_type $I32)))))
52
+ (if-let $true (has_zba))
53
+ (rv_adduw y x))
54
+
55
+ (rule 4 (lower (has_type $I64 (iadd (uextend x @ (value_type $I32)) y)))
56
+ (if-let $true (has_zba))
57
+ (rv_adduw x y))
58
+
59
+ ;; Add with const shift. We have a few of these instructions with `Zba`.
60
+ (decl pure partial match_shnadd (Imm64) AluOPRRR)
61
+ (rule (match_shnadd (u64_from_imm64 1)) (AluOPRRR.Sh1add))
62
+ (rule (match_shnadd (u64_from_imm64 2)) (AluOPRRR.Sh2add))
63
+ (rule (match_shnadd (u64_from_imm64 3)) (AluOPRRR.Sh3add))
64
+
65
+ (rule 3 (lower (has_type $I64 (iadd x (ishl y (maybe_uextend (iconst n))))))
66
+ (if-let $true (has_zba))
67
+ (if-let shnadd (match_shnadd n))
68
+ (alu_rrr shnadd y x))
69
+
70
+ (rule 4 (lower (has_type $I64 (iadd (ishl x (maybe_uextend (iconst n))) y)))
71
+ (if-let $true (has_zba))
72
+ (if-let shnadd (match_shnadd n))
73
+ (alu_rrr shnadd x y))
74
+
75
+
76
+ ;; Add with uextended const shift. We have a few of these instructions with `Zba`.
77
+ ;;
78
+ ;; !!! Important !!!
79
+ ;; These rules only work for (ishl (uextend _) _) and not for (uextend (ishl _ _))!
80
+ ;; Getting this wrong means a potential misscalculation of the shift amount.
81
+ ;; Additionaly we can only ensure that this is correct if the uextend is 32 to 64 bits.
82
+ (decl pure partial match_shnadd_uw (Imm64) AluOPRRR)
83
+ (rule (match_shnadd_uw (u64_from_imm64 1)) (AluOPRRR.Sh1adduw))
84
+ (rule (match_shnadd_uw (u64_from_imm64 2)) (AluOPRRR.Sh2adduw))
85
+ (rule (match_shnadd_uw (u64_from_imm64 3)) (AluOPRRR.Sh3adduw))
86
+
87
+ (rule 5 (lower (has_type $I64 (iadd x (ishl (uextend y @ (value_type $I32)) (maybe_uextend (iconst n))))))
88
+ (if-let $true (has_zba))
89
+ (if-let shnadd_uw (match_shnadd_uw n))
90
+ (alu_rrr shnadd_uw y x))
91
+
92
+ (rule 6 (lower (has_type $I64 (iadd (ishl (uextend x @ (value_type $I32)) (maybe_uextend (iconst n))) y)))
93
+ (if-let $true (has_zba))
94
+ (if-let shnadd_uw (match_shnadd_uw n))
95
+ (alu_rrr shnadd_uw x y))
96
+
97
+ ;; I128 cases
98
+ (rule 7 (lower (has_type $I128 (iadd x y)))
99
+ (let ((low XReg (rv_add (value_regs_get x 0) (value_regs_get y 0)))
100
+ ;; compute carry.
101
+ (carry XReg (rv_sltu low (value_regs_get y 0)))
102
+ ;;
103
+ (high_tmp XReg (rv_add (value_regs_get x 1) (value_regs_get y 1)))
104
+ ;; add carry.
105
+ (high XReg (rv_add high_tmp carry)))
106
+ (value_regs low high)))
107
+
108
+ ;; SIMD Vectors
109
+ (rule 8 (lower (has_type (ty_vec_fits_in_register ty) (iadd x y)))
110
+ (rv_vadd_vv x y (unmasked) ty))
111
+
112
+ (rule 9 (lower (has_type (ty_vec_fits_in_register ty) (iadd x (splat y))))
113
+ (rv_vadd_vx x y (unmasked) ty))
114
+
115
+ (rule 10 (lower (has_type (ty_vec_fits_in_register ty) (iadd x (splat (sextend y @ (value_type sext_ty))))))
116
+ (if-let half_ty (ty_half_width ty))
117
+ (if-let $true (ty_equal (lane_type half_ty) sext_ty))
118
+ (rv_vwadd_wx x y (unmasked) (vstate_mf2 half_ty)))
119
+
120
+ (rule 10 (lower (has_type (ty_vec_fits_in_register ty) (iadd x (splat (uextend y @ (value_type uext_ty))))))
121
+ (if-let half_ty (ty_half_width ty))
122
+ (if-let $true (ty_equal (lane_type half_ty) uext_ty))
123
+ (rv_vwaddu_wx x y (unmasked) (vstate_mf2 half_ty)))
124
+
125
+ (rule 20 (lower (has_type (ty_vec_fits_in_register ty) (iadd x y)))
126
+ (if-let y_imm (replicated_imm5 y))
127
+ (rv_vadd_vi x y_imm (unmasked) ty))
128
+
129
+
130
+ (rule 12 (lower (has_type (ty_vec_fits_in_register ty) (iadd (splat x) y)))
131
+ (rv_vadd_vx y x (unmasked) ty))
132
+
133
+ (rule 13 (lower (has_type (ty_vec_fits_in_register ty) (iadd (splat (sextend x @ (value_type sext_ty))) y)))
134
+ (if-let half_ty (ty_half_width ty))
135
+ (if-let $true (ty_equal (lane_type half_ty) sext_ty))
136
+ (rv_vwadd_wx y x (unmasked) (vstate_mf2 half_ty)))
137
+
138
+ (rule 13 (lower (has_type (ty_vec_fits_in_register ty) (iadd (splat (uextend x @ (value_type uext_ty))) y)))
139
+ (if-let half_ty (ty_half_width ty))
140
+ (if-let $true (ty_equal (lane_type half_ty) uext_ty))
141
+ (rv_vwaddu_wx y x (unmasked) (vstate_mf2 half_ty)))
142
+
143
+ (rule 21 (lower (has_type (ty_vec_fits_in_register ty) (iadd x y)))
144
+ (if-let x_imm (replicated_imm5 x))
145
+ (rv_vadd_vi y x_imm (unmasked) ty))
146
+
147
+ ;; Signed Widening Low Additions
148
+
149
+ (rule 9 (lower (has_type (ty_vec_fits_in_register _) (iadd x (swiden_low y @ (value_type in_ty)))))
150
+ (rv_vwadd_wv x y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
151
+
152
+ (rule 12 (lower (has_type (ty_vec_fits_in_register _) (iadd (swiden_low x @ (value_type in_ty)) y)))
153
+ (rv_vwadd_wv y x (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
154
+
155
+ (rule 13 (lower (has_type (ty_vec_fits_in_register _) (iadd (swiden_low x @ (value_type in_ty))
156
+ (swiden_low y))))
157
+ (rv_vwadd_vv x y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
158
+
159
+ (rule 13 (lower (has_type (ty_vec_fits_in_register _) (iadd (swiden_low x @ (value_type in_ty))
160
+ (splat (sextend y @ (value_type sext_ty))))))
161
+ (if-let $true (ty_equal (lane_type in_ty) sext_ty))
162
+ (rv_vwadd_vx x y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
163
+
164
+ (rule 15 (lower (has_type (ty_vec_fits_in_register _) (iadd (splat (sextend x @ (value_type sext_ty)))
165
+ (swiden_low y @ (value_type in_ty)))))
166
+ (if-let $true (ty_equal (lane_type in_ty) sext_ty))
167
+ (rv_vwadd_vx y x (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
168
+
169
+ ;; Signed Widening High Additions
170
+ ;; These are the same as the low additions, but we first slide down the inputs.
171
+
172
+ (rule 9 (lower (has_type (ty_vec_fits_in_register _) (iadd x (swiden_high y @ (value_type in_ty)))))
173
+ (rv_vwadd_wv x (gen_slidedown_half in_ty y) (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
174
+
175
+ (rule 12 (lower (has_type (ty_vec_fits_in_register _) (iadd (swiden_high x @ (value_type in_ty)) y)))
176
+ (rv_vwadd_wv y (gen_slidedown_half in_ty x) (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
177
+
178
+ (rule 13 (lower (has_type (ty_vec_fits_in_register _) (iadd (swiden_high x @ (value_type in_ty))
179
+ (swiden_high y))))
180
+ (rv_vwadd_vv (gen_slidedown_half in_ty x) (gen_slidedown_half in_ty y) (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
181
+
182
+ (rule 13 (lower (has_type (ty_vec_fits_in_register _) (iadd (swiden_high x @ (value_type in_ty))
183
+ (splat (sextend y @ (value_type sext_ty))))))
184
+ (if-let $true (ty_equal (lane_type in_ty) sext_ty))
185
+ (rv_vwadd_vx (gen_slidedown_half in_ty x) y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
186
+
187
+ (rule 15 (lower (has_type (ty_vec_fits_in_register _) (iadd (splat (sextend x @ (value_type sext_ty)))
188
+ (swiden_high y @ (value_type in_ty)))))
189
+ (if-let $true (ty_equal (lane_type in_ty) sext_ty))
190
+ (rv_vwadd_vx (gen_slidedown_half in_ty y) x (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
191
+
192
+ ;; Unsigned Widening Low Additions
193
+
194
+ (rule 9 (lower (has_type (ty_vec_fits_in_register _) (iadd x (uwiden_low y @ (value_type in_ty)))))
195
+ (rv_vwaddu_wv x y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
196
+
197
+ (rule 12 (lower (has_type (ty_vec_fits_in_register _) (iadd (uwiden_low x @ (value_type in_ty)) y)))
198
+ (rv_vwaddu_wv y x (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
199
+
200
+ (rule 13 (lower (has_type (ty_vec_fits_in_register _) (iadd (uwiden_low x @ (value_type in_ty))
201
+ (uwiden_low y))))
202
+ (rv_vwaddu_vv x y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
203
+
204
+ (rule 13 (lower (has_type (ty_vec_fits_in_register _) (iadd (uwiden_low x @ (value_type in_ty))
205
+ (splat (uextend y @ (value_type uext_ty))))))
206
+ (if-let $true (ty_equal (lane_type in_ty) uext_ty))
207
+ (rv_vwaddu_vx x y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
208
+
209
+ (rule 15 (lower (has_type (ty_vec_fits_in_register _) (iadd (splat (uextend x @ (value_type uext_ty)))
210
+ (uwiden_low y @ (value_type in_ty)))))
211
+ (if-let $true (ty_equal (lane_type in_ty) uext_ty))
212
+ (rv_vwaddu_vx y x (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
213
+
214
+ ;; Unsigned Widening High Additions
215
+ ;; These are the same as the low additions, but we first slide down the inputs.
216
+
217
+ (rule 9 (lower (has_type (ty_vec_fits_in_register _) (iadd x (uwiden_high y @ (value_type in_ty)))))
218
+ (rv_vwaddu_wv x (gen_slidedown_half in_ty y) (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
219
+
220
+ (rule 12 (lower (has_type (ty_vec_fits_in_register _) (iadd (uwiden_high x @ (value_type in_ty)) y)))
221
+ (rv_vwaddu_wv y (gen_slidedown_half in_ty x) (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
222
+
223
+ (rule 13 (lower (has_type (ty_vec_fits_in_register _) (iadd (uwiden_high x @ (value_type in_ty))
224
+ (uwiden_high y))))
225
+ (rv_vwaddu_vv (gen_slidedown_half in_ty x) (gen_slidedown_half in_ty y) (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
226
+
227
+ (rule 13 (lower (has_type (ty_vec_fits_in_register _) (iadd (uwiden_high x @ (value_type in_ty))
228
+ (splat (uextend y @ (value_type uext_ty))))))
229
+ (if-let $true (ty_equal (lane_type in_ty) uext_ty))
230
+ (rv_vwaddu_vx (gen_slidedown_half in_ty x) y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
231
+
232
+ (rule 15 (lower (has_type (ty_vec_fits_in_register _) (iadd (splat (uextend y @ (value_type uext_ty)))
233
+ (uwiden_high x @ (value_type in_ty)))))
234
+ (if-let $true (ty_equal (lane_type in_ty) uext_ty))
235
+ (rv_vwaddu_vx (gen_slidedown_half in_ty x) y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
236
+
237
+ ;; Signed Widening Mixed High/Low Additions
238
+
239
+ (rule 13 (lower (has_type (ty_vec_fits_in_register _) (iadd (swiden_low x @ (value_type in_ty))
240
+ (swiden_high y))))
241
+ (rv_vwadd_vv x (gen_slidedown_half in_ty y) (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
242
+
243
+ (rule 13 (lower (has_type (ty_vec_fits_in_register _) (iadd (swiden_high x @ (value_type in_ty))
244
+ (swiden_low y))))
245
+ (rv_vwadd_vv (gen_slidedown_half in_ty x) y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
246
+
247
+ ;; Unsigned Widening Mixed High/Low Additions
248
+
249
+ (rule 13 (lower (has_type (ty_vec_fits_in_register _) (iadd (uwiden_low x @ (value_type in_ty))
250
+ (uwiden_high y))))
251
+ (rv_vwaddu_vv x (gen_slidedown_half in_ty y) (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
252
+
253
+ (rule 13 (lower (has_type (ty_vec_fits_in_register _) (iadd (uwiden_high x @ (value_type in_ty))
254
+ (uwiden_low y))))
255
+ (rv_vwaddu_vv (gen_slidedown_half in_ty x) y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
256
+
257
+ ;; Fused Multiply Accumulate Rules `vmacc`
258
+ ;;
259
+ ;; I dont think we can use `vmadd`/`vmnsub` here since it just modifies the multiplication
260
+ ;; register instead of the addition one. The actual pattern matched seems to be
261
+ ;; exactly the same.
262
+
263
+ (rule 9 (lower (has_type (ty_vec_fits_in_register ty) (iadd x (imul y z))))
264
+ (rv_vmacc_vv x y z (unmasked) ty))
265
+
266
+ (rule 10 (lower (has_type (ty_vec_fits_in_register ty) (iadd x (imul y (splat z)))))
267
+ (rv_vmacc_vx x y z (unmasked) ty))
268
+
269
+ (rule 11 (lower (has_type (ty_vec_fits_in_register ty) (iadd x (imul (splat y) z))))
270
+ (rv_vmacc_vx x z y (unmasked) ty))
271
+
272
+ (rule 12 (lower (has_type (ty_vec_fits_in_register ty) (iadd (imul x y) z)))
273
+ (rv_vmacc_vv z x y (unmasked) ty))
274
+
275
+ (rule 13 (lower (has_type (ty_vec_fits_in_register ty) (iadd (imul x (splat y)) z)))
276
+ (rv_vmacc_vx z x y (unmasked) ty))
277
+
278
+ (rule 14 (lower (has_type (ty_vec_fits_in_register ty) (iadd (imul (splat x) y) z)))
279
+ (rv_vmacc_vx z y x (unmasked) ty))
280
+
281
+ ;; Fused Multiply Subtract Rules `vnmsac`
282
+
283
+ (rule 9 (lower (has_type (ty_vec_fits_in_register ty) (iadd x (ineg (imul y z)))))
284
+ (rv_vnmsac_vv x y z (unmasked) ty))
285
+
286
+ (rule 10 (lower (has_type (ty_vec_fits_in_register ty) (iadd x (ineg (imul y (splat z))))))
287
+ (rv_vnmsac_vx x y z (unmasked) ty))
288
+
289
+ (rule 11 (lower (has_type (ty_vec_fits_in_register ty) (iadd x (ineg (imul (splat y) z)))))
290
+ (rv_vnmsac_vx x z y (unmasked) ty))
291
+
292
+ (rule 12 (lower (has_type (ty_vec_fits_in_register ty) (iadd (ineg (imul x y)) z)))
293
+ (rv_vnmsac_vv z x y (unmasked) ty))
294
+
295
+ (rule 13 (lower (has_type (ty_vec_fits_in_register ty) (iadd (ineg (imul x (splat y))) z)))
296
+ (rv_vnmsac_vx z x y (unmasked) ty))
297
+
298
+ (rule 14 (lower (has_type (ty_vec_fits_in_register ty) (iadd (ineg (imul (splat x) y)) z)))
299
+ (rv_vnmsac_vx z y x (unmasked) ty))
300
+
301
+ ;;; Rules for `uadd_overflow_trap` ;;;;;;;;;;;;;
302
+ (rule 0 (lower (has_type (fits_in_32 ty) (uadd_overflow_trap x y tc)))
303
+ (let ((tmp_x XReg (zext x))
304
+ (tmp_y XReg (zext y))
305
+ (sum XReg (rv_add tmp_x tmp_y))
306
+ (test XReg (rv_srli sum (imm12_const (ty_bits ty))))
307
+ (_ InstOutput (gen_trapnz test tc)))
308
+ sum))
309
+
310
+ (rule 1 (lower (has_type $I64 (uadd_overflow_trap x y tc)))
311
+ (let ((tmp XReg (rv_add x y))
312
+ (_ InstOutput (gen_trapif (IntCC.UnsignedLessThan) tmp x tc)))
313
+ tmp))
314
+
315
+ ;;;; Rules for `isub` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
316
+ ;; Base case, simply subtracting things in registers.
317
+
318
+ (rule 0 (lower (has_type (fits_in_32 (ty_int ty)) (isub x y)))
319
+ (rv_subw x y))
320
+
321
+ (rule 1 (lower (has_type $I64 (isub x y)))
322
+ (rv_sub x y))
323
+
324
+ (rule 2 (lower (has_type $I128 (isub x y)))
325
+ (i128_sub x y))
326
+
327
+ ;; Switch to an `addi` by a negative if we can fit the value in an `imm12`.
328
+ (rule 3 (lower (has_type (ty_int_ref_scalar_64 ty) (isub x y)))
329
+ (if-let imm12_neg (imm12_from_negated_value y))
330
+ (alu_rr_imm12 (select_addi ty) x imm12_neg))
331
+
332
+ ;; SIMD Vectors
333
+ (rule 4 (lower (has_type (ty_vec_fits_in_register ty) (isub x y)))
334
+ (rv_vsub_vv x y (unmasked) ty))
335
+
336
+ (rule 5 (lower (has_type (ty_vec_fits_in_register ty) (isub x (splat y))))
337
+ (rv_vsub_vx x y (unmasked) ty))
338
+
339
+ (rule 6 (lower (has_type (ty_vec_fits_in_register ty) (isub x (splat (sextend y @ (value_type sext_ty))))))
340
+ (if-let half_ty (ty_half_width ty))
341
+ (if-let $true (ty_equal (lane_type half_ty) sext_ty))
342
+ (rv_vwsub_wx x y (unmasked) (vstate_mf2 half_ty)))
343
+
344
+ (rule 6 (lower (has_type (ty_vec_fits_in_register ty) (isub x (splat (uextend y @ (value_type uext_ty))))))
345
+ (if-let half_ty (ty_half_width ty))
346
+ (if-let $true (ty_equal (lane_type half_ty) uext_ty))
347
+ (rv_vwsubu_wx x y (unmasked) (vstate_mf2 half_ty)))
348
+
349
+ (rule 7 (lower (has_type (ty_vec_fits_in_register ty) (isub (splat x) y)))
350
+ (rv_vrsub_vx y x (unmasked) ty))
351
+
352
+ (rule 8 (lower (has_type (ty_vec_fits_in_register ty) (isub x y)))
353
+ (if-let imm5_neg (negated_replicated_imm5 y))
354
+ (rv_vadd_vi x imm5_neg (unmasked) ty))
355
+
356
+ (rule 9 (lower (has_type (ty_vec_fits_in_register ty) (isub x y)))
357
+ (if-let x_imm (replicated_imm5 x))
358
+ (rv_vrsub_vi y x_imm (unmasked) ty))
359
+
360
+
361
+ ;; Signed Widening Low Subtractions
362
+
363
+ (rule 6 (lower (has_type (ty_vec_fits_in_register _) (isub x (swiden_low y @ (value_type in_ty)))))
364
+ (rv_vwsub_wv x y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
365
+
366
+ (rule 10 (lower (has_type (ty_vec_fits_in_register _) (isub (swiden_low x @ (value_type in_ty))
367
+ (swiden_low y))))
368
+ (rv_vwsub_vv x y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
369
+
370
+ (rule 10 (lower (has_type (ty_vec_fits_in_register _) (isub (swiden_low x @ (value_type in_ty))
371
+ (splat (sextend y @ (value_type sext_ty))))))
372
+ (if-let $true (ty_equal (lane_type in_ty) sext_ty))
373
+ (rv_vwsub_vx x y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
374
+
375
+ ;; Signed Widening High Subtractions
376
+ ;; These are the same as the low widenings, but we first slide down the inputs.
377
+
378
+ (rule 6 (lower (has_type (ty_vec_fits_in_register _) (isub x (swiden_high y @ (value_type in_ty)))))
379
+ (rv_vwsub_wv x (gen_slidedown_half in_ty y) (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
380
+
381
+ (rule 10 (lower (has_type (ty_vec_fits_in_register _) (isub (swiden_high x @ (value_type in_ty))
382
+ (swiden_high y))))
383
+ (rv_vwsub_vv (gen_slidedown_half in_ty x) (gen_slidedown_half in_ty y) (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
384
+
385
+ (rule 10 (lower (has_type (ty_vec_fits_in_register _) (isub (swiden_high x @ (value_type in_ty))
386
+ (splat (sextend y @ (value_type sext_ty))))))
387
+ (if-let $true (ty_equal (lane_type in_ty) sext_ty))
388
+ (rv_vwsub_vx (gen_slidedown_half in_ty x) y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
389
+
390
+ ;; Unsigned Widening Low Subtractions
391
+
392
+ (rule 6 (lower (has_type (ty_vec_fits_in_register _) (isub x (uwiden_low y @ (value_type in_ty)))))
393
+ (rv_vwsubu_wv x y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
394
+
395
+ (rule 10 (lower (has_type (ty_vec_fits_in_register _) (isub (uwiden_low x @ (value_type in_ty))
396
+ (uwiden_low y))))
397
+ (rv_vwsubu_vv x y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
398
+
399
+ (rule 10 (lower (has_type (ty_vec_fits_in_register _) (isub (uwiden_low x @ (value_type in_ty))
400
+ (splat (uextend y @ (value_type uext_ty))))))
401
+ (if-let $true (ty_equal (lane_type in_ty) uext_ty))
402
+ (rv_vwsubu_vx x y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
403
+
404
+ ;; Unsigned Widening High Subtractions
405
+ ;; These are the same as the low widenings, but we first slide down the inputs.
406
+
407
+ (rule 6 (lower (has_type (ty_vec_fits_in_register _) (isub x (uwiden_high y @ (value_type in_ty)))))
408
+ (rv_vwsubu_wv x (gen_slidedown_half in_ty y) (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
409
+
410
+ (rule 10 (lower (has_type (ty_vec_fits_in_register _) (isub (uwiden_high x @ (value_type in_ty))
411
+ (uwiden_high y))))
412
+ (rv_vwsubu_vv (gen_slidedown_half in_ty x) (gen_slidedown_half in_ty y) (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
413
+
414
+ (rule 10 (lower (has_type (ty_vec_fits_in_register _) (isub (uwiden_high x @ (value_type in_ty))
415
+ (splat (uextend y @ (value_type uext_ty))))))
416
+ (if-let $true (ty_equal (lane_type in_ty) uext_ty))
417
+ (rv_vwsubu_vx (gen_slidedown_half in_ty x) y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
418
+
419
+ ;; Signed Widening Mixed High/Low Subtractions
420
+
421
+ (rule 10 (lower (has_type (ty_vec_fits_in_register _) (isub (swiden_low x @ (value_type in_ty))
422
+ (swiden_high y))))
423
+ (rv_vwsub_vv x (gen_slidedown_half in_ty y) (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
424
+
425
+ (rule 10 (lower (has_type (ty_vec_fits_in_register _) (isub (swiden_high x @ (value_type in_ty))
426
+ (swiden_low y))))
427
+ (rv_vwsub_vv (gen_slidedown_half in_ty x) y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
428
+
429
+ ;; Unsigned Widening Mixed High/Low Subtractions
430
+
431
+ (rule 10 (lower (has_type (ty_vec_fits_in_register _) (isub (uwiden_low x @ (value_type in_ty))
432
+ (uwiden_high y))))
433
+ (rv_vwsubu_vv x (gen_slidedown_half in_ty y) (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
434
+
435
+ (rule 10 (lower (has_type (ty_vec_fits_in_register _) (isub (uwiden_high x @ (value_type in_ty))
436
+ (uwiden_low y))))
437
+ (rv_vwsubu_vv (gen_slidedown_half in_ty x) y (unmasked) (vstate_mf2 (ty_half_lanes in_ty))))
438
+
439
+
440
+ ;;;; Rules for `ineg` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
441
+
442
+ (rule (lower (has_type (ty_int ty) (ineg val)))
443
+ (neg ty val))
444
+
445
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (ineg x)))
446
+ (rv_vneg_v x (unmasked) ty))
447
+
448
+
449
+ ;;;; Rules for `imul` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
450
+
451
+ (rule 0 (lower (has_type (ty_int_ref_scalar_64 ty) (imul x y)))
452
+ (rv_mul x y))
453
+
454
+ (rule 1 (lower (has_type (fits_in_32 (ty_int ty)) (imul x y)))
455
+ (rv_mulw x y))
456
+
457
+ ;; for I128
458
+ (rule 2 (lower (has_type $I128 (imul x y)))
459
+ (let
460
+ ((x_regs ValueRegs x)
461
+ (x_lo XReg (value_regs_get x_regs 0))
462
+ (x_hi XReg (value_regs_get x_regs 1))
463
+
464
+ ;; Get the high/low registers for `y`.
465
+ (y_regs ValueRegs y)
466
+ (y_lo XReg (value_regs_get y_regs 0))
467
+ (y_hi XReg (value_regs_get y_regs 1))
468
+
469
+ ;; 128bit mul formula:
470
+ ;; dst_lo = x_lo * y_lo
471
+ ;; dst_hi = mulhu(x_lo, y_lo) + (x_lo * y_hi) + (x_hi * y_lo)
472
+ ;;
473
+ ;; We can convert the above formula into the following
474
+ ;; mulhu dst_hi, x_lo, y_lo
475
+ ;; madd dst_hi, x_lo, y_hi, dst_hi
476
+ ;; madd dst_hi, x_hi, y_lo, dst_hi
477
+ ;; madd dst_lo, x_lo, y_lo, zero
478
+ (dst_hi1 XReg (rv_mulhu x_lo y_lo))
479
+ (dst_hi2 XReg (madd x_lo y_hi dst_hi1))
480
+ (dst_hi XReg (madd x_hi y_lo dst_hi2))
481
+ (dst_lo XReg (madd x_lo y_lo (zero_reg))))
482
+ (value_regs dst_lo dst_hi)))
483
+
484
+ (rule 3 (lower (has_type (ty_vec_fits_in_register ty) (imul x y)))
485
+ (rv_vmul_vv x y (unmasked) ty))
486
+
487
+ (rule 4 (lower (has_type (ty_vec_fits_in_register ty) (imul (splat x) y)))
488
+ (rv_vmul_vx y x (unmasked) ty))
489
+
490
+ (rule 5 (lower (has_type (ty_vec_fits_in_register ty) (imul x (splat y))))
491
+ (rv_vmul_vx x y (unmasked) ty))
492
+
493
+ ;;;; Rules for `smulhi` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
494
+ (rule 0 (lower (has_type (ty_int_ref_scalar_64 ty) (smulhi x y)))
495
+ (lower_smlhi ty (sext x) (sext y)))
496
+
497
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (smulhi x y)))
498
+ (rv_vmulh_vv x y (unmasked) ty))
499
+
500
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (smulhi (splat x) y)))
501
+ (rv_vmulh_vx y x (unmasked) ty))
502
+
503
+ (rule 3 (lower (has_type (ty_vec_fits_in_register ty) (smulhi x (splat y))))
504
+ (rv_vmulh_vx x y (unmasked) ty))
505
+
506
+ ;;;; Rules for `umulhi` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
507
+ (rule 0 (lower (has_type (fits_in_32 ty) (umulhi x y)))
508
+ (let ((tmp XReg (rv_mul (zext x) (zext y))))
509
+ (rv_srli tmp (imm12_const (ty_bits ty)))))
510
+
511
+ (rule 1 (lower (has_type $I64 (umulhi x y)))
512
+ (rv_mulhu x y))
513
+
514
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (umulhi x y)))
515
+ (rv_vmulhu_vv x y (unmasked) ty))
516
+
517
+ (rule 3 (lower (has_type (ty_vec_fits_in_register ty) (umulhi (splat x) y)))
518
+ (rv_vmulhu_vx y x (unmasked) ty))
519
+
520
+ (rule 4 (lower (has_type (ty_vec_fits_in_register ty) (umulhi x (splat y))))
521
+ (rv_vmulhu_vx x y (unmasked) ty))
522
+
523
+ ;;;; Rules for `udiv` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
524
+
525
+ (rule 0 (lower (has_type (fits_in_16 ty) (udiv x y)))
526
+ (if-let $true (has_m))
527
+ (rv_divuw (zext x) (nonzero_divisor (zext y))))
528
+
529
+ (rule 1 (lower (has_type (fits_in_16 ty) (udiv x y @ (iconst imm))))
530
+ (if-let $true (has_m))
531
+ (if (safe_divisor_from_imm64 ty imm))
532
+ (rv_divuw (zext x) (zext y)))
533
+
534
+ (rule 2 (lower (has_type $I32 (udiv x y)))
535
+ (if-let $true (has_m))
536
+ (rv_divuw x (nonzero_divisor (zext y))))
537
+
538
+ (rule 3 (lower (has_type $I32 (udiv x y @ (iconst imm))))
539
+ (if-let $true (has_m))
540
+ (if (safe_divisor_from_imm64 $I32 imm))
541
+ (rv_divuw x y))
542
+
543
+ (rule 2 (lower (has_type $I64 (udiv x y)))
544
+ (if-let $true (has_m))
545
+ (rv_divu x (nonzero_divisor y)))
546
+
547
+ (rule 3 (lower (has_type $I64 (udiv x y @ (iconst imm))))
548
+ (if-let $true (has_m))
549
+ (if (safe_divisor_from_imm64 $I64 imm))
550
+ (rv_divu x y))
551
+
552
+ ;; Traps if the input register is zero, otherwise returns the same register.
553
+ (decl nonzero_divisor (XReg) XReg)
554
+ (rule (nonzero_divisor val)
555
+ (let ((_ InstOutput (gen_trapif (IntCC.Equal) val (zero_reg) (TrapCode.IntegerDivisionByZero))))
556
+ val))
557
+
558
+ ;;;; Rules for `sdiv` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
559
+
560
+ (rule 0 (lower (has_type (fits_in_16 ty) (sdiv x y)))
561
+ (if-let $true (has_m))
562
+ (let ((x XReg (sext x)))
563
+ (rv_divw x (safe_sdiv_divisor ty x (sext y)))))
564
+
565
+ (rule 1 (lower (has_type (fits_in_16 ty) (sdiv x y @ (iconst imm))))
566
+ (if-let $true (has_m))
567
+ (if (safe_divisor_from_imm64 ty imm))
568
+ (rv_divw (sext x) (sext y)))
569
+
570
+ (rule 2 (lower (has_type $I32 (sdiv x y)))
571
+ (if-let $true (has_m))
572
+ (let ((x XReg (sext x)))
573
+ (rv_divw x (safe_sdiv_divisor $I32 x (sext y)))))
574
+
575
+ (rule 3 (lower (has_type $I32 (sdiv x y @ (iconst imm))))
576
+ (if-let $true (has_m))
577
+ (if (safe_divisor_from_imm64 $I32 imm))
578
+ (rv_divw x y))
579
+
580
+ (rule 2 (lower (has_type $I64 (sdiv x y)))
581
+ (if-let $true (has_m))
582
+ (rv_div x (safe_sdiv_divisor $I64 x y)))
583
+
584
+ (rule 3 (lower (has_type $I64 (sdiv x y @ (iconst imm))))
585
+ (if-let $true (has_m))
586
+ (if (safe_divisor_from_imm64 $I64 imm))
587
+ (rv_div x y))
588
+
589
+ ;; Check for two trapping conditions:
590
+ ;;
591
+ ;; * the divisor is 0, or...
592
+ ;; * the divisor is -1 and the dividend is $ty::MIN
593
+ (decl safe_sdiv_divisor (Type XReg XReg) XReg)
594
+ (rule (safe_sdiv_divisor ty x y)
595
+ (let (
596
+ (y XReg (nonzero_divisor y))
597
+ (min XReg (imm $I64 (u64_shl 0xffffffff_ffffffff (u64_sub (ty_bits ty) 1))))
598
+ (x_is_not_min XReg (rv_xor x min))
599
+ (y_is_not_neg_one XReg (rv_not y))
600
+ (no_int_overflow XReg (rv_or x_is_not_min y_is_not_neg_one))
601
+ (_ InstOutput (gen_trapif
602
+ (IntCC.Equal)
603
+ no_int_overflow (zero_reg)
604
+ (TrapCode.IntegerOverflow))))
605
+ y))
606
+
607
+ ;;;; Rules for `urem` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
608
+
609
+ (rule 0 (lower (has_type (fits_in_16 ty) (urem x y)))
610
+ (if-let $true (has_m))
611
+ (rv_remuw (zext x) (nonzero_divisor (zext y))))
612
+
613
+ (rule 1 (lower (has_type (fits_in_16 ty) (urem x y @ (iconst imm))))
614
+ (if-let $true (has_m))
615
+ (if (safe_divisor_from_imm64 ty imm))
616
+ (rv_remuw (zext x) (zext y)))
617
+
618
+ (rule 2 (lower (has_type $I32 (urem x y)))
619
+ (if-let $true (has_m))
620
+ (rv_remuw x (nonzero_divisor (zext y))))
621
+
622
+ (rule 3 (lower (has_type $I32 (urem x y @ (iconst imm))))
623
+ (if-let $true (has_m))
624
+ (if (safe_divisor_from_imm64 $I32 imm))
625
+ (rv_remuw x y))
626
+
627
+ (rule 2 (lower (has_type $I64 (urem x y)))
628
+ (if-let $true (has_m))
629
+ (rv_remu x (nonzero_divisor y)))
630
+
631
+ (rule 3 (lower (has_type $I64 (urem x y @ (iconst imm))))
632
+ (if-let $true (has_m))
633
+ (if (safe_divisor_from_imm64 $I64 imm))
634
+ (rv_remu x y))
635
+
636
+ ;;;; Rules for `srem` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
637
+
638
+ (rule 0 (lower (has_type (fits_in_16 ty) (srem x y)))
639
+ (if-let $true (has_m))
640
+ (rv_remw (sext x) (nonzero_divisor (sext y))))
641
+
642
+ (rule 1 (lower (has_type (fits_in_16 ty) (srem x y @ (iconst imm))))
643
+ (if-let $true (has_m))
644
+ (if (safe_divisor_from_imm64 ty imm))
645
+ (rv_remw (sext x) (sext y)))
646
+
647
+ (rule 2 (lower (has_type $I32 (srem x y)))
648
+ (if-let $true (has_m))
649
+ (rv_remw x (nonzero_divisor (sext y))))
650
+
651
+ (rule 3 (lower (has_type $I32 (srem x y @ (iconst imm))))
652
+ (if-let $true (has_m))
653
+ (if (safe_divisor_from_imm64 $I32 imm))
654
+ (rv_remw x y))
655
+
656
+ (rule 2 (lower (has_type $I64 (srem x y)))
657
+ (if-let $true (has_m))
658
+ (rv_rem x (nonzero_divisor y)))
659
+
660
+ (rule 3 (lower (has_type $I64 (srem x y @ (iconst imm))))
661
+ (if-let $true (has_m))
662
+ (if (safe_divisor_from_imm64 $I64 imm))
663
+ (rv_rem x y))
664
+
665
+ ;;;; Rules for `and` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
666
+ (rule -1 (lower (has_type (fits_in_64 ty) (band x y)))
667
+ (rv_and x y))
668
+
669
+ (rule 0 (lower (has_type $I128 (band x y)))
670
+ (value_regs
671
+ (rv_and (value_regs_get x 0) (value_regs_get y 0))
672
+ (rv_and (value_regs_get x 1) (value_regs_get y 1))))
673
+
674
+ ;; Special cases for when one operand is an immediate that fits in 12 bits.
675
+ (rule 1 (lower (has_type (fits_in_64 (ty_int ty)) (band x (imm12_from_value y))))
676
+ (rv_andi x y))
677
+
678
+ (rule 2 (lower (has_type (fits_in_64 (ty_int ty)) (band (imm12_from_value x) y)))
679
+ (rv_andi y x))
680
+
681
+ (rule 3 (lower (has_type (ty_scalar_float ty) (band x y)))
682
+ (lower_float_binary (AluOPRRR.And) x y ty))
683
+
684
+ ;; Specialized lowerings for `(band x (bnot y))` which is additionally produced
685
+ ;; by Cranelift's `band_not` instruction that is legalized into the simpler
686
+ ;; forms early on.
687
+
688
+ (rule 4 (lower (has_type (fits_in_64 (ty_int ty)) (band x (bnot y))))
689
+ (if-let $true (has_zbb))
690
+ (rv_andn x y))
691
+
692
+ (rule 5 (lower (has_type (fits_in_64 (ty_int ty)) (band (bnot y) x)))
693
+ (if-let $true (has_zbb))
694
+ (rv_andn x y))
695
+
696
+ (rule 6 (lower (has_type $I128 (band x (bnot y))))
697
+ (if-let $true (has_zbb))
698
+ (let ((low XReg (rv_andn (value_regs_get x 0) (value_regs_get y 0)))
699
+ (high XReg (rv_andn (value_regs_get x 1) (value_regs_get y 1))))
700
+ (value_regs low high)))
701
+
702
+ (rule 7 (lower (has_type $I128 (band (bnot y) x)))
703
+ (if-let $true (has_zbb))
704
+ (let ((low XReg (rv_andn (value_regs_get x 0) (value_regs_get y 0)))
705
+ (high XReg (rv_andn (value_regs_get x 1) (value_regs_get y 1))))
706
+ (value_regs low high)))
707
+
708
+ (rule 8 (lower (has_type (ty_vec_fits_in_register ty) (band x y)))
709
+ (rv_vand_vv x y (unmasked) ty))
710
+
711
+ (rule 9 (lower (has_type (ty_vec_fits_in_register ty) (band x (splat y))))
712
+ (if (ty_vector_not_float ty))
713
+ (rv_vand_vx x y (unmasked) ty))
714
+
715
+ (rule 10 (lower (has_type (ty_vec_fits_in_register ty) (band (splat x) y)))
716
+ (if (ty_vector_not_float ty))
717
+ (rv_vand_vx y x (unmasked) ty))
718
+
719
+ (rule 11 (lower (has_type (ty_vec_fits_in_register ty) (band x y)))
720
+ (if-let y_imm (replicated_imm5 y))
721
+ (rv_vand_vi x y_imm (unmasked) ty))
722
+
723
+ (rule 12 (lower (has_type (ty_vec_fits_in_register ty) (band x y)))
724
+ (if-let x_imm (replicated_imm5 x))
725
+ (rv_vand_vi y x_imm (unmasked) ty))
726
+
727
+ ;; `bclr{,i}` specializations from `zbs`
728
+
729
+ (rule 13 (lower (has_type (fits_in_32 ty) (band x (bnot (ishl (i64_from_iconst 1) y)))))
730
+ (if-let $true (has_zbs))
731
+ (rv_bclr x (rv_andi y (imm12_const (u8_sub (ty_bits ty) 1)))))
732
+ (rule 14 (lower (has_type (fits_in_32 ty) (band (bnot (ishl (i64_from_iconst 1) y)) x)))
733
+ (if-let $true (has_zbs))
734
+ (rv_bclr x (rv_andi y (imm12_const (u8_sub (ty_bits ty) 1)))))
735
+
736
+ (rule 15 (lower (has_type $I64 (band x (bnot (ishl (i64_from_iconst 1) y)))))
737
+ (if-let $true (has_zbs))
738
+ (rv_bclr x y))
739
+ (rule 16 (lower (has_type $I64 (band (bnot (ishl (i64_from_iconst 1) y)) x)))
740
+ (if-let $true (has_zbs))
741
+ (rv_bclr x y))
742
+
743
+ (rule 17 (lower (has_type (fits_in_64 ty) (band x (u64_from_iconst n))))
744
+ (if-let $true (has_zbs))
745
+ (if-let imm (bclr_imm ty n))
746
+ (rv_bclri x imm))
747
+ (rule 18 (lower (has_type (fits_in_64 ty) (band (u64_from_iconst n) x)))
748
+ (if-let $true (has_zbs))
749
+ (if-let imm (bclr_imm ty n))
750
+ (rv_bclri x imm))
751
+
752
+ (decl pure partial bclr_imm (Type u64) Imm12)
753
+ (extern constructor bclr_imm bclr_imm)
754
+
755
+ ;; `bext{,i}` specializations from `zbs`
756
+
757
+ (rule 19 (lower (has_type $I32 (band (ushr x y) (u64_from_iconst 1))))
758
+ (if-let $true (has_zbs))
759
+ (rv_bext x (rv_andi y (imm12_const 31))))
760
+ (rule 19 (lower (has_type $I32 (band (sshr x y) (u64_from_iconst 1))))
761
+ (if-let $true (has_zbs))
762
+ (rv_bext x (rv_andi y (imm12_const 31))))
763
+ (rule 19 (lower (has_type $I32 (band (u64_from_iconst 1) (ushr x y))))
764
+ (if-let $true (has_zbs))
765
+ (rv_bext x (rv_andi y (imm12_const 31))))
766
+ (rule 19 (lower (has_type $I32 (band (u64_from_iconst 1) (sshr x y))))
767
+ (if-let $true (has_zbs))
768
+ (rv_bext x (rv_andi y (imm12_const 31))))
769
+
770
+ (rule 19 (lower (has_type $I64 (band (ushr x y) (u64_from_iconst 1))))
771
+ (if-let $true (has_zbs))
772
+ (rv_bext x y))
773
+ (rule 19 (lower (has_type $I64 (band (sshr x y) (u64_from_iconst 1))))
774
+ (if-let $true (has_zbs))
775
+ (rv_bext x y))
776
+ (rule 19 (lower (has_type $I64 (band (u64_from_iconst 1) (ushr x y))))
777
+ (if-let $true (has_zbs))
778
+ (rv_bext x y))
779
+ (rule 19 (lower (has_type $I64 (band (u64_from_iconst 1) (sshr x y))))
780
+ (if-let $true (has_zbs))
781
+ (rv_bext x y))
782
+
783
+ (rule 20 (lower (has_type $I32 (band (ushr x (imm12_from_value y)) (u64_from_iconst 1))))
784
+ (if-let $true (has_zbs))
785
+ (rv_bexti x (imm12_and y 31)))
786
+ (rule 20 (lower (has_type $I32 (band (sshr x (imm12_from_value y)) (u64_from_iconst 1))))
787
+ (if-let $true (has_zbs))
788
+ (rv_bexti x (imm12_and y 31)))
789
+ (rule 20 (lower (has_type $I64 (band (ushr x (imm12_from_value y)) (u64_from_iconst 1))))
790
+ (if-let $true (has_zbs))
791
+ (rv_bexti x (imm12_and y 63)))
792
+ (rule 20 (lower (has_type $I64 (band (sshr x (imm12_from_value y)) (u64_from_iconst 1))))
793
+ (if-let $true (has_zbs))
794
+ (rv_bexti x (imm12_and y 63)))
795
+
796
+ ;;;; Rules for `or` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
797
+ (rule 0 (lower (has_type (ty_int ty) (bor x y)))
798
+ (gen_or ty x y))
799
+
800
+ ;; Special cases for when one operand is an immediate that fits in 12 bits.
801
+ (rule 1 (lower (has_type (fits_in_64 (ty_int ty)) (bor x (imm12_from_value y))))
802
+ (rv_ori x y))
803
+
804
+ (rule 2 (lower (has_type (fits_in_64 (ty_int ty)) (bor (imm12_from_value x) y)))
805
+ (rv_ori y x))
806
+
807
+ (rule 3 (lower (has_type (ty_scalar_float ty) (bor x y)))
808
+ (lower_float_binary (AluOPRRR.Or) x y ty))
809
+
810
+ ;; Specialized lowerings for `(bor x (bnot y))` which is additionally produced
811
+ ;; by Cranelift's `bor_not` instruction that is legalized into the simpler
812
+ ;; forms early on.
813
+
814
+ (rule 4 (lower (has_type (fits_in_64 (ty_int ty)) (bor x (bnot y))))
815
+ (if-let $true (has_zbb))
816
+ (rv_orn x y))
817
+
818
+ (rule 5 (lower (has_type (fits_in_64 (ty_int ty)) (bor (bnot y) x)))
819
+ (if-let $true (has_zbb))
820
+ (rv_orn x y))
821
+
822
+ (rule 6 (lower (has_type $I128 (bor x (bnot y))))
823
+ (if-let $true (has_zbb))
824
+ (let ((low XReg (rv_orn (value_regs_get x 0) (value_regs_get y 0)))
825
+ (high XReg (rv_orn (value_regs_get x 1) (value_regs_get y 1))))
826
+ (value_regs low high)))
827
+
828
+ (rule 7 (lower (has_type $I128 (bor (bnot y) x)))
829
+ (if-let $true (has_zbb))
830
+ (let ((low XReg (rv_orn (value_regs_get x 0) (value_regs_get y 0)))
831
+ (high XReg (rv_orn (value_regs_get x 1) (value_regs_get y 1))))
832
+ (value_regs low high)))
833
+
834
+ (rule 8 (lower (has_type (ty_vec_fits_in_register ty) (bor x y)))
835
+ (rv_vor_vv x y (unmasked) ty))
836
+
837
+ (rule 9 (lower (has_type (ty_vec_fits_in_register ty) (bor x (splat y))))
838
+ (if (ty_vector_not_float ty))
839
+ (rv_vor_vx x y (unmasked) ty))
840
+
841
+ (rule 10 (lower (has_type (ty_vec_fits_in_register ty) (bor (splat x) y)))
842
+ (if (ty_vector_not_float ty))
843
+ (rv_vor_vx y x (unmasked) ty))
844
+
845
+ (rule 11 (lower (has_type (ty_vec_fits_in_register ty) (bor x y)))
846
+ (if-let y_imm (replicated_imm5 y))
847
+ (rv_vor_vi x y_imm (unmasked) ty))
848
+
849
+ (rule 12 (lower (has_type (ty_vec_fits_in_register ty) (bor x y)))
850
+ (if-let x_imm (replicated_imm5 x))
851
+ (rv_vor_vi y x_imm (unmasked) ty))
852
+
853
+ ;; `bset{,i}` specializations from `zbs`
854
+
855
+ (rule 13 (lower (has_type $I32 (bor x (ishl (i64_from_iconst 1) y))))
856
+ (if-let $true (has_zbs))
857
+ (rv_bset x (rv_andi y (imm12_const 31))))
858
+ (rule 14 (lower (has_type $I32 (bor (ishl (i64_from_iconst 1) y) x)))
859
+ (if-let $true (has_zbs))
860
+ (rv_bset x (rv_andi y (imm12_const 31))))
861
+
862
+ (rule 13 (lower (has_type $I64 (bor x (ishl (i64_from_iconst 1) y))))
863
+ (if-let $true (has_zbs))
864
+ (rv_bset x y))
865
+ (rule 14 (lower (has_type $I64 (bor (ishl (i64_from_iconst 1) y) x)))
866
+ (if-let $true (has_zbs))
867
+ (rv_bset x y))
868
+
869
+ (rule 15 (lower (has_type (fits_in_64 _) (bor x (u64_from_iconst n))))
870
+ (if-let $true (has_zbs))
871
+ (if-let imm (bseti_imm n))
872
+ (rv_bseti x imm))
873
+ (rule 16 (lower (has_type (fits_in_64 _) (bor (u64_from_iconst n) x)))
874
+ (if-let $true (has_zbs))
875
+ (if-let imm (bseti_imm n))
876
+ (rv_bseti x imm))
877
+
878
+ (decl pure partial bseti_imm (u64) Imm12)
879
+ (extern constructor bseti_imm bseti_imm)
880
+
881
+ ;;;; Rules for `xor` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
882
+ (rule 0 (lower (has_type (fits_in_64 (ty_int ty)) (bxor x y)))
883
+ (rv_xor x y))
884
+
885
+ ;; Special cases for when one operand is an immediate that fits in 12 bits.
886
+ (rule 1 (lower (has_type (fits_in_64 (ty_int ty)) (bxor x (imm12_from_value y))))
887
+ (rv_xori x y))
888
+
889
+ (rule 2 (lower (has_type (fits_in_64 (ty_int ty)) (bxor (imm12_from_value x) y)))
890
+ (rv_xori y x))
891
+
892
+ (rule 3 (lower (has_type $I128 (bxor x y)))
893
+ (lower_b128_binary (AluOPRRR.Xor) x y))
894
+
895
+ (rule 4 (lower (has_type (ty_scalar_float ty) (bxor x y)))
896
+ (lower_float_binary (AluOPRRR.Xor) x y ty))
897
+
898
+ (rule 5 (lower (has_type (ty_vec_fits_in_register ty) (bxor x y)))
899
+ (rv_vxor_vv x y (unmasked) ty))
900
+
901
+ (rule 6 (lower (has_type (ty_vec_fits_in_register ty) (bxor x (splat y))))
902
+ (if (ty_vector_not_float ty))
903
+ (rv_vxor_vx x y (unmasked) ty))
904
+
905
+ (rule 7 (lower (has_type (ty_vec_fits_in_register ty) (bxor (splat x) y)))
906
+ (if (ty_vector_not_float ty))
907
+ (rv_vxor_vx y x (unmasked) ty))
908
+
909
+ (rule 8 (lower (has_type (ty_vec_fits_in_register ty) (bxor x y)))
910
+ (if-let y_imm (replicated_imm5 y))
911
+ (rv_vxor_vi x y_imm (unmasked) ty))
912
+
913
+ (rule 9 (lower (has_type (ty_vec_fits_in_register ty) (bxor x y)))
914
+ (if-let x_imm (replicated_imm5 x))
915
+ (rv_vxor_vi y x_imm (unmasked) ty))
916
+
917
+ ;; `binv{,i}` specializations from `zbs`
918
+
919
+ (rule 13 (lower (has_type $I32 (bxor x (ishl (i64_from_iconst 1) y))))
920
+ (if-let $true (has_zbs))
921
+ (rv_binv x (rv_andi y (imm12_const 31))))
922
+ (rule 14 (lower (has_type $I32 (bxor (ishl (i64_from_iconst 1) y) x)))
923
+ (if-let $true (has_zbs))
924
+ (rv_binv x (rv_andi y (imm12_const 31))))
925
+
926
+ (rule 13 (lower (has_type $I64 (bxor x (ishl (i64_from_iconst 1) y))))
927
+ (if-let $true (has_zbs))
928
+ (rv_binv x y))
929
+ (rule 14 (lower (has_type $I64 (bxor (ishl (i64_from_iconst 1) y) x)))
930
+ (if-let $true (has_zbs))
931
+ (rv_binv x y))
932
+
933
+ (rule 15 (lower (has_type (fits_in_64 _) (bxor x (u64_from_iconst n))))
934
+ (if-let $true (has_zbs))
935
+ (if-let imm (binvi_imm n))
936
+ (rv_binvi x imm))
937
+ (rule 16 (lower (has_type (fits_in_64 _) (bxor (u64_from_iconst n) x)))
938
+ (if-let $true (has_zbs))
939
+ (if-let imm (binvi_imm n))
940
+ (rv_binvi x imm))
941
+
942
+ (decl pure partial binvi_imm (u64) Imm12)
943
+ (extern constructor binvi_imm binvi_imm)
944
+
945
+ ;;;; Rules for `bnot` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
946
+
947
+ (rule 0 (lower (has_type (ty_int_ref_scalar_64 _) (bnot x)))
948
+ (rv_not x))
949
+
950
+ (rule 1 (lower (has_type (ty_scalar_float ty) (bnot x)))
951
+ (move_x_to_f (rv_not (move_f_to_x x ty)) (float_int_of_same_size ty)))
952
+
953
+ (rule 2 (lower (has_type $I128 (bnot x)))
954
+ (value_regs
955
+ (rv_not (value_regs_get x 0))
956
+ (rv_not (value_regs_get x 1))))
957
+
958
+ (rule 3 (lower (has_type (ty_vec_fits_in_register ty) (bnot x)))
959
+ (rv_vnot_v x (unmasked) ty))
960
+
961
+ (rule 4 (lower (has_type (ty_int_ref_scalar_64 _) (bnot (bxor x y))))
962
+ (if-let $true (has_zbb))
963
+ (rv_xnor x y))
964
+
965
+ ;;;; Rules for `bit_reverse` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
966
+
967
+ (rule 0 (lower (has_type (ty_int_ref_scalar_64 ty) (bitrev x)))
968
+ (gen_bitrev ty x))
969
+
970
+ (rule 1 (lower (has_type $I128 (bitrev x)))
971
+ (value_regs
972
+ (gen_bitrev $I64 (value_regs_get x 1))
973
+ (gen_bitrev $I64 (value_regs_get x 0))))
974
+
975
+
976
+ ;; Constructs a sequence of instructions that reverse all bits in `x` up to
977
+ ;; the given type width.
978
+ (decl gen_bitrev (Type XReg) XReg)
979
+
980
+ (rule 0 (gen_bitrev (ty_16_or_32 (ty_int ty)) x)
981
+ (if-let shift_amt (u64_to_imm12 (u64_sub 64 (ty_bits ty))))
982
+ (rv_srli (gen_bitrev $I64 x) shift_amt))
983
+
984
+ (rule 1 (gen_bitrev $I8 x)
985
+ (gen_brev8 x $I8))
986
+
987
+ (rule 1 (gen_bitrev $I64 x)
988
+ (gen_brev8 (gen_bswap $I64 x) $I64))
989
+
990
+
991
+ ;;;; Rules for `bswap` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
992
+
993
+ (rule 1 (lower (has_type (fits_in_64 (ty_int ty)) (bswap x)))
994
+ (gen_bswap ty x))
995
+
996
+ (rule 2 (lower (has_type $I128 (bswap x)))
997
+ (value_regs
998
+ (gen_bswap $I64 (value_regs_get x 1))
999
+ (gen_bswap $I64 (value_regs_get x 0))))
1000
+
1001
+ ;; Builds a sequence of instructions that swaps the bytes in `x` up to the given
1002
+ ;; type width.
1003
+ (decl gen_bswap (Type XReg) XReg)
1004
+
1005
+ ;; This is only here to make the rule below work. bswap.i8 isn't valid
1006
+ (rule 0 (gen_bswap $I8 x) x)
1007
+ (rule 1 (gen_bswap (ty_int_ref_16_to_64 ty) x)
1008
+ (if-let half_ty (ty_half_width ty))
1009
+ (if-let half_size (u64_to_imm12 (ty_bits half_ty)))
1010
+ (let (;; This swaps the top bytes and zeroes the bottom bytes, so that
1011
+ ;; we can or it with the bottom bytes later.
1012
+ (swap_top XReg (gen_bswap half_ty x))
1013
+ (top XReg (rv_slli swap_top half_size))
1014
+
1015
+ ;; Get the top half, swap it, and zero extend it so we can `or` it
1016
+ ;; with the bottom half. Note that zero extension here already knows
1017
+ ;; that `zbb` isn't available and that `half_ty` is not `$I64`, so this
1018
+ ;; falls back to the shift-then-shift sequence.
1019
+ (shifted XReg (rv_srli x half_size))
1020
+ (swap_bot XReg (gen_bswap half_ty shifted))
1021
+ (shift Imm12 (imm_from_bits (u64_sub 64 (ty_bits half_ty))))
1022
+ (bot_shifted_left XReg (rv_slli swap_bot shift))
1023
+ (bot XReg (rv_srli bot_shifted_left shift)))
1024
+ (rv_or top bot)))
1025
+
1026
+ (rule 2 (gen_bswap (ty_16_or_32 (ty_int ty)) x)
1027
+ (if-let $true (has_zbb))
1028
+ (if-let shift_amt (u64_to_imm12 (u64_sub 64 (ty_bits ty))))
1029
+ (rv_srli (rv_rev8 x) shift_amt))
1030
+
1031
+ (rule 3 (gen_bswap $I64 x)
1032
+ (if-let $true (has_zbb))
1033
+ (rv_rev8 x))
1034
+
1035
+ ;;;; Rules for `ctz` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1036
+ (rule (lower (has_type (fits_in_64 ty) (ctz x)))
1037
+ (lower_ctz ty x))
1038
+
1039
+ (rule 1 (lower (has_type $I128 (ctz x)))
1040
+ (let ((x_lo XReg (value_regs_get x 0))
1041
+ (x_hi XReg (value_regs_get x 1))
1042
+ ;; Count both halves
1043
+ (high XReg (lower_ctz $I64 x_hi))
1044
+ (low XReg (lower_ctz $I64 x_lo))
1045
+ ;; Only add the top half if the bottom is zero
1046
+ (high XReg (gen_select_xreg (cmp_eqz x_lo) high (zero_reg)))
1047
+ (result XReg (rv_add low high)))
1048
+ (value_regs result (imm $I64 0))))
1049
+
1050
+ ;;;; Rules for `clz` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1051
+ (rule 0 (lower (has_type (fits_in_64 ty) (clz x)))
1052
+ (gen_cltz $true x ty))
1053
+
1054
+ (rule 1 (lower (has_type $I128 (clz x)))
1055
+ (let ((x_lo XReg (value_regs_get x 0))
1056
+ (x_hi XReg (value_regs_get x 1))
1057
+ ;; Count both halves
1058
+ (high XReg (gen_clz x_hi))
1059
+ (low XReg (gen_clz x_lo))
1060
+ ;; Only add the bottom zeros if the top half is zero
1061
+ (low XReg (gen_select_xreg (cmp_eqz x_hi) low (zero_reg))))
1062
+ (value_regs (rv_add high low) (imm $I64 0))))
1063
+
1064
+ (rule 2 (lower (has_type (fits_in_16 ty) (clz x)))
1065
+ (if-let $true (has_zbb))
1066
+ (let ((tmp XReg (zext x))
1067
+ (count XReg (rv_clz tmp)))
1068
+ ;; We always do the operation on the full 64-bit register, so subtract 64 from the result.
1069
+ (rv_addi count (imm12_const_add (ty_bits ty) -64))))
1070
+
1071
+ (rule 3 (lower (has_type $I32 (clz x)))
1072
+ (if-let $true (has_zbb))
1073
+ (rv_clzw x))
1074
+
1075
+ (rule 3 (lower (has_type $I64 (clz x)))
1076
+ (if-let $true (has_zbb))
1077
+ (rv_clz x))
1078
+
1079
+ (decl gen_clz (XReg) XReg)
1080
+ (rule 0 (gen_clz rs)
1081
+ (gen_cltz $true rs $I64))
1082
+ (rule 1 (gen_clz rs)
1083
+ (if-let $true (has_zbb))
1084
+ (rv_clz rs))
1085
+
1086
+ ;;;; Rules for `cls` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1087
+
1088
+ (rule (lower (has_type (fits_in_64 ty) (cls x)))
1089
+ (let ((tmp XReg (sext x))
1090
+ (tmp2 XReg (gen_select_xreg (cmp_ltz tmp) (rv_not tmp) tmp))
1091
+ (tmp3 XReg (gen_clz tmp2)))
1092
+ ;; clz counted the full register width, so subtract (64-$width), and then
1093
+ ;; additionally subtract one more, meaning here -65+width is added.
1094
+ (rv_addi tmp3 (imm12_const_add (ty_bits ty) -65))))
1095
+
1096
+ ;; If the sign bit is set, we count the leading zeros of the inverted value.
1097
+ ;; Otherwise we can just count the leading zeros of the original value.
1098
+ ;; Subtract 1 since the sign bit does not count.
1099
+ (rule 1 (lower (has_type $I128 (cls x)))
1100
+ (let ((low XReg (value_regs_get x 0))
1101
+ (high XReg (value_regs_get x 1))
1102
+ (low XReg (gen_select_xreg (cmp_ltz high) (rv_not low) low))
1103
+ (high XReg (gen_select_xreg (cmp_ltz high) (rv_not high) high))
1104
+
1105
+ ;; Count both halves
1106
+ (high_cnt XReg (gen_clz high))
1107
+ (low_cnt XReg (gen_clz low))
1108
+ ;; Only add the bottom zeros if the top half is zero
1109
+ (low_cnt XReg (gen_select_xreg (cmp_eqz high) low_cnt (zero_reg)))
1110
+ (count XReg (rv_add high_cnt low_cnt))
1111
+ (result XReg (rv_addi count (imm12_const -1))))
1112
+ (value_regs result (imm $I64 0))))
1113
+
1114
+
1115
+ ;;;; Rules for `uextend` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1116
+ (rule 0 (lower (has_type (fits_in_64 _) (uextend val)))
1117
+ (zext val))
1118
+ (rule 1 (lower (has_type $I128 (uextend val)))
1119
+ (value_regs (zext val) (imm $I64 0)))
1120
+
1121
+ ;;;; Rules for `sextend` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1122
+ (rule 0 (lower (has_type (fits_in_64 _) (sextend val @ (value_type in_ty))))
1123
+ (sext val))
1124
+ (rule 1 (lower (has_type $I128 (sextend val @ (value_type in_ty))))
1125
+ (let ((lo XReg (sext val)))
1126
+ (value_regs lo (rv_srai lo (imm12_const 63)))))
1127
+
1128
+ ;;;; Rules for `popcnt` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1129
+
1130
+ (rule 0 (lower (has_type (fits_in_64 _) (popcnt x)))
1131
+ (gen_popcnt (zext x)))
1132
+
1133
+ (rule 1 (lower (has_type $I128 (popcnt x)))
1134
+ (let
1135
+ ((x ValueRegs x)
1136
+ (low XReg (gen_popcnt (value_regs_get x 0)))
1137
+ (high XReg (gen_popcnt (value_regs_get x 1)))
1138
+ (result XReg (rv_add low high)))
1139
+ (value_regs result (imm $I64 0))))
1140
+
1141
+ (rule 2 (lower (has_type (fits_in_64 _) (popcnt x)))
1142
+ (if-let $true (has_zbb))
1143
+ (rv_cpop (zext x)))
1144
+
1145
+ (rule 3 (lower (has_type $I32 (popcnt x)))
1146
+ (if-let $true (has_zbb))
1147
+ (rv_cpopw x))
1148
+
1149
+ (rule 3 (lower (has_type $I128 (popcnt x)))
1150
+ (if-let $true (has_zbb))
1151
+ (let
1152
+ ((x ValueRegs x)
1153
+ (low XReg (rv_cpop (value_regs_get x 0)))
1154
+ (high XReg (rv_cpop (value_regs_get x 1)))
1155
+ (result XReg (rv_add low high)))
1156
+ (value_regs result (imm $I64 0))))
1157
+
1158
+ ;; Popcount using multiply.
1159
+ ;; This is popcount64c() from
1160
+ ;; http://en.wikipedia.org/wiki/Hamming_weight
1161
+ ;;
1162
+ ;; Here's the C version for 32 bits:
1163
+ ;; x = x - ((x>> 1) & 0x55555555);
1164
+ ;; x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
1165
+ ;; x = ((x + (x >> 4)) & 0x0F0F0F0F);
1166
+ ;; return (x * 0x01010101) >> 24; // Here 24 is the type width - 8.
1167
+ ;;
1168
+ ;; TODO: LLVM generates a much better implementation for I8X16. See: https://godbolt.org/z/qr6vf9Gr3
1169
+ ;; For the other types it seems to be largely the same.
1170
+ (rule 4 (lower (has_type (ty_vec_fits_in_register ty) (popcnt x)))
1171
+ (if-let one (u64_to_uimm5 1))
1172
+ (if-let two (u64_to_uimm5 2))
1173
+ (if-let four (u64_to_uimm5 4))
1174
+
1175
+ (let (;; x = x - ((x >> 1) & 0x55555555);
1176
+ (mask_55 XReg (imm (lane_type ty) (u64_and 0x5555555555555555 (ty_mask (lane_type ty)))))
1177
+ (count2_shr VReg (rv_vsrl_vi x one (unmasked) ty))
1178
+ (count2_and VReg (rv_vand_vx count2_shr mask_55 (unmasked) ty))
1179
+ (count2 VReg (rv_vsub_vv x count2_and (unmasked) ty))
1180
+
1181
+ ;; x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
1182
+ (mask_33 XReg (imm (lane_type ty) (u64_and 0x3333333333333333 (ty_mask (lane_type ty)))))
1183
+ (count4_shr VReg (rv_vsrl_vi count2 two (unmasked) ty))
1184
+ (count4_and VReg (rv_vand_vx count4_shr mask_33 (unmasked) ty))
1185
+ (count4_lhs VReg (rv_vand_vx count2 mask_33 (unmasked) ty))
1186
+ (count4 VReg (rv_vadd_vv count4_lhs count4_and (unmasked) ty))
1187
+
1188
+ ;; x = (x + (x >> 4)) & 0x0F0F0F0F;
1189
+ (mask_0f XReg (imm (lane_type ty) (u64_and 0x0f0f0f0f0f0f0f0f (ty_mask (lane_type ty)))))
1190
+ (count8_shr VReg (rv_vsrl_vi count4 four (unmasked) ty))
1191
+ (count8_add VReg (rv_vadd_vv count4 count8_shr (unmasked) ty))
1192
+ (count8 VReg (rv_vand_vx count8_add mask_0f (unmasked) ty))
1193
+
1194
+ ;; (x * 0x01010101) >> (<ty_width> - 8)
1195
+ (mask_01 XReg (imm (lane_type ty) (u64_and 0x0101010101010101 (ty_mask (lane_type ty)))))
1196
+ (mul VReg (rv_vmul_vx count8 mask_01 (unmasked) ty))
1197
+ (shift XReg (imm $I64 (u64_sub (ty_bits (lane_type ty)) 8)))
1198
+ (res VReg (rv_vsrl_vx mul shift (unmasked) ty)))
1199
+ res))
1200
+
1201
+ ;;;; Rules for `ishl` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1202
+
1203
+ ;; 8/16 bit types need a mask on the shift amount
1204
+ (rule 0 (lower (has_type (ty_int (ty_8_or_16 ty)) (ishl x y)))
1205
+ (if-let mask (u64_to_imm12 (ty_shift_mask ty)))
1206
+ (rv_sllw x (rv_andi (value_regs_get y 0) mask)))
1207
+
1208
+ ;; Using the 32bit version of `sll` automatically masks the shift amount.
1209
+ (rule 1 (lower (has_type $I32 (ishl x y)))
1210
+ (rv_sllw x (value_regs_get y 0)))
1211
+
1212
+ ;; Similarly, the 64bit version does the right thing.
1213
+ (rule 1 (lower (has_type $I64 (ishl x y)))
1214
+ (rv_sll x (value_regs_get y 0)))
1215
+
1216
+ ;; If the shift amount is known. We can mask it and encode it in the instruction.
1217
+ (rule 2 (lower (has_type (int_fits_in_32 ty) (ishl x (maybe_uextend (imm12_from_value y)))))
1218
+ (rv_slliw x (imm12_and y (ty_shift_mask ty))))
1219
+
1220
+ ;; We technically don't need to mask the shift amount here. The instruction
1221
+ ;; does the right thing. But it's neater when pretty printing it.
1222
+ (rule 3 (lower (has_type ty @ $I64 (ishl x (maybe_uextend (imm12_from_value y)))))
1223
+ (rv_slli x (imm12_and y (ty_shift_mask ty))))
1224
+
1225
+ ;; With `Zba` we have a shift that zero extends the LHS argument.
1226
+ (rule 4 (lower (has_type $I64 (ishl (uextend x @ (value_type $I32)) (maybe_uextend (imm12_from_value y)))))
1227
+ (if-let $true (has_zba))
1228
+ (rv_slliuw x y))
1229
+
1230
+ ;; I128 cases
1231
+ (rule 4 (lower (has_type $I128 (ishl x y)))
1232
+ (let ((tmp ValueRegs (gen_shamt $I128 (value_regs_get y 0)))
1233
+ (shamt XReg (value_regs_get tmp 0))
1234
+ (len_sub_shamt XReg (value_regs_get tmp 1))
1235
+ ;;
1236
+ (low XReg (rv_sll (value_regs_get x 0) shamt))
1237
+ ;; high part.
1238
+ (high_part1 XReg (rv_srl (value_regs_get x 0) len_sub_shamt))
1239
+ (high_part2 XReg (gen_select_xreg (cmp_eqz shamt) (zero_reg) high_part1))
1240
+ ;;
1241
+ (high_part3 XReg (rv_sll (value_regs_get x 1) shamt))
1242
+ (high XReg (rv_or high_part2 high_part3))
1243
+ ;;
1244
+ (const64 XReg (imm $I64 64))
1245
+ (shamt_128 XReg (rv_andi (value_regs_get y 0) (imm12_const 127))))
1246
+ (gen_select_regs
1247
+ (cmp_geu shamt_128 const64)
1248
+ (value_regs (zero_reg) low)
1249
+ (value_regs low high))))
1250
+
1251
+ ;; SIMD Cases
1252
+ ;; We don't need to mask anything since it is done by the instruction according to SEW.
1253
+
1254
+ (rule 5 (lower (has_type (ty_vec_fits_in_register ty) (ishl x y)))
1255
+ (rv_vsll_vx x (value_regs_get y 0) (unmasked) ty))
1256
+
1257
+ (rule 6 (lower (has_type (ty_vec_fits_in_register ty) (ishl x (maybe_uextend (uimm5_from_value y)))))
1258
+ (rv_vsll_vi x y (unmasked) ty))
1259
+
1260
+ ;;;; Rules for `ushr` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1261
+
1262
+ ;; 8/16 bit types need a mask on the shift amount, and the LHS needs to be
1263
+ ;; zero extended.
1264
+ (rule 0 (lower (has_type (ty_int (fits_in_16 ty)) (ushr x y)))
1265
+ (if-let mask (u64_to_imm12 (ty_shift_mask ty)))
1266
+ (rv_srlw (zext x) (rv_andi (value_regs_get y 0) mask)))
1267
+
1268
+ ;; Using the 32bit version of `srl` automatically masks the shift amount.
1269
+ (rule 1 (lower (has_type $I32 (ushr x y)))
1270
+ (rv_srlw x (value_regs_get y 0)))
1271
+
1272
+ ;; Similarly, the 64bit version does the right thing.
1273
+ (rule 1 (lower (has_type $I64 (ushr x y)))
1274
+ (rv_srl x (value_regs_get y 0)))
1275
+
1276
+ ;; When the RHS is known we can just encode it in the instruction.
1277
+ (rule 2 (lower (has_type (ty_int (fits_in_16 ty)) (ushr x (maybe_uextend (imm12_from_value y)))))
1278
+ (rv_srliw (zext x) (imm12_and y (ty_shift_mask ty))))
1279
+
1280
+ (rule 3 (lower (has_type $I32 (ushr x (maybe_uextend (imm12_from_value y)))))
1281
+ (rv_srliw x y))
1282
+
1283
+ (rule 3 (lower (has_type $I64 (ushr x (maybe_uextend (imm12_from_value y)))))
1284
+ (rv_srli x y))
1285
+
1286
+ (rule 3 (lower (has_type $I128 (ushr x y)))
1287
+ (let ((tmp ValueRegs (gen_shamt $I128 (value_regs_get y 0)))
1288
+ (shamt XReg (value_regs_get tmp 0))
1289
+ (len_sub_shamt XReg (value_regs_get tmp 1))
1290
+ ;; low part.
1291
+ (low_part1 XReg (rv_sll (value_regs_get x 1) len_sub_shamt))
1292
+ (low_part2 XReg (gen_select_xreg (cmp_eqz shamt) (zero_reg) low_part1))
1293
+ ;;
1294
+ (low_part3 XReg (rv_srl (value_regs_get x 0) shamt))
1295
+ (low XReg (rv_or low_part2 low_part3))
1296
+ ;;
1297
+ (const64 XReg (imm $I64 64))
1298
+ ;;
1299
+ (high XReg (rv_srl (value_regs_get x 1) shamt))
1300
+ (shamt_128 XReg (rv_andi (value_regs_get y 0) (imm12_const 127))))
1301
+ (gen_select_regs
1302
+ (cmp_geu shamt_128 const64)
1303
+ (value_regs high (zero_reg))
1304
+ (value_regs low high))))
1305
+
1306
+ ;; SIMD Cases
1307
+ ;; We don't need to mask or extend anything since it is done by the instruction according to SEW.
1308
+
1309
+ (rule 4 (lower (has_type (ty_vec_fits_in_register ty) (ushr x y)))
1310
+ (rv_vsrl_vx x (value_regs_get y 0) (unmasked) ty))
1311
+
1312
+ (rule 5 (lower (has_type (ty_vec_fits_in_register ty) (ushr x (maybe_uextend (uimm5_from_value y)))))
1313
+ (rv_vsrl_vi x y (unmasked) ty))
1314
+
1315
+ ;;;; Rules for `sshr` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1316
+
1317
+ ;; 8/16 bit types need a mask on the shift amount, and the LHS needs to be
1318
+ ;; zero extended.
1319
+ (rule 0 (lower (has_type (ty_int (fits_in_16 ty)) (sshr x y)))
1320
+ (if-let mask (u64_to_imm12 (ty_shift_mask ty)))
1321
+ (rv_sraw (sext x) (rv_andi (value_regs_get y 0) mask)))
1322
+
1323
+ ;; Using the 32bit version of `sra` automatically masks the shift amount.
1324
+ (rule 1 (lower (has_type $I32 (sshr x y)))
1325
+ (rv_sraw x (value_regs_get y 0)))
1326
+
1327
+ ;; Similarly, the 64bit version does the right thing.
1328
+ (rule 1 (lower (has_type $I64 (sshr x y)))
1329
+ (rv_sra x (value_regs_get y 0)))
1330
+
1331
+ ;; When the RHS is known we can just encode it in the instruction.
1332
+ (rule 2 (lower (has_type (ty_int (fits_in_16 ty)) (sshr x (maybe_uextend (imm12_from_value y)))))
1333
+ (rv_sraiw (sext x) (imm12_and y (ty_shift_mask ty))))
1334
+
1335
+ (rule 3 (lower (has_type $I32 (sshr x (maybe_uextend (imm12_from_value y)))))
1336
+ (rv_sraiw x y))
1337
+
1338
+ (rule 3 (lower (has_type $I64 (sshr x (maybe_uextend (imm12_from_value y)))))
1339
+ (rv_srai x y))
1340
+
1341
+ (rule 3 (lower (has_type $I128 (sshr x y)))
1342
+ (let ((tmp ValueRegs (gen_shamt $I128 (value_regs_get y 0)))
1343
+ (shamt XReg (value_regs_get tmp 0))
1344
+ (len_sub_shamt XReg (value_regs_get tmp 1))
1345
+ ;; low part.
1346
+ (low_part1 XReg (rv_sll (value_regs_get x 1) len_sub_shamt))
1347
+ (low_part2 XReg (gen_select_xreg (cmp_eqz shamt) (zero_reg) low_part1))
1348
+ ;;
1349
+ (low_part3 XReg (rv_srl (value_regs_get x 0) shamt))
1350
+ (low XReg (rv_or low_part2 low_part3))
1351
+ ;;
1352
+ (const64 XReg (imm $I64 64))
1353
+ ;;
1354
+ (high XReg (rv_sra (value_regs_get x 1) shamt))
1355
+ ;;
1356
+ (const_neg_1 XReg (imm $I64 (i64_as_u64 -1)))
1357
+ ;;
1358
+ (high_replacement XReg (gen_select_xreg (cmp_ltz (value_regs_get x 1)) const_neg_1 (zero_reg)))
1359
+ (const64 XReg (imm $I64 64))
1360
+ (shamt_128 XReg (rv_andi (value_regs_get y 0) (imm12_const 127))))
1361
+ (gen_select_regs
1362
+ (cmp_geu shamt_128 const64)
1363
+ (value_regs high high_replacement)
1364
+ (value_regs low high))))
1365
+
1366
+ ;; SIMD Cases
1367
+ ;; We don't need to mask or extend anything since it is done by the instruction according to SEW.
1368
+
1369
+ (rule 4 (lower (has_type (ty_vec_fits_in_register ty) (sshr x y)))
1370
+ (rv_vsra_vx x (value_regs_get y 0) (unmasked) ty))
1371
+
1372
+ (rule 5 (lower (has_type (ty_vec_fits_in_register ty) (sshr x (maybe_uextend (uimm5_from_value y)))))
1373
+ (rv_vsra_vi x y (unmasked) ty))
1374
+
1375
+
1376
+ ;;;; Rules for `rotl` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1377
+
1378
+ (rule 0 (lower (has_type (fits_in_64 ty) (rotl rs amount)))
1379
+ (let
1380
+ ((rs XReg (zext rs))
1381
+ (amount XReg (value_regs_get amount 0))
1382
+ (x ValueRegs (gen_shamt ty amount))
1383
+ (shamt XReg (value_regs_get x 0))
1384
+ (len_sub_shamt Reg (value_regs_get x 1))
1385
+ (part1 Reg (rv_sll rs shamt))
1386
+ (part2 Reg (rv_srl rs len_sub_shamt))
1387
+ (part3 Reg (gen_select_xreg (cmp_eqz shamt) (zero_reg) part2)))
1388
+ (rv_or part1 part3)))
1389
+
1390
+ (rule 1 (lower (has_type $I32 (rotl rs amount)))
1391
+ (if-let $true (has_zbb))
1392
+ (rv_rolw rs (value_regs_get amount 0)))
1393
+
1394
+ (rule 2 (lower (has_type $I32 (rotl rs (u64_from_iconst n))))
1395
+ (if-let $true (has_zbb))
1396
+ (if-let (imm12_from_u64 imm) (u64_sub 32 (u64_and n 31)))
1397
+ (rv_roriw rs imm))
1398
+
1399
+ (rule 1 (lower (has_type $I64 (rotl rs amount)))
1400
+ (if-let $true (has_zbb))
1401
+ (rv_rol rs (value_regs_get amount 0)))
1402
+
1403
+ (rule 2 (lower (has_type $I64 (rotl rs (u64_from_iconst n))))
1404
+ (if-let $true (has_zbb))
1405
+ (if-let (imm12_from_u64 imm) (u64_sub 64 (u64_and n 63)))
1406
+ (rv_rori rs imm))
1407
+
1408
+ (rule 1 (lower (has_type $I128 (rotl x y)))
1409
+ (let
1410
+ ((tmp ValueRegs (gen_shamt $I128 (value_regs_get y 0)))
1411
+ (shamt XReg (value_regs_get tmp 0))
1412
+ (len_sub_shamt XReg (value_regs_get tmp 1))
1413
+ (low_part1 XReg (rv_sll (value_regs_get x 0) shamt))
1414
+ (low_part2 XReg (rv_srl (value_regs_get x 1) len_sub_shamt))
1415
+ ;;; if shamt == 0 low_part2 will overflow we should zero instead.
1416
+ (low_part3 XReg (gen_select_xreg (cmp_eqz shamt) (zero_reg) low_part2))
1417
+ (low XReg (rv_or low_part1 low_part3))
1418
+ (high_part1 XReg (rv_sll (value_regs_get x 1) shamt))
1419
+ (high_part2 XReg (rv_srl (value_regs_get x 0) len_sub_shamt))
1420
+ (high_part3 XReg (gen_select_xreg (cmp_eqz shamt) (zero_reg) high_part2))
1421
+ (high XReg (rv_or high_part1 high_part3))
1422
+ (const64 XReg (imm $I64 64))
1423
+ (shamt_128 XReg (rv_andi (value_regs_get y 0) (imm12_const 127))))
1424
+ ;; right now we only rotate less than 64 bits.
1425
+ ;; if shamt is greater than or equal 64 , we should switch low and high.
1426
+ (gen_select_regs
1427
+ (cmp_geu shamt_128 const64)
1428
+ (value_regs high low)
1429
+ (value_regs low high)
1430
+ )))
1431
+
1432
+ ;;;; Rules for `rotr` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1433
+
1434
+ (rule (lower (has_type (fits_in_64 ty) (rotr rs amount)))
1435
+ (let
1436
+ ((rs XReg (zext rs))
1437
+ (amount XReg (value_regs_get amount 0))
1438
+ (x ValueRegs (gen_shamt ty amount))
1439
+ (shamt XReg (value_regs_get x 0))
1440
+ (len_sub_shamt XReg (value_regs_get x 1))
1441
+ (part1 XReg (rv_srl rs shamt))
1442
+ (part2 XReg (rv_sll rs len_sub_shamt))
1443
+ (part3 XReg (gen_select_xreg (cmp_eqz shamt) (zero_reg) part2)))
1444
+ (rv_or part1 part3)))
1445
+
1446
+ (rule 1 (lower (has_type $I32 (rotr rs amount)))
1447
+ (if-let $true (has_zbb))
1448
+ (rv_rorw rs (value_regs_get amount 0)))
1449
+
1450
+ (rule 2 (lower (has_type $I32 (rotr rs (imm12_from_value n))))
1451
+ (if-let $true (has_zbb))
1452
+ (rv_roriw rs n))
1453
+
1454
+ (rule 1 (lower (has_type $I64 (rotr rs amount)))
1455
+ (if-let $true (has_zbb))
1456
+ (rv_ror rs (value_regs_get amount 0)))
1457
+
1458
+ (rule 2 (lower (has_type $I64 (rotr rs (imm12_from_value n))))
1459
+ (if-let $true (has_zbb))
1460
+ (rv_rori rs n))
1461
+
1462
+ (rule 1 (lower (has_type $I128 (rotr x y)))
1463
+ (let
1464
+ ((tmp ValueRegs (gen_shamt $I128 (value_regs_get y 0)))
1465
+ (shamt XReg (value_regs_get tmp 0))
1466
+ (len_sub_shamt XReg (value_regs_get tmp 1))
1467
+ (low_part1 XReg (rv_srl (value_regs_get x 0) shamt))
1468
+ (low_part2 XReg (rv_sll (value_regs_get x 1) len_sub_shamt))
1469
+ ;;; if shamt == 0 low_part2 will overflow we should zero instead.
1470
+ (low_part3 XReg (gen_select_xreg (cmp_eqz shamt) (zero_reg) low_part2))
1471
+ (low XReg (rv_or low_part1 low_part3))
1472
+ (high_part1 XReg (rv_srl (value_regs_get x 1) shamt))
1473
+ (high_part2 XReg (rv_sll (value_regs_get x 0) len_sub_shamt))
1474
+ (high_part3 XReg (gen_select_xreg (cmp_eqz shamt) (zero_reg) high_part2))
1475
+ (high XReg (rv_or high_part1 high_part3))
1476
+ (const64 XReg (imm $I64 64))
1477
+ (shamt_128 XReg (rv_andi (value_regs_get y 0) (imm12_const 127))))
1478
+ ;; right now we only rotate less than 64 bits.
1479
+ ;; if shamt is greater than or equal 64 , we should switch low and high.
1480
+ (gen_select_regs
1481
+ (cmp_geu shamt_128 const64)
1482
+ (value_regs high low)
1483
+ (value_regs low high)
1484
+ )))
1485
+
1486
+ ;;;; Rules for `fabs` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1487
+ (rule 0 (lower (has_type (ty_scalar_float ty) (fabs x)))
1488
+ (rv_fabs ty x))
1489
+
1490
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (fabs x)))
1491
+ (rv_vfabs_v x (unmasked) ty))
1492
+
1493
+ ;;;; Rules for `fneg` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1494
+ (rule 0 (lower (has_type (ty_scalar_float ty) (fneg x)))
1495
+ (rv_fneg ty x))
1496
+
1497
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (fneg x)))
1498
+ (rv_vfneg_v x (unmasked) ty))
1499
+
1500
+ ;;;; Rules for `fcopysign` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1501
+ (rule 0 (lower (has_type (ty_scalar_float ty) (fcopysign x y)))
1502
+ (rv_fsgnj ty x y))
1503
+
1504
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (fcopysign x y)))
1505
+ (rv_vfsgnj_vv x y (unmasked) ty))
1506
+
1507
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (fcopysign x (splat y))))
1508
+ (rv_vfsgnj_vf x y (unmasked) ty))
1509
+
1510
+ ;;;; Rules for `fma` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1511
+ (rule 0 (lower (has_type (ty_scalar_float ty) (fma x y z)))
1512
+ (rv_fmadd ty (FRM.RNE) x y z))
1513
+
1514
+ ;; (fma x y z) computes x * y + z
1515
+ ;; vfmacc computes vd[i] = +(vs1[i] * vs2[i]) + vd[i]
1516
+ ;; We need to reverse the order of the arguments
1517
+
1518
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (fma x y z)))
1519
+ (rv_vfmacc_vv z y x (unmasked) ty))
1520
+
1521
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (fma (splat x) y z)))
1522
+ (rv_vfmacc_vf z y x (unmasked) ty))
1523
+
1524
+ ;; vfmsac computes vd[i] = +(vs1[i] * vs2[i]) - vd[i]
1525
+
1526
+ (rule 3 (lower (has_type (ty_vec_fits_in_register ty) (fma x y (fneg z))))
1527
+ (rv_vfmsac_vv z y x (unmasked) ty))
1528
+
1529
+ (rule 6 (lower (has_type (ty_vec_fits_in_register ty) (fma (splat x) y (fneg z))))
1530
+ (rv_vfmsac_vf z y x (unmasked) ty))
1531
+
1532
+ ;; vfnmacc computes vd[i] = -(vs1[i] * vs2[i]) - vd[i]
1533
+
1534
+ (rule 4 (lower (has_type (ty_vec_fits_in_register ty) (fma (fneg x) y (fneg z))))
1535
+ (rv_vfnmacc_vv z y x (unmasked) ty))
1536
+
1537
+ (rule 6 (lower (has_type (ty_vec_fits_in_register ty) (fma (fneg (splat x)) y (fneg z))))
1538
+ (rv_vfnmacc_vf z y x (unmasked) ty))
1539
+
1540
+ ;; vfnmsac computes vd[i] = -(vs1[i] * vs2[i]) + vd[i]
1541
+
1542
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (fma (fneg x) y z)))
1543
+ (rv_vfnmsac_vv z y x (unmasked) ty))
1544
+
1545
+ (rule 5 (lower (has_type (ty_vec_fits_in_register ty) (fma (fneg (splat x)) y z)))
1546
+ (rv_vfnmsac_vf z y x (unmasked) ty))
1547
+
1548
+
1549
+ ;;;; Rules for `sqrt` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1550
+ (rule 0 (lower (has_type (ty_scalar_float ty) (sqrt x)))
1551
+ (rv_fsqrt ty (FRM.RNE) x))
1552
+
1553
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (sqrt x)))
1554
+ (rv_vfsqrt_v x (unmasked) ty))
1555
+
1556
+ ;;;; Rules for `AtomicRMW` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1557
+ (rule -1
1558
+ ;;
1559
+ (lower
1560
+ (has_type (valid_atomic_transaction ty) (atomic_rmw flags op addr x)))
1561
+ (gen_atomic (get_atomic_rmw_op ty op) addr x (atomic_amo)))
1562
+
1563
+ ;;; for I8 and I16
1564
+ (rule 1
1565
+ (lower
1566
+ (has_type (valid_atomic_transaction (fits_in_16 ty)) (atomic_rmw flags op addr x)))
1567
+ (gen_atomic_rmw_loop op ty addr x))
1568
+
1569
+ ;;;special for I8 and I16 max min etc.
1570
+ ;;;because I need uextend or sextend the value.
1571
+ (rule 2
1572
+ (lower
1573
+ (has_type (valid_atomic_transaction (fits_in_16 ty)) (atomic_rmw flags (is_atomic_rmw_max_etc op $true) addr x)))
1574
+ (gen_atomic_rmw_loop op ty addr (sext x)))
1575
+
1576
+
1577
+ (rule 2
1578
+ ;;
1579
+ (lower
1580
+ (has_type (valid_atomic_transaction (fits_in_16 ty)) (atomic_rmw flags (is_atomic_rmw_max_etc op $false) addr x)))
1581
+ ;;
1582
+ (gen_atomic_rmw_loop op ty addr (zext x)))
1583
+
1584
+ ;;;;; Rules for `AtomicRmwOp.Sub`
1585
+ (rule
1586
+ (lower
1587
+ (has_type (valid_atomic_transaction ty) (atomic_rmw flags (AtomicRmwOp.Sub) addr x)))
1588
+ (let
1589
+ ((tmp WritableReg (temp_writable_reg ty))
1590
+ (x2 Reg (rv_neg x)))
1591
+ (gen_atomic (get_atomic_rmw_op ty (AtomicRmwOp.Add)) addr x2 (atomic_amo))))
1592
+
1593
+ (decl gen_atomic_rmw_loop (AtomicRmwOp Type XReg XReg) XReg)
1594
+ (rule
1595
+ (gen_atomic_rmw_loop op ty addr x)
1596
+ (let
1597
+ ((dst WritableXReg (temp_writable_xreg))
1598
+ (t0 WritableXReg (temp_writable_xreg))
1599
+ (_ Unit (emit (MInst.AtomicRmwLoop (gen_atomic_offset addr ty) op dst ty (gen_atomic_p addr ty) x t0))))
1600
+ (writable_reg_to_reg dst)))
1601
+
1602
+ ;;;;; Rules for `AtomicRmwOp.Nand`
1603
+ (rule
1604
+ (lower
1605
+ (has_type (valid_atomic_transaction ty) (atomic_rmw flags (AtomicRmwOp.Nand) addr x)))
1606
+ (gen_atomic_rmw_loop (AtomicRmwOp.Nand) ty addr x))
1607
+
1608
+ (decl is_atomic_rmw_max_etc (AtomicRmwOp bool) AtomicRmwOp)
1609
+ (extern extractor is_atomic_rmw_max_etc is_atomic_rmw_max_etc)
1610
+
1611
+ ;;;;; Rules for `atomic load`;;;;;;;;;;;;;;;;;
1612
+ (rule
1613
+ (lower (has_type (valid_atomic_transaction ty) (atomic_load flags p)))
1614
+ (gen_atomic_load p ty))
1615
+
1616
+
1617
+ ;;;;; Rules for `atomic store`;;;;;;;;;;;;;;;;;
1618
+ (rule
1619
+ (lower (atomic_store flags src @ (value_type (valid_atomic_transaction ty)) p))
1620
+ (gen_atomic_store p ty src))
1621
+
1622
+ (decl gen_atomic_offset (XReg Type) XReg)
1623
+ (rule 1 (gen_atomic_offset p (fits_in_16 ty))
1624
+ (rv_slli (rv_andi p (imm12_const 3)) (imm12_const 3)))
1625
+
1626
+ (rule (gen_atomic_offset p _)
1627
+ (zero_reg))
1628
+
1629
+ (decl gen_atomic_p (XReg Type) XReg)
1630
+ (rule 1 (gen_atomic_p p (fits_in_16 ty))
1631
+ (rv_andi p (imm12_const -4)))
1632
+
1633
+ (rule (gen_atomic_p p _)
1634
+ p)
1635
+
1636
+
1637
+ ;;;;; Rules for `atomic cas`;;;;;;;;;;;;;;;;;
1638
+ (rule
1639
+ (lower (has_type (valid_atomic_transaction ty) (atomic_cas flags p e x)))
1640
+ (let
1641
+ ((t0 WritableReg (temp_writable_reg ty))
1642
+ (dst WritableReg (temp_writable_reg ty))
1643
+ (_ Unit (emit (MInst.AtomicCas (gen_atomic_offset p ty) t0 dst (zext e) (gen_atomic_p p ty) x ty))))
1644
+ (writable_reg_to_reg dst)))
1645
+
1646
+ ;;;;; Rules for `ireduce`;;;;;;;;;;;;;;;;;
1647
+ (rule
1648
+ (lower (has_type ty (ireduce x)))
1649
+ (value_regs_get x 0))
1650
+
1651
+ ;;;;; Rules for `fpromote`;;;;;;;;;;;;;;;;;
1652
+ (rule (lower (fpromote x))
1653
+ (rv_fcvtds x))
1654
+
1655
+ ;;;;; Rules for `fvpromote_low`;;;;;;;;;;;;
1656
+
1657
+ (rule (lower (has_type (ty_vec_fits_in_register ty) (fvpromote_low x)))
1658
+ (if-let half_ty (ty_half_width ty))
1659
+ (rv_vfwcvt_f_f_v x (unmasked) (vstate_mf2 half_ty)))
1660
+
1661
+ ;;;;; Rules for `fdemote`;;;;;;;;;;;;;;;;;;
1662
+ (rule (lower (fdemote x))
1663
+ (rv_fcvtsd (FRM.RNE) x))
1664
+
1665
+ ;;;;; Rules for `fvdemote`;;;;;;;;;;;;;;;;;
1666
+
1667
+ ;; `vfncvt...` leaves the upper bits of the register undefined so
1668
+ ;; we need to zero them out.
1669
+ (rule (lower (has_type (ty_vec_fits_in_register ty @ $F32X4) (fvdemote x)))
1670
+ (if-let zero (i8_to_imm5 0))
1671
+ (let ((narrow VReg (rv_vfncvt_f_f_w x (unmasked) (vstate_mf2 ty)))
1672
+ (mask VReg (gen_vec_mask 0xC)))
1673
+ (rv_vmerge_vim narrow zero mask ty)))
1674
+
1675
+
1676
+ ;;;;; Rules for for float arithmetic
1677
+
1678
+
1679
+ ;;;; Rules for `fadd` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1680
+
1681
+ (rule 0 (lower (has_type (ty_scalar_float ty) (fadd x y)))
1682
+ (rv_fadd ty (FRM.RNE) x y))
1683
+
1684
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (fadd x y)))
1685
+ (rv_vfadd_vv x y (unmasked) ty))
1686
+
1687
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (fadd x (splat y))))
1688
+ (rv_vfadd_vf x y (unmasked) ty))
1689
+
1690
+ (rule 3 (lower (has_type (ty_vec_fits_in_register ty) (fadd (splat x) y)))
1691
+ (rv_vfadd_vf y x (unmasked) ty))
1692
+
1693
+
1694
+ ;;;; Rules for `fsub` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1695
+ (rule 0 (lower (has_type (ty_scalar_float ty) (fsub x y)))
1696
+ (rv_fsub ty (FRM.RNE) x y))
1697
+
1698
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (fsub x y)))
1699
+ (rv_vfsub_vv x y (unmasked) ty))
1700
+
1701
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (fsub x (splat y))))
1702
+ (rv_vfsub_vf x y (unmasked) ty))
1703
+
1704
+ (rule 3 (lower (has_type (ty_vec_fits_in_register ty) (fsub (splat x) y)))
1705
+ (rv_vfrsub_vf y x (unmasked) ty))
1706
+
1707
+ ;;;; Rules for `fmul` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1708
+ (rule 0 (lower (has_type (ty_scalar_float ty) (fmul x y)))
1709
+ (rv_fmul ty (FRM.RNE) x y))
1710
+
1711
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (fmul x y)))
1712
+ (rv_vfmul_vv x y (unmasked) ty))
1713
+
1714
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (fmul x (splat y))))
1715
+ (rv_vfmul_vf x y (unmasked) ty))
1716
+
1717
+ (rule 3 (lower (has_type (ty_vec_fits_in_register ty) (fmul (splat x) y)))
1718
+ (rv_vfmul_vf y x (unmasked) ty))
1719
+
1720
+
1721
+ ;;;; Rules for `fdiv` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1722
+ (rule 0 (lower (has_type (ty_scalar_float ty) (fdiv x y)))
1723
+ (rv_fdiv ty (FRM.RNE) x y))
1724
+
1725
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (fdiv x y)))
1726
+ (rv_vfdiv_vv x y (unmasked) ty))
1727
+
1728
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (fdiv x (splat y))))
1729
+ (rv_vfdiv_vf x y (unmasked) ty))
1730
+
1731
+ (rule 3 (lower (has_type (ty_vec_fits_in_register ty) (fdiv (splat x) y)))
1732
+ (rv_vfrdiv_vf y x (unmasked) ty))
1733
+
1734
+ ;;;; Rules for `fmin` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1735
+
1736
+ ;; RISC-V's `fmin` instruction returns the number input if one of inputs is a
1737
+ ;; NaN. We handle this by manually checking if one of the inputs is a NaN
1738
+ ;; and selecting based on that result.
1739
+ (rule 0 (lower (has_type (ty_scalar_float ty) (fmin x y)))
1740
+ (let (;; Check if both inputs are not nan.
1741
+ (is_ordered FloatCompare (fcmp_to_float_compare (FloatCC.Ordered) ty x y))
1742
+ ;; `fadd` returns a nan if any of the inputs is a NaN.
1743
+ (nan FReg (rv_fadd ty (FRM.RNE) x y))
1744
+ (min FReg (rv_fmin ty x y)))
1745
+ (gen_select_freg is_ordered min nan)))
1746
+
1747
+ ;; vfmin does almost the right thing, but it does not handle NaN's correctly.
1748
+ ;; We should return a NaN if any of the inputs is a NaN, but vfmin returns the
1749
+ ;; number input instead.
1750
+ ;;
1751
+ ;; TODO: We can improve this by using a masked `fmin` instruction that modifies
1752
+ ;; the canonical nan register. That way we could avoid the `vmerge.vv` instruction.
1753
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (fmin x y)))
1754
+ (let ((is_not_nan VReg (gen_fcmp_mask ty (FloatCC.Ordered) x y))
1755
+ (nan XReg (imm $I64 (canonical_nan_u64 (lane_type ty))))
1756
+ (vec_nan VReg (rv_vmv_vx nan ty))
1757
+ (min VReg (rv_vfmin_vv x y (unmasked) ty)))
1758
+ (rv_vmerge_vvm vec_nan min is_not_nan ty)))
1759
+
1760
+ ;;;; Rules for `fmax` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1761
+
1762
+ ;; RISC-V's `fmax` instruction returns the number input if one of inputs is a
1763
+ ;; NaN. We handle this by manually checking if one of the inputs is a NaN
1764
+ ;; and selecting based on that result.
1765
+ (rule 0 (lower (has_type (ty_scalar_float ty) (fmax x y)))
1766
+ (let (;; Check if both inputs are not nan.
1767
+ (is_ordered FloatCompare (fcmp_to_float_compare (FloatCC.Ordered) ty x y))
1768
+ ;; `fadd` returns a NaN if any of the inputs is a NaN.
1769
+ (nan FReg (rv_fadd ty (FRM.RNE) x y))
1770
+ (max FReg (rv_fmax ty x y)))
1771
+ (gen_select_freg is_ordered max nan)))
1772
+
1773
+
1774
+ ;; vfmax does almost the right thing, but it does not handle NaN's correctly.
1775
+ ;; We should return a NaN if any of the inputs is a NaN, but vfmax returns the
1776
+ ;; number input instead.
1777
+ ;;
1778
+ ;; TODO: We can improve this by using a masked `fmax` instruction that modifies
1779
+ ;; the canonical nan register. That way we could avoid the `vmerge.vv` instruction.
1780
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (fmax x y)))
1781
+ (let ((is_not_nan VReg (gen_fcmp_mask ty (FloatCC.Ordered) x y))
1782
+ (nan XReg (imm $I64 (canonical_nan_u64 (lane_type ty))))
1783
+ (vec_nan VReg (rv_vmv_vx nan ty))
1784
+ (max VReg (rv_vfmax_vv x y (unmasked) ty)))
1785
+ (rv_vmerge_vvm vec_nan max is_not_nan ty)))
1786
+
1787
+ ;;;;; Rules for `stack_addr`;;;;;;;;;
1788
+ (rule
1789
+ (lower (stack_addr ss offset))
1790
+ (gen_stack_addr ss offset))
1791
+
1792
+ ;;;;; Rules for `is_null`;;;;;;;;;
1793
+
1794
+ ;; Null references are represented by the constant value `0`.
1795
+ (rule (lower (is_null v))
1796
+ (rv_seqz v))
1797
+
1798
+ ;;;;; Rules for `is_invalid`;;;;;;;;;
1799
+
1800
+ ;; Invalid references are represented by the constant value `-1`.
1801
+ (rule (lower (is_invalid v))
1802
+ (rv_seqz (rv_addi v (imm12_const 1))))
1803
+
1804
+ ;;;;; Rules for `select`;;;;;;;;;
1805
+ (rule 0 (lower (has_type (ty_int_ref_scalar_64 _) (select c x y)))
1806
+ (gen_select_xreg (is_nonzero_cmp c) x y))
1807
+
1808
+ (rule 1 (lower (has_type $I128 (select c x y)))
1809
+ (gen_select_regs (is_nonzero_cmp c) x y))
1810
+
1811
+ (rule 2 (lower (has_type (ty_vec_fits_in_register _) (select c x y)))
1812
+ (gen_select_vreg (is_nonzero_cmp c) x y))
1813
+
1814
+ (rule 3 (lower (has_type (ty_scalar_float _) (select c x y)))
1815
+ (gen_select_freg (is_nonzero_cmp c) x y))
1816
+
1817
+ ;;;;; Rules for `bitselect`;;;;;;;;;
1818
+
1819
+ ;; Do a (c & x) | (~c & y) operation.
1820
+ (rule 0 (lower (has_type (ty_int_ref_scalar_64 ty) (bitselect c x y)))
1821
+ (let ((tmp_x XReg (rv_and c x))
1822
+ (c_inverse XReg (rv_not c))
1823
+ (tmp_y XReg (rv_and c_inverse y)))
1824
+ (rv_or tmp_x tmp_y)))
1825
+
1826
+ ;; For vectors, we also do the same operation.
1827
+ ;; We can technically use any type in the bitwise operations, but prefer
1828
+ ;; using the type of the inputs so that we avoid emitting unnecessary
1829
+ ;; `vsetvl` instructions. it's likeley that the vector unit is already
1830
+ ;; configured for that type.
1831
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (bitselect c x y)))
1832
+ (let ((tmp_x VReg (rv_vand_vv c x (unmasked) ty))
1833
+ (c_inverse VReg (rv_vnot_v c (unmasked) ty))
1834
+ (tmp_y VReg (rv_vand_vv c_inverse y (unmasked) ty)))
1835
+ (rv_vor_vv tmp_x tmp_y (unmasked) ty)))
1836
+
1837
+ ;; Special case for bitselects with cmp's as an input.
1838
+ ;;
1839
+ ;; This allows us to skip the mask expansion step and use the more efficient
1840
+ ;; vmerge.vvm instruction.
1841
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (bitselect (icmp cc a @ (value_type (ty_vec_fits_in_register cmp_ty)) b) x y)))
1842
+ (let ((mask VReg (gen_icmp_mask cmp_ty cc a b)))
1843
+ (rv_vmerge_vvm y x mask ty)))
1844
+
1845
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (bitselect (fcmp cc a @ (value_type (ty_vec_fits_in_register cmp_ty)) b) x y)))
1846
+ (let ((mask VReg (gen_fcmp_mask cmp_ty cc a b)))
1847
+ (rv_vmerge_vvm y x mask ty)))
1848
+
1849
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (bitselect (bitcast _ (fcmp cc a @ (value_type (ty_vec_fits_in_register cmp_ty)) b)) x y)))
1850
+ (let ((mask VReg (gen_fcmp_mask cmp_ty cc a b)))
1851
+ (rv_vmerge_vvm y x mask ty)))
1852
+
1853
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (bitselect (bitcast _ (icmp cc a @ (value_type (ty_vec_fits_in_register cmp_ty)) b)) x y)))
1854
+ (let ((mask VReg (gen_icmp_mask cmp_ty cc a b)))
1855
+ (rv_vmerge_vvm y x mask ty)))
1856
+
1857
+
1858
+ ;;;;; Rules for `isplit`;;;;;;;;;
1859
+ (rule
1860
+ (lower (isplit x))
1861
+ (let
1862
+ ((t1 XReg (value_regs_get x 0))
1863
+ (t2 XReg (value_regs_get x 1)))
1864
+ (output_pair t1 t2)))
1865
+
1866
+ ;;;;; Rules for `iconcat`;;;;;;;;;
1867
+ (rule
1868
+ (lower (has_type $I128 (iconcat x y)))
1869
+ (let
1870
+ ((t1 XReg x)
1871
+ (t2 XReg y))
1872
+ (value_regs t1 t2)))
1873
+
1874
+
1875
+ ;;;;; Rules for `smax`;;;;;;;;;
1876
+
1877
+ (rule 0 (lower (has_type (fits_in_64 ty) (smax x y)))
1878
+ (let ((x XReg (sext x))
1879
+ (y XReg (sext y)))
1880
+ (gen_select_xreg (cmp_gt x y) x y)))
1881
+
1882
+ (rule 1 (lower (has_type $I128 (smax x y)))
1883
+ (gen_select_regs (icmp_to_int_compare (IntCC.SignedGreaterThan) x y) x y))
1884
+
1885
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (smax x y)))
1886
+ (rv_vmax_vv x y (unmasked) ty))
1887
+
1888
+ (rule 3 (lower (has_type (ty_vec_fits_in_register ty) (smax x (splat y))))
1889
+ (rv_vmax_vx x y (unmasked) ty))
1890
+
1891
+ (rule 4 (lower (has_type (ty_vec_fits_in_register ty) (smax (splat x) y)))
1892
+ (rv_vmax_vx y x (unmasked) ty))
1893
+
1894
+ ;;;;; Rules for `smin`;;;;;;;;;
1895
+
1896
+ (rule 0 (lower (has_type (fits_in_64 ty) (smin x y)))
1897
+ (let ((x XReg (sext x))
1898
+ (y XReg (sext y)))
1899
+ (gen_select_xreg (cmp_lt x y) x y)))
1900
+
1901
+ (rule 1 (lower (has_type $I128 (smin x y)))
1902
+ (gen_select_regs (icmp_to_int_compare (IntCC.SignedLessThan) x y) x y))
1903
+
1904
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (smin x y)))
1905
+ (rv_vmin_vv x y (unmasked) ty))
1906
+
1907
+ (rule 3 (lower (has_type (ty_vec_fits_in_register ty) (smin x (splat y))))
1908
+ (rv_vmin_vx x y (unmasked) ty))
1909
+
1910
+ (rule 4 (lower (has_type (ty_vec_fits_in_register ty) (smin (splat x) y)))
1911
+ (rv_vmin_vx y x (unmasked) ty))
1912
+
1913
+ ;;;;; Rules for `umax`;;;;;;;;;
1914
+
1915
+ (rule 0 (lower (has_type (fits_in_64 ty) (umax x y)))
1916
+ (let ((x XReg (zext x))
1917
+ (y XReg (zext y)))
1918
+ (gen_select_xreg (cmp_gtu x y) x y)))
1919
+
1920
+ (rule 1 (lower (has_type $I128 (umax x y)))
1921
+ (gen_select_regs (icmp_to_int_compare (IntCC.UnsignedGreaterThan) x y) x y))
1922
+
1923
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (umax x y)))
1924
+ (rv_vmaxu_vv x y (unmasked) ty))
1925
+
1926
+ (rule 3 (lower (has_type (ty_vec_fits_in_register ty) (umax x (splat y))))
1927
+ (rv_vmaxu_vx x y (unmasked) ty))
1928
+
1929
+ (rule 4 (lower (has_type (ty_vec_fits_in_register ty) (umax (splat x) y)))
1930
+ (rv_vmaxu_vx y x (unmasked) ty))
1931
+
1932
+ ;;;;; Rules for `umin`;;;;;;;;;
1933
+
1934
+ (rule 0 (lower (has_type (fits_in_64 ty) (umin x y)))
1935
+ (let ((x XReg (zext x))
1936
+ (y XReg (zext y)))
1937
+ (gen_select_xreg (cmp_ltu x y) x y)))
1938
+
1939
+ (rule 1 (lower (has_type $I128 (umin x y)))
1940
+ (gen_select_regs (icmp_to_int_compare (IntCC.UnsignedLessThan) x y) x y))
1941
+
1942
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (umin x y)))
1943
+ (rv_vminu_vv x y (unmasked) ty))
1944
+
1945
+ (rule 3 (lower (has_type (ty_vec_fits_in_register ty) (umin x (splat y))))
1946
+ (rv_vminu_vx x y (unmasked) ty))
1947
+
1948
+ (rule 4 (lower (has_type (ty_vec_fits_in_register ty) (umin (splat x) y)))
1949
+ (rv_vminu_vx y x (unmasked) ty))
1950
+
1951
+
1952
+ ;;;;; Rules for `debugtrap`;;;;;;;;;
1953
+ (rule
1954
+ (lower (debugtrap))
1955
+ (side_effect (SideEffectNoResult.Inst (MInst.EBreak))))
1956
+
1957
+ ;;;;; Rules for `fence`;;;;;;;;;
1958
+ (rule
1959
+ (lower (fence))
1960
+ (side_effect (SideEffectNoResult.Inst (MInst.Fence 15 15))))
1961
+
1962
+ ;;;;; Rules for `trap`;;;;;;;;;
1963
+ (rule
1964
+ (lower (trap code))
1965
+ (udf code))
1966
+
1967
+ ;;;;; Rules for `resumable_trap`;;;;;;;;;
1968
+ (rule
1969
+ (lower (resumable_trap code))
1970
+ (udf code))
1971
+
1972
+ ;;;;; Rules for `uload8`;;;;;;;;;
1973
+ (rule (lower (uload8 flags addr offset))
1974
+ (gen_load (amode addr offset $I8) (LoadOP.Lbu) flags))
1975
+
1976
+ ;;;;; Rules for `sload8`;;;;;;;;;
1977
+ (rule (lower (sload8 flags addr offset))
1978
+ (gen_load (amode addr offset $I8) (LoadOP.Lb) flags))
1979
+
1980
+ ;;;;; Rules for `uload16`;;;;;;;;;
1981
+ (rule (lower (uload16 flags addr offset))
1982
+ (gen_load (amode addr offset $I16) (LoadOP.Lhu) flags))
1983
+
1984
+ ;;;;; Rules for `iload16`;;;;;;;;;
1985
+ (rule (lower (sload16 flags addr offset))
1986
+ (gen_load (amode addr offset $I16) (LoadOP.Lh) flags))
1987
+
1988
+ ;;;;; Rules for `uload32`;;;;;;;;;
1989
+ (rule (lower (uload32 flags addr offset))
1990
+ (gen_load (amode addr offset $I32) (LoadOP.Lwu) flags))
1991
+
1992
+ ;;;;; Rules for `sload32`;;;;;;;;;
1993
+ (rule (lower (sload32 flags addr offset))
1994
+ (gen_load (amode addr offset $I32) (LoadOP.Lw) flags))
1995
+
1996
+ ;;;;; Rules for `load`;;;;;;;;;
1997
+ (rule (lower (has_type ty (load flags addr offset)))
1998
+ (gen_load (amode addr offset ty) (load_op ty) flags))
1999
+
2000
+ (rule 1 (lower (has_type $I128 (load flags addr offset)))
2001
+ (if-let offset_plus_8 (s32_add_fallible offset 8))
2002
+ (let ((lo XReg (gen_load (amode addr offset $I64) (LoadOP.Ld) flags))
2003
+ (hi XReg (gen_load (amode addr offset_plus_8 $I64) (LoadOP.Ld) flags)))
2004
+ (value_regs lo hi)))
2005
+
2006
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (load flags addr offset)))
2007
+ (let ((eew VecElementWidth (element_width_from_type ty))
2008
+ (amode AMode (amode addr offset ty)))
2009
+ (vec_load eew (VecAMode.UnitStride amode) flags (unmasked) ty)))
2010
+
2011
+ ;;;;; Rules for Load + Extend Combos ;;;;;;;;;
2012
+
2013
+ ;; These rules cover the special loads that load a 64bit value and do some sort of extension.
2014
+ ;; We don't have any special instructions to do this, so just load the 64 bits as a vector, and
2015
+ ;; do a SEW/2 extension. This only reads half width elements from the source vector register
2016
+ ;; extends it, and writes the back the full register.
2017
+
2018
+ (decl gen_load64_extend (Type ExtendOp MemFlags AMode) VReg)
2019
+
2020
+ (rule (gen_load64_extend ty (ExtendOp.Signed) flags amode)
2021
+ (let ((eew VecElementWidth (element_width_from_type $I64))
2022
+ (load_state VState (vstate_from_type $I64))
2023
+ (loaded VReg (vec_load eew (VecAMode.UnitStride amode) flags (unmasked) load_state)))
2024
+ (rv_vsext_vf2 loaded (unmasked) ty)))
2025
+
2026
+ (rule (gen_load64_extend ty (ExtendOp.Zero) flags amode)
2027
+ (let ((eew VecElementWidth (element_width_from_type $I64))
2028
+ (load_state VState (vstate_from_type $I64))
2029
+ (loaded VReg (vec_load eew (VecAMode.UnitStride amode) flags (unmasked) load_state)))
2030
+ (rv_vzext_vf2 loaded (unmasked) ty)))
2031
+
2032
+ ;;;;; Rules for `uload8x8`;;;;;;;;;;
2033
+ (rule (lower (has_type (ty_vec_fits_in_register ty @ $I16X8) (uload8x8 flags addr offset)))
2034
+ (gen_load64_extend ty (ExtendOp.Zero) flags (amode addr offset ty)))
2035
+
2036
+ ;;;;; Rules for `uload16x4`;;;;;;;;;
2037
+ (rule (lower (has_type (ty_vec_fits_in_register ty @ $I32X4) (uload16x4 flags addr offset)))
2038
+ (gen_load64_extend ty (ExtendOp.Zero) flags (amode addr offset ty)))
2039
+
2040
+ ;;;;; Rules for `uload32x2`;;;;;;;;;
2041
+ (rule (lower (has_type (ty_vec_fits_in_register ty @ $I64X2) (uload32x2 flags addr offset)))
2042
+ (gen_load64_extend ty (ExtendOp.Zero) flags (amode addr offset ty)))
2043
+
2044
+ ;;;;; Rules for `sload8x8`;;;;;;;;;;
2045
+ (rule (lower (has_type (ty_vec_fits_in_register ty @ $I16X8) (sload8x8 flags addr offset)))
2046
+ (gen_load64_extend ty (ExtendOp.Signed) flags (amode addr offset ty)))
2047
+
2048
+ ;;;;; Rules for `sload16x4`;;;;;;;;;
2049
+ (rule (lower (has_type (ty_vec_fits_in_register ty @ $I32X4) (sload16x4 flags addr offset)))
2050
+ (gen_load64_extend ty (ExtendOp.Signed) flags (amode addr offset ty)))
2051
+
2052
+ ;;;;; Rules for `sload32x2`;;;;;;;;;
2053
+ (rule (lower (has_type (ty_vec_fits_in_register ty @ $I64X2) (sload32x2 flags addr offset)))
2054
+ (gen_load64_extend ty (ExtendOp.Signed) flags (amode addr offset ty)))
2055
+
2056
+ ;;;;; Rules for `istore8`;;;;;;;;;
2057
+ (rule (lower (istore8 flags src addr offset))
2058
+ (gen_store (amode addr offset $I8) (StoreOP.Sb) flags src))
2059
+
2060
+ ;;;;; Rules for `istore16`;;;;;;;;;
2061
+ (rule (lower (istore16 flags src addr offset))
2062
+ (gen_store (amode addr offset $I16) (StoreOP.Sh) flags src))
2063
+
2064
+ ;;;;; Rules for `istore32`;;;;;;;;;
2065
+ (rule (lower (istore32 flags src addr offset))
2066
+ (gen_store (amode addr offset $I32) (StoreOP.Sw) flags src))
2067
+
2068
+ ;;;;; Rules for `store`;;;;;;;;;
2069
+ (rule (lower (store flags src @ (value_type ty) addr offset))
2070
+ (gen_store (amode addr offset ty) (store_op ty) flags src))
2071
+
2072
+ (rule 1 (lower (store flags src @ (value_type $I128) addr offset))
2073
+ (if-let offset_plus_8 (s32_add_fallible offset 8))
2074
+ (let ((_ InstOutput (gen_store (amode addr offset $I64) (StoreOP.Sd) flags (value_regs_get src 0))))
2075
+ (gen_store (amode addr offset_plus_8 $I64) (StoreOP.Sd) flags (value_regs_get src 1))))
2076
+
2077
+ (rule 2 (lower (store flags src @ (value_type (ty_vec_fits_in_register ty)) addr offset))
2078
+ (let ((eew VecElementWidth (element_width_from_type ty))
2079
+ (amode AMode (amode addr offset ty)))
2080
+ (vec_store eew (VecAMode.UnitStride amode) src flags (unmasked) ty)))
2081
+
2082
+
2083
+ ;;;;; Rules for `icmp`;;;;;;;;;
2084
+
2085
+ ;; 8-64 bit comparisons. Mostly fall back onto `IntegerCompare` and then
2086
+ ;; materializing that, but before that happens try to match some
2087
+ ;; constant-related patterns
2088
+
2089
+ (rule 0 (lower (icmp cc x @ (value_type (fits_in_64 ty)) y))
2090
+ (lower_icmp cc x y))
2091
+
2092
+ (decl lower_icmp (IntCC Value Value) XReg)
2093
+ (rule 0 (lower_icmp cc x y)
2094
+ (lower_int_compare (icmp_to_int_compare cc x y)))
2095
+
2096
+ ;; a == $imm => seqz(xori(..))
2097
+ (rule 1 (lower_icmp (IntCC.Equal) x y)
2098
+ (if-let (i64_from_iconst (i64_nonzero (imm12_from_i64 imm))) y)
2099
+ (rv_seqz (rv_xori (sext x) imm)))
2100
+ (rule 2 (lower_icmp (IntCC.Equal) x y)
2101
+ (if-let (i64_from_iconst (i64_nonzero (imm12_from_i64 imm))) x)
2102
+ (rv_seqz (rv_xori (sext y) imm)))
2103
+
2104
+ ;; a != $imm => snez(xori(..))
2105
+ (rule 1 (lower_icmp (IntCC.NotEqual) x y)
2106
+ (if-let (i64_from_iconst (i64_nonzero (imm12_from_i64 imm))) y)
2107
+ (rv_snez (rv_xori (sext x) imm)))
2108
+ (rule 2 (lower_icmp (IntCC.NotEqual) x y)
2109
+ (if-let (i64_from_iconst (i64_nonzero (imm12_from_i64 imm))) x)
2110
+ (rv_snez (rv_xori (sext y) imm)))
2111
+
2112
+ ;; a < $imm => slti(..)
2113
+ (rule 1 (lower_icmp (IntCC.SignedLessThan) x y)
2114
+ (if-let (i64_from_iconst (i64_nonzero (imm12_from_i64 imm))) y)
2115
+ (rv_slti (sext x) imm))
2116
+ (rule 1 (lower_icmp (IntCC.SignedGreaterThan) x y)
2117
+ (if-let (i64_from_iconst (i64_nonzero (imm12_from_i64 imm))) x)
2118
+ (rv_slti (sext y) imm))
2119
+ (rule 1 (lower_icmp (IntCC.UnsignedLessThan) x y)
2120
+ (if-let (u64_from_iconst (u64_nonzero (imm12_from_u64 imm))) y)
2121
+ (rv_sltiu (zext x) imm))
2122
+ (rule 1 (lower_icmp (IntCC.UnsignedGreaterThan) x y)
2123
+ (if-let (u64_from_iconst (u64_nonzero (imm12_from_u64 imm))) x)
2124
+ (rv_sltiu (zext y) imm))
2125
+
2126
+ ;; a >= $imm => !(a < $imm)
2127
+ (rule 2 (lower_icmp cc @ (IntCC.SignedGreaterThanOrEqual) x y)
2128
+ (if-let (i64_from_iconst (i64_nonzero (imm12_from_i64 _))) y)
2129
+ (rv_xori (lower_icmp (intcc_complement cc) x y) (imm12_const 1)))
2130
+ (rule 2 (lower_icmp cc @ (IntCC.UnsignedGreaterThanOrEqual) x y)
2131
+ (if-let (u64_from_iconst (u64_nonzero (imm12_from_u64 _))) y)
2132
+ (rv_xori (lower_icmp (intcc_complement cc) x y) (imm12_const 1)))
2133
+
2134
+ ;; Materializes an `IntegerCompare` bundle directly into an `XReg` with a 0
2135
+ ;; or 1 value.
2136
+ (decl lower_int_compare (IntegerCompare) XReg)
2137
+
2138
+ ;; x == y => x ^ y == 0
2139
+ (rule 0 (lower_int_compare (int_compare_decompose (IntCC.Equal) x y))
2140
+ (rv_seqz (rv_xor x y)))
2141
+ (rule 1 (lower_int_compare (int_compare_decompose (IntCC.Equal) x (zero_reg)))
2142
+ (rv_seqz x))
2143
+ (rule 2 (lower_int_compare (int_compare_decompose (IntCC.Equal) (zero_reg) y))
2144
+ (rv_seqz y))
2145
+ ;; x != y => x ^ y != 0
2146
+ (rule 0 (lower_int_compare (int_compare_decompose (IntCC.NotEqual) x y))
2147
+ (rv_snez (rv_xor x y)))
2148
+ (rule 1 (lower_int_compare (int_compare_decompose (IntCC.NotEqual) x (zero_reg)))
2149
+ (rv_snez x))
2150
+ (rule 2 (lower_int_compare (int_compare_decompose (IntCC.NotEqual) (zero_reg) x))
2151
+ (rv_snez x))
2152
+ ;; x < y => x < y
2153
+ (rule (lower_int_compare (int_compare_decompose (IntCC.SignedLessThan) x y))
2154
+ (rv_slt x y))
2155
+ (rule (lower_int_compare (int_compare_decompose (IntCC.UnsignedLessThan) x y))
2156
+ (rv_sltu x y))
2157
+ ;; x > y => y < x
2158
+ (rule (lower_int_compare (int_compare_decompose (IntCC.SignedGreaterThan) x y))
2159
+ (rv_slt y x))
2160
+ (rule (lower_int_compare (int_compare_decompose (IntCC.UnsignedGreaterThan) x y))
2161
+ (rv_sltu y x))
2162
+ ;; x <= y => !(y < x)
2163
+ (rule (lower_int_compare (int_compare_decompose (IntCC.SignedLessThanOrEqual) x y))
2164
+ (rv_xori (rv_slt y x) (imm12_const 1)))
2165
+ (rule (lower_int_compare (int_compare_decompose (IntCC.UnsignedLessThanOrEqual) x y))
2166
+ (rv_xori (rv_sltu y x) (imm12_const 1)))
2167
+ ;; x >= y => !(x < y)
2168
+ (rule (lower_int_compare (int_compare_decompose (IntCC.SignedGreaterThanOrEqual) x y))
2169
+ (rv_xori (rv_slt x y) (imm12_const 1)))
2170
+ (rule (lower_int_compare (int_compare_decompose (IntCC.UnsignedGreaterThanOrEqual) x y))
2171
+ (rv_xori (rv_sltu x y) (imm12_const 1)))
2172
+
2173
+ ;; 128-bit comparisons.
2174
+ ;;
2175
+ ;; Currently only `==`, `!=`, and `<` are implemented, and everything else
2176
+ ;; delegates to one of those.
2177
+
2178
+ (rule 20 (lower (icmp cc x @ (value_type $I128) y))
2179
+ (lower_icmp_i128 cc x y))
2180
+
2181
+ (decl lower_icmp_i128 (IntCC ValueRegs ValueRegs) XReg)
2182
+ (rule 0 (lower_icmp_i128 (IntCC.Equal) x y)
2183
+ (let ((lo XReg (rv_xor (value_regs_get x 0) (value_regs_get y 0)))
2184
+ (hi XReg (rv_xor (value_regs_get x 1) (value_regs_get y 1))))
2185
+ (rv_seqz (rv_or lo hi))))
2186
+ (rule 0 (lower_icmp_i128 (IntCC.NotEqual) x y)
2187
+ (let ((lo XReg (rv_xor (value_regs_get x 0) (value_regs_get y 0)))
2188
+ (hi XReg (rv_xor (value_regs_get x 1) (value_regs_get y 1))))
2189
+ (rv_snez (rv_or lo hi))))
2190
+
2191
+ ;; swap args for `>` to use `<` instead
2192
+ (rule 0 (lower_icmp_i128 cc @ (IntCC.SignedGreaterThan) x y)
2193
+ (lower_icmp_i128 (intcc_swap_args cc) y x))
2194
+ (rule 0 (lower_icmp_i128 cc @ (IntCC.UnsignedGreaterThan) x y)
2195
+ (lower_icmp_i128 (intcc_swap_args cc) y x))
2196
+
2197
+ ;; complement `=`-related conditions to get ones that don't use `=`.
2198
+ (rule 0 (lower_icmp_i128 cc @ (IntCC.SignedLessThanOrEqual) x y)
2199
+ (rv_xori (lower_icmp_i128 (intcc_complement cc) x y) (imm12_const 1)))
2200
+ (rule 0 (lower_icmp_i128 cc @ (IntCC.SignedGreaterThanOrEqual) x y)
2201
+ (rv_xori (lower_icmp_i128 (intcc_complement cc) x y) (imm12_const 1)))
2202
+ (rule 0 (lower_icmp_i128 cc @ (IntCC.UnsignedLessThanOrEqual) x y)
2203
+ (rv_xori (lower_icmp_i128 (intcc_complement cc) x y) (imm12_const 1)))
2204
+ (rule 0 (lower_icmp_i128 cc @ (IntCC.UnsignedGreaterThanOrEqual) x y)
2205
+ (rv_xori (lower_icmp_i128 (intcc_complement cc) x y) (imm12_const 1)))
2206
+
2207
+ ;; Compare both the bottom and upper halves of the 128-bit values. If
2208
+ ;; the top half is equal use the bottom comparison, otherwise use the upper
2209
+ ;; comparison. Note that the lower comparison is always unsigned since if it's
2210
+ ;; used the top halves are all zeros and the semantic values are positive.
2211
+ (rule 1 (lower_icmp_i128 cc x y)
2212
+ (if-let (IntCC.UnsignedLessThan) (intcc_unsigned cc))
2213
+ (let ((x_lo Reg (value_regs_get x 0))
2214
+ (x_hi Reg (value_regs_get x 1))
2215
+ (y_lo Reg (value_regs_get y 0))
2216
+ (y_hi Reg (value_regs_get y 1))
2217
+ (top_cmp XReg (lower_int_compare (int_compare cc x_hi y_hi)))
2218
+ (bottom_cmp XReg (rv_sltu x_lo y_lo)))
2219
+ (gen_select_xreg (cmp_eqz (rv_xor x_hi y_hi)) bottom_cmp top_cmp)))
2220
+
2221
+ ;; vector icmp comparisons
2222
+
2223
+ (rule 30 (lower (icmp cc x @ (value_type (ty_vec_fits_in_register ty)) y))
2224
+ (gen_expand_mask ty (gen_icmp_mask ty cc x y)))
2225
+
2226
+ ;;;;; Rules for `fcmp`;;;;;;;;;
2227
+ (rule 0 (lower (fcmp cc x @ (value_type (ty_scalar_float ty)) y))
2228
+ (lower_float_compare (fcmp_to_float_compare cc ty x y)))
2229
+
2230
+ (decl lower_float_compare (FloatCompare) XReg)
2231
+ (rule (lower_float_compare (FloatCompare.One r)) r)
2232
+ (rule (lower_float_compare (FloatCompare.Zero r)) (rv_seqz r))
2233
+
2234
+ (rule 1 (lower (fcmp cc x @ (value_type (ty_vec_fits_in_register ty)) y))
2235
+ (gen_expand_mask ty (gen_fcmp_mask ty cc x y)))
2236
+
2237
+ ;;;;; Rules for `func_addr`;;;;;;;;;
2238
+ (rule
2239
+ (lower (func_addr (func_ref_data _ name _)))
2240
+ (load_ext_name name 0))
2241
+
2242
+ ;;;;; Rules for `fcvt_to_uint`;;;;;;;;;
2243
+
2244
+ ;; RISC-V float-to-integer conversion does not trap, but Cranelift semantics are
2245
+ ;; to trap. This manually performs checks for NaN and out-of-bounds values and
2246
+ ;; traps in such cases.
2247
+ ;;
2248
+ ;; TODO: could this perhaps be more optimal through inspection of the `fcsr`?
2249
+ ;; Unsure whether that needs to be preserved across function calls and/or would
2250
+ ;; cause other problems. Also unsure whether it's actually more performant.
2251
+ (rule (lower (has_type ity (fcvt_to_uint v @ (value_type fty))))
2252
+ (let ((_ InstOutput (gen_trapz (rv_feq fty v v) (TrapCode.BadConversionToInteger)))
2253
+ (min FReg (imm fty (fcvt_umin_bound fty $false)))
2254
+ (_ InstOutput (gen_trapnz (rv_fle fty v min) (TrapCode.IntegerOverflow)))
2255
+ (max FReg (imm fty (fcvt_umax_bound fty ity $false)))
2256
+ (_ InstOutput (gen_trapnz (rv_fge fty v max) (TrapCode.IntegerOverflow))))
2257
+ (lower_inbounds_fcvt_to_uint ity fty v)))
2258
+
2259
+ (decl lower_inbounds_fcvt_to_uint (Type Type FReg) XReg)
2260
+ (rule 0 (lower_inbounds_fcvt_to_uint (fits_in_32 _) fty v)
2261
+ (rv_fcvtwu fty (FRM.RTZ) v))
2262
+ (rule 1 (lower_inbounds_fcvt_to_uint $I64 fty v)
2263
+ (rv_fcvtlu fty (FRM.RTZ) v))
2264
+
2265
+ ;;;;; Rules for `fcvt_to_sint`;;;;;;;;;
2266
+
2267
+ ;; NB: see above with `fcvt_to_uint` as this is similar
2268
+ (rule (lower (has_type ity (fcvt_to_sint v @ (value_type fty))))
2269
+ (let ((_ InstOutput (gen_trapz (rv_feq fty v v) (TrapCode.BadConversionToInteger)))
2270
+ (min FReg (imm fty (fcvt_smin_bound fty ity $false)))
2271
+ (_ InstOutput (gen_trapnz (rv_fle fty v min) (TrapCode.IntegerOverflow)))
2272
+ (max FReg (imm fty (fcvt_smax_bound fty ity $false)))
2273
+ (_ InstOutput (gen_trapnz (rv_fge fty v max) (TrapCode.IntegerOverflow))))
2274
+ (lower_inbounds_fcvt_to_sint ity fty v)))
2275
+
2276
+ (decl lower_inbounds_fcvt_to_sint (Type Type FReg) XReg)
2277
+ (rule 0 (lower_inbounds_fcvt_to_sint (fits_in_32 _) fty v)
2278
+ (rv_fcvtw fty (FRM.RTZ) v))
2279
+ (rule 1 (lower_inbounds_fcvt_to_sint $I64 fty v)
2280
+ (rv_fcvtl fty (FRM.RTZ) v))
2281
+
2282
+ ;;;;; Rules for `fcvt_to_sint_sat`;;;;;;;;;
2283
+
2284
+ (rule 0 (lower (has_type to (fcvt_to_sint_sat v @ (value_type (ty_scalar_float from)))))
2285
+ (handle_fcvt_to_int_nan from v (lower_fcvt_to_sint_sat from to v)))
2286
+
2287
+ ;; Lowers to a `rv_fcvt*` instruction but handles 8/16-bit cases where the
2288
+ ;; float is clamped before the conversion.
2289
+ (decl lower_fcvt_to_sint_sat (Type Type FReg) XReg)
2290
+ (rule 0 (lower_fcvt_to_sint_sat ty (fits_in_16 out_ty) v)
2291
+ (let ((max FReg (imm ty (fcvt_smax_bound ty out_ty $true)))
2292
+ (min FReg (imm ty (fcvt_smin_bound ty out_ty $true)))
2293
+ (clamped FReg (rv_fmin ty max (rv_fmax ty min v))))
2294
+ (rv_fcvtw ty (FRM.RTZ) clamped)))
2295
+ (rule 1 (lower_fcvt_to_sint_sat ty $I32 v) (rv_fcvtw ty (FRM.RTZ) v))
2296
+ (rule 1 (lower_fcvt_to_sint_sat ty $I64 v) (rv_fcvtl ty (FRM.RTZ) v))
2297
+
2298
+ (decl fcvt_smax_bound (Type Type bool) u64)
2299
+ (extern constructor fcvt_smax_bound fcvt_smax_bound)
2300
+ (decl fcvt_smin_bound (Type Type bool) u64)
2301
+ (extern constructor fcvt_smin_bound fcvt_smin_bound)
2302
+
2303
+ ;; RISC-V float-to-int conversions generate the same output for NaN and +Inf,
2304
+ ;; but Cranelift semantics are to produce 0 for NaN instead. This helper
2305
+ ;; translates these semantics by taking the float being converted (with the type
2306
+ ;; specified) and the native RISC-V output as an `XReg`. The returned `XReg`
2307
+ ;; will be zeroed out if the float is NaN.
2308
+ ;;
2309
+ ;; This is done by comparing the float to itself, generating 0 if it's NaN. This
2310
+ ;; bit is then negated to become either all-ones or all-zeros which is then
2311
+ ;; and-ed against the native output. That'll produce all zeros if the input is
2312
+ ;; NaN or the native output otherwise.
2313
+ (decl handle_fcvt_to_int_nan (Type FReg XReg) XReg)
2314
+ (rule (handle_fcvt_to_int_nan ty freg xreg)
2315
+ (let ((is_not_nan XReg (rv_feq ty freg freg))
2316
+ (not_nan_mask XReg (rv_neg is_not_nan)))
2317
+ (rv_and xreg not_nan_mask)))
2318
+
2319
+ (rule 1 (lower (has_type (ty_vec_fits_in_register _) (fcvt_to_sint_sat v @ (value_type from_ty))))
2320
+ (if-let zero (i8_to_imm5 0))
2321
+ (let ((is_nan VReg (rv_vmfne_vv v v (unmasked) from_ty))
2322
+ (cvt VReg (rv_vfcvt_rtz_x_f_v v (unmasked) from_ty)))
2323
+ (rv_vmerge_vim cvt zero is_nan from_ty)))
2324
+
2325
+ ;;;;; Rules for `fcvt_to_uint_sat`;;;;;;;;;
2326
+
2327
+ (rule 0 (lower (has_type to (fcvt_to_uint_sat v @ (value_type (ty_scalar_float from)))))
2328
+ (handle_fcvt_to_int_nan from v (lower_fcvt_to_uint_sat from to v)))
2329
+
2330
+ ;; Lowers to a `rv_fcvt*` instruction but handles 8/16-bit cases where the
2331
+ ;; float is clamped before the conversion.
2332
+ (decl lower_fcvt_to_uint_sat (Type Type FReg) XReg)
2333
+ (rule 0 (lower_fcvt_to_uint_sat ty (fits_in_16 out_ty) v)
2334
+ (let ((max FReg (imm ty (fcvt_umax_bound ty out_ty $true)))
2335
+ (min FReg (rv_fmvdx (zero_reg)))
2336
+ (clamped FReg (rv_fmin ty max (rv_fmax ty min v))))
2337
+ (rv_fcvtwu ty (FRM.RTZ) clamped)))
2338
+ (rule 1 (lower_fcvt_to_uint_sat ty $I32 v) (rv_fcvtwu ty (FRM.RTZ) v))
2339
+ (rule 1 (lower_fcvt_to_uint_sat ty $I64 v) (rv_fcvtlu ty (FRM.RTZ) v))
2340
+
2341
+ (decl fcvt_umax_bound (Type Type bool) u64)
2342
+ (extern constructor fcvt_umax_bound fcvt_umax_bound)
2343
+ (decl fcvt_umin_bound (Type bool) u64)
2344
+ (extern constructor fcvt_umin_bound fcvt_umin_bound)
2345
+
2346
+ (rule 1 (lower (has_type (ty_vec_fits_in_register _) (fcvt_to_uint_sat v @ (value_type from_ty))))
2347
+ (if-let zero (i8_to_imm5 0))
2348
+ (let ((is_nan VReg (rv_vmfne_vv v v (unmasked) from_ty))
2349
+ (cvt VReg (rv_vfcvt_rtz_xu_f_v v (unmasked) from_ty)))
2350
+ (rv_vmerge_vim cvt zero is_nan from_ty)))
2351
+
2352
+ ;;;;; Rules for `fcvt_from_sint`;;;;;;;;;
2353
+ (rule 0 (lower (has_type $F32 (fcvt_from_sint v @ (value_type (fits_in_16 ty)))))
2354
+ (rv_fcvtsl (FRM.RNE) (sext v)))
2355
+
2356
+ (rule 1 (lower (has_type $F32 (fcvt_from_sint v @ (value_type $I32))))
2357
+ (rv_fcvtsw (FRM.RNE) v))
2358
+
2359
+ (rule 1 (lower (has_type $F32 (fcvt_from_sint v @ (value_type $I64))))
2360
+ (rv_fcvtsl (FRM.RNE) v))
2361
+
2362
+ (rule 0 (lower (has_type $F64 (fcvt_from_sint v @ (value_type (fits_in_16 ty)))))
2363
+ (rv_fcvtdl (FRM.RNE) (sext v)))
2364
+
2365
+ (rule 1 (lower (has_type $F64 (fcvt_from_sint v @ (value_type $I32))))
2366
+ (rv_fcvtdw v))
2367
+
2368
+ (rule 1 (lower (has_type $F64 (fcvt_from_sint v @ (value_type $I64))))
2369
+ (rv_fcvtdl (FRM.RNE) v))
2370
+
2371
+ (rule 2 (lower (has_type (ty_vec_fits_in_register _) (fcvt_from_sint v @ (value_type from_ty))))
2372
+ (rv_vfcvt_f_x_v v (unmasked) from_ty))
2373
+
2374
+ ;;;;; Rules for `fcvt_from_uint`;;;;;;;;;
2375
+ (rule 0 (lower (has_type $F32 (fcvt_from_uint v @ (value_type (fits_in_16 ty)))))
2376
+ (rv_fcvtslu (FRM.RNE) (zext v)))
2377
+
2378
+ (rule 1 (lower (has_type $F32 (fcvt_from_uint v @ (value_type $I32))))
2379
+ (rv_fcvtswu (FRM.RNE) v))
2380
+
2381
+ (rule 1 (lower (has_type $F32 (fcvt_from_uint v @ (value_type $I64))))
2382
+ (rv_fcvtslu (FRM.RNE) v))
2383
+
2384
+ (rule 0 (lower (has_type $F64 (fcvt_from_uint v @ (value_type (fits_in_16 ty)))))
2385
+ (rv_fcvtdlu (FRM.RNE) (zext v)))
2386
+
2387
+ (rule 1 (lower (has_type $F64 (fcvt_from_uint v @ (value_type $I32))))
2388
+ (rv_fcvtdwu v))
2389
+
2390
+ (rule 1 (lower (has_type $F64 (fcvt_from_uint v @ (value_type $I64))))
2391
+ (rv_fcvtdlu (FRM.RNE) v))
2392
+
2393
+ (rule 2 (lower (has_type (ty_vec_fits_in_register _) (fcvt_from_uint v @ (value_type from_ty))))
2394
+ (rv_vfcvt_f_xu_v v (unmasked) from_ty))
2395
+
2396
+ ;;;;; Rules for `symbol_value`;;;;;;;;;
2397
+ (rule
2398
+ (lower (symbol_value (symbol_value_data name _ offset)))
2399
+ (load_ext_name name offset))
2400
+
2401
+ ;;;;; Rules for `tls_value` ;;;;;;;;;;;;;;
2402
+
2403
+ (rule (lower (has_type (tls_model (TlsModel.ElfGd)) (tls_value (symbol_value_data name _ _))))
2404
+ (elf_tls_get_addr name))
2405
+
2406
+ ;;;;; Rules for `bitcast`;;;;;;;;;
2407
+ (rule
2408
+ (lower (has_type out_ty (bitcast _ v @ (value_type in_ty))))
2409
+ (gen_bitcast v in_ty out_ty))
2410
+
2411
+ ;;;;; Rules for `ceil`;;;;;;;;;
2412
+ (rule 0 (lower (has_type (ty_scalar_float ty) (ceil x)))
2413
+ (gen_float_round (FloatRoundOP.Ceil) x ty))
2414
+
2415
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (ceil x)))
2416
+ (gen_vec_round x (FRM.RUP) ty))
2417
+
2418
+ ;;;;; Rules for `floor`;;;;;;;;;
2419
+ (rule 0 (lower (has_type (ty_scalar_float ty) (floor x)))
2420
+ (gen_float_round (FloatRoundOP.Floor) x ty))
2421
+
2422
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (floor x)))
2423
+ (gen_vec_round x (FRM.RDN) ty))
2424
+
2425
+ ;;;;; Rules for `trunc`;;;;;;;;;
2426
+ (rule 0 (lower (has_type (ty_scalar_float ty) (trunc x)))
2427
+ (gen_float_round (FloatRoundOP.Trunc) x ty))
2428
+
2429
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (trunc x)))
2430
+ (gen_vec_round x (FRM.RTZ) ty))
2431
+
2432
+ ;;;;; Rules for `nearest`;;;;;;;;;
2433
+ (rule 0 (lower (has_type (ty_scalar_float ty) (nearest x)))
2434
+ (gen_float_round (FloatRoundOP.Nearest) x ty))
2435
+
2436
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (nearest x)))
2437
+ (gen_vec_round x (FRM.RNE) ty))
2438
+
2439
+
2440
+ ;;;;; Rules for `select_spectre_guard`;;;;;;;;;
2441
+
2442
+ ;; SelectSpectreGuard is equivalent to Select, but we should not use a branch based
2443
+ ;; lowering for it. Instead we use a conditional move based lowering.
2444
+ ;;
2445
+ ;; We don't have cmov's in RISC-V either, but we can emulate those using bitwise
2446
+ ;; operations, which is what we do below.
2447
+
2448
+ ;; Base case: use `gen_bmask` to generate a 0 mask or -1 mask from the value of
2449
+ ;; `cmp`. This is then used with some bit twiddling to produce the final result.
2450
+ (rule 0 (lower (has_type (fits_in_64 _) (select_spectre_guard cmp x y)))
2451
+ (let ((mask XReg (gen_bmask cmp)))
2452
+ (rv_or (rv_and mask x) (rv_andn y mask))))
2453
+ (rule 1 (lower (has_type $I128 (select_spectre_guard cmp x y)))
2454
+ (let ((mask XReg (gen_bmask cmp)))
2455
+ (value_regs
2456
+ (rv_or (rv_and mask (value_regs_get x 0)) (rv_andn (value_regs_get y 0) mask))
2457
+ (rv_or (rv_and mask (value_regs_get x 1)) (rv_andn (value_regs_get y 1) mask)))))
2458
+
2459
+ ;; Special case when an argument is the constant zero as some ands and ors
2460
+ ;; can be folded away.
2461
+ (rule 2 (lower (has_type (fits_in_64 _) (select_spectre_guard cmp (i64_from_iconst 0) y)))
2462
+ (rv_andn y (gen_bmask cmp)))
2463
+ (rule 3 (lower (has_type (fits_in_64 _) (select_spectre_guard cmp x (i64_from_iconst 0))))
2464
+ (rv_and x (gen_bmask cmp)))
2465
+
2466
+ ;;;;; Rules for `bmask`;;;;;;;;;
2467
+ (rule
2468
+ (lower (has_type oty (bmask x)))
2469
+ (lower_bmask x oty))
2470
+
2471
+ ;; N.B.: the Ret itself is generated by the ABI.
2472
+ (rule (lower (return args))
2473
+ (lower_return args))
2474
+
2475
+ ;;; Rules for `get_{frame,stack}_pointer` and `get_return_address` ;;;;;;;;;;;;;
2476
+
2477
+ (rule (lower (get_frame_pointer))
2478
+ (gen_mov_from_preg (fp_reg)))
2479
+
2480
+ (rule (lower (get_stack_pointer))
2481
+ (gen_mov_from_preg (sp_reg)))
2482
+
2483
+ (rule (lower (get_return_address))
2484
+ (load_ra))
2485
+
2486
+ ;;; Rules for `iabs` ;;;;;;;;;;;;;
2487
+
2488
+ ;; I64 and lower
2489
+ ;; Generate the following code:
2490
+ ;; sext.{b,h,w} a0, a0
2491
+ ;; neg a1, a0
2492
+ ;; max a0, a0, a1
2493
+ (rule 0 (lower (has_type (ty_int_ref_scalar_64 ty) (iabs x)))
2494
+ (let ((extended XReg (sext x))
2495
+ (negated XReg (rv_neg extended)))
2496
+ (gen_select_xreg (cmp_gt extended negated) extended negated)))
2497
+
2498
+ ;; For vectors we generate the same code, but with vector instructions
2499
+ ;; we can skip the sign extension, since the vector unit will only process
2500
+ ;; Element Sized chunks.
2501
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (iabs x)))
2502
+ (let ((negated VReg (rv_vneg_v x (unmasked) ty)))
2503
+ (rv_vmax_vv x negated (unmasked) ty)))
2504
+
2505
+ ;;;; Rules for calls ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2506
+
2507
+ (rule (lower (call (func_ref_data sig_ref extname dist) inputs))
2508
+ (gen_call sig_ref extname dist inputs))
2509
+
2510
+ (rule (lower (call_indirect sig_ref val inputs))
2511
+ (gen_call_indirect sig_ref val inputs))
2512
+
2513
+ ;;;; Rules for `return_call` and `return_call_indirect` ;;;;;;;;;;;;;;;;;;;;;;;;
2514
+
2515
+ (rule (lower (return_call (func_ref_data sig_ref extname dist) args))
2516
+ (gen_return_call sig_ref extname dist args))
2517
+
2518
+ (rule (lower (return_call_indirect sig_ref callee args))
2519
+ (gen_return_call_indirect sig_ref callee args))
2520
+
2521
+
2522
+ ;;;; Rules for `extractlane` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2523
+
2524
+ (rule (lower (extractlane x @ (value_type ty) (u8_from_uimm8 idx)))
2525
+ (gen_extractlane ty x idx))
2526
+
2527
+ ;;;; Rules for `insertlane` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2528
+
2529
+ ;; We can insert a lane by using a masked splat from an X register.
2530
+ ;; Build a mask that is only enabled in the lane we want to insert.
2531
+ ;; Then use a masked splat (vmerge) to insert the value.
2532
+ (rule 0 (lower (insertlane vec @ (value_type (ty_vec_fits_in_register ty))
2533
+ val @ (value_type (ty_int _))
2534
+ (u8_from_uimm8 lane)))
2535
+ (let ((mask VReg (gen_vec_mask (u64_shl 1 lane))))
2536
+ (rv_vmerge_vxm vec val mask ty)))
2537
+
2538
+ ;; Similar to above, but using the float variants of the instructions.
2539
+ (rule 1 (lower (insertlane vec @ (value_type (ty_vec_fits_in_register ty))
2540
+ val @ (value_type (ty_scalar_float _))
2541
+ (u8_from_uimm8 lane)))
2542
+ (let ((mask VReg (gen_vec_mask (u64_shl 1 lane))))
2543
+ (rv_vfmerge_vfm vec val mask ty)))
2544
+
2545
+ ;; If we are inserting from an Imm5 const we can use the immediate
2546
+ ;; variant of vmerge.
2547
+ (rule 2 (lower (insertlane vec @ (value_type (ty_vec_fits_in_register ty))
2548
+ (i64_from_iconst (imm5_from_i64 imm))
2549
+ (u8_from_uimm8 lane)))
2550
+ (let ((mask VReg (gen_vec_mask (u64_shl 1 lane))))
2551
+ (rv_vmerge_vim vec imm mask ty)))
2552
+
2553
+ ;;;; Rules for `splat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2554
+
2555
+ (rule 0 (lower (has_type ty (splat n @ (value_type (ty_scalar_float _)))))
2556
+ (rv_vfmv_vf n ty))
2557
+
2558
+ (rule 1 (lower (has_type ty (splat n @ (value_type (ty_int_ref_scalar_64 _)))))
2559
+ (rv_vmv_vx n ty))
2560
+
2561
+ (rule 2 (lower (has_type ty (splat (iconst (u64_from_imm64 (imm5_from_u64 imm))))))
2562
+ (rv_vmv_vi imm ty))
2563
+
2564
+ ;; TODO: We can splat out more patterns by using for example a vmv.v.i i8x16 for
2565
+ ;; a i64x2 const with a compatible bit pattern. The AArch64 Backend does something
2566
+ ;; similar in its splat rules.
2567
+ ;; TODO: Look through bitcasts when splatting out registers. We can use
2568
+ ;; `vmv.v.x` in a `(splat.f32x4 (bitcast.f32 val))`. And vice versa for integers.
2569
+
2570
+ ;;;; Rules for `uadd_sat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2571
+
2572
+ (rule 0 (lower (has_type (ty_vec_fits_in_register ty) (uadd_sat x y)))
2573
+ (rv_vsaddu_vv x y (unmasked) ty))
2574
+
2575
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (uadd_sat x (splat y))))
2576
+ (rv_vsaddu_vx x y (unmasked) ty))
2577
+
2578
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (uadd_sat (splat x) y)))
2579
+ (rv_vsaddu_vx y x (unmasked) ty))
2580
+
2581
+ (rule 3 (lower (has_type (ty_vec_fits_in_register ty) (uadd_sat x y)))
2582
+ (if-let y_imm (replicated_imm5 y))
2583
+ (rv_vsaddu_vi x y_imm (unmasked) ty))
2584
+
2585
+ (rule 4 (lower (has_type (ty_vec_fits_in_register ty) (uadd_sat x y)))
2586
+ (if-let x_imm (replicated_imm5 x))
2587
+ (rv_vsaddu_vi y x_imm (unmasked) ty))
2588
+
2589
+ ;;;; Rules for `sadd_sat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2590
+
2591
+ (rule 0 (lower (has_type (ty_vec_fits_in_register ty) (sadd_sat x y)))
2592
+ (rv_vsadd_vv x y (unmasked) ty))
2593
+
2594
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (sadd_sat x (splat y))))
2595
+ (rv_vsadd_vx x y (unmasked) ty))
2596
+
2597
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (sadd_sat (splat x) y)))
2598
+ (rv_vsadd_vx y x (unmasked) ty))
2599
+
2600
+ (rule 3 (lower (has_type (ty_vec_fits_in_register ty) (sadd_sat x y)))
2601
+ (if-let y_imm (replicated_imm5 y))
2602
+ (rv_vsadd_vi x y_imm (unmasked) ty))
2603
+
2604
+ (rule 4 (lower (has_type (ty_vec_fits_in_register ty) (sadd_sat x y)))
2605
+ (if-let x_imm (replicated_imm5 x))
2606
+ (rv_vsadd_vi y x_imm (unmasked) ty))
2607
+
2608
+ ;;;; Rules for `usub_sat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2609
+
2610
+ (rule 0 (lower (has_type (ty_vec_fits_in_register ty) (usub_sat x y)))
2611
+ (rv_vssubu_vv x y (unmasked) ty))
2612
+
2613
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (usub_sat x (splat y))))
2614
+ (rv_vssubu_vx x y (unmasked) ty))
2615
+
2616
+ ;;;; Rules for `ssub_sat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2617
+
2618
+ (rule 0 (lower (has_type (ty_vec_fits_in_register ty) (ssub_sat x y)))
2619
+ (rv_vssub_vv x y (unmasked) ty))
2620
+
2621
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (ssub_sat x (splat y))))
2622
+ (rv_vssub_vx x y (unmasked) ty))
2623
+
2624
+ ;;;; Rules for `vall_true` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2625
+
2626
+ ;; Here we do a Vector Reduce operation. Get the unsigned minimum value of any
2627
+ ;; lane in the vector. The fixed input to the reduce operation is a 1.
2628
+ ;; This way, if any lane is 0, the result will be 0. Otherwise, the result will
2629
+ ;; be a 1.
2630
+ ;; The reduce operation leaves the result in the lowest lane, we then move it
2631
+ ;; into the destination X register.
2632
+ (rule (lower (vall_true x @ (value_type (ty_vec_fits_in_register ty))))
2633
+ (if-let one (i8_to_imm5 1))
2634
+ ;; We don't need to broadcast the immediate into all lanes, only into lane 0.
2635
+ ;; I did it this way since it uses one less instruction than with a vmv.s.x.
2636
+ (let ((fixed VReg (rv_vmv_vi one ty))
2637
+ (min VReg (rv_vredminu_vs x fixed (unmasked) ty)))
2638
+ (rv_vmv_xs min ty)))
2639
+
2640
+
2641
+ ;;;; Rules for `vany_true` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2642
+
2643
+ ;; Here we do a Vector Reduce operation. Get the unsigned maximum value of the
2644
+ ;; input vector register. Move the max to an X register, and do a `snez` on it
2645
+ ;; to ensure its either 1 or 0.
2646
+ (rule (lower (vany_true x @ (value_type (ty_vec_fits_in_register ty))))
2647
+ (let ((max VReg (rv_vredmaxu_vs x x (unmasked) ty))
2648
+ (x_max XReg (rv_vmv_xs max ty)))
2649
+ (rv_snez x_max)))
2650
+
2651
+
2652
+ ;;;; Rules for `vhigh_bits` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2653
+
2654
+ ;; To check if the MSB of a lane is set, we do a `vmslt` with zero, this sets
2655
+ ;; the mask bit to 1 if the value is negative (MSB 1) and 0 if not. We can then
2656
+ ;; just move that mask to an X Register.
2657
+ ;;
2658
+ ;; We must ensure that the move to the X register has a SEW with enough bits
2659
+ ;; to hold the full mask. Additionally, in some cases (e.g. i64x2) we are going
2660
+ ;; to read some tail bits. These are undefined, so we need to further mask them
2661
+ ;; off.
2662
+ (rule (lower (vhigh_bits x @ (value_type (ty_vec_fits_in_register ty))))
2663
+ (let ((mask VReg (rv_vmslt_vx x (zero_reg) (unmasked) ty))
2664
+ ;; Here we only need I64X1, but emit an AVL of 2 since it
2665
+ ;; saves one vector state change in the case of I64X2.
2666
+ ;;
2667
+ ;; TODO: For types that have more lanes than element bits, we can
2668
+ ;; use the original type as a VState and avoid a state change.
2669
+ (x_mask XReg (rv_vmv_xs mask (vstate_from_type $I64X2))))
2670
+ (gen_andi x_mask (ty_lane_mask ty))))
2671
+
2672
+ ;;;; Rules for `swizzle` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2673
+
2674
+ (rule 0 (lower (has_type (ty_vec_fits_in_register ty) (swizzle x y)))
2675
+ (rv_vrgather_vv x y (unmasked) ty))
2676
+
2677
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (swizzle x (splat y))))
2678
+ (rv_vrgather_vx x y (unmasked) ty))
2679
+
2680
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (swizzle x y)))
2681
+ (if-let y_imm (replicated_uimm5 y))
2682
+ (rv_vrgather_vi x y_imm (unmasked) ty))
2683
+
2684
+ ;;;; Rules for `shuffle` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2685
+
2686
+ ;; Use a vrgather to load all 0-15 lanes from x. And then modify the mask to load all
2687
+ ;; 16-31 lanes from y. Finally, use a vor to combine the two vectors.
2688
+ ;;
2689
+ ;; vrgather will insert a 0 for lanes that are out of bounds, so we can let it load
2690
+ ;; negative and out of bounds indexes.
2691
+ (rule (lower (has_type (ty_vec_fits_in_register ty @ $I8X16) (shuffle x y (vconst_from_immediate mask))))
2692
+ (if-let neg16 (i8_to_imm5 -16))
2693
+ (let ((x_mask VReg (gen_constant ty mask))
2694
+ (x_lanes VReg (rv_vrgather_vv x x_mask (unmasked) ty))
2695
+ (y_mask VReg (rv_vadd_vi x_mask neg16 (unmasked) ty))
2696
+ (y_lanes VReg (rv_vrgather_vv y y_mask (unmasked) ty)))
2697
+ (rv_vor_vv x_lanes y_lanes (unmasked) ty)))
2698
+
2699
+ ;;;; Rules for `swiden_high` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2700
+
2701
+ ;; Slide down half the vector, and do a signed extension.
2702
+ (rule 0 (lower (has_type (ty_vec_fits_in_register out_ty) (swiden_high x @ (value_type in_ty))))
2703
+ (rv_vsext_vf2 (gen_slidedown_half in_ty x) (unmasked) out_ty))
2704
+
2705
+ (rule 1 (lower (has_type (ty_vec_fits_in_register out_ty) (swiden_high (swiden_high x @ (value_type in_ty)))))
2706
+ (if-let (uimm5_from_u64 amt) (u64_sub (ty_lane_count in_ty) (ty_lane_count out_ty)))
2707
+ (rv_vsext_vf4 (rv_vslidedown_vi x amt (unmasked) in_ty) (unmasked) out_ty))
2708
+
2709
+ (rule 2 (lower (has_type (ty_vec_fits_in_register out_ty) (swiden_high (swiden_high (swiden_high x @ (value_type in_ty))))))
2710
+ (if-let (uimm5_from_u64 amt) (u64_sub (ty_lane_count in_ty) (ty_lane_count out_ty)))
2711
+ (rv_vsext_vf8 (rv_vslidedown_vi x amt (unmasked) in_ty) (unmasked) out_ty))
2712
+
2713
+ ;;;; Rules for `uwiden_high` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2714
+
2715
+ ;; Slide down half the vector, and do a zero extension.
2716
+ (rule 0 (lower (has_type (ty_vec_fits_in_register out_ty) (uwiden_high x @ (value_type in_ty))))
2717
+ (rv_vzext_vf2 (gen_slidedown_half in_ty x) (unmasked) out_ty))
2718
+
2719
+ (rule 1 (lower (has_type (ty_vec_fits_in_register out_ty) (uwiden_high (uwiden_high x @ (value_type in_ty)))))
2720
+ (if-let (uimm5_from_u64 amt) (u64_sub (ty_lane_count in_ty) (ty_lane_count out_ty)))
2721
+ (rv_vzext_vf4 (rv_vslidedown_vi x amt (unmasked) in_ty) (unmasked) out_ty))
2722
+
2723
+ (rule 2 (lower (has_type (ty_vec_fits_in_register out_ty) (uwiden_high (uwiden_high (uwiden_high x @ (value_type in_ty))))))
2724
+ (if-let (uimm5_from_u64 amt) (u64_sub (ty_lane_count in_ty) (ty_lane_count out_ty)))
2725
+ (rv_vzext_vf8 (rv_vslidedown_vi x amt (unmasked) in_ty) (unmasked) out_ty))
2726
+
2727
+ ;;;; Rules for `swiden_low` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2728
+
2729
+ (rule 0 (lower (has_type (ty_vec_fits_in_register out_ty) (swiden_low x)))
2730
+ (rv_vsext_vf2 x (unmasked) out_ty))
2731
+
2732
+ (rule 1 (lower (has_type (ty_vec_fits_in_register out_ty) (swiden_low (swiden_low x))))
2733
+ (rv_vsext_vf4 x (unmasked) out_ty))
2734
+
2735
+ (rule 2 (lower (has_type (ty_vec_fits_in_register out_ty) (swiden_low (swiden_low (swiden_low x)))))
2736
+ (rv_vsext_vf8 x (unmasked) out_ty))
2737
+
2738
+ ;;;; Rules for `uwiden_low` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2739
+
2740
+ (rule 0 (lower (has_type (ty_vec_fits_in_register out_ty) (uwiden_low x)))
2741
+ (rv_vzext_vf2 x (unmasked) out_ty))
2742
+
2743
+ (rule 1 (lower (has_type (ty_vec_fits_in_register out_ty) (uwiden_low (uwiden_low x))))
2744
+ (rv_vzext_vf4 x (unmasked) out_ty))
2745
+
2746
+ (rule 2 (lower (has_type (ty_vec_fits_in_register out_ty) (uwiden_low (uwiden_low (uwiden_low x)))))
2747
+ (rv_vzext_vf8 x (unmasked) out_ty))
2748
+
2749
+ ;;;; Rules for `iadd_pairwise` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2750
+
2751
+ ;; We don't have a dedicated instruction for this, rearrange the register elements
2752
+ ;; and use a vadd.
2753
+ ;;
2754
+ ;; We do this by building two masks, one for the even elements and one for the odd
2755
+ ;; elements. Using vcompress we can extract the elements and group them together.
2756
+ ;;
2757
+ ;; This is likely not the optimal way of doing this. LLVM does this using a bunch
2758
+ ;; of vrgathers (See: https://godbolt.org/z/jq8Wj8WG4), that doesen't seem to be
2759
+ ;; too much better than this.
2760
+ ;;
2761
+ ;; However V8 does something better. They use 2 vcompresses using LMUL2, that means
2762
+ ;; that they can do the whole thing in 3 instructions (2 vcompress + vadd). We don't
2763
+ ;; support LMUL > 1, so we can't do that.
2764
+ (rule (lower (has_type (ty_vec_fits_in_register ty) (iadd_pairwise x y)))
2765
+ (if-let half_size (u64_to_uimm5 (u64_udiv (ty_lane_count ty) 2)))
2766
+ (let ((odd_mask VReg (gen_vec_mask 0x5555555555555555))
2767
+ (lhs_lo VReg (rv_vcompress_vm x odd_mask ty))
2768
+ (lhs_hi VReg (rv_vcompress_vm y odd_mask ty))
2769
+ (lhs VReg (rv_vslideup_vvi lhs_lo lhs_hi half_size (unmasked) ty))
2770
+
2771
+ (even_mask VReg (gen_vec_mask 0xAAAAAAAAAAAAAAAA))
2772
+ (rhs_lo VReg (rv_vcompress_vm x even_mask ty))
2773
+ (rhs_hi VReg (rv_vcompress_vm y even_mask ty))
2774
+ (rhs VReg (rv_vslideup_vvi rhs_lo rhs_hi half_size (unmasked) ty)))
2775
+ (rv_vadd_vv lhs rhs (unmasked) ty)))
2776
+
2777
+ ;;;; Rules for `avg_round` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2778
+
2779
+ ;; `avg_round` computes the unsigned average with rounding: a := (x + y + 1) // 2
2780
+ ;;
2781
+ ;; See Section "2–5 Average of Two Integers" of the Hacker's Delight book
2782
+ ;;
2783
+ ;; The floor average of two integers without overflow can be computed as:
2784
+ ;; t = (x & y) + ((x ^ y) >> 1)
2785
+ ;;
2786
+ ;; The right shift should be a logical shift if the integers are unsigned.
2787
+ ;;
2788
+ ;; We are however interested in the ceiling average (x + y + 1). For that
2789
+ ;; we use a special rounding mode in the right shift instruction.
2790
+ ;;
2791
+ ;; For the right shift instruction we use `vssrl` which is a Scaling Shift
2792
+ ;; Right Logical instruction using the `vxrm` fixed-point rouding mode. The
2793
+ ;; default rounding mode is `rnu` (round-to-nearest-up (add +0.5 LSB)).
2794
+ ;; Which is coincidentally the rounding mode we want for `avg_round`.
2795
+ (rule (lower (has_type (ty_vec_fits_in_register ty) (avg_round x y)))
2796
+ (if-let one (u64_to_uimm5 1))
2797
+ (let ((lhs VReg (rv_vand_vv x y (unmasked) ty))
2798
+ (xor VReg (rv_vxor_vv x y (unmasked) ty))
2799
+ (rhs VReg (rv_vssrl_vi xor one (unmasked) ty)))
2800
+ (rv_vadd_vv lhs rhs (unmasked) ty)))
2801
+
2802
+ ;;;; Rules for `scalar_to_vector` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2803
+
2804
+ (rule 0 (lower (has_type (ty_vec_fits_in_register ty) (scalar_to_vector x)))
2805
+ (if (ty_vector_float ty))
2806
+ (let ((zero VReg (rv_vmv_vx (zero_reg) ty))
2807
+ (elem VReg (rv_vfmv_sf x ty))
2808
+ (mask VReg (gen_vec_mask 1)))
2809
+ (rv_vmerge_vvm zero elem mask ty)))
2810
+
2811
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (scalar_to_vector x)))
2812
+ (if (ty_vector_not_float ty))
2813
+ (let ((zero VReg (rv_vmv_vx (zero_reg) ty))
2814
+ (mask VReg (gen_vec_mask 1)))
2815
+ (rv_vmerge_vxm zero x mask ty)))
2816
+
2817
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (scalar_to_vector (imm5_from_value x))))
2818
+ (let ((zero VReg (rv_vmv_vx (zero_reg) ty))
2819
+ (mask VReg (gen_vec_mask 1)))
2820
+ (rv_vmerge_vim zero x mask ty)))
2821
+
2822
+ ;;;; Rules for `sqmul_round_sat` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2823
+
2824
+ (rule 0 (lower (has_type (ty_vec_fits_in_register ty) (sqmul_round_sat x y)))
2825
+ (rv_vsmul_vv x y (unmasked) ty))
2826
+
2827
+ (rule 1 (lower (has_type (ty_vec_fits_in_register ty) (sqmul_round_sat x (splat y))))
2828
+ (rv_vsmul_vx x y (unmasked) ty))
2829
+
2830
+ (rule 2 (lower (has_type (ty_vec_fits_in_register ty) (sqmul_round_sat (splat x) y)))
2831
+ (rv_vsmul_vx y x (unmasked) ty))
2832
+
2833
+ ;;;; Rules for `snarrow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2834
+
2835
+ (rule (lower (has_type (ty_vec_fits_in_register out_ty) (snarrow x @ (value_type in_ty) y)))
2836
+ (if-let lane_diff (u64_to_uimm5 (u64_udiv (ty_lane_count out_ty) 2)))
2837
+ (if-let zero (u64_to_uimm5 0))
2838
+ (let ((x_clip VReg (rv_vnclip_wi x zero (unmasked) (vstate_mf2 (ty_half_lanes out_ty))))
2839
+ (y_clip VReg (rv_vnclip_wi y zero (unmasked) (vstate_mf2 (ty_half_lanes out_ty)))))
2840
+ (rv_vslideup_vvi x_clip y_clip lane_diff (unmasked) out_ty)))
2841
+
2842
+ ;;;; Rules for `uunarrow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2843
+
2844
+ (rule (lower (has_type (ty_vec_fits_in_register out_ty) (uunarrow x @ (value_type in_ty) y)))
2845
+ (if-let lane_diff (u64_to_uimm5 (u64_udiv (ty_lane_count out_ty) 2)))
2846
+ (if-let zero (u64_to_uimm5 0))
2847
+ (let ((x_clip VReg (rv_vnclipu_wi x zero (unmasked) (vstate_mf2 (ty_half_lanes out_ty))))
2848
+ (y_clip VReg (rv_vnclipu_wi y zero (unmasked) (vstate_mf2 (ty_half_lanes out_ty)))))
2849
+ (rv_vslideup_vvi x_clip y_clip lane_diff (unmasked) out_ty)))
2850
+
2851
+ ;;;; Rules for `unarrow` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2852
+
2853
+ ;; We don't have a instruction that saturates a signed source into an unsigned destination.
2854
+ ;; To correct for this we just remove negative values using `vmax` and then use the normal
2855
+ ;; unsigned to unsigned narrowing instruction.
2856
+
2857
+ (rule (lower (has_type (ty_vec_fits_in_register out_ty) (unarrow x @ (value_type in_ty) y)))
2858
+ (if-let lane_diff (u64_to_uimm5 (u64_udiv (ty_lane_count out_ty) 2)))
2859
+ (if-let zero (u64_to_uimm5 0))
2860
+ (let ((x_pos VReg (rv_vmax_vx x (zero_reg) (unmasked) in_ty))
2861
+ (y_pos VReg (rv_vmax_vx y (zero_reg) (unmasked) in_ty))
2862
+ (x_clip VReg (rv_vnclipu_wi x_pos zero (unmasked) (vstate_mf2 (ty_half_lanes out_ty))))
2863
+ (y_clip VReg (rv_vnclipu_wi y_pos zero (unmasked) (vstate_mf2 (ty_half_lanes out_ty)))))
2864
+ (rv_vslideup_vvi x_clip y_clip lane_diff (unmasked) out_ty)))