MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / blockparam_allocs

Method blockparam_allocs

src/internal/move_resolver.rs:558–569  ·  view source on GitHub ↗

Returns the locations for block parameter values at the start of a block.

(
        &self,
        block: Block,
    )

Source from the content-addressed store, hash-verified

556 /// Returns the locations for block parameter values at the start of a
557 /// block.
558 pub fn blockparam_allocs(
559 &self,
560 block: Block,
561 ) -> impl Iterator<Item = (Value, Allocation)> + '_ {
562 let idx = self
563 .blockparam_allocs
564 .partition_point(|&(block2, _, _)| block2 < block);
565 self.blockparam_allocs[idx..]
566 .iter()
567 .take_while(move |&&(block2, _, _)| block2 == block)
568 .map(|&(_, value, alloc)| (value, alloc))
569 }
570}
571
572// Track whether the current instruction has an external live-in value

Callers 2

preprocess_blockMethod · 0.80
optimize_blockMethod · 0.80

Calls 2

mapMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected