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

Class Allocations

src/internal/allocations.rs:13–23  ·  view source on GitHub ↗

Mapping of [`Allocation`]s back to original instruction operands.

Source from the content-addressed store, hash-verified

11
12/// Mapping of [`Allocation`]s back to original instruction operands.
13pub struct Allocations {
14 /// Allocations for the operands of all instructions in the function.
15 allocations: Vec<Allocation>,
16
17 /// Offset of the allocations for a particular instruction in the
18 /// `allocations` vector.
19 operands_offset: Vec<u32>,
20
21 /// Allocations for synthetic indirect-rematerialization input operands.
22 pub remat_inputs: CompactListPool<Allocation>,
23}
24
25impl Allocations {
26 pub fn new() -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected