forked from OSchip/llvm-project
[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:
parent
b641a90529
commit
88772e2e4b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue