#cranelift #wasi #wasmtime #expression

build cranelift-isle

ISLE: Instruction Selection and Lowering Expressions. A domain-specific language for instruction selection in Cranelift.

107 releases (40 breaking)

new 0.119.0 Apr 21, 2025
0.118.0 Mar 20, 2025
0.117.2 Feb 25, 2025
0.115.0 Dec 20, 2024
0.79.0 Dec 13, 2021

#502 in WebAssembly

Download history 69248/week @ 2024-12-30 130494/week @ 2025-01-06 146982/week @ 2025-01-13 140029/week @ 2025-01-20 134392/week @ 2025-01-27 165730/week @ 2025-02-03 152521/week @ 2025-02-10 161074/week @ 2025-02-17 151652/week @ 2025-02-24 170047/week @ 2025-03-03 168103/week @ 2025-03-10 189315/week @ 2025-03-17 162285/week @ 2025-03-24 151231/week @ 2025-03-31 176160/week @ 2025-04-07 121925/week @ 2025-04-14

626,116 downloads per month
Used in 510 crates (via cranelift-codegen)

Apache-2.0 WITH LLVM-exception

305KB
6.5K SLoC

ISLE: Instruction Selection / Lowering Expressions

ISLE is a domain specific language (DSL) for instruction selection and lowering clif instructions to vcode's MachInsts in Cranelift.

ISLE is a statically-typed term-rewriting language. You define rewriting rules that map input terms (clif instructions) into output terms (MachInsts). These rules get compiled down into Rust source test that uses a tree of match expressions as good as or better than what you would have written by hand.

Dependencies

~0–6.5MB
~34K SLoC