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)
commit534848b1c79088f23f034027e763cc3b3fb9eb7e
tree6edffaf55758e7aaa40693f85b4a4ad38235996a
parent50ecd0ff1698b862d8c71e9d92fe575dbd509d71
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().

llvm-svn: 156762
llvm/utils/TableGen/CodeGenRegisters.cpp
llvm/utils/TableGen/CodeGenRegisters.h