[APInt] Remove add and sub functions from APIntOps namespace.

They aren't used in tree and using the overloaded operators has more optimization opportunities.

llvm-svn: 296995
This commit is contained in:
Craig Topper 2017-03-06 04:35:01 +00:00
parent b641a90529
commit 88772e2e4b
1 changed files with 0 additions and 10 deletions

View File

@ -1965,16 +1965,6 @@ inline APInt urem(const APInt &LHS, const APInt &RHS) { return LHS.urem(RHS); }
/// Performs multiplication on APInt values.
inline APInt mul(const APInt &LHS, const APInt &RHS) { return LHS * RHS; }
/// \brief Function for addition operation.
///
/// Performs addition on APInt values.
inline APInt add(const APInt &LHS, const APInt &RHS) { return LHS + RHS; }
/// \brief Function for subtraction operation.
///
/// Performs subtraction on APInt values.
inline APInt sub(const APInt &LHS, const APInt &RHS) { return LHS - RHS; }
} // End of APIntOps namespace
// See friend declaration above. This additional declaration is required in