MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / pp_block

Method pp_block

cranelift/codegen/src/ir/layout.rs:421–426  ·  view source on GitHub ↗

Get the block containing the program point `pp`. Panic if `pp` is not in the layout.

(&self, pp: ProgramPoint)

Source from the content-addressed store, hash-verified

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) {

Callers 1

rpo_cmpMethod · 0.80

Calls 2

inst_blockMethod · 0.80
expectMethod · 0.45

Tested by

no test coverage detected