[Mlir-commits] [mlir] 322c891 - Apply clang-tidy fixes for modernize-use-equals-default to MLIR (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Sat Jan 1 17:16:46 PST 2022
Author: Mehdi Amini
Date: 2022-01-02T01:13:27Z
New Revision: 322c891483440c370e2ab66fdb0f4c4cf61743f1
URL: https://github.com/llvm/llvm-project/commit/322c891483440c370e2ab66fdb0f4c4cf61743f1
DIFF: https://github.com/llvm/llvm-project/commit/322c891483440c370e2ab66fdb0f4c4cf61743f1.diff
LOG: Apply clang-tidy fixes for modernize-use-equals-default to MLIR (NFC)
Differential Revision: https://reviews.llvm.org/D116247
Added:
Modified:
mlir/test/lib/Dialect/Affine/TestAffineLoopUnswitching.cpp
mlir/test/lib/Dialect/Linalg/TestLinalgDistribution.cpp
mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
Removed:
################################################################################
diff --git a/mlir/test/lib/Dialect/Affine/TestAffineLoopUnswitching.cpp b/mlir/test/lib/Dialect/Affine/TestAffineLoopUnswitching.cpp
index 533b51eade973..ca65d9550a46f 100644
--- a/mlir/test/lib/Dialect/Affine/TestAffineLoopUnswitching.cpp
+++ b/mlir/test/lib/Dialect/Affine/TestAffineLoopUnswitching.cpp
@@ -30,8 +30,7 @@ struct TestAffineLoopUnswitching
return "Tests affine loop unswitching / if/else hoisting";
}
TestAffineLoopUnswitching() = default;
- TestAffineLoopUnswitching(const TestAffineLoopUnswitching &pass)
- : PassWrapper(pass) {}
+ TestAffineLoopUnswitching(const TestAffineLoopUnswitching &pass) = default;
void runOnFunction() override;
diff --git a/mlir/test/lib/Dialect/Linalg/TestLinalgDistribution.cpp b/mlir/test/lib/Dialect/Linalg/TestLinalgDistribution.cpp
index fa982e7fb3c28..2543b13eae293 100644
--- a/mlir/test/lib/Dialect/Linalg/TestLinalgDistribution.cpp
+++ b/mlir/test/lib/Dialect/Linalg/TestLinalgDistribution.cpp
@@ -43,8 +43,7 @@ struct TestLinalgDistribution
StringRef getArgument() const final { return "test-linalg-distribution"; }
StringRef getDescription() const final { return "Test Linalg distribution."; }
TestLinalgDistribution() = default;
- TestLinalgDistribution(const TestLinalgDistribution &pass)
- : PassWrapper(pass) {}
+ TestLinalgDistribution(const TestLinalgDistribution &pass) = default;
void getDependentDialects(DialectRegistry ®istry) const override {
registry.insert<AffineDialect, gpu::GPUDialect>();
}
diff --git a/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp b/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
index db52be8dcff5a..0d054720a61bc 100644
--- a/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
+++ b/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
@@ -552,8 +552,7 @@ struct TestVectorTransferCollapseInnerMostContiguousDims
FunctionPass> {
TestVectorTransferCollapseInnerMostContiguousDims() = default;
TestVectorTransferCollapseInnerMostContiguousDims(
- const TestVectorTransferCollapseInnerMostContiguousDims &pass)
- : PassWrapper(pass) {}
+ const TestVectorTransferCollapseInnerMostContiguousDims &pass) = default;
void getDependentDialects(DialectRegistry ®istry) const override {
registry.insert<memref::MemRefDialect, AffineDialect>();
More information about the Mlir-commits
mailing list