pub struct ReplaceBuilder<'f> { /* private fields */ }
Expand description

Instruction builder that replaces an existing instruction.

The inserted instruction will have the same Inst number as the old one.

If the old instruction still has result values attached, it is assumed that the new instruction produces the same number and types of results. The old result values are preserved. If the replacement instruction format does not support multiple results, the builder panics. It is a bug to leave result values dangling.

Implementations§

Create a ReplaceBuilder that will overwrite inst.

Trait Implementations§

Get an immutable reference to the data flow graph that will hold the constructed instructions. Read more
Get a mutable reference to the data flow graph that will hold the constructed instructions. Read more
Insert an instruction and return a reference to it, consuming the builder. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.