[SystemZ] Tweak register array comment
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Thu, 16 May 2013 13:39:02 +0000 (13:39 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Thu, 16 May 2013 13:39:02 +0000 (13:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182007 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.h

index 1f70047db6bee0db13603f90643867fed805408a..3c9f0cb9db01bd72405d836ac6ab11a74de6f0f1 100644 (file)
@@ -36,8 +36,11 @@ namespace SystemZMC {
   const int64_t CFAOffsetFromInitialSP = CallFrameSize;
 
   // Maps of asm register numbers to LLVM register numbers, with 0 indicating
-  // an invalid register.  We don't use the register classes directly because
-  // they specify the allocation order.
+  // an invalid register.  In principle we could use 32-bit and 64-bit register
+  // classes directly, provided that we relegated the GPR allocation order
+  // in SystemZRegisterInfo.td to an AltOrder and left the default order
+  // as %r0-%r15.  It seems better to provide the same interface for
+  // all classes though.
   extern const unsigned GR32Regs[16];
   extern const unsigned GR64Regs[16];
   extern const unsigned GR128Regs[16];