diff options
| author | Dan Gohman <gohman@apple.com> | 2009-05-08 20:38:54 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-05-08 20:38:54 +0000 |
| commit | b81f47d19131bbc92192cf536d9f6da546cebab7 (patch) | |
| tree | 4e2deb9e484f68b36bc2b096b9428155f9afbf23 /llvm/include | |
| parent | 2dc580c954cdfe73ee7d98fa61860c369058f1e8 (diff) | |
| download | bcm5719-llvm-b81f47d19131bbc92192cf536d9f6da546cebab7.tar.gz bcm5719-llvm-b81f47d19131bbc92192cf536d9f6da546cebab7.zip | |
Make the SCEV* form of getSCEVAtScope public, to allow ScalarEvolution
clients to use it.
llvm-svn: 71258
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Analysis/ScalarEvolution.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/include/llvm/Analysis/ScalarEvolution.h b/llvm/include/llvm/Analysis/ScalarEvolution.h index 96490229f48..d6fb8f011b8 100644 --- a/llvm/include/llvm/Analysis/ScalarEvolution.h +++ b/llvm/include/llvm/Analysis/ScalarEvolution.h @@ -345,11 +345,6 @@ namespace llvm { Constant *getConstantEvolutionLoopExitValue(PHINode *PN, const APInt& BEs, const Loop *L); - /// getSCEVAtScope - Compute the value of the specified expression within - /// the indicated loop (which may be null to indicate in no loop). If the - /// expression cannot be evaluated, return UnknownValue itself. - SCEVHandle getSCEVAtScope(const SCEV *S, const Loop *L); - /// forgetLoopPHIs - Delete the memoized SCEVs associated with the /// PHI nodes in the given loop. This is used when the trip count of /// the loop may have changed. @@ -468,6 +463,10 @@ namespace llvm { /// /// If this value is not computable at this scope, a SCEVCouldNotCompute /// object is returned. + SCEVHandle getSCEVAtScope(const SCEV *S, const Loop *L); + + /// getSCEVAtScope - This is a convenience function which does + /// getSCEVAtScope(getSCEV(V), L). SCEVHandle getSCEVAtScope(Value *V, const Loop *L); /// isLoopGuardedByCond - Test whether entry to the loop is protected by |

