Notify LiveRangeEdit of new virtual registers.
authorMark Lacey <mark.lacey@apple.com>
Wed, 14 Aug 2013 23:50:09 +0000 (23:50 +0000)
committerMark Lacey <mark.lacey@apple.com>
Wed, 14 Aug 2013 23:50:09 +0000 (23:50 +0000)
commit03fe68e0a9c0fdd196f62899cb44b6f9a56dd7c8
treead445ad6a2275fcdaf877e9a5f3f16e972d330b7
parent1feb5854aeeda897e9318c8193d187673c8576b8
Notify LiveRangeEdit of new virtual registers.

Add a delegate class to MachineRegisterInfo with a single virtual
function, MRI_NoteNewVirtualRegister(). Update LiveRangeEdit to inherit
from this delegate class and override the definition of the callback
with an implementation that tracks the newly created virtual registers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188435 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveRangeEdit.h
include/llvm/CodeGen/MachineRegisterInfo.h
lib/CodeGen/LiveRangeEdit.cpp
lib/CodeGen/MachineRegisterInfo.cpp