pub enum Opcode {
IntegerAdd(Value, Value, Value),
IntegerNegate(Value, Value),
}
Expand description
An enumeration of instruction Opcodes for Cardinal’s IR.
Hex names are provided in documentation.
Variants§
IntegerAdd(Value, Value, Value)
Adds two numbers together, overwriting the provided output variable reference.
x
: Output variable referencey
: Integer valuez
: Integer value
x = y + z
IntegerNegate(Value, Value)
Negates a number, overwriting the provided output variable reference with the result.
x
: Output variable reference.y
: Signed integer value.
x = -y
Auto Trait Implementations§
impl Freeze for Opcode
impl RefUnwindSafe for Opcode
impl Send for Opcode
impl Sync for Opcode
impl Unpin for Opcode
impl UnwindSafe for Opcode
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