pub struct Value(pub Index);
Tuple Fields
0: Index
Implementations
Return a new constant Value
.
Return a new instruction Value
.
Return whether this is a constant value.
Return whether this value is an instruction, and specifically a ‘terminator’.
A terminator is always the last instruction in a block (and may not appear anywhere else) and is either a branch or return.
pub fn replace_instruction_value(
&self,
context: &mut Context,
old_val: Value,
new_val: Value
)
pub fn replace_instruction_value(
&self,
context: &mut Context,
old_val: Value,
new_val: Value
)
If this value is an instruction and if any of its parameters is old_val
then replace them
with new_val
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Value
impl UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more