diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2020-01-11 16:50:55 +0100 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2020-01-11 16:54:53 +0100 |
commit | 7c7ca515837305f5d14033aee1191c254b86063c (patch) | |
tree | 5d68e3b5392addd09c3309974f51748e2c170d58 | |
parent | a8ed86b5c705cf1d2f3ca55b0640cf0f2fe01abc (diff) | |
download | bcm5719-llvm-7c7ca515837305f5d14033aee1191c254b86063c.tar.gz bcm5719-llvm-7c7ca515837305f5d14033aee1191c254b86063c.zip |
Remove copy ctors identical to the default one. NFC.
Those do nothing but make the type no longer trivial to the compiler.
-rw-r--r-- | mlir/include/mlir/IR/AffineExpr.h | 8 | ||||
-rw-r--r-- | mlir/include/mlir/IR/AffineMap.h | 4 | ||||
-rw-r--r-- | mlir/include/mlir/IR/IntegerSet.h | 4 |
3 files changed, 3 insertions, 13 deletions
diff --git a/mlir/include/mlir/IR/AffineExpr.h b/mlir/include/mlir/IR/AffineExpr.h index 3f3c82f0568..843fdcfb745 100644 --- a/mlir/include/mlir/IR/AffineExpr.h +++ b/mlir/include/mlir/IR/AffineExpr.h @@ -67,16 +67,10 @@ class AffineExpr { public: using ImplType = detail::AffineExprStorage; - AffineExpr() : expr(nullptr) {} + constexpr AffineExpr() : expr(nullptr) {} /* implicit */ AffineExpr(const ImplType *expr) : expr(const_cast<ImplType *>(expr)) {} - AffineExpr(const AffineExpr &other) : expr(other.expr) {} - AffineExpr &operator=(AffineExpr other) { - expr = other.expr; - return *this; - } - bool operator==(AffineExpr other) const { return expr == other.expr; } bool operator!=(AffineExpr other) const { return !(*this == other); } bool operator==(int64_t v) const; diff --git a/mlir/include/mlir/IR/AffineMap.h b/mlir/include/mlir/IR/AffineMap.h index 3f9116cb168..b226c976992 100644 --- a/mlir/include/mlir/IR/AffineMap.h +++ b/mlir/include/mlir/IR/AffineMap.h @@ -38,10 +38,8 @@ class AffineMap { public: using ImplType = detail::AffineMapStorage; - AffineMap() : map(nullptr) {} + constexpr AffineMap() : map(nullptr) {} explicit AffineMap(ImplType *map) : map(map) {} - AffineMap(const AffineMap &other) : map(other.map) {} - AffineMap &operator=(const AffineMap &other) = default; /// Returns a zero result affine map with no dimensions or symbols: () -> (). static AffineMap get(MLIRContext *context); diff --git a/mlir/include/mlir/IR/IntegerSet.h b/mlir/include/mlir/IR/IntegerSet.h index 1238511df34..757e1f733bc 100644 --- a/mlir/include/mlir/IR/IntegerSet.h +++ b/mlir/include/mlir/IR/IntegerSet.h @@ -43,10 +43,8 @@ class IntegerSet { public: using ImplType = detail::IntegerSetStorage; - IntegerSet() : set(nullptr) {} + constexpr IntegerSet() : set(nullptr) {} explicit IntegerSet(ImplType *set) : set(set) {} - IntegerSet(const IntegerSet &other) : set(other.set) {} - IntegerSet &operator=(const IntegerSet &other) = default; static IntegerSet get(unsigned dimCount, unsigned symbolCount, ArrayRef<AffineExpr> constraints, |