X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FConstants.h;h=6545a3fedb9220b8c709ac4facbac885e870bedc;hb=7e0d22cbf7b41e93279f574c9b3c557cdf517dcb;hp=5785b8187d891ead2688cb44189a359fbe58c364;hpb=ff7782bcc9235b1dc4c7fcb0497c52e4717eeffc;p=oota-llvm.git diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 5785b8187d8..6545a3fedb9 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -170,7 +170,7 @@ public: /// to true. /// @returns true iff this constant's bits are all set to true. /// @brief Determine if the value is all ones. - bool isAllOnesValue() const { + bool isMinusOne() const { return Val.isAllOnesValue(); } @@ -203,7 +203,7 @@ public: /// value. /// @returns true iff this constant is greater or equal to the given number. /// @brief Determine if the value is greater or equal to the given number. - bool uge(uint64_t Num) { + bool uge(uint64_t Num) const { return Val.getActiveBits() > 64 || Val.getZExtValue() >= Num; }