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

Method next_inst

cranelift/codegen/src/cursor.rs:463–467  ·  view source on GitHub ↗

Move to the next instruction in the same block and return it. - If the cursor was positioned before a block, go to the first instruction in that block. - If there are no more instructions in the block, go to the `After(block)` position and return `None`. - If the cursor wasn't pointing anywhere, keep doing that. This method will never move the cursor to a different block. # Examples The `next_

(&mut self)

Source from the content-addressed store, hash-verified

461 /// }
462 /// ```
463 fn next_inst(&mut self) -> Option<ir::Inst> {
464 let pos = self.next_inst_position()?;
465 self.set_position(pos);
466 self.current_inst()
467 }
468
469 /// Get the position that a `cursor.prev_inst()` call would move this cursor
470 /// to, but do not update this cursor's position.

Callers 3

goto_after_instMethod · 0.45
next_inst_positionMethod · 0.45
remove_instMethod · 0.45

Implementers 2

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

Calls 3

next_inst_positionMethod · 0.80
current_instMethod · 0.80
set_positionMethod · 0.45

Tested by

no test coverage detected