pub struct PairedGpr {
pub read: Gpr,
pub write: WritableGpr,
}
Available on crate feature
x86
only.Expand description
A pair of registers, one for reading and one for writing.
Due to how Cranelift’s SSA form, we must track the read and write registers
separately prior to register allocation. Once register allocation is
complete, we expect the hardware encoding for both read
and write
to be
the same.
Fields§
§read: Gpr
§write: WritableGpr
Trait Implementations§
Source§impl From<Writable<Gpr>> for PairedGpr
impl From<Writable<Gpr>> for PairedGpr
Source§fn from(wgpr: WritableGpr) -> Self
fn from(wgpr: WritableGpr) -> Self
Converts to this type from the input type.
impl Copy for PairedGpr
Auto Trait Implementations§
impl Freeze for PairedGpr
impl RefUnwindSafe for PairedGpr
impl Send for PairedGpr
impl Sync for PairedGpr
impl Unpin for PairedGpr
impl UnwindSafe for PairedGpr
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