| 9 | /// Entity type which can represent either a [`RegUnit`] or a [`SpillSlot`]. |
| 10 | #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] |
| 11 | pub(crate) struct AllocationUnit { |
| 12 | /// Indices below `MAX_REG_UNITS` indicate a `RegUnit`. Otherwise |
| 13 | /// this indicates a `SpillSlot` with index `index - MAX_REG_UNITS`. |
| 14 | index: u32, |
| 15 | } |
| 16 | |
| 17 | impl EntityRef for AllocationUnit { |
| 18 | #[inline] |
nothing calls this directly
no outgoing calls
no test coverage detected