[llvm-commits] CVS: llvm/include/llvm/Analysis/LoopInfo.h
Michael Brukman
brukman at cs.uiuc.edu
Fri Oct 11 00:32:02 PDT 2002
Changes in directory llvm/include/llvm/Analysis:
LoopInfo.h updated: 1.19 -> 1.20
---
Log message:
Added helper functions in LoopInfo: isLoopExit and numBackEdges.
---
Diffs of the changes:
Index: llvm/include/llvm/Analysis/LoopInfo.h
diff -u llvm/include/llvm/Analysis/LoopInfo.h:1.19 llvm/include/llvm/Analysis/LoopInfo.h:1.20
--- llvm/include/llvm/Analysis/LoopInfo.h:1.19 Thu Sep 26 11:15:19 2002
+++ llvm/include/llvm/Analysis/LoopInfo.h Fri Oct 11 00:31:10 2002
@@ -44,7 +44,10 @@
/// 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
More information about the llvm-commits
mailing list