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

Method current_inst

cranelift/codegen/src/cursor.rs:233–239  ·  view source on GitHub ↗

Get the instruction corresponding to the current position, if any.

(&self)

Source from the content-addressed store, hash-verified

231
232 /// Get the instruction corresponding to the current position, if any.
233 fn current_inst(&self) -> Option<ir::Inst> {
234 use self::CursorPosition::*;
235 match self.position() {
236 At(inst) => Some(inst),
237 _ => None,
238 }
239 }
240
241 /// Go to the position after a specific instruction, which must be inserted
242 /// in the layout. New instructions will be inserted after `inst`.

Callers 4

next_instMethod · 0.80
prev_instMethod · 0.80
remove_instMethod · 0.80

Implementers 2

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

Calls 1

positionMethod · 0.45

Tested by

no test coverage detected