#register #allocator #backtracking #fuzzing #another #infrastructure #ion-monkey

no-std regalloc2

Backtracking register allocator inspired from IonMonkey

31 releases

0.11.0 Nov 15, 2024
0.9.4 Aug 30, 2024
0.9.3 Oct 5, 2023
0.9.2 Jul 14, 2023
0.0.0 Dec 3, 2021

#36 in Testing

Download history 179161/week @ 2024-08-07 177772/week @ 2024-08-14 158035/week @ 2024-08-21 173609/week @ 2024-08-28 171278/week @ 2024-09-04 167012/week @ 2024-09-11 168585/week @ 2024-09-18 156662/week @ 2024-09-25 179972/week @ 2024-10-02 177421/week @ 2024-10-09 177649/week @ 2024-10-16 182052/week @ 2024-10-23 188961/week @ 2024-10-30 183632/week @ 2024-11-06 168208/week @ 2024-11-13 179877/week @ 2024-11-20

754,051 downloads per month
Used in 472 crates (4 directly)

Apache-2.0 WITH LLVM-exception

470KB
10K SLoC

regalloc2: another register allocator

This is a register allocator that started life as, and is about 50% still, a port of IonMonkey's backtracking register allocator to Rust. In many regards, it has been generalized, optimized, and improved since the initial port.

In addition, it contains substantial amounts of testing infrastructure (fuzzing harnesses and checkers) that does not exist in the original IonMonkey allocator.

See the design overview for (much!) more detail on how the allocator works.

License

This crate is licensed under the Apache 2.0 License with LLVM Exception. This license text can be found in the file LICENSE.

Parts of the code are derived from regalloc.rs: in particular, src/checker.rs and src/domtree.rs. This crate has the same license as regalloc.rs, so the license on these files does not differ.

Dependencies

~1.2–1.7MB
~26K SLoC