[llvm-commits] CVS: llvm/lib/Analysis/ScalarEvolution.cpp

Reid Spencer reid at x10sys.com
Thu Mar 1 14:29:08 PST 2007



Changes in directory llvm/lib/Analysis:

ScalarEvolution.cpp updated: 1.101 -> 1.102
---
Log message:

Make it possible to create an SCEVUnknown from an APInt as well as an int.


---
Diffs of the changes:  (+4 -0)

 ScalarEvolution.cpp |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/lib/Analysis/ScalarEvolution.cpp
diff -u llvm/lib/Analysis/ScalarEvolution.cpp:1.101 llvm/lib/Analysis/ScalarEvolution.cpp:1.102
--- llvm/lib/Analysis/ScalarEvolution.cpp:1.101	Thu Mar  1 13:32:33 2007
+++ llvm/lib/Analysis/ScalarEvolution.cpp	Thu Mar  1 16:28:51 2007
@@ -460,6 +460,10 @@
   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.






More information about the llvm-commits mailing list