(self)
| 73 | #[inline] |
| 74 | #[must_use] |
| 75 | pub fn kind(self) -> AllocationUnitKind { |
| 76 | if self.index() < MAX_REG_UNITS { |
| 77 | AllocationUnitKind::Reg(RegUnit::new(self.index())) |
| 78 | } else { |
| 79 | AllocationUnitKind::SpillSlot(SpillSlot::new(self.index() - MAX_REG_UNITS)) |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | /// Expanded form of `AllocationUnit` as an enum. |