Enum rune_ssa::Value[][src]

pub enum Value {
Show 13 variants Input(usize), Const(ConstId), Phi(Phi), Not(Assign), Add(Assign, Assign), Sub(Assign, Assign), Div(Assign, Assign), Mul(Assign, Assign), CmpLt(Assign, Assign), CmpLte(Assign, Assign), CmpEq(Assign, Assign), CmpGt(Assign, Assign), CmpGte(Assign, Assign),
}
Expand description

A single abstract machine instruction.

Variants

Input

A numerated input.

Tuple Fields of Input

0: usize
Const

An instruction to load a constant as a value.

Tuple Fields of Const

0: ConstId
Phi

A phony use node, indicating what assignments flow into this.

Tuple Fields of Phi

0: Phi
Not

Compute !arg.

Tuple Fields of Not

0: Assign
Add

Compute lhs + rhs.

Tuple Fields of Add

0: Assign1: Assign
Sub

Compute lhs - rhs.

Tuple Fields of Sub

0: Assign1: Assign
Div

Compute lhs / rhs.

Tuple Fields of Div

0: Assign1: Assign
Mul

Compute lhs * rhs.

Tuple Fields of Mul

0: Assign1: Assign
CmpLt

Compare if lhs < rhs.

Tuple Fields of CmpLt

0: Assign1: Assign
CmpLte

Compare if lhs <= rhs.

Tuple Fields of CmpLte

0: Assign1: Assign
CmpEq

Compare if lhs == rhs.

Tuple Fields of CmpEq

0: Assign1: Assign
CmpGt

Compare if lhs > rhs.

Tuple Fields of CmpGt

0: Assign1: Assign
CmpGte

Compare if lhs >= rhs.

Tuple Fields of CmpGte

0: Assign1: Assign

Implementations

Dump diagnostical information on an instruction.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.