From 22c4fedabfe75e5eb752d47efcb3f16b3ad34fbb Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 3 Mar 2007 05:37:23 +0000 Subject: [PATCH] Add names for some of the operators. This is needed for the macros in the Interpreter. llvm-svn: 34872 --- llvm/include/llvm/ADT/APInt.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h index aec9e5610a60..3a73b5ffeb7b 100644 --- a/llvm/include/llvm/ADT/APInt.h +++ b/llvm/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.