Reconstruct locations of the original source variable
This commit is contained in:
committed by
Dan Gohman
parent
d6059d4605
commit
8f95c51730
@@ -64,6 +64,11 @@ impl Context {
|
||||
self.coloring.clear();
|
||||
}
|
||||
|
||||
/// Current values liveness state.
|
||||
pub fn liveness(&self) -> &Liveness {
|
||||
&self.liveness
|
||||
}
|
||||
|
||||
/// Allocate registers in `func`.
|
||||
///
|
||||
/// After register allocation, all values in `func` have been assigned to a register or stack
|
||||
|
||||
@@ -314,6 +314,11 @@ impl Liveness {
|
||||
}
|
||||
}
|
||||
|
||||
/// Current live ranges.
|
||||
pub fn ranges(&self) -> &LiveRangeSet {
|
||||
&self.ranges
|
||||
}
|
||||
|
||||
/// Get a context needed for working with a `LiveRange`.
|
||||
pub fn context<'a>(&'a self, layout: &'a Layout) -> LiveRangeContext<'a, Layout> {
|
||||
LiveRangeContext::new(layout, &self.forest)
|
||||
|
||||
Reference in New Issue
Block a user