summaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-04 17:49:01 +0000
committerChris Lattner <sabre@nondot.org>2002-02-04 17:49:01 +0000
commitbcbce1786436b42a8ee0764fe8a51134f4e6e79e (patch)
tree6426d3e5f77100cfa26f5330457473b1f6f1c666 /include/llvm
parent14ab1ce0209343b0e2c424ab8ba32261d4474349 (diff)
downloadllvm-bcbce1786436b42a8ee0764fe8a51134f4e6e79e.tar.gz
llvm-bcbce1786436b42a8ee0764fe8a51134f4e6e79e.tar.bz2
llvm-bcbce1786436b42a8ee0764fe8a51134f4e6e79e.tar.xz
Remove Obsolete LoopDepthCalculator. All users should use LoopInfo directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Analysis/LoopDepth.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/include/llvm/Analysis/LoopDepth.h b/include/llvm/Analysis/LoopDepth.h
deleted file mode 100644
index 2c5519855c..0000000000
--- a/include/llvm/Analysis/LoopDepth.h
+++ /dev/null
@@ -1,40 +0,0 @@
-//===- llvm/Analysis/LoopDepth.h - Loop Depth Calculation --------*- C++ -*--=//
-//
-// This file provides a simple class to calculate the loop depth of a
-// BasicBlock.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_ANALYSIS_LOOP_DEPTH_H
-#define LLVM_ANALYSIS_LOOP_DEPTH_H
-
-#include "llvm/Pass.h"
-namespace cfg {
- class LoopInfo;
-
-class LoopDepthCalculator : public MethodPass {
- std::map<const BasicBlock*, unsigned> LoopDepth;
- void calculate(Method *M, LoopInfo &Loops);
-public:
- static AnalysisID ID; // cfg::LoopDepth Analysis ID
-
- LoopDepthCalculator(AnalysisID id) { assert(id == ID); }
-
- // This is a pass...
- bool runOnMethod(Method *M);
-
- inline unsigned getLoopDepth(const BasicBlock *BB) const {
- std::map<const BasicBlock*,unsigned>::const_iterator I = LoopDepth.find(BB);
- return I != LoopDepth.end() ? I->second : 0;
- }
-
- // getAnalysisUsageInfo - Provide loop depth, require loop info
- //
- virtual void getAnalysisUsageInfo(Pass::AnalysisSet &Requires,
- Pass::AnalysisSet &Destroyed,
- Pass::AnalysisSet &Provided);
-};
-
-} // end namespace cfg
-
-#endif