diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-12 18:11:31 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-12 18:11:31 +0000 |
commit | e1b43c3b4000ee7201fcac8d1c8e75bb9fb547e3 (patch) | |
tree | ca7bf450637f420c8732e308cb06e4516c18e8c1 /lib/CodeGen/SplitKit.h | |
parent | dfaf0e2c0ef01a6f6fd31f2e099ab63c5a7f7cc0 (diff) |
Add SplitKit API to query and select the current interval being worked on.
This makes it possible to target multiple registers in one pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r-- | lib/CodeGen/SplitKit.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h index f1ff501fbd..fab56f70d9 100644 --- a/lib/CodeGen/SplitKit.h +++ b/lib/CodeGen/SplitKit.h @@ -283,7 +283,15 @@ public: void reset(LiveRangeEdit&); /// Create a new virtual register and live interval. - void openIntv(); + /// Return the interval index, starting from 1. Interval index 0 is the + /// implicit complement interval. + unsigned openIntv(); + + /// currentIntv - Return the current interval index. + unsigned currentIntv() const { return OpenIdx; } + + /// selectIntv - Select a previously opened interval index. + void selectIntv(unsigned Idx); /// enterIntvBefore - Enter the open interval before the instruction at Idx. /// If the parent interval is not live before Idx, a COPY is not inserted. |