#cranelift #instructions #domain-specific-language #selection #dsl #clif

build cranelift-isle

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

106 releases (39 breaking)

new 0.118.0 Mar 20, 2025
0.116.1 Jan 21, 2025
0.115.0 Dec 20, 2024
0.114.0 Nov 20, 2024
0.79.0 Dec 13, 2021

#43 in WebAssembly

Download history 125211/week @ 2024-11-28 126814/week @ 2024-12-05 120197/week @ 2024-12-12 88562/week @ 2024-12-19 61769/week @ 2024-12-26 107553/week @ 2025-01-02 140914/week @ 2025-01-09 136596/week @ 2025-01-16 149142/week @ 2025-01-23 141742/week @ 2025-01-30 161451/week @ 2025-02-06 153060/week @ 2025-02-13 161937/week @ 2025-02-20 157959/week @ 2025-02-27 167008/week @ 2025-03-06 182342/week @ 2025-03-13

700,179 downloads per month
Used in 479 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
~35K SLoC