summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-31 20:01:57 +0000
committerChris Lattner <sabre@nondot.org>2003-08-31 20:01:57 +0000
commit78a5c1aa3c23fead7c3094160aefa50655728030 (patch)
treee84ac4deb9db3daa094f045dbd0eb9cfa90f19a0 /llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp
parent71e71f294bc67cbb3d006bb4b6532f41fb7e89b2 (diff)
downloadbcm5719-llvm-78a5c1aa3c23fead7c3094160aefa50655728030.tar.gz
bcm5719-llvm-78a5c1aa3c23fead7c3094160aefa50655728030.zip
Rename TarjanSCCIterator -> scc_iterator
* Increases consistency with other iterators (e.g. df_iterator, po_iterator...) * It's shorter * We don't name classes by the implementation, we name it for the interface! llvm-svn: 8273
Diffstat (limited to 'llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp b/llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp
index 171df2e33bb..110475a063e 100644
--- a/llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp
+++ b/llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp
@@ -18,7 +18,7 @@
#include "llvm/iOther.h"
#include "llvm/Support/InstVisitor.h"
#include "llvm/Support/CFG.h"
-#include "Support/TarjanSCCIterator.h"
+#include "Support/SCCIterator.h"
#include "Support/Statistic.h"
#include "Support/STLExtras.h"
#include "Support/hash_map"
@@ -208,7 +208,7 @@ void MemoryDepAnalysis::getAnalysisUsage(AnalysisUsage &AU) const {
}
-/// Basic dependence gathering algorithm, using TarjanSCCIterator on CFG:
+/// Basic dependence gathering algorithm, using scc_iterator on CFG:
///
/// for every SCC S in the CFG in PostOrder on the SCC DAG
/// {
@@ -290,7 +290,7 @@ void MemoryDepAnalysis::ProcessSCC(std::vector<BasicBlock*> &S,
ModRefInfoBuilder builder(*funcGraph, *funcModRef, ModRefCurrent);
for (std::vector<BasicBlock*>::iterator BI = S.begin(), BE = S.end();
BI != BE; ++BI)
- // Note: BBs in the SCC<> created by TarjanSCCIterator are in postorder.
+ // Note: BBs in the SCC<> created by scc_iterator are in postorder.
for (BasicBlock::reverse_iterator II=(*BI)->rbegin(), IE=(*BI)->rend();
II != IE; ++II)
builder.visit(*II);
@@ -438,8 +438,7 @@ bool MemoryDepAnalysis::runOnFunction(Function &F) {
ModRefTable ModRefAfter;
- for (TarjanSCC_iterator<Function*> I = tarj_begin(&F), E = tarj_end(&F);
- I != E; ++I)
+ for (scc_iterator<Function*> I = scc_begin(&F), E = scc_end(&F); I != E; ++I)
ProcessSCC(*I, ModRefAfter, I.hasLoop());
return true;
OpenPOWER on IntegriCloud