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

Method kind

src/output.rs:132–138  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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.

Callers 15

fmtMethod · 0.45
is_memoryMethod · 0.45
unevict_for_regMethod · 0.45
divertMethod · 0.45
undivertMethod · 0.45
do_moveMethod · 0.45
add_rematMethod · 0.45
add_moveMethod · 0.45
resolveMethod · 0.45
generate_movesMethod · 0.45
process_instMethod · 0.45
mark_spillslotMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected