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

Method is_loop_header

cranelift/codegen/src/loop_analysis.rs:124–127  ·  view source on GitHub ↗

Determine if a Block is a loop header. If so, return the loop.

(&self, block: Block)

Source from the content-addressed store, hash-verified

122
123 /// Determine if a Block is a loop header. If so, return the loop.
124 pub fn is_loop_header(&self, block: Block) -> Option<Loop> {
125 self.innermost_loop(block)
126 .filter(|&lp| self.loop_header(lp) == block)
127 }
128
129 /// Determine if a Block belongs to a loop by running a finger along the loop tree.
130 ///

Callers 1

start_blockMethod · 0.80

Calls 2

innermost_loopMethod · 0.80
loop_headerMethod · 0.80

Tested by

no test coverage detected