CodeGen: Add/Factor out LiveRegUnits class; NFCI
authorMatthias Braun <matze@braunis.de>
Thu, 18 Aug 2016 22:11:28 +0000 (22:11 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 18 Aug 2016 22:11:28 +0000 (22:11 +0000)
commit91f95f0201cf2e0b893a1e0e24b7ff6c575cb5f8
treefc60ff8e6f65a7e1f990217b1578592630fc1bb2
parenta1c76530d9f3b2f170fd5f29f37745c91c1247cf
CodeGen: Add/Factor out LiveRegUnits class; NFCI

This is a set of register units intended to track register liveness, it
is similar in spirit to LivePhysRegs.
You can also think of this as the liveness tracking parts of the
RegisterScavenger factored out into an own class.

This was proposed in http://llvm.org/PR27609

Differential Revision: http://reviews.llvm.org/D21916

llvm-svn: 279171
llvm/include/llvm/CodeGen/LiveRegUnits.h [new file with mode: 0644]
llvm/include/llvm/CodeGen/RegisterScavenging.h
llvm/lib/CodeGen/CMakeLists.txt
llvm/lib/CodeGen/LiveRegUnits.cpp [new file with mode: 0644]
llvm/lib/CodeGen/RegisterScavenging.cpp