Get the block containing the program point `pp`. Panic if `pp` is not in the layout.
(&self, pp: ProgramPoint)
| 419 | |
| 420 | /// Get the block containing the program point `pp`. Panic if `pp` is not in the layout. |
| 421 | pub fn pp_block(&self, pp: ProgramPoint) -> Block { |
| 422 | match pp { |
| 423 | ProgramPoint::Block(block) => block, |
| 424 | ProgramPoint::Inst(inst) => self.inst_block(inst).expect("Program point not in layout"), |
| 425 | } |
| 426 | } |
| 427 | |
| 428 | /// Append `inst` to the end of `block`. |
| 429 | pub fn append_inst(&mut self, inst: Inst, block: Block) { |
no test coverage detected