diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-28 16:21:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-28 16:21:30 +0000 |
commit | 1b7f7dc4b45a900fae2e9b062d588a995935727a (patch) | |
tree | f0853819719944846cc56e8742935169d838249e /lib/Analysis/InductionVariable.cpp | |
parent | 8fc2f2072de83665ae20e06929e28317f449bcdf (diff) |
Eliminate the cfg namespace, moving LoopInfo, Dominators, Interval* classes
to the global namespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2370 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/InductionVariable.cpp')
-rw-r--r-- | lib/Analysis/InductionVariable.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/InductionVariable.cpp b/lib/Analysis/InductionVariable.cpp index 4d4306b9d0..3214b79ce6 100644 --- a/lib/Analysis/InductionVariable.cpp +++ b/lib/Analysis/InductionVariable.cpp @@ -27,7 +27,7 @@ using analysis::ExprType; -static bool isLoopInvariant(const Value *V, const cfg::Loop *L) { +static bool isLoopInvariant(const Value *V, const Loop *L) { if (isa<Constant>(V) || isa<Argument>(V) || isa<GlobalValue>(V)) return true; @@ -39,7 +39,7 @@ static bool isLoopInvariant(const Value *V, const cfg::Loop *L) { enum InductionVariable::iType InductionVariable::Classify(const Value *Start, const Value *Step, - const cfg::Loop *L = 0) { + const Loop *L = 0) { // Check for cannonical and simple linear expressions now... if (ConstantInt *CStart = dyn_cast<ConstantInt>(Start)) if (ConstantInt *CStep = dyn_cast<ConstantInt>(Step)) { @@ -60,7 +60,7 @@ InductionVariable::Classify(const Value *Start, const Value *Step, // Create an induction variable for the specified value. If it is a PHI, and // if it's recognizable, classify it and fill in instance variables. // -InductionVariable::InductionVariable(PHINode *P, cfg::LoopInfo *LoopInfo) { +InductionVariable::InductionVariable(PHINode *P, LoopInfo *LoopInfo) { InductionType = Unknown; // Assume the worst Phi = P; @@ -76,7 +76,7 @@ InductionVariable::InductionVariable(PHINode *P, cfg::LoopInfo *LoopInfo) { // If we have loop information, make sure that this PHI node is in the header // of a loop... // - const cfg::Loop *L = LoopInfo ? LoopInfo->getLoopFor(Phi->getParent()) : 0; + const Loop *L = LoopInfo ? LoopInfo->getLoopFor(Phi->getParent()) : 0; if (L && L->getHeader() != Phi->getParent()) return; |