Implement a SparseMap data structure.

This implements the classic Briggs/Torczon sparse set construct.

Adapt it to our existing EntityRef infrastructure so we can use types
keys instead of just integers like the original paper does.

Also provide a SparseSet<T> type alias which implements a sparse set of
entity refeences. This is actually closer to what the original paper
describes.
This commit is contained in:
Jakob Stoklund Olesen
2017-01-10 10:01:05 -08:00
parent b6c2d4588f
commit d9b63bf227
2 changed files with 298 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ pub mod isa;
pub mod cfg;
pub mod dominator_tree;
pub mod entity_map;
pub mod sparse_map;
pub mod settings;
pub mod verifier;
pub mod regalloc;