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 /lib | |
| parent | a3507ebd33e957ff026dcbcc6675300ddab98255 (diff) | |
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 'lib')
| -rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index f0a44c774d..52b0af4e14 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -460,6 +460,10 @@ SCEVHandle SCEVUnknown::getIntegerSCEV(int Val, const Type *Ty) { return SCEVUnknown::get(C); } +SCEVHandle SCEVUnknown::getIntegerSCEV(const APInt& Val) { + return SCEVUnknown::get(ConstantInt::get(Val)); +} + /// getTruncateOrZeroExtend - Return a SCEV corresponding to a conversion of the /// input value to the specified type. If the type must be extended, it is zero /// extended. |
