Struct cranelift_codegen::machinst::lower::NonRegInput
source · [−]Expand description
A representation of all of the ways in which a value is available, aside from as a direct register.
-
An instruction, if it would be allowed to occur at the current location instead (see LowerCtx::get_input_as_source_or_const() for more details).
-
A constant, if the value is known to be a constant.
Fields
inst: Option<(Inst, usize)>
An instruction produces this value (as the given output), and its computation (and side-effect if applicable) could occur at the current instruction’s location instead.
If this instruction’s operation is merged into the current instruction, the backend must call LowerCtx::sink_inst().
constant: Option<u64>
The value is a known constant.
Trait Implementations
sourceimpl Clone for NonRegInput
impl Clone for NonRegInput
sourcefn clone(&self) -> NonRegInput
fn clone(&self) -> NonRegInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NonRegInput
impl Debug for NonRegInput
impl Copy for NonRegInput
Auto Trait Implementations
impl RefUnwindSafe for NonRegInput
impl Send for NonRegInput
impl Sync for NonRegInput
impl Unpin for NonRegInput
impl UnwindSafe for NonRegInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more