[][src]Struct regalloc::RegUsageMapper

pub struct RegUsageMapper { /* fields omitted */ }

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

impl Debug for RegUsageMapper[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.