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

Method remove_inst

cranelift/codegen/src/cursor.rs:549–554  ·  view source on GitHub ↗

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

(&mut self)

Source from the content-addressed store, hash-verified

547 ///
548 /// Return the instruction that was removed.
549 fn remove_inst(&mut self) -> ir::Inst {
550 let inst = self.current_inst().expect("No instruction to remove");
551 self.next_inst();
552 self.layout_mut().remove_inst(inst);
553 inst
554 }
555
556 /// Remove the instruction under the cursor.
557 ///

Callers 2

replace_instMethod · 0.45

Implementers 2

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

Calls 4

current_instMethod · 0.80
expectMethod · 0.45
next_instMethod · 0.45
layout_mutMethod · 0.45

Tested by

no test coverage detected