Returns the locations for block parameter values at the start of a block.
(
&self,
block: Block,
)
| 556 | /// Returns the locations for block parameter values at the start of a |
| 557 | /// block. |
| 558 | pub fn blockparam_allocs( |
| 559 | &self, |
| 560 | block: Block, |
| 561 | ) -> impl Iterator<Item = (Value, Allocation)> + '_ { |
| 562 | let idx = self |
| 563 | .blockparam_allocs |
| 564 | .partition_point(|&(block2, _, _)| block2 < block); |
| 565 | self.blockparam_allocs[idx..] |
| 566 | .iter() |
| 567 | .take_while(move |&&(block2, _, _)| block2 == block) |
| 568 | .map(|&(_, value, alloc)| (value, alloc)) |
| 569 | } |
| 570 | } |
| 571 | |
| 572 | // Track whether the current instruction has an external live-in value |
no test coverage detected