mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Add names for some of the operators. This is needed for the macros in
the Interpreter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34872 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f54949dc49
commit
da347141ec
@ -248,14 +248,23 @@ public:
|
|||||||
/// the given APInt& RHS.
|
/// the given APInt& RHS.
|
||||||
/// @brief Bitwise AND operator.
|
/// @brief Bitwise AND operator.
|
||||||
APInt operator&(const APInt& RHS) const;
|
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.
|
/// Performs bitwise OR operation on this APInt and the given APInt& RHS.
|
||||||
/// @brief Bitwise OR operator.
|
/// @brief Bitwise OR operator.
|
||||||
APInt operator|(const APInt& RHS) const;
|
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.
|
/// Performs bitwise XOR operation on this APInt and the given APInt& RHS.
|
||||||
/// @brief Bitwise XOR operator.
|
/// @brief Bitwise XOR operator.
|
||||||
APInt operator^(const APInt& RHS) const;
|
APInt operator^(const APInt& RHS) const;
|
||||||
|
APInt Xor(const APInt& RHS) const {
|
||||||
|
return this->operator^(RHS);
|
||||||
|
}
|
||||||
|
|
||||||
/// Performs logical negation operation on this APInt.
|
/// Performs logical negation operation on this APInt.
|
||||||
/// @brief Logical negation operator.
|
/// @brief Logical negation operator.
|
||||||
|
Loading…
Reference in New Issue
Block a user