aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-21 23:15:12 +0000
committerChris Lattner <sabre@nondot.org>2006-08-21 23:15:12 +0000
commit0c2f83e756ad808aedf6cb39ea043d3d4cd79909 (patch)
tree335ac063d9a24e57440e98e590090fd703d56a00 /include/llvm
parent8222b2de224647e4ca8ac36adff87b2c93daf7cc (diff)
downloadexternal_llvm-0c2f83e756ad808aedf6cb39ea043d3d4cd79909.zip
external_llvm-0c2f83e756ad808aedf6cb39ea043d3d4cd79909.tar.gz
external_llvm-0c2f83e756ad808aedf6cb39ea043d3d4cd79909.tar.bz2
move LiveInterval state all together
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/CodeGen/LiveInterval.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index f4f2b47..fc216b5 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/CodeGen/LiveInterval.h
@@ -76,6 +76,9 @@ namespace llvm {
unsigned reg; // the register of this interval
float weight; // weight of this interval
Ranges ranges; // the ranges in which this register is live
+ private:
+ unsigned NumValues; // the number of distinct values in this interval.
+ public:
LiveInterval(unsigned Reg, float Weight)
: reg(Reg), weight(Weight), NumValues(0) {
@@ -189,7 +192,6 @@ namespace llvm {
void dump() const;
private:
- unsigned NumValues; // the number of distinct values in this interval.
Ranges::iterator addRangeFrom(LiveRange LR, Ranges::iterator From);
void extendIntervalEndTo(Ranges::iterator I, unsigned NewEnd);
Ranges::iterator extendIntervalStartTo(Ranges::iterator I, unsigned NewStr);