Enum cardinal_backend::opcode::Opcode[][src]

pub enum Opcode {
    IntegerAdd(ValueValueValue),
    IntegerNegate(ValueValue),
}
Expand description

An enumeration of instruction Opcodes for Cardinal’s IR.

Hex names are provided in documentation.

Variants

IntegerAdd(ValueValueValue)

Adds two numbers together, overwriting the provided output variable reference.

  • x: Output variable reference
  • y: Integer value
  • z: Integer value
x = y + z
IntegerNegate(ValueValue)

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.