RegisterPressure API. Add support for physical register units.
authorAndrew Trick <atrick@apple.com>
Wed, 5 Dec 2012 06:47:12 +0000 (06:47 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 5 Dec 2012 06:47:12 +0000 (06:47 +0000)
commit510e606e197c05b88bb19bd5865d9877a1178f4d
tree98324468b2d0fc3d01294e99136eb3ce09132438
parentd52ab339cbcef7fba1866cdacf020d21f68d334d
RegisterPressure API. Add support for physical register units.

At build-time register pressure was always computed in terms of
register units. But the compile-time API was expressed in terms of
register classes because it was intended for virtual registers (and
physical register units weren't yet used anywhere in codegen).

Now that the codegen uses physreg units consistently, prepare for
tracking register pressure also in terms of live units, not live
registers.

llvm-svn: 169360
llvm/include/llvm/Target/TargetRegisterInfo.h
llvm/utils/TableGen/CodeGenRegisters.cpp
llvm/utils/TableGen/CodeGenRegisters.h
llvm/utils/TableGen/RegisterInfoEmitter.cpp