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

Method goto_inst

cranelift/codegen/src/cursor.rs:259–262  ·  view source on GitHub ↗

Go to a specific instruction which must be inserted in the layout. New instructions will be inserted before `inst`.

(&mut self, inst: ir::Inst)

Source from the content-addressed store, hash-verified

257 /// Go to a specific instruction which must be inserted in the layout.
258 /// New instructions will be inserted before `inst`.
259 fn goto_inst(&mut self, inst: ir::Inst) {
260 debug_assert!(self.layout().inst_block(inst).is_some());
261 self.set_position(CursorPosition::At(inst));
262 }
263
264 /// Go to the position for inserting instructions at the beginning of `block`,
265 /// which unlike `goto_first_inst` doesn't assume that any instructions have

Callers 9

at_instMethod · 0.80
goto_first_instMethod · 0.80
goto_last_instMethod · 0.80
expand_binaryFunction · 0.80
process_brifMethod · 0.80
append_instFunction · 0.80

Implementers 2

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

Calls 1

set_positionMethod · 0.45

Tested by 1

append_instFunction · 0.64