[−][src]Struct regalloc::RegUsageMapper
This data structure holds the mappings needed to map an instruction's uses, mods and defs from virtual to real registers.
Methods
impl RegUsageMapper
[src]
pub fn get_use(&self, vreg: VirtualReg) -> Option<RealReg>
[src]
Return the RealReg
if mapped, or None
, for vreg
occuring as a use
on the current instruction.
pub fn get_def(&self, vreg: VirtualReg) -> Option<RealReg>
[src]
Return the RealReg
if mapped, or None
, for vreg
occuring as a def
on the current instruction.
pub fn get_mod(&self, vreg: VirtualReg) -> Option<RealReg>
[src]
Return the RealReg
if mapped, or None
, for a vreg
occuring as a
mod on the current instruction.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RegUsageMapper
impl Send for RegUsageMapper
impl Sync for RegUsageMapper
impl Unpin for RegUsageMapper
impl UnwindSafe for RegUsageMapper
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,