[PATCH] D90160: [SVE] Remove TypeSize comparison operators
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 29 07:32:53 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8c058dd2d752: [SVE] Remove TypeSize comparison operators (authored by david-arm).
Herald added a subscriber: dexonsmith.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D90160/new/
https://reviews.llvm.org/D90160
Files:
llvm/include/llvm/Support/TypeSize.h
Index: llvm/include/llvm/Support/TypeSize.h
===================================================================
--- llvm/include/llvm/Support/TypeSize.h
+++ llvm/include/llvm/Support/TypeSize.h
@@ -206,25 +206,6 @@
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");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90160.301616.patch
Type: text/x-patch
Size: 1026 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201029/d1b11e47/attachment.bin>
More information about the llvm-commits
mailing list