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