diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-22 20:28:21 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-22 20:28:21 +0000 |
commit | 9a743016216f3e5c9f48a9372f1d06d0b5b7ff48 (patch) | |
tree | 035e354d1529a6c17fb0a8747d0894bd552d9596 /llvm/lib/CodeGen/SplitKit.h | |
parent | d9bebeb2be58ce1c363d5f38179cd15d6ff1fa06 (diff) | |
download | bcm5719-llvm-9a743016216f3e5c9f48a9372f1d06d0b5b7ff48.tar.gz bcm5719-llvm-9a743016216f3e5c9f48a9372f1d06d0b5b7ff48.zip |
Add print methods
llvm-svn: 117143
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.h')
-rw-r--r-- | llvm/lib/CodeGen/SplitKit.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.h b/llvm/lib/CodeGen/SplitKit.h index 8d794e5f4d8..80fc23642a8 100644 --- a/llvm/lib/CodeGen/SplitKit.h +++ b/llvm/lib/CodeGen/SplitKit.h @@ -28,6 +28,7 @@ class MachineRegisterInfo; class TargetInstrInfo; class VirtRegMap; class VNInfo; +class raw_ostream; /// SplitAnalysis - Analyze a LiveInterval, looking for live range splitting /// opportunities. @@ -76,6 +77,9 @@ public: typedef SmallPtrSet<const MachineBasicBlock*, 16> BlockPtrSet; typedef SmallPtrSet<const MachineLoop*, 16> LoopPtrSet; + // Print a set of blocks with use counts. + void print(const BlockPtrSet&, raw_ostream&) const; + // Sets of basic blocks surrounding a machine loop. struct LoopBlocks { BlockPtrSet Loop; // Blocks in the loop. @@ -89,6 +93,9 @@ public: } }; + // Print loop blocks with use counts. + void print(const LoopBlocks&, raw_ostream&) const; + // Calculate the block sets surrounding the loop. void getLoopBlocks(const MachineLoop *Loop, LoopBlocks &Blocks); |