diff --git a/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp b/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp --- a/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp +++ b/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp @@ -36,7 +36,8 @@ LinalgComprehensiveModuleBufferize() = default; LinalgComprehensiveModuleBufferize( - const LinalgComprehensiveModuleBufferize &p) {} + const LinalgComprehensiveModuleBufferize &p) + : LinalgComprehensiveModuleBufferizeBase(p) {} void runOnOperation() override; diff --git a/mlir/lib/Dialect/Linalg/Transforms/Detensorize.cpp b/mlir/lib/Dialect/Linalg/Transforms/Detensorize.cpp --- a/mlir/lib/Dialect/Linalg/Transforms/Detensorize.cpp +++ b/mlir/lib/Dialect/Linalg/Transforms/Detensorize.cpp @@ -197,7 +197,7 @@ struct LinalgDetensorize : public LinalgDetensorizeBase { LinalgDetensorize() = default; LinalgDetensorize(const LinalgDetensorize &pass) - : LinalgDetensorizeBase() {} + : LinalgDetensorizeBase(pass) {} class CostModel { public: diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp --- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp +++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp @@ -34,7 +34,7 @@ SparsificationPass() = default; SparsificationPass(const SparsificationPass &pass) - : SparsificationBase() {} + : SparsificationBase(pass) {} /// Returns parallelization strategy given on command line. SparseParallelizationStrategy parallelOption() { diff --git a/mlir/test/lib/Dialect/Affine/TestAffineDataCopy.cpp b/mlir/test/lib/Dialect/Affine/TestAffineDataCopy.cpp --- a/mlir/test/lib/Dialect/Affine/TestAffineDataCopy.cpp +++ b/mlir/test/lib/Dialect/Affine/TestAffineDataCopy.cpp @@ -34,7 +34,7 @@ return "Tests affine data copy utility functions."; } TestAffineDataCopy() = default; - TestAffineDataCopy(const TestAffineDataCopy &pass){}; + TestAffineDataCopy(const TestAffineDataCopy &pass) : PassWrapper(pass){}; void getDependentDialects(DialectRegistry ®istry) const override { registry.insert(); diff --git a/mlir/test/lib/Dialect/Affine/TestAffineLoopUnswitching.cpp b/mlir/test/lib/Dialect/Affine/TestAffineLoopUnswitching.cpp --- a/mlir/test/lib/Dialect/Affine/TestAffineLoopUnswitching.cpp +++ b/mlir/test/lib/Dialect/Affine/TestAffineLoopUnswitching.cpp @@ -30,7 +30,8 @@ return "Tests affine loop unswitching / if/else hoisting"; } TestAffineLoopUnswitching() = default; - TestAffineLoopUnswitching(const TestAffineLoopUnswitching &pass) {} + TestAffineLoopUnswitching(const TestAffineLoopUnswitching &pass) + : PassWrapper(pass) {} void runOnFunction() override; diff --git a/mlir/test/lib/Dialect/Affine/TestLoopPermutation.cpp b/mlir/test/lib/Dialect/Affine/TestLoopPermutation.cpp --- a/mlir/test/lib/Dialect/Affine/TestLoopPermutation.cpp +++ b/mlir/test/lib/Dialect/Affine/TestLoopPermutation.cpp @@ -32,7 +32,7 @@ return "Tests affine loop permutation utility"; } TestLoopPermutation() = default; - TestLoopPermutation(const TestLoopPermutation &pass){}; + TestLoopPermutation(const TestLoopPermutation &pass) : PassWrapper(pass){}; void runOnFunction() override; diff --git a/mlir/test/lib/Dialect/Linalg/TestComprehensiveBufferize.cpp b/mlir/test/lib/Dialect/Linalg/TestComprehensiveBufferize.cpp --- a/mlir/test/lib/Dialect/Linalg/TestComprehensiveBufferize.cpp +++ b/mlir/test/lib/Dialect/Linalg/TestComprehensiveBufferize.cpp @@ -49,7 +49,8 @@ TestComprehensiveFunctionBufferize() = default; TestComprehensiveFunctionBufferize( - const TestComprehensiveFunctionBufferize &pass) {} + const TestComprehensiveFunctionBufferize &pass) + : PassWrapper(pass) {} void getDependentDialects(DialectRegistry ®istry) const override { registry.insert(); } diff --git a/mlir/test/lib/Dialect/Linalg/TestLinalgFusionTransforms.cpp b/mlir/test/lib/Dialect/Linalg/TestLinalgFusionTransforms.cpp --- a/mlir/test/lib/Dialect/Linalg/TestLinalgFusionTransforms.cpp +++ b/mlir/test/lib/Dialect/Linalg/TestLinalgFusionTransforms.cpp @@ -264,7 +264,8 @@ } TestLinalgTileAndFuseSequencePass() = default; TestLinalgTileAndFuseSequencePass( - const TestLinalgTileAndFuseSequencePass &pass){}; + const TestLinalgTileAndFuseSequencePass &pass) + : PassWrapper(pass){}; ListOption tileSizes{ *this, "tile-sizes", llvm::cl::desc("Tile sizes to use for ops"), diff --git a/mlir/test/lib/Dialect/Linalg/TestLinalgHoisting.cpp b/mlir/test/lib/Dialect/Linalg/TestLinalgHoisting.cpp --- a/mlir/test/lib/Dialect/Linalg/TestLinalgHoisting.cpp +++ b/mlir/test/lib/Dialect/Linalg/TestLinalgHoisting.cpp @@ -22,7 +22,7 @@ struct TestLinalgHoisting : public PassWrapper { TestLinalgHoisting() = default; - TestLinalgHoisting(const TestLinalgHoisting &pass) {} + TestLinalgHoisting(const TestLinalgHoisting &pass) : PassWrapper(pass) {} void getDependentDialects(DialectRegistry ®istry) const override { registry.insert(); } diff --git a/mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp b/mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp --- a/mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp +++ b/mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp @@ -34,7 +34,7 @@ struct TestLinalgTransforms : public PassWrapper { TestLinalgTransforms() = default; - TestLinalgTransforms(const TestLinalgTransforms &pass) {} + TestLinalgTransforms(const TestLinalgTransforms &pass) : PassWrapper(pass) {} void getDependentDialects(DialectRegistry ®istry) const override { // clang-format off diff --git a/mlir/test/lib/Dialect/Math/TestPolynomialApproximation.cpp b/mlir/test/lib/Dialect/Math/TestPolynomialApproximation.cpp --- a/mlir/test/lib/Dialect/Math/TestPolynomialApproximation.cpp +++ b/mlir/test/lib/Dialect/Math/TestPolynomialApproximation.cpp @@ -26,7 +26,8 @@ : public PassWrapper { TestMathPolynomialApproximationPass() = default; TestMathPolynomialApproximationPass( - const TestMathPolynomialApproximationPass &pass) {} + const TestMathPolynomialApproximationPass &pass) + : PassWrapper(pass) {} void runOnFunction() override; void getDependentDialects(DialectRegistry ®istry) const override { diff --git a/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp b/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp --- a/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp +++ b/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp @@ -31,7 +31,8 @@ struct TestVectorToVectorLowering : public PassWrapper { TestVectorToVectorLowering() = default; - TestVectorToVectorLowering(const TestVectorToVectorLowering &pass) {} + TestVectorToVectorLowering(const TestVectorToVectorLowering &pass) + : PassWrapper(pass) {} StringRef getArgument() const final { return "test-vector-to-vector-lowering"; } @@ -110,7 +111,8 @@ "dialect"; } TestVectorContractionLowering() = default; - TestVectorContractionLowering(const TestVectorContractionLowering &pass) {} + TestVectorContractionLowering(const TestVectorContractionLowering &pass) + : PassWrapper(pass) {} Option lowerToFlatMatrix{ *this, "vector-lower-matrix-intrinsics", @@ -182,7 +184,8 @@ "dialect"; } TestVectorTransposeLowering() = default; - TestVectorTransposeLowering(const TestVectorTransposeLowering &pass) {} + TestVectorTransposeLowering(const TestVectorTransposeLowering &pass) + : PassWrapper(pass) {} Option lowerToEltwise{ *this, "eltwise", @@ -253,7 +256,8 @@ "dialect"; } TestVectorUnrollingPatterns() = default; - TestVectorUnrollingPatterns(const TestVectorUnrollingPatterns &pass) {} + TestVectorUnrollingPatterns(const TestVectorUnrollingPatterns &pass) + : PassWrapper(pass) {} void runOnFunction() override { MLIRContext *ctx = &getContext(); RewritePatternSet patterns(ctx); @@ -312,7 +316,8 @@ "dialect"; } TestVectorDistributePatterns() = default; - TestVectorDistributePatterns(const TestVectorDistributePatterns &pass) {} + TestVectorDistributePatterns(const TestVectorDistributePatterns &pass) + : PassWrapper(pass) {} void getDependentDialects(DialectRegistry ®istry) const override { registry.insert(); registry.insert(); @@ -365,7 +370,8 @@ return "Test lowering patterns to break up a vector op into a for loop"; } TestVectorToLoopPatterns() = default; - TestVectorToLoopPatterns(const TestVectorToLoopPatterns &pass) {} + TestVectorToLoopPatterns(const TestVectorToLoopPatterns &pass) + : PassWrapper(pass) {} void getDependentDialects(DialectRegistry ®istry) const override { registry.insert(); registry.insert(); @@ -456,7 +462,8 @@ } TestVectorTransferFullPartialSplitPatterns() = default; TestVectorTransferFullPartialSplitPatterns( - const TestVectorTransferFullPartialSplitPatterns &pass) {} + const TestVectorTransferFullPartialSplitPatterns &pass) + : PassWrapper(pass) {} void getDependentDialects(DialectRegistry ®istry) const override { registry.insert { TestVectorMultiReductionLoweringPatterns() = default; TestVectorMultiReductionLoweringPatterns( - const TestVectorMultiReductionLoweringPatterns &pass) {} + const TestVectorMultiReductionLoweringPatterns &pass) + : PassWrapper(pass) {} void getDependentDialects(DialectRegistry ®istry) const override { registry.insert(); } @@ -544,7 +552,8 @@ FunctionPass> { TestVectorTransferCollapseInnerMostContiguousDims() = default; TestVectorTransferCollapseInnerMostContiguousDims( - const TestVectorTransferCollapseInnerMostContiguousDims &pass) {} + const TestVectorTransferCollapseInnerMostContiguousDims &pass) + : PassWrapper(pass) {} void getDependentDialects(DialectRegistry ®istry) const override { registry.insert();