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

Method goto_last_inst

cranelift/codegen/src/cursor.rs:282–285  ·  view source on GitHub ↗

Go to the last instruction in `block`.

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

Source from the content-addressed store, hash-verified

280
281 /// Go to the last instruction in `block`.
282 fn goto_last_inst(&mut self, block: ir::Block) {
283 let inst = self.layout().last_inst(block).expect("Empty block");
284 self.goto_inst(inst);
285 }
286
287 /// Go to the top of `block` which must be inserted into the layout.
288 /// At this position, instructions cannot be inserted, but `next_inst()` will move to the first

Callers 1

at_last_instMethod · 0.80

Implementers 2

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

Calls 4

last_instMethod · 0.80
goto_instMethod · 0.80
expectMethod · 0.45
layoutMethod · 0.45

Tested by

no test coverage detected