Struct regalloc::Reg [−][src]
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Reg
[src]
fn cmp(&self, other: &Reg) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Reg> for Reg
[src]
impl PartialOrd<Reg> for Reg
[src]
fn partial_cmp(&self, other: &Reg) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PrettyPrint for Reg
[src]
fn show_rru(&self, maybe_reg_universe: Option<&RealRegUniverse>) -> String
[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]
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,