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

no-std regalloc2

Backtracking register allocator inspired from IonMonkey

32 releases

0.11.1 Dec 2, 2024
0.11.0 Nov 15, 2024
0.10.2 Sep 11, 2024
0.9.3 Oct 5, 2023
0.0.0 Dec 3, 2021

#26 in Testing

Download history 169427/week @ 2024-08-20 169727/week @ 2024-08-27 175694/week @ 2024-09-03 165911/week @ 2024-09-10 162158/week @ 2024-09-17 163247/week @ 2024-09-24 175138/week @ 2024-10-01 181971/week @ 2024-10-08 173622/week @ 2024-10-15 181812/week @ 2024-10-22 177782/week @ 2024-10-29 195593/week @ 2024-11-05 165425/week @ 2024-11-12 181462/week @ 2024-11-19 174142/week @ 2024-11-26 145456/week @ 2024-12-03

704,520 downloads per month
Used in 472 crates (3 directly)

Apache-2.0 WITH LLVM-exception

475KB
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–1.6MB
~24K SLoC