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

Method at_inst

cranelift/codegen/src/cursor.rs:86–92  ·  view source on GitHub ↗

Rebuild this cursor positioned at `inst`. This is intended to be used as a builder method: ``` # use cranelift_codegen::ir::{Function, Block, Inst}; # use cranelift_codegen::cursor::{Cursor, FuncCursor}; fn edit_func(func: &mut Function, inst: Inst) { let mut pos = FuncCursor::new(func).at_inst(inst); // Use `pos`... } ```

(mut self, inst: ir::Inst)

Source from the content-addressed store, hash-verified

84 /// }
85 /// ```
86 fn at_inst(mut self, inst: ir::Inst) -> Self
87 where
88 Self: Sized,
89 {
90 self.goto_inst(inst);
91 self
92 }
93
94 /// Rebuild this cursor positioned at the first insertion point for `block`.
95 /// This differs from `at_first_inst` in that it doesn't assume that any

Callers 8

rewriteMethod · 0.80
mutateMethod · 0.80
expand_stack_storeFunction · 0.80
expand_stack_loadFunction · 0.80
const_vector_scaleFunction · 0.80
iadd_imm_addrFunction · 0.80
load_addrFunction · 0.80

Implementers 2

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

Calls 1

goto_instMethod · 0.80

Tested by

no test coverage detected