#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.

78 releases (28 breaking)

new 0.107.1 May 3, 2024
0.106.2 Apr 11, 2024
0.106.0 Mar 20, 2024
0.103.0 Dec 20, 2023
0.79.0 Dec 13, 2021

#46 in WebAssembly

Download history 99154/week @ 2024-01-14 92738/week @ 2024-01-21 87278/week @ 2024-01-28 97107/week @ 2024-02-04 88674/week @ 2024-02-11 98052/week @ 2024-02-18 99229/week @ 2024-02-25 96608/week @ 2024-03-03 102654/week @ 2024-03-10 106716/week @ 2024-03-17 92753/week @ 2024-03-24 115015/week @ 2024-03-31 116721/week @ 2024-04-07 110716/week @ 2024-04-14 107454/week @ 2024-04-21 87100/week @ 2024-04-28

428,278 downloads per month
Used in 335 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
~43K SLoC