forked from OSchip/llvm-project
[SVE] Remove TypeSize comparison operators
All known instances in the code where we relied upon the TypeSize comparison operators have now been changed to either use scalar interger comparisons or one of the TypeSize::isKnownXY functions. It is now safe to remove the comparison operators. Differential Revision: https://reviews.llvm.org/D90160
This commit is contained in:
parent
58a6b7bcde
commit
8c058dd2d7
|
@ -206,25 +206,6 @@ public:
|
|||
uint64_t getFixedSize() const { return getFixedValue(); }
|
||||
uint64_t getKnownMinSize() const { return getKnownMinValue(); }
|
||||
|
||||
friend bool operator<(const TypeSize &LHS, const TypeSize &RHS) {
|
||||
assert(LHS.IsScalable == RHS.IsScalable &&
|
||||
"Ordering comparison of scalable and fixed types");
|
||||
|
||||
return LHS.MinVal < RHS.MinVal;
|
||||
}
|
||||
|
||||
friend bool operator>(const TypeSize &LHS, const TypeSize &RHS) {
|
||||
return RHS < LHS;
|
||||
}
|
||||
|
||||
friend bool operator<=(const TypeSize &LHS, const TypeSize &RHS) {
|
||||
return !(RHS < LHS);
|
||||
}
|
||||
|
||||
friend bool operator>=(const TypeSize &LHS, const TypeSize& RHS) {
|
||||
return !(LHS < RHS);
|
||||
}
|
||||
|
||||
TypeSize &operator-=(TypeSize RHS) {
|
||||
assert(IsScalable == RHS.IsScalable &&
|
||||
"Subtraction using mixed scalable and fixed types");
|
||||
|
|
Loading…
Reference in New Issue