mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-04 03:17:51 +00:00
Fix spello
Add negate overload git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9709 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
689d24b6ed
commit
d5e4918fa7
@ -134,11 +134,15 @@ private:
|
||||
|
||||
// Unary operators...
|
||||
inline Constant *operator~(const Constant &V) {
|
||||
assert(V.getType()->isIntegral() && "Cannot invert non-intergral constant!");
|
||||
assert(V.getType()->isIntegral() && "Cannot invert non-integral constant!");
|
||||
return ConstRules::get(V, V)->op_xor(&V,
|
||||
ConstantInt::getAllOnesValue(V.getType()));
|
||||
}
|
||||
|
||||
inline Constant *operator-(const Constant &V) {
|
||||
return ConstRules::get(V, V)->sub(Constant::getNullValue(V.getType()), &V);
|
||||
}
|
||||
|
||||
// Standard binary operators...
|
||||
inline Constant *operator+(const Constant &V1, const Constant &V2) {
|
||||
assert(V1.getType() == V2.getType() && "Constant types must be identical!");
|
||||
|
@ -134,11 +134,15 @@ private:
|
||||
|
||||
// Unary operators...
|
||||
inline Constant *operator~(const Constant &V) {
|
||||
assert(V.getType()->isIntegral() && "Cannot invert non-intergral constant!");
|
||||
assert(V.getType()->isIntegral() && "Cannot invert non-integral constant!");
|
||||
return ConstRules::get(V, V)->op_xor(&V,
|
||||
ConstantInt::getAllOnesValue(V.getType()));
|
||||
}
|
||||
|
||||
inline Constant *operator-(const Constant &V) {
|
||||
return ConstRules::get(V, V)->sub(Constant::getNullValue(V.getType()), &V);
|
||||
}
|
||||
|
||||
// Standard binary operators...
|
||||
inline Constant *operator+(const Constant &V1, const Constant &V2) {
|
||||
assert(V1.getType() == V2.getType() && "Constant types must be identical!");
|
||||
|
@ -134,11 +134,15 @@ private:
|
||||
|
||||
// Unary operators...
|
||||
inline Constant *operator~(const Constant &V) {
|
||||
assert(V.getType()->isIntegral() && "Cannot invert non-intergral constant!");
|
||||
assert(V.getType()->isIntegral() && "Cannot invert non-integral constant!");
|
||||
return ConstRules::get(V, V)->op_xor(&V,
|
||||
ConstantInt::getAllOnesValue(V.getType()));
|
||||
}
|
||||
|
||||
inline Constant *operator-(const Constant &V) {
|
||||
return ConstRules::get(V, V)->sub(Constant::getNullValue(V.getType()), &V);
|
||||
}
|
||||
|
||||
// Standard binary operators...
|
||||
inline Constant *operator+(const Constant &V1, const Constant &V2) {
|
||||
assert(V1.getType() == V2.getType() && "Constant types must be identical!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user