diff options
-rw-r--r-- | include/llvm/ADT/APInt.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index aec9e5610a..3a73b5ffeb 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -248,14 +248,23 @@ public: /// the given APInt& RHS. /// @brief Bitwise AND operator. APInt operator&(const APInt& RHS) const; + APInt And(const APInt& RHS) const { + return this->operator&(RHS); + } /// Performs bitwise OR operation on this APInt and the given APInt& RHS. /// @brief Bitwise OR operator. APInt operator|(const APInt& RHS) const; + APInt Or(const APInt& RHS) const { + return this->operator|(RHS); + } /// Performs bitwise XOR operation on this APInt and the given APInt& RHS. /// @brief Bitwise XOR operator. APInt operator^(const APInt& RHS) const; + APInt Xor(const APInt& RHS) const { + return this->operator^(RHS); + } /// Performs logical negation operation on this APInt. /// @brief Logical negation operator. |