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

Method ins

cranelift/codegen/src/cursor.rs:641–643  ·  view source on GitHub ↗

Create an instruction builder that inserts an instruction at the current position.

(&mut self)

Source from the content-addressed store, hash-verified

639
640 /// Create an instruction builder that inserts an instruction at the current position.
641 pub fn ins(&mut self) -> ir::InsertBuilder<'_, &mut FuncCursor<'f>> {
642 ir::InsertBuilder::new(self)
643 }
644}
645
646impl<'f> Cursor for FuncCursor<'f> {

Callers 15

empty_functionFunction · 0.45
replace_with_constFunction · 0.45
define_simple_functionFunction · 0.45
switch_errorFunction · 0.45
libcall_functionFunction · 0.45
mainFunction · 0.45
test_dfs_traversalFunction · 0.45
fixup_inst_that_returnsFunction · 0.45
split_off_return_blockFunction · 0.45
basicFunction · 0.45
aliasesFunction · 0.45

Calls 1

newFunction · 0.50

Tested by 15

define_simple_functionFunction · 0.36
switch_errorFunction · 0.36
libcall_functionFunction · 0.36
test_dfs_traversalFunction · 0.36
basicFunction · 0.36
aliasesFunction · 0.36
branches_and_jumpsFunction · 0.36
unreachable_nodeFunction · 0.36
non_zero_entry_blockFunction · 0.36
backwards_layoutFunction · 0.36
insts_same_blockFunction · 0.36