Apply clang-tidy fixes for bugprone-copy-constructor-init to MLIR (NFC)
Reviewed By: rriddle, Mogball Differential Revision: https://reviews.llvm.org/D116245
This commit is contained in:
parent
ced8690d84
commit
3bab9d4eb0
@ -36,7 +36,8 @@ struct LinalgComprehensiveModuleBufferize
|
||||
LinalgComprehensiveModuleBufferize() = default;
|
||||
|
||||
LinalgComprehensiveModuleBufferize(
|
||||
const LinalgComprehensiveModuleBufferize &p) {}
|
||||
const LinalgComprehensiveModuleBufferize &p)
|
||||
: LinalgComprehensiveModuleBufferizeBase(p) {}
|
||||
|
||||
void runOnOperation() override;
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ struct SparsificationPass : public SparsificationBase<SparsificationPass> {
|
||||
|
||||
SparsificationPass() = default;
|
||||
SparsificationPass(const SparsificationPass &pass)
|
||||
: SparsificationBase<SparsificationPass>() {}
|
||||
: SparsificationBase<SparsificationPass>(pass) {}
|
||||
|
||||
/// Returns parallelization strategy given on command line.
|
||||
SparseParallelizationStrategy parallelOption() {
|
||||
|
||||
@ -34,7 +34,7 @@ struct TestAffineDataCopy
|
||||
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<memref::MemRefDialect>();
|
||||
|
||||
@ -30,7 +30,8 @@ struct TestAffineLoopUnswitching
|
||||
return "Tests affine loop unswitching / if/else hoisting";
|
||||
}
|
||||
TestAffineLoopUnswitching() = default;
|
||||
TestAffineLoopUnswitching(const TestAffineLoopUnswitching &pass) {}
|
||||
TestAffineLoopUnswitching(const TestAffineLoopUnswitching &pass)
|
||||
: PassWrapper(pass) {}
|
||||
|
||||
void runOnFunction() override;
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ struct TestLoopPermutation
|
||||
return "Tests affine loop permutation utility";
|
||||
}
|
||||
TestLoopPermutation() = default;
|
||||
TestLoopPermutation(const TestLoopPermutation &pass){};
|
||||
TestLoopPermutation(const TestLoopPermutation &pass) : PassWrapper(pass){};
|
||||
|
||||
void runOnFunction() override;
|
||||
|
||||
|
||||
@ -49,7 +49,8 @@ struct TestComprehensiveFunctionBufferize
|
||||
|
||||
TestComprehensiveFunctionBufferize() = default;
|
||||
TestComprehensiveFunctionBufferize(
|
||||
const TestComprehensiveFunctionBufferize &pass) {}
|
||||
const TestComprehensiveFunctionBufferize &pass)
|
||||
: PassWrapper(pass) {}
|
||||
|
||||
void getDependentDialects(DialectRegistry ®istry) const override {
|
||||
registry.insert<bufferization::BufferizationDialect, linalg::LinalgDialect,
|
||||
|
||||
@ -33,7 +33,8 @@ struct TestLinalgCodegenStrategy
|
||||
return "Test Linalg Codegen Strategy.";
|
||||
}
|
||||
TestLinalgCodegenStrategy() = default;
|
||||
TestLinalgCodegenStrategy(const TestLinalgCodegenStrategy &pass) {}
|
||||
TestLinalgCodegenStrategy(const TestLinalgCodegenStrategy &pass)
|
||||
: PassWrapper(pass) {}
|
||||
|
||||
void getDependentDialects(DialectRegistry ®istry) const override {
|
||||
// clang-format off
|
||||
|
||||
@ -43,7 +43,8 @@ struct TestLinalgDistribution
|
||||
StringRef getArgument() const final { return "test-linalg-distribution"; }
|
||||
StringRef getDescription() const final { return "Test Linalg distribution."; }
|
||||
TestLinalgDistribution() = default;
|
||||
TestLinalgDistribution(const TestLinalgDistribution &pass) {}
|
||||
TestLinalgDistribution(const TestLinalgDistribution &pass)
|
||||
: PassWrapper(pass) {}
|
||||
void getDependentDialects(DialectRegistry ®istry) const override {
|
||||
registry.insert<AffineDialect, gpu::GPUDialect>();
|
||||
}
|
||||
|
||||
@ -264,7 +264,8 @@ struct TestLinalgTileAndFuseSequencePass
|
||||
}
|
||||
TestLinalgTileAndFuseSequencePass() = default;
|
||||
TestLinalgTileAndFuseSequencePass(
|
||||
const TestLinalgTileAndFuseSequencePass &pass){};
|
||||
const TestLinalgTileAndFuseSequencePass &pass)
|
||||
: PassWrapper(pass){};
|
||||
|
||||
ListOption<int64_t> tileSizes{
|
||||
*this, "tile-sizes", llvm::cl::desc("Tile sizes to use for ops"),
|
||||
|
||||
@ -22,7 +22,7 @@ namespace {
|
||||
struct TestLinalgHoisting
|
||||
: public PassWrapper<TestLinalgHoisting, FunctionPass> {
|
||||
TestLinalgHoisting() = default;
|
||||
TestLinalgHoisting(const TestLinalgHoisting &pass) {}
|
||||
TestLinalgHoisting(const TestLinalgHoisting &pass) : PassWrapper(pass) {}
|
||||
void getDependentDialects(DialectRegistry ®istry) const override {
|
||||
registry.insert<AffineDialect>();
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@ namespace {
|
||||
struct TestLinalgTransforms
|
||||
: public PassWrapper<TestLinalgTransforms, FunctionPass> {
|
||||
TestLinalgTransforms() = default;
|
||||
TestLinalgTransforms(const TestLinalgTransforms &pass) {}
|
||||
TestLinalgTransforms(const TestLinalgTransforms &pass) : PassWrapper(pass) {}
|
||||
|
||||
void getDependentDialects(DialectRegistry ®istry) const override {
|
||||
// clang-format off
|
||||
|
||||
@ -26,7 +26,8 @@ struct TestMathPolynomialApproximationPass
|
||||
: public PassWrapper<TestMathPolynomialApproximationPass, FunctionPass> {
|
||||
TestMathPolynomialApproximationPass() = default;
|
||||
TestMathPolynomialApproximationPass(
|
||||
const TestMathPolynomialApproximationPass &pass) {}
|
||||
const TestMathPolynomialApproximationPass &pass)
|
||||
: PassWrapper(pass) {}
|
||||
|
||||
void runOnFunction() override;
|
||||
void getDependentDialects(DialectRegistry ®istry) const override {
|
||||
|
||||
@ -31,7 +31,8 @@ namespace {
|
||||
struct TestVectorToVectorLowering
|
||||
: public PassWrapper<TestVectorToVectorLowering, FunctionPass> {
|
||||
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 @@ struct TestVectorContractionLowering
|
||||
"dialect";
|
||||
}
|
||||
TestVectorContractionLowering() = default;
|
||||
TestVectorContractionLowering(const TestVectorContractionLowering &pass) {}
|
||||
TestVectorContractionLowering(const TestVectorContractionLowering &pass)
|
||||
: PassWrapper(pass) {}
|
||||
|
||||
Option<bool> lowerToFlatMatrix{
|
||||
*this, "vector-lower-matrix-intrinsics",
|
||||
@ -182,7 +184,8 @@ struct TestVectorTransposeLowering
|
||||
"dialect";
|
||||
}
|
||||
TestVectorTransposeLowering() = default;
|
||||
TestVectorTransposeLowering(const TestVectorTransposeLowering &pass) {}
|
||||
TestVectorTransposeLowering(const TestVectorTransposeLowering &pass)
|
||||
: PassWrapper(pass) {}
|
||||
|
||||
Option<bool> lowerToEltwise{
|
||||
*this, "eltwise",
|
||||
@ -253,7 +256,8 @@ struct TestVectorUnrollingPatterns
|
||||
"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 @@ struct TestVectorDistributePatterns
|
||||
"dialect";
|
||||
}
|
||||
TestVectorDistributePatterns() = default;
|
||||
TestVectorDistributePatterns(const TestVectorDistributePatterns &pass) {}
|
||||
TestVectorDistributePatterns(const TestVectorDistributePatterns &pass)
|
||||
: PassWrapper(pass) {}
|
||||
void getDependentDialects(DialectRegistry ®istry) const override {
|
||||
registry.insert<VectorDialect>();
|
||||
registry.insert<AffineDialect>();
|
||||
@ -365,7 +370,8 @@ struct TestVectorToLoopPatterns
|
||||
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<VectorDialect>();
|
||||
registry.insert<AffineDialect>();
|
||||
@ -456,7 +462,8 @@ struct TestVectorTransferFullPartialSplitPatterns
|
||||
}
|
||||
TestVectorTransferFullPartialSplitPatterns() = default;
|
||||
TestVectorTransferFullPartialSplitPatterns(
|
||||
const TestVectorTransferFullPartialSplitPatterns &pass) {}
|
||||
const TestVectorTransferFullPartialSplitPatterns &pass)
|
||||
: PassWrapper(pass) {}
|
||||
|
||||
void getDependentDialects(DialectRegistry ®istry) const override {
|
||||
registry.insert<AffineDialect, linalg::LinalgDialect, memref::MemRefDialect,
|
||||
@ -514,7 +521,8 @@ struct TestVectorMultiReductionLoweringPatterns
|
||||
FunctionPass> {
|
||||
TestVectorMultiReductionLoweringPatterns() = default;
|
||||
TestVectorMultiReductionLoweringPatterns(
|
||||
const TestVectorMultiReductionLoweringPatterns &pass) {}
|
||||
const TestVectorMultiReductionLoweringPatterns &pass)
|
||||
: PassWrapper(pass) {}
|
||||
void getDependentDialects(DialectRegistry ®istry) const override {
|
||||
registry.insert<memref::MemRefDialect>();
|
||||
}
|
||||
@ -544,7 +552,8 @@ struct TestVectorTransferCollapseInnerMostContiguousDims
|
||||
FunctionPass> {
|
||||
TestVectorTransferCollapseInnerMostContiguousDims() = default;
|
||||
TestVectorTransferCollapseInnerMostContiguousDims(
|
||||
const TestVectorTransferCollapseInnerMostContiguousDims &pass) {}
|
||||
const TestVectorTransferCollapseInnerMostContiguousDims &pass)
|
||||
: PassWrapper(pass) {}
|
||||
|
||||
void getDependentDialects(DialectRegistry ®istry) const override {
|
||||
registry.insert<memref::MemRefDialect, AffineDialect>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user