From 59bfff25cbacd39466e0fb533218b2e631b1f124 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 25 Sep 2002 19:10:06 +0000 Subject: [PATCH] Checkin stub for Misha to implement llvm-svn: 3919 --- include/llvm/Analysis/LoopInfo.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index 73f9719c205..65e11a5636c 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -40,6 +40,10 @@ public: inline const std::vector &getSubLoops() const { return SubLoops; } inline const std::vector &getBlocks() const { return Blocks; } + // isLoopExit - True if terminator in the block can branch to another block + // that is outside of the current loop. + bool isLoopExit(BasicBlock *BB) const; + void print(std::ostream &O) const; private: friend class LoopInfo; @@ -96,8 +100,6 @@ public: } // isLoopEnd - True if block jumps to loop entry bool isLoopEnd(BasicBlock *BB) const; - // isLoopExit - True if block is the loop exit - bool isLoopExit(BasicBlock *BB) const; #endif // runOnFunction - Pass framework implementation