diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-05-16 13:39:02 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-05-16 13:39:02 +0000 |
commit | 5a2afad335ff76ca9f2a0a4bb2a62e10763586d1 (patch) | |
tree | 92e822f8458e0cb05a2c853782dd73ba257f07bb /lib/Target | |
parent | d37635d2f20b03e09ed121be35e39958bc51ec15 (diff) | |
download | external_llvm-5a2afad335ff76ca9f2a0a4bb2a62e10763586d1.zip external_llvm-5a2afad335ff76ca9f2a0a4bb2a62e10763586d1.tar.gz external_llvm-5a2afad335ff76ca9f2a0a4bb2a62e10763586d1.tar.bz2 |
[SystemZ] Tweak register array comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182007 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.h b/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.h index 1f70047..3c9f0cb 100644 --- a/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.h +++ b/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.h @@ -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]; |