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

Method is_valid

cranelift/codegen/src/dominator_tree.rs:376–378  ·  view source on GitHub ↗

Check if the dominator tree is in a valid state. Note that this doesn't perform any kind of validity checks. It simply checks if the `compute()` method has been called since the last `clear()`. It does not check that the dominator tree is consistent with the CFG.

(&self)

Source from the content-addressed store, hash-verified

374 /// `compute()` method has been called since the last `clear()`. It does not check that the
375 /// dominator tree is consistent with the CFG.
376 pub fn is_valid(&self) -> bool {
377 self.valid
378 }
379
380 /// Reset all internal data structures, build spanning tree
381 /// and compute a post-order of the control flow graph.

Callers 1

fmtMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected