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

97 releases (34 breaking)

0.113.1 Nov 5, 2024
0.112.3 Nov 5, 2024
0.110.1 Jul 22, 2024
0.106.0 Mar 20, 2024
0.79.0 Dec 13, 2021

#105 in WebAssembly

Download history 111530/week @ 2024-07-26 111394/week @ 2024-08-02 122573/week @ 2024-08-09 125668/week @ 2024-08-16 116272/week @ 2024-08-23 116778/week @ 2024-08-30 114717/week @ 2024-09-06 102842/week @ 2024-09-13 118683/week @ 2024-09-20 106801/week @ 2024-09-27 125148/week @ 2024-10-04 121855/week @ 2024-10-11 126782/week @ 2024-10-18 124168/week @ 2024-10-25 130381/week @ 2024-11-01 97841/week @ 2024-11-08

502,146 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
~39K SLoC