Struct regalloc::Reg[][src]

pub struct Reg { /* fields omitted */ }

Implementations

impl Reg[src]

pub fn is_virtual(self) -> bool[src]

pub fn is_real(self) -> bool[src]

pub fn new_real(rc: RegClass, enc: u8, index: u8) -> Self[src]

pub fn new_virtual(rc: RegClass, index: u32) -> Self[src]

pub fn invalid() -> Reg[src]

pub fn is_invalid(self) -> bool[src]

pub fn is_valid(self) -> bool[src]

pub fn is_virtual_or_invalid(self) -> bool[src]

pub fn is_real_or_invalid(self) -> bool[src]

pub fn get_class(self) -> RegClass[src]

pub fn get_index(self) -> usize[src]

pub fn get_index_u32(self) -> u32[src]

pub fn get_hw_encoding(self) -> u8[src]

pub fn as_virtual_reg(self) -> Option<VirtualReg>[src]

pub fn as_real_reg(self) -> Option<RealReg>[src]

pub fn show_with_rru(self, univ: &RealRegUniverse) -> String[src]

impl Reg[src]

pub fn to_real_reg(self) -> RealReg[src]

impl Reg[src]

pub fn to_virtual_reg(self) -> VirtualReg[src]

impl Reg[src]

pub fn apply_uses<RUM: RegUsageMapper>(&mut self, mapper: &RUM)[src]

Apply a vreg-rreg mapping to a Reg. This is used for registers used in a read-role.

pub fn apply_defs<RUM: RegUsageMapper>(&mut self, mapper: &RUM)[src]

Apply a vreg-rreg mapping to a Reg. This is used for registers used in a write-role.

pub fn apply_mods<RUM: RegUsageMapper>(&mut self, mapper: &RUM)[src]

Apply a vreg-rreg mapping to a Reg. This is used for registers used in a modify-role.

Trait Implementations

impl Clone for Reg[src]

impl Copy for Reg[src]

impl Debug for Reg[src]

impl Eq for Reg[src]

impl Hash for Reg[src]

impl Ord for Reg[src]

impl PartialEq<Reg> for Reg[src]

impl PartialOrd<Reg> for Reg[src]

impl PrettyPrint for Reg[src]

impl StructuralEq for Reg[src]

impl StructuralPartialEq for Reg[src]

Auto Trait Implementations

impl RefUnwindSafe for Reg

impl Send for Reg

impl Sync for Reg

impl Unpin for Reg

impl UnwindSafe for Reg

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.