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

Method goto_top

cranelift/codegen/src/cursor.rs:290–293  ·  view source on GitHub ↗

Go to the top of `block` which must be inserted into the layout. At this position, instructions cannot be inserted, but `next_inst()` will move to the first instruction in `block`.

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

Source from the content-addressed store, hash-verified

288 /// At this position, instructions cannot be inserted, but `next_inst()` will move to the first
289 /// instruction in `block`.
290 fn goto_top(&mut self, block: ir::Block) {
291 debug_assert!(self.layout().is_block_inserted(block));
292 self.set_position(CursorPosition::Before(block));
293 }
294
295 /// Go to the bottom of `block` which must be inserted into the layout.
296 /// At this position, inserted instructions will be appended to `block`.

Callers 1

at_topMethod · 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

no test coverage detected