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

build cranelift-isle

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

105 releases (38 breaking)

0.117.2 Feb 25, 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

#81 in WebAssembly

Download history 124328/week @ 2024-11-19 123211/week @ 2024-11-26 127335/week @ 2024-12-03 122400/week @ 2024-12-10 118535/week @ 2024-12-17 57318/week @ 2024-12-24 82477/week @ 2024-12-31 129492/week @ 2025-01-07 145512/week @ 2025-01-14 140638/week @ 2025-01-21 139068/week @ 2025-01-28 164824/week @ 2025-02-04 149936/week @ 2025-02-11 163798/week @ 2025-02-18 151458/week @ 2025-02-25 143035/week @ 2025-03-04

635,439 downloads per month
Used in 473 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