Struct cranelift_codegen::machinst::valueregs::ValueRegs [−][src]
pub struct ValueRegs<R: Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> { /* fields omitted */ }
Expand description
Location at which a Value is stored in register(s): the value is located
in one or more registers, depending on its width. A value may be stored in
more than one register if the machine has no registers wide enough
otherwise: for example, on a 32-bit architecture, we may store I64 values
in two registers, and I128 values in four.
By convention, the register parts are kept in machine-endian order here.
N.B.: we cap the capacity of this at four (when any 32-bit target is
enabled) or two (otherwise), and we use special in-band sentinal Reg
values (Reg::invalid()) to avoid the need to carry a separate length. This
allows the struct to be Copy (no heap or drop overhead) and be only 16 or
8 bytes, which is important for compiler performance.
Implementations
impl<R: Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> ValueRegs<R>[src]
impl<R: Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> ValueRegs<R>[src]pub fn is_invalid(self) -> bool[src]
pub fn is_invalid(self) -> bool[src]Is this Value-to-Reg mapping invalid?
impl<R: Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> ValueRegs<R>[src]
impl<R: Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> ValueRegs<R>[src]Trait Implementations
impl<R: PartialEq + Clone + Copy + Debug + Eq + InvalidSentinel> PartialEq<ValueRegs<R>> for ValueRegs<R>[src]
impl<R: PartialEq + Clone + Copy + Debug + Eq + InvalidSentinel> PartialEq<ValueRegs<R>> for ValueRegs<R>[src]impl<R: Copy + Clone + Debug + PartialEq + Eq + InvalidSentinel> Copy for ValueRegs<R>[src]
impl<R: Eq + Clone + Copy + Debug + PartialEq + InvalidSentinel> Eq for ValueRegs<R>[src]
impl<R: Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> StructuralEq for ValueRegs<R>[src]
impl<R: Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> StructuralPartialEq for ValueRegs<R>[src]
Auto Trait Implementations
impl<R> RefUnwindSafe for ValueRegs<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
impl<R> Send for ValueRegs<R> where
R: Send,
R: Send,
impl<R> Sync for ValueRegs<R> where
R: Sync,
R: Sync,
impl<R> Unpin for ValueRegs<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for ValueRegs<R> where
R: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
pub fn equivalent(&self, key: &K) -> bool[src]Compare self to key and return true if they are equal.
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more