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

Method loop_header

cranelift/codegen/src/loop_analysis.rs:109–111  ·  view source on GitHub ↗

Returns the header block of a particular loop. The characteristic property of a loop header block is that it dominates some of its predecessors.

(&self, lp: Loop)

Source from the content-addressed store, hash-verified

107 /// The characteristic property of a loop header block is that it dominates some of its
108 /// predecessors.
109 pub fn loop_header(&self, lp: Loop) -> Block {
110 self.loops[lp].header
111 }
112
113 /// Return the eventual parent of a loop in the loop tree.
114 pub fn loop_parent(&self, lp: Loop) -> Option<Loop> {

Callers 1

is_loop_headerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected