[llvm] r296993 - [APInt] Remove unused And/Or/Xor methods. They just forward to the corresponding operator overload.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 5 16:24:53 PST 2017
Author: ctopper
Date: Sun Mar 5 18:24:53 2017
New Revision: 296993
URL: http://llvm.org/viewvc/llvm-project?rev=296993&view=rev
Log:
[APInt] Remove unused And/Or/Xor methods. They just forward to the corresponding operator overload.
I plan to enhance the operator overloads to handle rvalues and these methods would not longer be optimal to use.
Modified:
llvm/trunk/include/llvm/ADT/APInt.h
Modified: llvm/trunk/include/llvm/ADT/APInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APInt.h?rev=296993&r1=296992&r2=296993&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APInt.h Sun Mar 5 18:24:53 2017
@@ -798,7 +798,6 @@ public:
return APInt(getBitWidth(), VAL & RHS.VAL);
return AndSlowCase(RHS);
}
- APInt And(const APInt &RHS) const { return this->operator&(RHS); }
/// \brief Bitwise OR operator.
///
@@ -812,14 +811,6 @@ public:
return OrSlowCase(RHS);
}
- /// \brief Bitwise OR function.
- ///
- /// Performs a bitwise or on *this and RHS. This is implemented by simply
- /// calling operator|.
- ///
- /// \returns An APInt value representing the bitwise OR of *this and RHS.
- APInt Or(const APInt &RHS) const { return this->operator|(RHS); }
-
/// \brief Bitwise XOR operator.
///
/// Performs a bitwise XOR operation on *this and RHS.
@@ -832,14 +823,6 @@ public:
return XorSlowCase(RHS);
}
- /// \brief Bitwise XOR function.
- ///
- /// Performs a bitwise XOR operation on *this and RHS. This is implemented
- /// through the usage of operator^.
- ///
- /// \returns An APInt value representing the bitwise XOR of *this and RHS.
- APInt Xor(const APInt &RHS) const { return this->operator^(RHS); }
-
/// \brief Multiplication operator.
///
/// Multiplies this APInt by RHS and returns the result.
More information about the llvm-commits
mailing list