(self)
| 485 | #[inline] |
| 486 | #[must_use] |
| 487 | pub fn constraint(self) -> OperandConstraint { |
| 488 | let index = self.constraint as usize & (MAX_PHYSREGS - 1); |
| 489 | match self.constraint >> 14 { |
| 490 | 0 => OperandConstraint::Class(RegClass::new(index)), |
| 491 | 1 => OperandConstraint::Fixed(PhysReg::new(index)), |
| 492 | 2 => OperandConstraint::Reuse(index), |
| 493 | _ => unreachable!(), |
| 494 | } |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | impl fmt::Debug for Operand { |
no outgoing calls
no test coverage detected