[llvm-commits] CVS: llvm/include/llvm/ADT/APInt.h
Reid Spencer
reid at x10sys.com
Fri Mar 2 21:37:39 PST 2007
Changes in directory llvm/include/llvm/ADT:
APInt.h updated: 1.36 -> 1.37
---
Log message:
Add names for some of the operators. This is needed for the macros in
the Interpreter.
---
Diffs of the changes: (+9 -0)
APInt.h | 9 +++++++++
1 files changed, 9 insertions(+)
Index: llvm/include/llvm/ADT/APInt.h
diff -u llvm/include/llvm/ADT/APInt.h:1.36 llvm/include/llvm/ADT/APInt.h:1.37
--- llvm/include/llvm/ADT/APInt.h:1.36 Fri Mar 2 18:24:39 2007
+++ llvm/include/llvm/ADT/APInt.h Fri Mar 2 23:37:23 2007
@@ -248,14 +248,23 @@
/// 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.
More information about the llvm-commits
mailing list