Create a struct representing register units in TableGen.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 15 May 2012 00:50:23 +0000 (00:50 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 15 May 2012 00:50:23 +0000 (00:50 +0000)
commit40c6fb397d1e485aef8b4e1729ba9804784990c1
tree31309c668534c1a4fe76f47f5db523dbb1b257d3
parentecb3f43d644962d904bac16e25af07aa9156e56e
Create a struct representing register units in TableGen.

Besides the weight, we also want to store up to two root registers per
unit. Most units will have a single root, the leaf register they
represent. Units created for ad hoc aliasing get two roots: The two
aliasing registers.

The root registers can be used to compute the set of overlapping
registers.

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