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

Method new

src/debug_utils/postorder.rs:53–59  ·  view source on GitHub ↗

Creates a new `PostOrder`.

()

Source from the content-addressed store, hash-verified

51impl PostOrder {
52 /// Creates a new `PostOrder`.
53 pub fn new() -> Self {
54 PostOrder {
55 stack: vec![],
56 postorder: vec![],
57 po_number: SecondaryMap::new(),
58 }
59 }
60
61 /// Creates a new `PostOrder` for the given function.
62 pub fn for_function(func: &impl Function) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected