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

Method new

cranelift/codegen/src/egraph/mod.rs:48–58  ·  view source on GitHub ↗
(domtree: &'a DominatorTree)

Source from the content-addressed store, hash-verified

46
47impl<'a> EgraphBlockIter<'a> {
48 fn new(domtree: &'a DominatorTree) -> Self {
49 let mut iter = Self {
50 domtree,
51 stack: Vec::new(),
52 children: SmallVec::new(),
53 };
54 if let Some(&root) = domtree.cfg_postorder().last() {
55 iter.stack.push(root);
56 }
57 iter
58 }
59}
60
61impl Iterator for EgraphBlockIter<'_> {

Callers

nothing calls this directly

Calls 4

newFunction · 0.50
lastMethod · 0.45
cfg_postorderMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected