ADd a method for when an instruction moves
authorChris Lattner <sabre@nondot.org>
Thu, 19 Feb 2004 18:28:22 +0000 (18:28 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 19 Feb 2004 18:28:22 +0000 (18:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11626 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/LiveVariables.h

index 454205afbe1ff27f071df8b0a12cfd8abf7ad326..b0d11cc4d9a375f6a9267f46e8c8ce81c23cd5d5 100644 (file)
@@ -167,6 +167,12 @@ public:
   //===--------------------------------------------------------------------===//
   //  API to update live variable information
 
+  /// instructionChanged - When the address of an instruction changes, this
+  /// method should be called so that live variables can update its internal
+  /// data structures.  This removes the records for OldMI, transfering them to
+  /// the records for NewMI.
+  void instructionChanged(MachineInstr *OldMI, MachineInstr *NewMI);
+
   /// addVirtualRegisterKilled - Add information about the fact that the
   /// specified register is killed after being used by the specified
   /// instruction.