pub struct IrInstruction {
pub opcode: IrOpcode,
pub result_type: IrType,
pub operands: Vec<IrValue>,
pub immediate: Option<i64>,
pub constant: Option<IrConstant>,
}Expand description
A typed instruction in the Core IR.
Fields§
§opcode: IrOpcode§result_type: IrType§operands: Vec<IrValue>§immediate: Option<i64>§constant: Option<IrConstant>Implementations§
Trait Implementations§
Source§impl Clone for IrInstruction
impl Clone for IrInstruction
Source§fn clone(&self) -> IrInstruction
fn clone(&self) -> IrInstruction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IrInstruction
impl Debug for IrInstruction
Source§impl<'de> Deserialize<'de> for IrInstruction
impl<'de> Deserialize<'de> for IrInstruction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IrInstruction
impl PartialEq for IrInstruction
Source§fn eq(&self, other: &IrInstruction) -> bool
fn eq(&self, other: &IrInstruction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IrInstruction
impl Serialize for IrInstruction
impl StructuralPartialEq for IrInstruction
Auto Trait Implementations§
impl Freeze for IrInstruction
impl RefUnwindSafe for IrInstruction
impl Send for IrInstruction
impl Sync for IrInstruction
impl Unpin for IrInstruction
impl UnsafeUnpin for IrInstruction
impl UnwindSafe for IrInstruction
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