Specify SubRegIndex components on the index itself.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 1 Feb 2012 23:16:41 +0000 (23:16 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 1 Feb 2012 23:16:41 +0000 (23:16 +0000)
commitb5af2d943ed568f2f4cac545b6dfb150ae9d73aa
tree13a247848babe11f9910bf5aaf5644677723ac60
parentebf8c27caea0a1c55df649c78ced28d9fa78093e
Specify SubRegIndex components on the index itself.

It is simpler to define a composite index directly:

  def ssub_2 : SubRegIndex<[dsub_1, ssub_0]>;
  def ssub_3 : SubRegIndex<[dsub_1, ssub_1]>;

Than specifying the composite indices on each register:

  CompositeIndices = [(ssub_2 dsub_1, ssub_0),
                      (ssub_3 dsub_1, ssub_1)] in ...

This also makes it clear that SubRegIndex composition is supposed to be
unique.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149556 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/Target.td
utils/TableGen/CodeGenRegisters.cpp
utils/TableGen/CodeGenRegisters.h