pub struct Pressure { /* private fields */ }Expand description
How many values want a register at each point, and how many registers there are for them.
Implementations§
Source§impl Pressure
impl Pressure
Sourcepub fn of(func: &Func, order: &Order, live: &Live, env: &Env) -> Self
pub fn of(func: &Func, order: &Order, live: &Live, env: &Env) -> Self
Counts the values and the registers at every point of a function.
§Panics
Panics on a function with more points than a table can index, which no machine has the memory to have handed it.
Sourcepub fn wanted(&self, class: RegClass, point: Point) -> u32
pub fn wanted(&self, class: RegClass, point: Point) -> u32
How many values of a class want a register at a point.
Sourcepub fn room(&self, class: RegClass, point: Point) -> u32
pub fn room(&self, class: RegClass, point: Point) -> u32
How many registers of a class there are at a point.
Sourcepub fn excess(&self, class: RegClass, point: Point) -> u32
pub fn excess(&self, class: RegClass, point: Point) -> u32
How many of the values of a class live at a point have to be in memory there, at the least.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pressure
impl RefUnwindSafe for Pressure
impl Send for Pressure
impl Sync for Pressure
impl Unpin for Pressure
impl UnsafeUnpin for Pressure
impl UnwindSafe for Pressure
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more