diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-13 22:19:41 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-13 22:19:41 +0000 |
commit | f6185efcd80d5e333b48d57f8f47f935c8912f91 (patch) | |
tree | 6b7909703cdf798dcb385d7fb769329e73508cc4 /lib/Analysis | |
parent | 76f49257ade1d702f831b4e21d616fe0c67b9d8f (diff) | |
download | external_llvm-f6185efcd80d5e333b48d57f8f47f935c8912f91.zip external_llvm-f6185efcd80d5e333b48d57f8f47f935c8912f91.tar.gz external_llvm-f6185efcd80d5e333b48d57f8f47f935c8912f91.tar.bz2 |
Forward-declare Loop and LoopInfo instead of #including LoopInfo.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75529 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/LoopVR.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Analysis/LoopVR.cpp b/lib/Analysis/LoopVR.cpp index 1c78ef9..6854e95 100644 --- a/lib/Analysis/LoopVR.cpp +++ b/lib/Analysis/LoopVR.cpp @@ -16,6 +16,7 @@ #include "llvm/Constants.h" #include "llvm/Instructions.h" #include "llvm/LLVMContext.h" +#include "llvm/Analysis/LoopInfo.h" #include "llvm/Analysis/ScalarEvolutionExpressions.h" #include "llvm/Assembly/Writer.h" #include "llvm/Support/CFG.h" @@ -220,6 +221,12 @@ ConstantRange LoopVR::getRange(const SCEV *S, const SCEV *T, ScalarEvolution &SE return FullSet; } +void LoopVR::getAnalysisUsage(AnalysisUsage &AU) const { + AU.addRequiredTransitive<LoopInfo>(); + AU.addRequiredTransitive<ScalarEvolution>(); + AU.setPreservesAll(); +} + bool LoopVR::runOnFunction(Function &F) { Map.clear(); return false; } void LoopVR::print(std::ostream &os, const Module *) const { |