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

Method prev_position

cranelift/codegen/src/cursor.rs:311–314  ·  view source on GitHub ↗

Get the next position that a backwards traversal will move to, but do not move this cursor.

(&self)

Source from the content-addressed store, hash-verified

309 /// Get the next position that a backwards traversal will move to, but do
310 /// not move this cursor.
311 fn prev_position(&self) -> CursorPosition {
312 self.prev_inst_position()
313 .unwrap_or_else(|| self.prev_block_position())
314 }
315
316 /// Get the position that a `cursor.next_block()` call would move this
317 /// cursor to, but do not update this cursor's position.

Callers

nothing calls this directly

Implementers 2

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

Calls 2

prev_inst_positionMethod · 0.80
prev_block_positionMethod · 0.80

Tested by

no test coverage detected