[llvm-commits] [SignlessTypes] CVS: llvm/lib/Transforms/TransformInternals.h

Reid Spencer reid at x10sys.com
Thu Oct 19 17:35:13 PDT 2006



Changes in directory llvm/lib/Transforms:

TransformInternals.h updated: 1.27 -> 1.27.10.1
---
Log message:

Make some simplifications for ConstantInt:
1. Get rid of getRawValue, replace with getZExtValue
2. Single constructor (uint64_t) and get method (int64_t)
3. Canonicalize the constant to a zero extended unsigned 64-bit integer when
   it is created.
4. Adjust getZExtValue() to be a do-nothing (just returns the already
   canonicalized value).
5. Compensate for above changes everywhere else.


---
Diffs of the changes:  (+1 -1)

 TransformInternals.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Transforms/TransformInternals.h
diff -u llvm/lib/Transforms/TransformInternals.h:1.27 llvm/lib/Transforms/TransformInternals.h:1.27.10.1
--- llvm/lib/Transforms/TransformInternals.h:1.27	Tue Jul 26 11:38:28 2005
+++ llvm/lib/Transforms/TransformInternals.h	Thu Oct 19 19:34:44 2006
@@ -25,7 +25,7 @@
 namespace llvm {
 
 static inline int64_t getConstantValue(const ConstantInt *CPI) {
-  return (int64_t)cast<ConstantInt>(CPI)->getRawValue();
+  return (int64_t)cast<ConstantInt>(CPI)->getZExtValue();
 }
 
 






More information about the llvm-commits mailing list