aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-03 05:37:23 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-03 05:37:23 +0000
commitda347141ecb7ce44c532cdc51b000d5ab65db79f (patch)
tree7ead008c3b54b6ec151aa78191f7af1412b32ad0
parentf54949dc494ced20b24b968284a25037fca06743 (diff)
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
-rw-r--r--include/llvm/ADT/APInt.h9
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.