Use set operations instead of plain lists to enumerate register classes.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 15 Jun 2011 23:28:14 +0000 (23:28 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 15 Jun 2011 23:28:14 +0000 (23:28 +0000)
commitf28987b76e758b5f2fcc2c5d2c8e073df54ca91e
tree8f60dc5b88bbfc1192d2a780d9a5ee6702535e5f
parentf14bacc862eb69c7c779858746cc020386ce5590
Use set operations instead of plain lists to enumerate register classes.

This simplifies many of the target description files since it is common
for register classes to be related or contain sequences of numbered
registers.

I have verified that this doesn't change the files generated by TableGen
for ARM and X86. It alters the allocation order of MBlaze GPR and Mips
FGR32 registers, but I believe the change is benign.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133105 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
docs/WritingAnLLVMBackend.html
include/llvm/Target/Target.td
lib/Target/ARM/ARMRegisterInfo.td
lib/Target/Alpha/AlphaRegisterInfo.td
lib/Target/Blackfin/BlackfinRegisterInfo.td
lib/Target/CellSPU/SPURegisterInfo.td
lib/Target/MBlaze/MBlazeRegisterInfo.td
lib/Target/MSP430/MSP430RegisterInfo.td
lib/Target/Mips/MipsRegisterInfo.td
lib/Target/PTX/PTXRegisterInfo.td
lib/Target/PowerPC/PPCRegisterInfo.td
lib/Target/Sparc/SparcRegisterInfo.td
lib/Target/SystemZ/SystemZRegisterInfo.td
lib/Target/X86/X86RegisterInfo.td
lib/Target/XCore/XCoreRegisterInfo.td