Skip to main content

carry

Function carry 

Source
pub fn carry(source: &Func, blocks: &[Option<Block>], func: &mut Func)
Expand description

Writes onto a machine function how often each of its blocks runs and each of its arms is taken, worked out from the IR function it was selected from.

blocks is crate::lower::Lowered::blocks, which is the machine block each IR block became. A function nothing was lowered from is left alone, and so is every machine block that came from no IR block, which is what a block some later pass added looks like from here.