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

99 releases (36 breaking)

0.115.0 Dec 20, 2024
0.114.0 Nov 20, 2024
0.113.1 Nov 5, 2024
0.110.1 Jul 22, 2024
0.79.0 Dec 13, 2021

#132 in WebAssembly

Download history 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 116477/week @ 2024-11-08 120011/week @ 2024-11-15 118132/week @ 2024-11-22 127245/week @ 2024-11-29 126841/week @ 2024-12-06 117288/week @ 2024-12-13 80097/week @ 2024-12-20 64786/week @ 2024-12-27

409,874 downloads per month
Used in 445 crates (via cranelift-codegen)

Apache-2.0 WITH LLVM-exception

305KB
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–6MB
~35K SLoC