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

102 releases (37 breaking)

0.116.1 Jan 21, 2025
0.115.1 Jan 14, 2025
0.115.0 Dec 20, 2024
0.114.0 Nov 20, 2024
0.79.0 Dec 13, 2021

#170 in WebAssembly

Download history 129850/week @ 2024-10-20 120458/week @ 2024-10-27 132968/week @ 2024-11-03 113863/week @ 2024-11-10 121692/week @ 2024-11-17 119917/week @ 2024-11-24 124789/week @ 2024-12-01 129128/week @ 2024-12-08 117319/week @ 2024-12-15 69760/week @ 2024-12-22 69259/week @ 2024-12-29 126746/week @ 2025-01-05 142454/week @ 2025-01-12 141185/week @ 2025-01-19 141702/week @ 2025-01-26 151398/week @ 2025-02-02

587,802 downloads per month
Used in 463 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
~35K SLoC