aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2002-10-11 05:31:10 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2002-10-11 05:31:10 +0000
commit6b290a54409f6bb6a0cc1c0446cd2b170a4b7add (patch)
treece542321b04185827bbf9e68fbfd536a5a37a742 /include/llvm/Analysis
parentf77b57097d00b301c164e10a034860fdbbcbe932 (diff)
downloadexternal_llvm-6b290a54409f6bb6a0cc1c0446cd2b170a4b7add.zip
external_llvm-6b290a54409f6bb6a0cc1c0446cd2b170a4b7add.tar.gz
external_llvm-6b290a54409f6bb6a0cc1c0446cd2b170a4b7add.tar.bz2
Added helper functions in LoopInfo: isLoopExit and numBackEdges.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-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