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

84 releases (31 breaking)

new 0.110.1 Jul 22, 2024
0.109.0 Jun 20, 2024
0.106.0 Mar 20, 2024
0.103.0 Dec 20, 2023
0.79.0 Dec 13, 2021

#37 in WebAssembly

Download history 112715/week @ 2024-04-05 116095/week @ 2024-04-12 109850/week @ 2024-04-19 94459/week @ 2024-04-26 97365/week @ 2024-05-03 110346/week @ 2024-05-10 103461/week @ 2024-05-17 111402/week @ 2024-05-24 107473/week @ 2024-05-31 95952/week @ 2024-06-07 107060/week @ 2024-06-14 105900/week @ 2024-06-21 96447/week @ 2024-06-28 108152/week @ 2024-07-05 129868/week @ 2024-07-12 103167/week @ 2024-07-19

455,034 downloads per month
Used in 368 crates (via cranelift-codegen)

Apache-2.0 WITH LLVM-exception

275KB
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
~38K SLoC