mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 00:20:11 +00:00
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
This commit is contained in:
@@ -557,7 +557,7 @@ VNInfo *SplitEditor::defFromParent(unsigned RegIdx,
|
||||
}
|
||||
|
||||
/// Create a new virtual register and live interval.
|
||||
void SplitEditor::openIntv() {
|
||||
unsigned SplitEditor::openIntv() {
|
||||
assert(!OpenIdx && "Previous LI not closed before openIntv");
|
||||
|
||||
// Create the complement as index 0.
|
||||
@@ -567,6 +567,13 @@ void SplitEditor::openIntv() {
|
||||
// Create the open interval.
|
||||
OpenIdx = Edit->size();
|
||||
Edit->create(LIS, VRM);
|
||||
return OpenIdx;
|
||||
}
|
||||
|
||||
void SplitEditor::selectIntv(unsigned Idx) {
|
||||
assert(Idx != 0 && "Cannot select the complement interval");
|
||||
assert(Idx < Edit->size() && "Can only select previously opened interval");
|
||||
OpenIdx = Idx;
|
||||
}
|
||||
|
||||
SlotIndex SplitEditor::enterIntvBefore(SlotIndex Idx) {
|
||||
|
||||
Reference in New Issue
Block a user