Go to a specific instruction which must be inserted in the layout. New instructions will be inserted before `inst`.
(&mut self, inst: ir::Inst)
| 257 | /// Go to a specific instruction which must be inserted in the layout. |
| 258 | /// New instructions will be inserted before `inst`. |
| 259 | fn goto_inst(&mut self, inst: ir::Inst) { |
| 260 | debug_assert!(self.layout().inst_block(inst).is_some()); |
| 261 | self.set_position(CursorPosition::At(inst)); |
| 262 | } |
| 263 | |
| 264 | /// Go to the position for inserting instructions at the beginning of `block`, |
| 265 | /// which unlike `goto_first_inst` doesn't assume that any instructions have |