OSDN Git Service

Record the ad hoc aliasing graph in CodeGenRegister.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 14 May 2012 15:12:37 +0000 (15:12 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 14 May 2012 15:12:37 +0000 (15:12 +0000)
commit31d938a6b1173c642f975d78417459d4d8cd3677
tree18f62b5d9a05732c5bd7870325f3c75c6ca8ffba
parentb81cbc271faed9fa633920436cd7ae49750a9a42
Record the ad hoc aliasing graph in CodeGenRegister.

The ad hoc aliasing specified in the 'Aliases' list in .td files is
currently only used by computeOverlaps(). It will soon be needed to
build accurate register units as well, so build the undirected graph in
CodeGenRegister::buildObjectGraph() instead.

Aliasing is a symmetric relationship with only one direction specified
in the .td files. Make sure both directions are represented in
getExplicitAliases().

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