summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SplitKit.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-01-12 17:53:44 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-01-12 17:53:44 +0000
commit994fed689f252ff096f838af1039a8c3c8afc48f (patch)
tree7af1ec131aec8474c8b34c797511110725c08c95 /llvm/lib/CodeGen/SplitKit.h
parent9ece950ddb1555a08bf8a0b6813ea330dbe6dae8 (diff)
downloadbcm5719-llvm-994fed689f252ff096f838af1039a8c3c8afc48f.tar.gz
bcm5719-llvm-994fed689f252ff096f838af1039a8c3c8afc48f.zip
Make SplitAnalysis::UseSlots private.
llvm-svn: 148031
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.h')
-rw-r--r--llvm/lib/CodeGen/SplitKit.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.h b/llvm/lib/CodeGen/SplitKit.h
index f1c6951ccd1..4005a3d5cbb 100644
--- a/llvm/lib/CodeGen/SplitKit.h
+++ b/llvm/lib/CodeGen/SplitKit.h
@@ -46,9 +46,6 @@ public:
const MachineLoopInfo &Loops;
const TargetInstrInfo &TII;
- // Sorted slot indexes of using instructions.
- SmallVector<SlotIndex, 8> UseSlots;
-
/// Additional information about basic blocks where the current variable is
/// live. Such a block will look like one of these templates:
///
@@ -85,6 +82,9 @@ private:
// Current live interval.
const LiveInterval *CurLI;
+ // Sorted slot indexes of using instructions.
+ SmallVector<SlotIndex, 8> UseSlots;
+
/// LastSplitPoint - Last legal split point in each basic block in the current
/// function. The first entry is the first terminator, the second entry is the
/// last valid split point for a variable that is live in to a landing pad
@@ -155,6 +155,10 @@ public:
/// splitting.
bool isOriginalEndpoint(SlotIndex Idx) const;
+ /// getUseSlots - Return an array of SlotIndexes of instructions using CurLI.
+ /// This include both use and def operands, at most one entry per instruction.
+ ArrayRef<SlotIndex> getUseSlots() const { return UseSlots; }
+
/// getUseBlocks - Return an array of BlockInfo objects for the basic blocks
/// where CurLI has uses.
ArrayRef<BlockInfo> getUseBlocks() const { return UseBlocks; }
OpenPOWER on IntegriCloud