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

Method next_block_position

cranelift/codegen/src/cursor.rs:318–328  ·  view source on GitHub ↗

Get the position that a `cursor.next_block()` call would move this cursor to, but do not update this cursor's position.

(&self)

Source from the content-addressed store, hash-verified

316 /// Get the position that a `cursor.next_block()` call would move this
317 /// cursor to, but do not update this cursor's position.
318 fn next_block_position(&self) -> CursorPosition {
319 let next = if let Some(block) = self.current_block() {
320 self.layout().next_block(block)
321 } else {
322 self.layout().entry_block()
323 };
324 match next {
325 Some(block) => CursorPosition::Before(block),
326 None => CursorPosition::Nowhere,
327 }
328 }
329
330 /// Go to the top of the next block in layout order and return it.
331 ///

Callers 2

next_positionMethod · 0.80
next_blockMethod · 0.80

Implementers 2

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

Calls 4

current_blockMethod · 0.45
next_blockMethod · 0.45
layoutMethod · 0.45
entry_blockMethod · 0.45

Tested by

no test coverage detected