diff options
| author | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2002-01-07 21:03:42 +0000 |
|---|---|---|
| committer | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2002-01-07 21:03:42 +0000 |
| commit | f4c2dddcda644cf4aca9d2827772e4b9e6607034 (patch) | |
| tree | 1237d4ef1eb77f9514886650d0f3015ce6a13bff /llvm/lib/Target/Sparc/SparcRegClassInfo.h | |
| parent | c07341f999313c31e68f2828a4bd4d2a5bdae33e (diff) | |
| download | bcm5719-llvm-f4c2dddcda644cf4aca9d2827772e4b9e6607034.tar.gz bcm5719-llvm-f4c2dddcda644cf4aca9d2827772e4b9e6607034.zip | |
Added more comments
llvm-svn: 1498
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcRegClassInfo.h')
| -rw-r--r-- | llvm/lib/Target/Sparc/SparcRegClassInfo.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/llvm/lib/Target/Sparc/SparcRegClassInfo.h b/llvm/lib/Target/Sparc/SparcRegClassInfo.h index fd768157500..0a5f5169d16 100644 --- a/llvm/lib/Target/Sparc/SparcRegClassInfo.h +++ b/llvm/lib/Target/Sparc/SparcRegClassInfo.h @@ -15,7 +15,6 @@ // Integer Register Class //----------------------------------------------------------------------------- - // Int register names in same order as enum in class SparcIntRegOrder static string const IntRegNames[] = @@ -38,7 +37,7 @@ class SparcIntRegOrder{ // --- following colors are volatile across function calls // %g0 can't be used for coloring - always 0 - //%g1-%g5 (g6-7 are reserved for system) + o0, o1, o2, o3, o4, o5, o7, // %o0-%o5, // %o6 is sp, @@ -59,9 +58,12 @@ class SparcIntRegOrder{ i6, i7, g0, g1, g2, g3, g4, g5, g6, g7, o6 - //*** NOTE: If we decide to use globals, some of them are volatile - //**** see sparc64ABI (change isRegVloatile method below) - + //*** NOTE: If we decide to use some %g regs, they are volatile + // (see sparc64ABI) + // Move the %g regs from the end of the enumeration to just above the + // enumeration of %o0 (change StartOfAllRegs below) + // change isRegVloatile method below + // Also change IntRegNames above. }; @@ -110,6 +112,9 @@ class SparcIntRegClass : public MachineRegClassInfo }; + + + //----------------------------------------------------------------------------- // Float Register Class //----------------------------------------------------------------------------- @@ -158,7 +163,6 @@ class SparcFloatRegOrder{ } - }; @@ -219,10 +223,6 @@ class SparcIntCCRegOrder{ return IntCCRegNames[reg]; } - // according to Sparc 64 ABI, %ccr is volatile - inline bool isRegVolatile(const int Reg) const { return true; } - - }; @@ -238,13 +238,15 @@ public: Node->setColor(0); // only one int cc reg is available } - + // according to Sparc 64 ABI, %ccr is volatile + // inline bool isRegVolatile(const int Reg) const { return true; } }; + //----------------------------------------------------------------------------- // Float CC Register Class // Only 4 Float CC registers are available @@ -271,10 +273,6 @@ class SparcFloatCCRegOrder{ return FloatCCRegNames[reg]; } - // according to Sparc 64 ABI, all %fp regs are volatile - inline bool isRegVolatile(const int Reg) const { return true; } - - }; @@ -293,7 +291,9 @@ public: Node->setColor(c); } - // *** TODO: Check this + + // according to Sparc 64 ABI, all %fp CC regs are volatile + // inline bool isRegVolatile(const int Reg) const { return true; } |

