(self)
| 130 | #[inline] |
| 131 | #[must_use] |
| 132 | pub fn kind(self) -> AllocationKind { |
| 133 | match self.bits >> 31 { |
| 134 | 0 => AllocationKind::SpillSlot(SpillSlot::new(self.bits as usize)), |
| 135 | 1 => AllocationKind::PhysReg(PhysReg::new(self.bits as usize & !(1 << 31))), |
| 136 | _ => unreachable!(), |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | /// Returns whethere this allocation represents a memory location rather |
| 141 | /// than a register. |
no outgoing calls
no test coverage detected