diff options
author | Lang Hames <lhames@gmail.com> | 2009-11-14 00:02:51 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2009-11-14 00:02:51 +0000 |
commit | b3661585c0f87b6045f0d65b5cac16921ae27086 (patch) | |
tree | 47bf8c7aeb54636b8cfaf996a1ac5110efdc511e /include/llvm/CodeGen/LiveIntervalAnalysis.h | |
parent | 1f6a3c820a997fd3c4c08dedff6706f5e045e42d (diff) | |
download | external_llvm-b3661585c0f87b6045f0d65b5cac16921ae27086.zip external_llvm-b3661585c0f87b6045f0d65b5cac16921ae27086.tar.gz external_llvm-b3661585c0f87b6045f0d65b5cac16921ae27086.tar.bz2 |
Added an API to the SlotIndexes pass to allow new instructions to be inserted into the numbering.
PreAllocSplitting is now using this API to insert code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88725 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveIntervalAnalysis.h')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index d71f960..cf768c3 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -189,20 +189,8 @@ namespace llvm { return indexes_->getMBBFromIndex(index); } - bool hasGapBeforeInstr(SlotIndex index) { - return indexes_->hasGapBeforeInstr(index); - } - - bool hasGapAfterInstr(SlotIndex index) { - return indexes_->hasGapAfterInstr(index); - } - - SlotIndex findGapBeforeInstr(SlotIndex index, bool furthest = false) { - return indexes_->findGapBeforeInstr(index, furthest); - } - - void InsertMachineInstrInMaps(MachineInstr *MI, SlotIndex Index) { - indexes_->insertMachineInstrInMaps(MI, Index); + SlotIndex InsertMachineInstrInMaps(MachineInstr *MI) { + return indexes_->insertMachineInstrInMaps(MI); } void RemoveMachineInstrFromMaps(MachineInstr *MI) { @@ -219,7 +207,7 @@ namespace llvm { } void renumber() { - indexes_->renumber(); + indexes_->renumberIndexes(); } BumpPtrAllocator& getVNInfoAllocator() { return VNInfoAllocator; } |