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

100 releases (36 breaking)

new 0.115.1 Jan 14, 2025
0.115.0 Dec 20, 2024
0.114.0 Nov 20, 2024
0.110.1 Jul 22, 2024
0.79.0 Dec 13, 2021

#129 in WebAssembly

Download history 109873/week @ 2024-09-25 117585/week @ 2024-10-02 120301/week @ 2024-10-09 125317/week @ 2024-10-16 129112/week @ 2024-10-23 127347/week @ 2024-10-30 125547/week @ 2024-11-06 112142/week @ 2024-11-13 123200/week @ 2024-11-20 123257/week @ 2024-11-27 127934/week @ 2024-12-04 118025/week @ 2024-12-11 107497/week @ 2024-12-18 58394/week @ 2024-12-25 96000/week @ 2025-01-01 107310/week @ 2025-01-08

388,020 downloads per month
Used in 456 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–6.5MB
~36K SLoC