diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 22:28:51 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 22:28:51 +0000 |
commit | 35fa43907e2ea751ad35bfbaab8c4d3511422c14 (patch) | |
tree | a9f7ece030453ccdc78deedcce633b175b61a762 /include/llvm/Analysis | |
parent | a3507ebd33e957ff026dcbcc6675300ddab98255 (diff) | |
download | llvm-35fa43907e2ea751ad35bfbaab8c4d3511422c14.tar.gz llvm-35fa43907e2ea751ad35bfbaab8c4d3511422c14.tar.bz2 llvm-35fa43907e2ea751ad35bfbaab8c4d3511422c14.tar.xz |
Make it possible to create an SCEVUnknown from an APInt as well as an int.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r-- | include/llvm/Analysis/ScalarEvolutionExpressions.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpressions.h b/include/llvm/Analysis/ScalarEvolutionExpressions.h index b9bf93b8c7..af795377c2 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpressions.h +++ b/include/llvm/Analysis/ScalarEvolutionExpressions.h @@ -19,6 +19,7 @@ namespace llvm { class ConstantInt; class ConstantRange; + class APInt; enum SCEVTypes { // These should be ordered in terms of increasing complexity to make the @@ -463,6 +464,7 @@ namespace llvm { /// getIntegerSCEV - Given an integer or FP type, create a constant for the /// specified signed integer value and return a SCEV for the constant. static SCEVHandle getIntegerSCEV(int Val, const Type *Ty); + static SCEVHandle getIntegerSCEV(const APInt& Val); Value *getValue() const { return V; } |