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.
(self, v: Value)
| 177 | /// This method should only be used when building an instruction with exactly one result. Use |
| 178 | /// `with_results()` for the more general case. |
| 179 | pub fn with_result(self, v: Value) -> InsertReuseBuilder<'f, IIB, [Option<Value>; 1]> { |
| 180 | // TODO: Specialize this to return a different builder that just attaches `v` instead of |
| 181 | // calling `make_inst_results_reusing()`. |
| 182 | self.with_results([Some(v)]) |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | impl<'f, IIB: InstInserterBase<'f>> InstBuilderBase<'f> for InsertBuilder<'f, IIB> { |