diff options
author | Lang Hames <lhames@gmail.com> | 2009-09-09 20:14:17 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2009-09-09 20:14:17 +0000 |
commit | 9647994e097840d8ea7bd3ed7014934034f38763 (patch) | |
tree | b7dfc05f65670e15c3d1191117a3a91f20c0a8c3 /include | |
parent | eadcdc564daff05889a0ab21c7b80b2c49ae0567 (diff) | |
download | llvm-9647994e097840d8ea7bd3ed7014934034f38763.tar.gz llvm-9647994e097840d8ea7bd3ed7014934034f38763.tar.bz2 llvm-9647994e097840d8ea7bd3ed7014934034f38763.tar.xz |
Removed static qualifier from a few index related methods. These methods may require a LiveIntervals instance in future.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index dbeedcf2ee..3ab73f8496 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -104,26 +104,28 @@ namespace llvm { static char ID; // Pass identification, replacement for typeid LiveIntervals() : MachineFunctionPass(&ID) {} - static MachineInstrIndex getBaseIndex(MachineInstrIndex index) { + MachineInstrIndex getBaseIndex(MachineInstrIndex index) { return MachineInstrIndex(index, MachineInstrIndex::LOAD); } - static MachineInstrIndex getBoundaryIndex(MachineInstrIndex index) { + MachineInstrIndex getBoundaryIndex(MachineInstrIndex index) { return MachineInstrIndex(index, (MachineInstrIndex::Slot)(MachineInstrIndex::NUM - 1)); } - static MachineInstrIndex getLoadIndex(MachineInstrIndex index) { + MachineInstrIndex getLoadIndex(MachineInstrIndex index) { return MachineInstrIndex(index, MachineInstrIndex::LOAD); } - static MachineInstrIndex getUseIndex(MachineInstrIndex index) { + MachineInstrIndex getUseIndex(MachineInstrIndex index) { return MachineInstrIndex(index, MachineInstrIndex::USE); } - static MachineInstrIndex getDefIndex(MachineInstrIndex index) { + MachineInstrIndex getDefIndex(MachineInstrIndex index) { return MachineInstrIndex(index, MachineInstrIndex::DEF); } - static MachineInstrIndex getStoreIndex(MachineInstrIndex index) { + MachineInstrIndex getStoreIndex(MachineInstrIndex index) { return MachineInstrIndex(index, MachineInstrIndex::STORE); } + + MachineInstrIndex getNextSlot(MachineInstrIndex m) const { return m.nextSlot(); } |