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

Method clear

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

Clear everything.

(&mut self)

Source from the content-addressed store, hash-verified

196
197 /// Clear everything.
198 pub fn clear(&mut self) {
199 self.insts.0.clear();
200 self.results.clear();
201 self.user_stack_maps.clear();
202 self.blocks.0.clear();
203 self.dynamic_types.clear();
204 self.value_lists.clear();
205 self.values.clear();
206 self.signatures.clear();
207 self.ext_funcs.clear();
208 self.values_labels = None;
209 self.constants.clear();
210 self.immediates.clear();
211 self.jump_tables.clear();
212 self.mem_flags.clear();
213 self.alias_regions.clear();
214 }
215
216 /// Get the total number of instructions created in this function, whether they are currently
217 /// inserted in the layout or not.

Callers 15

resetMethod · 0.45
resetMethod · 0.45
updateMethod · 0.45
optimize_branchesMethod · 0.45
purge_latest_branchesMethod · 0.45
clear_resultsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected