pub struct InsertBuilder<'f, IIB: InstInserterBase<'f>> { /* fields omitted */ }Builder that inserts an instruction at the current position.
An InsertBuilder is a wrapper for an InstInserterBase that turns it into an instruction
builder with some additional facilities for creating instructions that reuse existing values as
their results.
Create a new builder which inserts instructions at pos.
The dfg and pos.layout references should be from the same Function.
Reuse result values in reuse.
Convert this builder into one that will reuse the provided result values instead of
allocating new ones. The provided values for reuse must not be attached to anything. Any
missing result values will be allocated as normal.
The reuse argument is expected to be an array of Option<Value>.
Reuse a single result value.
Convert this into a builder that will reuse v as the single result value. The reused
result value v must not be attached to anything.
This method should only be used when building an instruction with exactly one result. Use
with_results() for the more general case.
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
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static