When a register like R1 is reserved, X1 should be reserved as well. This
was already done "manually" when 64bit code was enabled, however using
the markSuperRegs() function on the base register is more convenient and
allows to use the checksAllSuperRegsMarked() function even in 32bit mode
to avoid accidental breakage in the future. markSuperRegs() is used even
on registers without superregs for consistency.
And more importantly for me: It allows me to make progress in
https://reviews.llvm.org/D28881
I think it would be nice to have a function to do this just like there's a function to do the reverse. Maybe unmarkSuperRegs()? That way we can accomplish both setting the bits and resetting them for all the super registers with just a single call.
Is there a specific reason such a function was not added when markSuperRegs() was added?