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

Method remove_inst_and_step_back

cranelift/codegen/src/cursor.rs:561–566  ·  view source on GitHub ↗

Remove the instruction under the cursor. The cursor is left pointing at the position preceding the current instruction. Return the instruction that was removed.

(&mut self)

Source from the content-addressed store, hash-verified

559 ///
560 /// Return the instruction that was removed.
561 fn remove_inst_and_step_back(&mut self) -> ir::Inst {
562 let inst = self.current_inst().expect("No instruction to remove");
563 self.prev_inst();
564 self.layout_mut().remove_inst(inst);
565 inst
566 }
567
568 /// Replace the instruction under the cursor with `new_inst`.
569 ///

Implementers 2

cursor.rscranelift/codegen/src/cursor.rs
layout.rscranelift/codegen/src/ir/layout.rs

Calls 5

current_instMethod · 0.80
expectMethod · 0.45
prev_instMethod · 0.45
remove_instMethod · 0.45
layout_mutMethod · 0.45

Tested by

no test coverage detected