[PATCH 2/3] Notify LiveRangeEdit of new virtual registers.

Mark Lacey mark.lacey at apple.com
Wed Aug 14 15:43:38 PDT 2013


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.
---
include/llvm/CodeGen/LiveRangeEdit.h       | 11 +++++++++--
include/llvm/CodeGen/MachineRegisterInfo.h | 27 +++++++++++++++++++++++++++
lib/CodeGen/LiveRangeEdit.cpp              | 13 +++++++++++--
lib/CodeGen/MachineRegisterInfo.cpp        |  4 +++-
4 files changed, 50 insertions(+), 5 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Notify-LiveRangeEdit-of-new-virtual-registers.patch
Type: text/x-patch
Size: 4922 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130814/3ec36048/attachment.bin>


More information about the llvm-commits mailing list