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

Method goto_first_inst

cranelift/codegen/src/cursor.rs:276–279  ·  view source on GitHub ↗

Go to the first instruction in `block`.

(&mut self, block: ir::Block)

Source from the content-addressed store, hash-verified

274
275 /// Go to the first instruction in `block`.
276 fn goto_first_inst(&mut self, block: ir::Block) {
277 let inst = self.layout().first_inst(block).expect("Empty block");
278 self.goto_inst(inst);
279 }
280
281 /// Go to the last instruction in `block`.
282 fn goto_last_inst(&mut self, block: ir::Block) {

Callers 1

at_first_instMethod · 0.80

Implementers 2

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

Calls 4

first_instMethod · 0.80
goto_instMethod · 0.80
expectMethod · 0.45
layoutMethod · 0.45

Tested by

no test coverage detected