pub enum NativeValue {
Reg(Register),
Imm(i64),
FRef(String),
StackSlot(u32),
UImm(u64),
StrRef(String),
}Expand description
A value operand in the native IR.
Variants§
Reg(Register)
A register (virtual or physical).
Imm(i64)
An immediate constant.
FRef(String)
A function reference (by name).
StackSlot(u32)
A stack slot.
UImm(u64)
An unsigned immediate.
StrRef(String)
A string literal reference (pointer to the string bytes).
Trait Implementations§
Source§impl Clone for NativeValue
impl Clone for NativeValue
Source§fn clone(&self) -> NativeValue
fn clone(&self) -> NativeValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NativeValue
impl Debug for NativeValue
Source§impl Display for NativeValue
impl Display for NativeValue
Source§impl Hash for NativeValue
impl Hash for NativeValue
Source§impl PartialEq for NativeValue
impl PartialEq for NativeValue
impl Eq for NativeValue
impl StructuralPartialEq for NativeValue
Auto Trait Implementations§
impl Freeze for NativeValue
impl RefUnwindSafe for NativeValue
impl Send for NativeValue
impl Sync for NativeValue
impl Unpin for NativeValue
impl UnsafeUnpin for NativeValue
impl UnwindSafe for NativeValue
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