summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-01 22:28:51 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-01 22:28:51 +0000
commitcaace8cffdd34fffed9854d431bd39ceb83308dc (patch)
treedeb8328ef836d1150b9546aa07848c95608818ef /llvm/lib/Analysis
parentfa63226751e9e743b2c0d1554f7d9f4157233e28 (diff)
downloadbcm5719-llvm-caace8cffdd34fffed9854d431bd39ceb83308dc.tar.gz
bcm5719-llvm-caace8cffdd34fffed9854d431bd39ceb83308dc.zip
Make it possible to create an SCEVUnknown from an APInt as well as an int.
llvm-svn: 34816
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index f0a44c774d0..52b0af4e14c 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud