[llvm-commits] CVS: llvm/include/llvm/Constant.h
Chris Lattner
sabre at nondot.org
Thu Jun 14 23:11:17 PDT 2007
Changes in directory llvm/include/llvm:
Constant.h updated: 1.36 -> 1.37
---
Log message:
add a Constant::getAllOnesValue helper function, which works on integers
AND vectors.
---
Diffs of the changes: (+5 -0)
Constant.h | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/include/llvm/Constant.h
diff -u llvm/include/llvm/Constant.h:1.36 llvm/include/llvm/Constant.h:1.37
--- llvm/include/llvm/Constant.h:1.36 Fri Apr 13 13:12:09 2007
+++ llvm/include/llvm/Constant.h Fri Jun 15 01:10:53 2007
@@ -48,6 +48,11 @@
///
static Constant *getNullValue(const Type *Ty);
+ /// Static constructor to get a '-1' constant. This supports integers and
+ /// vectors.
+ ///
+ static Constant *getAllOnesValue(const Type *Ty);
+
/// isNullValue - Return true if this is the value that would be returned by
/// getNullValue.
virtual bool isNullValue() const = 0;
More information about the llvm-commits
mailing list