summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-20 21:46:58 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-20 21:46:58 +0000
commited4075cc3b01a68753d15bd2310013b81e5c8b51 (patch)
tree804f85248fda6fd45c315ef0dd19d95320f746e0 /llvm/include
parentf9e6cc9af19e2b01f8530b0ac4c6b4c59729f686 (diff)
downloadbcm5719-llvm-ed4075cc3b01a68753d15bd2310013b81e5c8b51.tar.gz
bcm5719-llvm-ed4075cc3b01a68753d15bd2310013b81e5c8b51.zip
Implement loop splitting analysis.
Determine which loop exit blocks need a 'pre-exit' block inserted. Recognize when this would be impossible. llvm-svn: 108941
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Analysis/LoopInfo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/LoopInfo.h b/llvm/include/llvm/Analysis/LoopInfo.h
index b101f324429..5dfdc25dd88 100644
--- a/llvm/include/llvm/Analysis/LoopInfo.h
+++ b/llvm/include/llvm/Analysis/LoopInfo.h
@@ -509,6 +509,12 @@ protected:
}
};
+template<class BlockT, class LoopT>
+raw_ostream& operator<<(raw_ostream &OS, const LoopBase<BlockT, LoopT> &Loop) {
+ Loop.print(OS);
+ return OS;
+}
+
class Loop : public LoopBase<BasicBlock, Loop> {
public:
Loop() {}
OpenPOWER on IntegriCloud