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

Method clear

cranelift/codegen/src/dominator_tree/simple.rs:231–235  ·  view source on GitHub ↗

Clear the data structures used to represent the dominator tree. This will leave the tree in a state where `is_valid()` returns false.

(&mut self)

Source from the content-addressed store, hash-verified

229 /// Clear the data structures used to represent the dominator tree. This will leave the tree in
230 /// a state where `is_valid()` returns false.
231 pub fn clear(&mut self) {
232 self.nodes.clear();
233 self.postorder.clear();
234 self.valid = false;
235 }
236
237 /// Check if the dominator tree is in a valid state.
238 ///

Callers 1

compute_postorderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected