MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / constraint

Method constraint

src/function.rs:487–495  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
498impl fmt::Debug for Operand {

Callers 15

coalesce_in_blockMethod · 0.80
find_reused_valuesMethod · 0.80
process_operandMethod · 0.80
def_value_groupMethod · 0.80
indirect_remat_inputsMethod · 0.80
optimize_blockMethod · 0.80
check_constraintMethod · 0.80
check_instMethod · 0.80
check_valueMethod · 0.80
check_remat_inputMethod · 0.80
check_operandMethod · 0.80
check_constraintMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected