#cranelift #instructions #rules #selection #expressions #language #isle

build cranelift-isle

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

80 releases (29 breaking)

new 0.108.0 May 20, 2024
0.107.0 Apr 22, 2024
0.106.0 Mar 20, 2024
0.103.0 Dec 20, 2023
0.79.0 Dec 13, 2021

#46 in WebAssembly

Download history 88336/week @ 2024-01-29 97633/week @ 2024-02-05 88580/week @ 2024-02-12 97318/week @ 2024-02-19 99767/week @ 2024-02-26 95890/week @ 2024-03-04 103556/week @ 2024-03-11 106926/week @ 2024-03-18 93576/week @ 2024-03-25 114323/week @ 2024-04-01 115924/week @ 2024-04-08 110898/week @ 2024-04-15 109792/week @ 2024-04-22 90076/week @ 2024-04-29 105190/week @ 2024-05-06 104204/week @ 2024-05-13

414,693 downloads per month
Used in 339 crates (via cranelift-codegen)

Apache-2.0 WITH LLVM-exception

270KB
5.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 that is as good or better than what you would have written by hand.

Dependencies

~0–7.5MB
~42K SLoC