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

Method clear_results

cranelift/codegen/src/ir/dfg.rs:1018–1020  ·  view source on GitHub ↗

Clear the list of result values from `inst`. This leaves `inst` without any result values. New result values can be created by calling `make_inst_results` or by using a `replace(inst)` builder.

(&mut self, inst: Inst)

Source from the content-addressed store, hash-verified

1016 /// This leaves `inst` without any result values. New result values can be created by calling
1017 /// `make_inst_results` or by using a `replace(inst)` builder.
1018 pub fn clear_results(&mut self, inst: Inst) {
1019 self.results[inst].clear(&mut self.value_lists)
1020 }
1021
1022 /// Replace an instruction result with a new value of type `new_type`.
1023 ///

Callers 6

mutateMethod · 0.80
vmctx_addrFunction · 0.80
replace_with_aliasesMethod · 0.80
reuse_resultsFunction · 0.80

Calls 1

clearMethod · 0.45

Tested by 1

reuse_resultsFunction · 0.64