diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2002-10-11 05:31:10 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2002-10-11 05:31:10 +0000 |
commit | 6b290a54409f6bb6a0cc1c0446cd2b170a4b7add (patch) | |
tree | ce542321b04185827bbf9e68fbfd536a5a37a742 /include/llvm/Analysis/LoopInfo.h | |
parent | f77b57097d00b301c164e10a034860fdbbcbe932 (diff) | |
download | external_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/LoopInfo.h')
-rw-r--r-- | include/llvm/Analysis/LoopInfo.h | 5 |
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 |