diff options
author | Chris Lattner <sabre@nondot.org> | 2007-06-15 06:10:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-06-15 06:10:53 +0000 |
commit | cef4b53a3e7b5e7f14760f716949d80055f36510 (patch) | |
tree | b695d42f3e19f2bf915b1d72d5b69301334c2fca /include/llvm/Constant.h | |
parent | e20b7bec0234bad3986ff68961ebcbdaffb178ec (diff) | |
download | llvm-cef4b53a3e7b5e7f14760f716949d80055f36510.tar.gz llvm-cef4b53a3e7b5e7f14760f716949d80055f36510.tar.bz2 llvm-cef4b53a3e7b5e7f14760f716949d80055f36510.tar.xz |
add a Constant::getAllOnesValue helper function, which works on integers
AND vectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37586 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constant.h')
-rw-r--r-- | include/llvm/Constant.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h index bfe65a6faa..d925fdb618 100644 --- a/include/llvm/Constant.h +++ b/include/llvm/Constant.h @@ -48,6 +48,11 @@ public: /// 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; |