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

Method last_inst

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

Fetch a block's last instruction.

(&self, block: Block)

Source from the content-addressed store, hash-verified

457
458 /// Fetch a block's last instruction.
459 pub fn last_inst(&self, block: Block) -> Option<Inst> {
460 self.blocks[block].last_inst.into()
461 }
462
463 /// Fetch the instruction following `inst`.
464 pub fn next_inst(&self, inst: Inst) -> Option<Inst> {

Callers 15

process_blockMethod · 0.80
rewriteMethod · 0.80
mutateMethod · 0.80
visit_block_succsFunction · 0.80
block_nodesMethod · 0.80
goto_last_instMethod · 0.80
prev_inst_positionMethod · 0.80
newMethod · 0.80
collect_block_callMethod · 0.80
block_successorsMethod · 0.80
replace_with_imm_methodFunction · 0.80

Calls

no outgoing calls

Tested by 1

replace_with_imm_methodFunction · 0.64