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
Is this Value-to-Reg mapping invalid?
Create a Value-in-R location for a value stored in two registers.
Trait Implementations
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, impl<R> UnwindSafe for ValueRegs<R> where
R: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.