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

Method replace

cranelift/codegen/src/ir/function.rs:229–231  ·  view source on GitHub ↗

Create a `ReplaceBuilder` that will replace `inst` with a new instruction in place. `inst` must be present in the function's layout.

(&mut self, inst: Inst)

Source from the content-addressed store, hash-verified

227 ///
228 /// `inst` must be present in the function's layout.
229 pub fn replace(&mut self, inst: Inst) -> ReplaceBuilder<'_> {
230 ReplaceBuilder::new(&mut self.dfg, &mut self.layout, inst)
231 }
232
233 /// Creates a jump table in the function, to be used by `br_table` instructions.
234 pub fn create_jump_table(&mut self, data: JumpTableData) -> JumpTable {

Callers 15

parse_multilineFunction · 0.45
emit_testsFunction · 0.45
next_tokenMethod · 0.45
build_and_link_isleFunction · 0.45
mutateMethod · 0.45
run_testFunction · 0.45
start_passMethod · 0.45
dropMethod · 0.45
fixup_inst_that_returnsFunction · 0.45
replace_call_with_jumpFunction · 0.45
branches_and_jumpsFunction · 0.45
expand_binaryFunction · 0.45

Calls 1

newFunction · 0.50

Tested by 5

build_and_link_isleFunction · 0.36
branches_and_jumpsFunction · 0.36
aliasesFunction · 0.36
replace_with_imm_methodFunction · 0.36