diff options
| author | Dan Gohman <gohman@apple.com> | 2009-05-01 17:08:34 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-05-01 17:08:34 +0000 |
| commit | 60c613b492297bbee86382b7d9992e79cbf244ad (patch) | |
| tree | efa99e2c04aca43e4be11c2c105d2e7755ded253 /llvm/include | |
| parent | 65dbe7874fc752fa1de536507ae68332660b00e7 (diff) | |
| download | bcm5719-llvm-60c613b492297bbee86382b7d9992e79cbf244ad.tar.gz bcm5719-llvm-60c613b492297bbee86382b7d9992e79cbf244ad.zip | |
Add an accessor method to allow clients to test if a given expression
is associated with a SCEV expansion.
llvm-svn: 70556
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Analysis/ScalarEvolutionExpander.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/ScalarEvolutionExpander.h b/llvm/include/llvm/Analysis/ScalarEvolutionExpander.h index 6290c401234..bb3183dafa5 100644 --- a/llvm/include/llvm/Analysis/ScalarEvolutionExpander.h +++ b/llvm/include/llvm/Analysis/ScalarEvolutionExpander.h @@ -53,6 +53,12 @@ namespace llvm { return InsertedValues.count(I); } + /// isInsertedExpression - Return true if the the code rewriter has a + /// Value* recorded for the given expression. + bool isInsertedExpression(const SCEV *S) const { + return InsertedExpressions.count(S); + } + /// getOrInsertCanonicalInductionVariable - This method returns the /// canonical induction variable of the specified type for the specified /// loop (inserting one if there is none). A canonical induction variable |

