summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SplitKit.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-09-13 23:29:11 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-09-13 23:29:11 +0000
commitdd9f3fdc77b77b10710c27050d508d7c7fb40c25 (patch)
treed1e3df21b188c80e0d3a1d8b1169a17e277c3461 /lib/CodeGen/SplitKit.h
parent9ca2aeb2d223d11fd01b0bb8f13fe7f3a969714d (diff)
downloadllvm-dd9f3fdc77b77b10710c27050d508d7c7fb40c25.tar.gz
llvm-dd9f3fdc77b77b10710c27050d508d7c7fb40c25.tar.bz2
llvm-dd9f3fdc77b77b10710c27050d508d7c7fb40c25.tar.xz
Mechanically replace LiveInterval* with LiveIntervalMap for intervals being
edited without actually using LiveIntervalMap functionality. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r--lib/CodeGen/SplitKit.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h
index b80443ee4b..6e534546f1 100644
--- a/lib/CodeGen/SplitKit.h
+++ b/lib/CodeGen/SplitKit.h
@@ -227,10 +227,10 @@ class SplitEditor {
/// dupli_ - Created as a copy of curli_, ranges are carved out as new
/// intervals get added through openIntv / closeIntv. This is used to avoid
/// editing curli_.
- LiveInterval *dupli_;
+ LiveIntervalMap dupli_;
/// Currently open LiveInterval.
- LiveInterval *openli_;
+ LiveIntervalMap openli_;
/// createInterval - Create a new virtual register and LiveInterval with same
/// register class and spill slot as curli.
@@ -303,7 +303,9 @@ public:
/// rewrite - after all the new live ranges have been created, rewrite
/// instructions using curli to use the new intervals.
- void rewrite();
+ /// Return true if curli has been completely replaced, false if curli is still
+ /// intact, and needs to be spilled or split further.
+ bool rewrite();
// ===--- High level methods ---===