pub struct Reg { /* private fields */ }
Implementations
sourceimpl Reg
impl Reg
pub fn is_virtual(self) -> bool
pub fn is_real(self) -> bool
pub fn new_real(rc: RegClass, enc: u8, index: u8) -> Self
pub fn new_virtual(rc: RegClass, index: u32) -> Self
pub fn invalid() -> Reg
pub fn is_invalid(self) -> bool
pub fn is_valid(self) -> bool
pub fn is_virtual_or_invalid(self) -> bool
pub fn is_real_or_invalid(self) -> bool
pub fn get_class(self) -> RegClass
pub fn get_index(self) -> usize
pub fn get_index_u32(self) -> u32
pub fn get_hw_encoding(self) -> u8
pub fn as_virtual_reg(self) -> Option<VirtualReg>
pub fn as_real_reg(self) -> Option<RealReg>
pub fn show_with_rru(self, univ: &RealRegUniverse) -> String
sourceimpl Reg
impl Reg
pub fn to_real_reg(self) -> RealReg
sourceimpl Reg
impl Reg
pub fn to_virtual_reg(self) -> VirtualReg
sourceimpl Reg
impl Reg
sourcepub fn apply_uses<RUM: RegUsageMapper>(&mut self, mapper: &RUM)
pub fn apply_uses<RUM: RegUsageMapper>(&mut self, mapper: &RUM)
Apply a vreg-rreg mapping to a Reg. This is used for registers used in a read-role.
sourcepub fn apply_defs<RUM: RegUsageMapper>(&mut self, mapper: &RUM)
pub fn apply_defs<RUM: RegUsageMapper>(&mut self, mapper: &RUM)
Apply a vreg-rreg mapping to a Reg. This is used for registers used in a write-role.
sourcepub fn apply_mods<RUM: RegUsageMapper>(&mut self, mapper: &RUM)
pub fn apply_mods<RUM: RegUsageMapper>(&mut self, mapper: &RUM)
Apply a vreg-rreg mapping to a Reg. This is used for registers used in a modify-role.
Trait Implementations
sourceimpl Ord for Reg
impl Ord for Reg
sourceimpl PartialOrd<Reg> for Reg
impl PartialOrd<Reg> for Reg
sourcefn partial_cmp(&self, other: &Reg) -> Option<Ordering>
fn partial_cmp(&self, other: &Reg) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl PrettyPrint for Reg
impl PrettyPrint for Reg
impl Copy for Reg
impl Eq for Reg
impl StructuralEq for Reg
impl StructuralPartialEq for Reg
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more