[llvm-commits] [patch] Refactor getCalleeSavedRegClasses and getCalleeSavedRegs

Rafael Espindola espindola at google.com
Tue Jun 1 18:29:21 PDT 2010

> Any chance you could use the existing getPhysicalRegisterRegClass hook instead?

Not sure if that would work. The comments say

  // Pick the most super register class of the right type that contains
  // this physreg.

So for ARM thumb1 this would return GPR and not tGPR for R4, right?

> 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.
> /jakob

Rafael Ávila de Espíndola

More information about the llvm-commits mailing list