Precompute lists of explicit sub-registers and indices.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 10 May 2012 17:46:18 +0000 (17:46 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 10 May 2012 17:46:18 +0000 (17:46 +0000)
commit148f392195dec8772ab4c5ac0d0c3b85fba0e5f8
treef2abe2f4f6fb188b88383b2c2e3eb910ed1214da
parentac84461e5ab64bf534a8cf11fa833b5f3569c101
Precompute lists of explicit sub-registers and indices.

The .td files specify a tree of sub-registers. Store that tree as
ExplicitSubRegs lists in CodeGenRegister instead of extracting it from
the Record when needed.

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