diff options
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r-- | lib/CodeGen/SplitKit.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h index 8d794e5f4d..80fc23642a 100644 --- a/lib/CodeGen/SplitKit.h +++ b/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); |