From bef87a990a5cefe70ec18424cc09dfb3278b6de0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 19 Feb 2004 18:28:22 +0000 Subject: [PATCH] ADd a method for when an instruction moves llvm-svn: 11626 --- llvm/include/llvm/CodeGen/LiveVariables.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/include/llvm/CodeGen/LiveVariables.h b/llvm/include/llvm/CodeGen/LiveVariables.h index 454205afbe1f..b0d11cc4d9a3 100644 --- a/llvm/include/llvm/CodeGen/LiveVariables.h +++ b/llvm/include/llvm/CodeGen/LiveVariables.h @@ -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.