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

Method loop_parent

cranelift/codegen/src/loop_analysis.rs:114–116  ·  view source on GitHub ↗

Return the eventual parent of a loop in the loop tree.

(&self, lp: Loop)

Source from the content-addressed store, hash-verified

112
113 /// Return the eventual parent of a loop in the loop tree.
114 pub fn loop_parent(&self, lp: Loop) -> Option<Loop> {
115 self.loops[lp].parent.expand()
116 }
117
118 /// Return the innermost loop for a given block.
119 pub fn innermost_loop(&self, block: Block) -> Option<Loop> {

Callers 1

is_child_loopMethod · 0.80

Calls 1

expandMethod · 0.45

Tested by

no test coverage detected