pub struct VReg { /* private fields */ }
Expand description
A virtual register. Contains a virtual register number and a class.
A virtual register (“vreg”) corresponds to an SSA value for SSA input, or just a register when we allow for non-SSA input. All dataflow in the input program is specified via flow through a virtual register; even uses of specially-constrained locations, such as fixed physical registers, are done by using vregs, because we need the vreg’s live range in order to track the use of that location.
Implementations§
Trait Implementations§
source§impl Ord for VReg
impl Ord for VReg
source§impl PartialEq<VReg> for VReg
impl PartialEq<VReg> for VReg
source§impl PartialOrd<VReg> for VReg
impl PartialOrd<VReg> for VReg
1.0.0 · source§fn 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 moreimpl Copy for VReg
impl Eq for VReg
impl StructuralEq for VReg
impl StructuralPartialEq for VReg
Auto Trait Implementations§
impl RefUnwindSafe for VReg
impl Send for VReg
impl Sync for VReg
impl Unpin for VReg
impl UnwindSafe for VReg
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