Returns an iterator over the blocks succeeding the given block.
(&self, block: Block)
| 325 | |
| 326 | /// Returns an iterator over the blocks succeeding the given block. |
| 327 | pub fn block_successors(&self, block: Block) -> impl DoubleEndedIterator<Item = Block> + '_ { |
| 328 | self.layout.last_inst(block).into_iter().flat_map(|inst| { |
| 329 | self.dfg.insts[inst] |
| 330 | .branch_destination(&self.dfg.jump_tables, &self.dfg.exception_tables) |
| 331 | .iter() |
| 332 | .map(|block| block.block(&self.dfg.value_lists)) |
| 333 | }) |
| 334 | } |
| 335 | |
| 336 | /// Replace the `dst` instruction's data with the `src` instruction's data |
| 337 | /// and then remove `src`. |
no test coverage detected