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

Method prev_inst

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

Fetch the instruction preceding `inst`.

(&self, inst: Inst)

Source from the content-addressed store, hash-verified

467
468 /// Fetch the instruction preceding `inst`.
469 pub fn prev_inst(&self, inst: Inst) -> Option<Inst> {
470 self.insts[inst].prev.expand()
471 }
472
473 /// Insert `inst` before the instruction `before` in the same block.
474 pub fn insert_inst(&mut self, inst: Inst, before: Inst) {

Callers 6

process_blockMethod · 0.45
rewriteMethod · 0.45
add_nan_canon_seqFunction · 0.45
backward_walkFunction · 0.45
reuse_resultsFunction · 0.45
replace_with_imm_methodFunction · 0.45

Calls 1

expandMethod · 0.45

Tested by 2

reuse_resultsFunction · 0.36
replace_with_imm_methodFunction · 0.36