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

Class AllocationUnit

src/allocation_unit.rs:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9/// Entity type which can represent either a [`RegUnit`] or a [`SpillSlot`].
10#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
11pub(crate) struct AllocationUnit {
12 /// Indices below `MAX_REG_UNITS` indicate a `RegUnit`. Otherwise
13 /// this indicates a `SpillSlot` with index `index - MAX_REG_UNITS`.
14 index: u32,
15}
16
17impl EntityRef for AllocationUnit {
18 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected