[PATCH] D30613: [APInt] Remove the And/Or/Xor/Not functions from the APIntOps namespace.

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 5 08:53:11 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL296990: [APInt] Remove the And/Or/Xor/Not functions from the APIntOps namespace. (authored by ctopper).

Changed prior to commit:
  https://reviews.llvm.org/D30613?vs=90598&id=90615#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D30613

Files:
  llvm/trunk/include/llvm/ADT/APInt.h


Index: llvm/trunk/include/llvm/ADT/APInt.h
===================================================================
--- llvm/trunk/include/llvm/ADT/APInt.h
+++ llvm/trunk/include/llvm/ADT/APInt.h
@@ -1992,27 +1992,6 @@
 /// Performs subtraction on APInt values.
 inline APInt sub(const APInt &LHS, const APInt &RHS) { return LHS - RHS; }
 
-/// \brief Bitwise AND function for APInt.
-///
-/// Performs bitwise AND operation on APInt LHS and
-/// APInt RHS.
-inline APInt And(const APInt &LHS, const APInt &RHS) { return LHS & RHS; }
-
-/// \brief Bitwise OR function for APInt.
-///
-/// Performs bitwise OR operation on APInt LHS and APInt RHS.
-inline APInt Or(const APInt &LHS, const APInt &RHS) { return LHS | RHS; }
-
-/// \brief Bitwise XOR function for APInt.
-///
-/// Performs bitwise XOR operation on APInt.
-inline APInt Xor(const APInt &LHS, const APInt &RHS) { return LHS ^ RHS; }
-
-/// \brief Bitwise complement function.
-///
-/// Performs a bitwise complement operation on APInt.
-inline APInt Not(const APInt &APIVal) { return ~APIVal; }
-
 } // End of APIntOps namespace
 
 // See friend declaration above. This additional declaration is required in


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30613.90615.patch
Type: text/x-patch
Size: 1165 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170305/d51d74f4/attachment.bin>


More information about the llvm-commits mailing list