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

98 releases (35 breaking)

0.114.0 Nov 20, 2024
0.113.0 Oct 22, 2024
0.110.1 Jul 22, 2024
0.106.0 Mar 20, 2024
0.79.0 Dec 13, 2021

#95 in WebAssembly

Download history 127525/week @ 2024-08-17 114703/week @ 2024-08-24 117674/week @ 2024-08-31 114224/week @ 2024-09-07 104899/week @ 2024-09-14 113801/week @ 2024-09-21 111886/week @ 2024-09-28 122141/week @ 2024-10-05 123451/week @ 2024-10-12 128193/week @ 2024-10-19 121205/week @ 2024-10-26 131628/week @ 2024-11-02 114085/week @ 2024-11-09 123135/week @ 2024-11-16 118157/week @ 2024-11-23 107673/week @ 2024-11-30

481,882 downloads per month
Used in 429 crates (via cranelift-codegen)

Apache-2.0 WITH LLVM-exception

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

Dependencies

~0–6.5MB
~38K SLoC