summaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/LoopInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Analysis/LoopInfo.h')
-rw-r--r--include/llvm/Analysis/LoopInfo.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h
index 6c531ac..dd70295 100644
--- a/include/llvm/Analysis/LoopInfo.h
+++ b/include/llvm/Analysis/LoopInfo.h
@@ -44,7 +44,10 @@ public:
/// isLoopExit - True if terminator in the block can branch to another block
/// that is outside of the current loop.
- bool isLoopExit(BasicBlock *BB) const;
+ bool isLoopExit(const BasicBlock *BB) const;
+
+ /// Find number of back edges
+ unsigned getNumBackEdges() const;
/// getLoopPreheader - If there is a preheader for this loop, return it. A
/// loop has a preheader if there is only one edge to the header of the loop