[llvm-commits] [patch] Refactor getCalleeSavedRegClasses and getCalleeSavedRegs
Jakob Stoklund Olesen
stoklund at 2pi.dk
Tue Jun 1 14:33:01 PDT 2010
On Jun 1, 2010, at 1:34 PM, Rafael Espindola wrote:
> Currently every target needs to implement both
> getCalleeSavedRegClasses and getCalleeSavedRegs. They must both return
> an array with corresponding elements. This is fairly brittle. The
> attached patch simplifies things by replacing getCalleeSavedRegClasses
> with a getCalleeSavedRegClass that returns the class for a single
Any chance you could use the existing getPhysicalRegisterRegClass hook instead?
I was actually hoping to get rid of that function, but in this case it seems legit. PEI needs spill size and alignment for the CSRs.
More information about the llvm-commits