LoopInfoBase() { }
~LoopInfoBase() { releaseMemory(); }
- /// isAnalysis - Return true if this pass is implementing an analysis pass.
- virtual bool isAnalysis() const { return true; }
-
void releaseMemory() {
for (typename std::vector<LoopBase<BlockT>* >::iterator I =
TopLevelLoops.begin(), E = TopLevelLoops.end(); I != E; ++I)
return LI->isLoopHeader(BB);
}
+ /// isAnalysis - Return true if this pass is implementing an analysis pass.
+ bool isAnalysis() const { return true; }
+
/// runOnFunction - Calculate the natural loop information.
///
virtual bool runOnFunction(Function &F);