diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-10-25 03:50:03 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-10-25 03:50:03 +0000 |
commit | 44df023d5f56e301d6280df20e36e68b1c4a761e (patch) | |
tree | 3dc81ac9fed1799f51742701c4b7ec2fd5e03e21 /include/llvm/Instructions.h | |
parent | edb8997821d6d7ae3cb8fc03e9b50190e990154a (diff) | |
download | llvm-44df023d5f56e301d6280df20e36e68b1c4a761e.tar.gz llvm-44df023d5f56e301d6280df20e36e68b1c4a761e.tar.bz2 llvm-44df023d5f56e301d6280df20e36e68b1c4a761e.tar.xz |
Sink isTrueWhenEqual from ICmpInst to CmpInst. Add a matching isFalseWhenEqual
which is equal to !isTrueWhenEqual for ints but not for floats.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r-- | include/llvm/Instructions.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index f7e7a3dbf9..43f0929b1b 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -701,22 +701,6 @@ public: /// @brief Determine if the predicate is signed. static bool isSignedPredicate(Predicate pred); - /// @returns true if the specified compare predicate is - /// true when both operands are equal... - /// @brief Determine if the icmp is true when both operands are equal - static bool isTrueWhenEqual(ICmpInst::Predicate pred) { - return pred == ICmpInst::ICMP_EQ || pred == ICmpInst::ICMP_UGE || - pred == ICmpInst::ICMP_SGE || pred == ICmpInst::ICMP_ULE || - pred == ICmpInst::ICMP_SLE; - } - - /// @returns true if the specified compare instruction is - /// true when both operands are equal... - /// @brief Determine if the ICmpInst returns true when both operands are equal - bool isTrueWhenEqual() { - return isTrueWhenEqual(getPredicate()); - } - /// Initialize a set of values that all satisfy the predicate with C. /// @brief Make a ConstantRange for a relation with a constant value. static ConstantRange makeConstantRange(Predicate pred, const APInt &C); |