From: Craig Topper Date: Fri, 31 Mar 2017 18:30:01 +0000 (+0000) Subject: [APInt] Remove unused functions from the APIntOps namespace. The corresponding method... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3eae0cb16587e3c60572aafa97d683f9d7acec02;p=llvm [APInt] Remove unused functions from the APIntOps namespace. The corresponding methods on the APInt object should be used instead. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299242 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index d5d86a75239..b5a5065f1cd 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -1918,14 +1918,6 @@ inline const APInt &umax(const APInt &A, const APInt &B) { return A.ugt(B) ? A : B; } -/// \brief Check if the specified APInt has a N-bits unsigned integer value. -inline bool isIntN(unsigned N, const APInt &APIVal) { return APIVal.isIntN(N); } - -/// \brief Check if the specified APInt has a N-bits signed integer value. -inline bool isSignedIntN(unsigned N, const APInt &APIVal) { - return APIVal.isSignedIntN(N); -} - /// \returns true if the argument APInt value is a sequence of ones starting at /// the least significant bit with the remainder zero. inline bool isMask(unsigned numBits, const APInt &APIVal) { @@ -1946,12 +1938,6 @@ inline bool isShiftedMask(unsigned numBits, const APInt &APIVal) { return isMask(numBits, (APIVal - APInt(numBits, 1)) | APIVal); } -/// \brief Returns a byte-swapped representation of the specified APInt Value. -inline APInt byteSwap(const APInt &APIVal) { return APIVal.byteSwap(); } - -/// \brief Returns the floor log base 2 of the specified APInt value. -inline unsigned logBase2(const APInt &APIVal) { return APIVal.logBase2(); } - /// \brief Compute GCD of two APInt values. /// /// This function returns the greatest common divisor of the two APInt values