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

Method reset

cranelift/codegen/src/souper_harvest.rs:75–79  ·  view source on GitHub ↗

Reset the collections to their empty state (without deallocating their backing data).

(&mut self)

Source from the content-addressed store, hash-verified

73 /// Reset the collections to their empty state (without deallocating their
74 /// backing data).
75 fn reset(&mut self) {
76 self.ir_to_souper_val.clear();
77 self.dfs_stack.clear();
78 self.dfs_seen.clear();
79 }
80}
81
82/// Harvest a candidate LHS for `val` from the dataflow graph.

Callers 1

harvest_candidate_lhsFunction · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected