From 6b290a54409f6bb6a0cc1c0446cd2b170a4b7add Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Fri, 11 Oct 2002 05:31:10 +0000 Subject: 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 --- include/llvm/Analysis/LoopInfo.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/llvm/Analysis') 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 -- cgit v1.1