Add the ability to register callbacks for removal and insertion of MachineInstrs
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Thu, 20 Sep 2018 23:01:56 +0000 (23:01 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Thu, 20 Sep 2018 23:01:56 +0000 (23:01 +0000)
commite5909431b5f3479dd713c7fe4919a028499dd709
treef5f3097526c9958e916be55e0ba6370b6a3b8239
parent180cd0717fc7eac37d7f65d351f69747bd67ab2b
Add the ability to register callbacks for removal and insertion of MachineInstrs

https://reviews.llvm.org/D52127

This patch adds the ability to watch for insertions/deletions of
MachineInstructions similar to MachineRegisterInfo.

llvm-svn: 342696
llvm/include/llvm/CodeGen/MachineFunction.h
llvm/lib/CodeGen/MachineBasicBlock.cpp
llvm/lib/CodeGen/MachineFunction.cpp