Mapping of [`Allocation`]s back to original instruction operands.
| 11 | |
| 12 | /// Mapping of [`Allocation`]s back to original instruction operands. |
| 13 | pub 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 | |
| 25 | impl Allocations { |
| 26 | pub fn new() -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected