diff options
-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, |