MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / for_function

Method for_function

src/debug_utils/postorder.rs:62–66  ·  view source on GitHub ↗

Creates a new `PostOrder` for the given function.

(func: &impl Function)

Source from the content-addressed store, hash-verified

60
61 /// Creates a new `PostOrder` for the given function.
62 pub fn for_function(func: &impl Function) -> Self {
63 let mut postorder = Self::new();
64 postorder.compute(func);
65 postorder
66 }
67
68 /// Returns whether a basic block is reachable from any entry point.
69 pub fn is_reachable(&self, block: Block) -> bool {

Callers

nothing calls this directly

Calls 1

computeMethod · 0.45

Tested by

no test coverage detected