summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LiveVariables.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-17 09:29:54 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-17 09:29:54 +0000
commitc6a2410d58916b8a8a1b26f2448b903d12e77f2f (patch)
tree2d0e6142d79d7b8826291d2fe4c82001ffd74e24 /include/llvm/CodeGen/LiveVariables.h
parentba1a3df608a14ca37ca944f4c942c202e919ea80 (diff)
downloadllvm-c6a2410d58916b8a8a1b26f2448b903d12e77f2f.tar.gz
llvm-c6a2410d58916b8a8a1b26f2448b903d12e77f2f.tar.bz2
llvm-c6a2410d58916b8a8a1b26f2448b903d12e77f2f.tar.xz
Track the BB's where each virtual register is used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35135 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 786a1fdc70..d98ad34735 100644
--- a/include/llvm/CodeGen/LiveVariables.h
+++ b/include/llvm/CodeGen/LiveVariables.h
@@ -79,6 +79,10 @@ public:
///
BitVector AliveBlocks;
+ /// UsedBlocks - Set of blocks of which this value is actually used. This
+ /// is a bit set which uses the basic block number as an index.
+ BitVector UsedBlocks;
+
/// Kills - List of MachineInstruction's which are the last use of this
/// virtual register (kill it) in their basic block.
///
@@ -116,6 +120,8 @@ private:
BitVector ReservedRegisters;
private: // Intermediate data structures
+ MachineFunction *MF;
+
const MRegisterInfo *RegInfo;
MachineInstr **PhysRegInfo;