Returns a [`FuncCursor`] pointed at the current position ready for inserting instructions. This can be used to insert SSA code that doesn't need to access locals and that doesn't need to know about [`FunctionBuilder`] at all.
(&mut self)
| 628 | /// This can be used to insert SSA code that doesn't need to access locals and that doesn't |
| 629 | /// need to know about [`FunctionBuilder`] at all. |
| 630 | pub fn cursor(&mut self) -> FuncCursor<'_> { |
| 631 | self.ensure_inserted_block(); |
| 632 | FuncCursor::new(self.func) |
| 633 | .with_srcloc(self.srcloc) |
| 634 | .at_bottom(self.position.unwrap()) |
| 635 | } |
| 636 | |
| 637 | /// Append parameters to the given [`Block`] corresponding to the function |
| 638 | /// parameters. This can be used to set up the block parameters for the |
nothing calls this directly
no test coverage detected