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

Method inst_allocations

src/internal/allocations.rs:72–76  ·  view source on GitHub ↗

Returns the allocations for an instruction's operands.

(&self, inst: Inst)

Source from the content-addressed store, hash-verified

70
71 /// Returns the allocations for an instruction's operands.
72 pub fn inst_allocations(&self, inst: Inst) -> &[Allocation] {
73 let start = self.operands_offset[inst.index()] as usize;
74 let end = self.operands_offset[inst.index() + 1] as usize;
75 &self.allocations[start..end]
76 }
77
78 /// Returns a mutable slice of allocations for an instruction's operands.
79 pub fn inst_allocations_mut(&mut self, inst: Inst) -> &mut [Allocation] {

Callers 5

nextMethod · 0.80
generate_movesMethod · 0.80
process_instMethod · 0.80
preprocess_blockMethod · 0.80
optimize_blockMethod · 0.80

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected