#cranelift #instructions #rules #selection #expressions #language #isle

build cranelift-isle

ISLE: Instruction Selection and Lowering Expressions. A domain-specific language for instruction selection in Cranelift.

72 releases (27 breaking)

new 0.106.0 Mar 20, 2024
0.105.2 Feb 28, 2024
0.103.0 Dec 20, 2023
0.102.0 Nov 20, 2023
0.79.0 Dec 13, 2021

#62 in WebAssembly

Download history 90655/week @ 2023-12-05 87255/week @ 2023-12-12 68098/week @ 2023-12-19 35182/week @ 2023-12-26 77441/week @ 2024-01-02 84220/week @ 2024-01-09 100421/week @ 2024-01-16 88052/week @ 2024-01-23 89142/week @ 2024-01-30 97274/week @ 2024-02-06 89574/week @ 2024-02-13 97787/week @ 2024-02-20 101280/week @ 2024-02-27 96289/week @ 2024-03-05 104685/week @ 2024-03-12 85476/week @ 2024-03-19

406,231 downloads per month
Used in 312 crates (via cranelift-codegen)

Apache-2.0 WITH LLVM-exception

270KB
5.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

~240KB