summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LiveVariables.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-19 18:28:22 +0000
committerChris Lattner <sabre@nondot.org>2004-02-19 18:28:22 +0000
commitda8ab2ea451676f7093dc272aaaedf113b58f6f9 (patch)
tree19dfb45997be0df1a08181eb77055614d0146b3f /include/llvm/CodeGen/LiveVariables.h
parent5ed001b6afe2225343ec79f58645a9aaf35c1fd2 (diff)
downloadllvm-da8ab2ea451676f7093dc272aaaedf113b58f6f9.tar.gz
llvm-da8ab2ea451676f7093dc272aaaedf113b58f6f9.tar.bz2
llvm-da8ab2ea451676f7093dc272aaaedf113b58f6f9.tar.xz
ADd a method for when an instruction moves
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11626 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveVariables.h')
-rw-r--r--include/llvm/CodeGen/LiveVariables.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveVariables.h b/include/llvm/CodeGen/LiveVariables.h
index 454205afbe..b0d11cc4d9 100644
--- a/include/llvm/CodeGen/LiveVariables.h
+++ b/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.