Add names for some of the operators. This is needed for the macros in

the Interpreter.

llvm-svn: 34872
This commit is contained in:
Reid Spencer 2007-03-03 05:37:23 +00:00
parent e6049c2f08
commit 22c4fedabf
1 changed files with 9 additions and 0 deletions

View File

@ -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.