pub enum IRInstruction {
BinOp {
op: BinOp,
dest: IRValue,
left: IRValue,
right: IRValue,
},
UnOp {
op: UnOp,
dest: IRValue,
operand: IRValue,
},
Load {
dest: IRValue,
address: IRValue,
offset: i32,
},
Store {
address: IRValue,
value: IRValue,
offset: i32,
},
Call {
function: String,
args: Vec<IRValue>,
dest: Option<IRValue>,
},
}Expand description
IR Instruction
Variants§
BinOp
Binary operation
UnOp
Unary operation
Load
Load from memory
Store
Store to memory
Call
Call function
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
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