Struct cranelift_codegen::machinst::lower::NonRegInput [−][src]
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
impl Clone for NonRegInput[src]
impl Clone for NonRegInput[src]fn clone(&self) -> NonRegInput[src]
fn clone(&self) -> NonRegInput[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for NonRegInput[src]
impl Debug for NonRegInput[src]impl Copy for NonRegInput[src]
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
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<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