pub struct Register(pub u32);Expand description
A register in the native IR (SSA form).
Registers numbered 0..65535 are virtual (pre-allocation). Registers >= 65536 are physical (post-allocation).
Tuple Fields§
§0: u32Implementations§
Source§impl Register
impl Register
Sourcepub fn is_virtual(&self) -> bool
pub fn is_virtual(&self) -> bool
Whether this is a virtual register (pre-allocation).
Sourcepub fn is_physical(&self) -> bool
pub fn is_physical(&self) -> bool
Whether this is a physical register (post-allocation).
Trait Implementations§
Source§impl Ord for Register
impl Ord for Register
Source§impl PartialOrd for Register
impl PartialOrd for Register
impl Copy for Register
impl Eq for Register
impl StructuralPartialEq for Register
Auto Trait Implementations§
impl Freeze for Register
impl RefUnwindSafe for Register
impl Send for Register
impl Sync for Register
impl Unpin for Register
impl UnsafeUnpin for Register
impl UnwindSafe for Register
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more