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 | 532de3dc6ea98387368954c0ac0e07b0adca8b62 (patch) | |
tree | 64ec184f1945dae1731eacf022297a1aac894d9f /lib/CodeGen/SplitKit.h | |
parent | 9b264972734a96b7956d3ff7ad6d7b5dcf5baf39 (diff) | |
download | llvm-532de3dc6ea98387368954c0ac0e07b0adca8b62.tar.gz llvm-532de3dc6ea98387368954c0ac0e07b0adca8b62.tar.bz2 llvm-532de3dc6ea98387368954c0ac0e07b0adca8b62.tar.xz |
Add print methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117143 91177308-0d34-0410-b5e6-96231b3b80d8
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); |