Move to the next instruction in the same block and return it. - If the cursor was positioned before a block, go to the first instruction in that block. - If there are no more instructions in the block, go to the `After(block)` position and return `None`. - If the cursor wasn't pointing anywhere, keep doing that. This method will never move the cursor to a different block. # Examples The `next_
(&mut self)
| 461 | /// } |
| 462 | /// ``` |
| 463 | fn next_inst(&mut self) -> Option<ir::Inst> { |
| 464 | let pos = self.next_inst_position()?; |
| 465 | self.set_position(pos); |
| 466 | self.current_inst() |
| 467 | } |
| 468 | |
| 469 | /// Get the position that a `cursor.prev_inst()` call would move this cursor |
| 470 | /// to, but do not update this cursor's position. |
no test coverage detected