The description of these in the MachineEnv is a bit lacking. Are the indices of each PReg in the vector, times the size of the PReg, the slot number? Any clarification on this would be great.
MachineEnv in regalloc2 - Rust (docs.rs)
Jim has marked this topic as resolved.
Jim has marked this topic as unresolved.
Ok figured that out, quick question though about the verbiage here:
Does this mean that registers marked as stack slots won't be used explicitly for allocations unless specified with an OperandConstraint::FixedReg()?
That's correct.
Last updated: Jan 10 2026 at 02:36 UTC