Add a LiveRange data structure.

We will track live ranges separately for each SSA value, rather than per
virtual register like LLVM does.

This is the basis for a register allocator, so place it in a new
regalloc module.
This commit is contained in:
Jakob Stoklund Olesen
2017-01-05 10:34:19 -08:00
parent ae28ef90ef
commit b6c2d4588f
5 changed files with 519 additions and 3 deletions

View File

@@ -28,4 +28,4 @@ pub use ir::dfg::{DataFlowGraph, ValueDef};
pub use ir::layout::{Layout, Cursor};
pub use ir::function::Function;
pub use ir::builder::InstBuilder;
pub use ir::progpoint::{ProgramPoint, ProgramOrder};
pub use ir::progpoint::{ProgramPoint, ProgramOrder, ExpandedProgramPoint};