summaryrefslogtreecommitdiff
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-11-14 19:12:20 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-11-14 19:12:20 +0000
commitb518cae015f9a91aa5035e4047e50215a47a7bb2 (patch)
tree1a421f4b4c3a02c20775638776a66abb076ac27f /include/llvm/Constants.h
parent788dc0f4e51628651850ca3c68cccd713b694052 (diff)
downloadllvm-b518cae015f9a91aa5035e4047e50215a47a7bb2.tar.gz
llvm-b518cae015f9a91aa5035e4047e50215a47a7bb2.tar.bz2
llvm-b518cae015f9a91aa5035e4047e50215a47a7bb2.tar.xz
Fold ConstantVector::isAllOnesValue into Constant::isAllOnesValue and simplify it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 6545a3fedb..41e451f5a1 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -475,12 +475,6 @@ public:
inline VectorType *getType() const {
return reinterpret_cast<VectorType*>(Value::getType());
}
-
- /// This function will return true iff every element in this vector constant
- /// is set to all ones.
- /// @returns true iff this constant's emements are all set to all ones.
- /// @brief Determine if the value is all ones.
- bool isAllOnesValue() const;
/// getSplatValue - If this is a splat constant, meaning that all of the
/// elements have the same value, return that value. Otherwise return NULL.