diff --git a/mlir/include/mlir/Conversion/AffineToStandard/AffineToStandard.h b/mlir/include/mlir/Conversion/AffineToStandard/AffineToStandard.h --- a/mlir/include/mlir/Conversion/AffineToStandard/AffineToStandard.h +++ b/mlir/include/mlir/Conversion/AffineToStandard/AffineToStandard.h @@ -25,7 +25,6 @@ class ValueRange; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; /// Emit code that computes the given affine expression using standard /// arithmetic operations applied to the provided dimension and symbol values. diff --git a/mlir/include/mlir/Conversion/AsyncToLLVM/AsyncToLLVM.h b/mlir/include/mlir/Conversion/AsyncToLLVM/AsyncToLLVM.h --- a/mlir/include/mlir/Conversion/AsyncToLLVM/AsyncToLLVM.h +++ b/mlir/include/mlir/Conversion/AsyncToLLVM/AsyncToLLVM.h @@ -20,7 +20,6 @@ class MLIRContext; class TypeConverter; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; /// Create a pass to convert Async operations to the LLVM dialect. std::unique_ptr> createConvertAsyncToLLVMPass(); diff --git a/mlir/include/mlir/Conversion/GPUCommon/GPUCommonPass.h b/mlir/include/mlir/Conversion/GPUCommon/GPUCommonPass.h --- a/mlir/include/mlir/Conversion/GPUCommon/GPUCommonPass.h +++ b/mlir/include/mlir/Conversion/GPUCommon/GPUCommonPass.h @@ -26,7 +26,6 @@ class ModuleOp; class Operation; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; template class OperationPass; @@ -56,7 +55,7 @@ /// Collect a set of patterns to convert from the GPU dialect to LLVM and /// populate converter for gpu types. void populateGpuToLLVMConversionPatterns(LLVMTypeConverter &converter, - OwningRewritePatternList &patterns, + RewritePatternSet &patterns, StringRef gpuBinaryAnnotation = {}); } // namespace mlir diff --git a/mlir/include/mlir/Conversion/GPUToNVVM/GPUToNVVMPass.h b/mlir/include/mlir/Conversion/GPUToNVVM/GPUToNVVMPass.h --- a/mlir/include/mlir/Conversion/GPUToNVVM/GPUToNVVMPass.h +++ b/mlir/include/mlir/Conversion/GPUToNVVM/GPUToNVVMPass.h @@ -16,7 +16,6 @@ class LLVMTypeConverter; class ConversionTarget; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; template class OperationPass; diff --git a/mlir/include/mlir/Conversion/GPUToROCDL/GPUToROCDLPass.h b/mlir/include/mlir/Conversion/GPUToROCDL/GPUToROCDLPass.h --- a/mlir/include/mlir/Conversion/GPUToROCDL/GPUToROCDLPass.h +++ b/mlir/include/mlir/Conversion/GPUToROCDL/GPUToROCDLPass.h @@ -16,7 +16,6 @@ class LLVMTypeConverter; class ConversionTarget; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; template class OperationPass; diff --git a/mlir/include/mlir/Conversion/LinalgToSPIRV/LinalgToSPIRV.h b/mlir/include/mlir/Conversion/LinalgToSPIRV/LinalgToSPIRV.h --- a/mlir/include/mlir/Conversion/LinalgToSPIRV/LinalgToSPIRV.h +++ b/mlir/include/mlir/Conversion/LinalgToSPIRV/LinalgToSPIRV.h @@ -17,7 +17,6 @@ class MLIRContext; class SPIRVTypeConverter; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; /// Appends to a pattern list additional patterns for translating Linalg ops to /// SPIR-V ops. diff --git a/mlir/include/mlir/Conversion/OpenMPToLLVM/ConvertOpenMPToLLVM.h b/mlir/include/mlir/Conversion/OpenMPToLLVM/ConvertOpenMPToLLVM.h --- a/mlir/include/mlir/Conversion/OpenMPToLLVM/ConvertOpenMPToLLVM.h +++ b/mlir/include/mlir/Conversion/OpenMPToLLVM/ConvertOpenMPToLLVM.h @@ -17,7 +17,6 @@ template class OperationPass; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; /// Populate the given list with patterns that convert from OpenMP to LLVM. void populateOpenMPToLLVMConversionPatterns(LLVMTypeConverter &converter, diff --git a/mlir/include/mlir/Conversion/SCFToGPU/SCFToGPU.h b/mlir/include/mlir/Conversion/SCFToGPU/SCFToGPU.h --- a/mlir/include/mlir/Conversion/SCFToGPU/SCFToGPU.h +++ b/mlir/include/mlir/Conversion/SCFToGPU/SCFToGPU.h @@ -18,7 +18,6 @@ class Value; class Operation; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; namespace scf { class ForOp; diff --git a/mlir/include/mlir/Conversion/SCFToSPIRV/SCFToSPIRV.h b/mlir/include/mlir/Conversion/SCFToSPIRV/SCFToSPIRV.h --- a/mlir/include/mlir/Conversion/SCFToSPIRV/SCFToSPIRV.h +++ b/mlir/include/mlir/Conversion/SCFToSPIRV/SCFToSPIRV.h @@ -21,7 +21,6 @@ class SPIRVTypeConverter; struct ScfToSPIRVContextImpl; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; struct ScfToSPIRVContext { ScfToSPIRVContext(); diff --git a/mlir/include/mlir/Conversion/SCFToStandard/SCFToStandard.h b/mlir/include/mlir/Conversion/SCFToStandard/SCFToStandard.h --- a/mlir/include/mlir/Conversion/SCFToStandard/SCFToStandard.h +++ b/mlir/include/mlir/Conversion/SCFToStandard/SCFToStandard.h @@ -17,7 +17,6 @@ class Pass; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; /// Collect a set of patterns to lower from scf.for, scf.if, and /// loop.terminator to CFG operations within the Standard dialect, in particular diff --git a/mlir/include/mlir/Conversion/ShapeToStandard/ShapeToStandard.h b/mlir/include/mlir/Conversion/ShapeToStandard/ShapeToStandard.h --- a/mlir/include/mlir/Conversion/ShapeToStandard/ShapeToStandard.h +++ b/mlir/include/mlir/Conversion/ShapeToStandard/ShapeToStandard.h @@ -18,7 +18,6 @@ template class OperationPass; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; void populateShapeToStandardConversionPatterns(RewritePatternSet &patterns); diff --git a/mlir/include/mlir/Conversion/VectorToROCDL/VectorToROCDL.h b/mlir/include/mlir/Conversion/VectorToROCDL/VectorToROCDL.h --- a/mlir/include/mlir/Conversion/VectorToROCDL/VectorToROCDL.h +++ b/mlir/include/mlir/Conversion/VectorToROCDL/VectorToROCDL.h @@ -16,7 +16,6 @@ template class OperationPass; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; /// Collect a set of patterns to convert from the GPU dialect to ROCDL. void populateVectorToROCDLConversionPatterns(LLVMTypeConverter &converter, diff --git a/mlir/include/mlir/Dialect/AMX/Transforms.h b/mlir/include/mlir/Dialect/AMX/Transforms.h --- a/mlir/include/mlir/Dialect/AMX/Transforms.h +++ b/mlir/include/mlir/Dialect/AMX/Transforms.h @@ -14,7 +14,6 @@ class LLVMConversionTarget; class LLVMTypeConverter; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; /// Collect a set of patterns to lower AMX ops to ops that map to LLVM /// intrinsics. diff --git a/mlir/include/mlir/Dialect/ArmSVE/Transforms.h b/mlir/include/mlir/Dialect/ArmSVE/Transforms.h --- a/mlir/include/mlir/Dialect/ArmSVE/Transforms.h +++ b/mlir/include/mlir/Dialect/ArmSVE/Transforms.h @@ -14,7 +14,6 @@ class LLVMConversionTarget; class LLVMTypeConverter; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; /// Collect a set of patterns to lower ArmSVE ops to ops that map to LLVM /// intrinsics. diff --git a/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h b/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h --- a/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h +++ b/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h @@ -1289,8 +1289,8 @@ /// global transformations, in a staged fashion: /// 1. the first stage consists of a list of FrozenRewritePatternSet. Each /// FrozenRewritePatternSet in this list is applied once, in order. -/// 2. the second stage consists of a single OwningRewritePattern that is -/// applied greedily until convergence. +/// 2. the second stage consists of a single RewritePattern that is applied +/// greedily until convergence. /// 3. the third stage consists of applying a lambda, generally used for /// non-local transformation effects. This allows creating custom fused /// transformations where patterns can be ordered and applied at a finer diff --git a/mlir/include/mlir/Dialect/MemRef/Transforms/ComposeSubView.h b/mlir/include/mlir/Dialect/MemRef/Transforms/ComposeSubView.h --- a/mlir/include/mlir/Dialect/MemRef/Transforms/ComposeSubView.h +++ b/mlir/include/mlir/Dialect/MemRef/Transforms/ComposeSubView.h @@ -16,11 +16,10 @@ namespace mlir { class MLIRContext; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; namespace memref { -void populateComposeSubViewPatterns(OwningRewritePatternList &patterns, +void populateComposeSubViewPatterns(RewritePatternSet &patterns, MLIRContext *context); } // namespace memref diff --git a/mlir/include/mlir/Dialect/SCF/Transforms.h b/mlir/include/mlir/Dialect/SCF/Transforms.h --- a/mlir/include/mlir/Dialect/SCF/Transforms.h +++ b/mlir/include/mlir/Dialect/SCF/Transforms.h @@ -27,7 +27,6 @@ class RewriterBase; class TypeConverter; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; class Operation; class Value; class ValueRange; diff --git a/mlir/include/mlir/Dialect/StandardOps/Transforms/FuncConversions.h b/mlir/include/mlir/Dialect/StandardOps/Transforms/FuncConversions.h --- a/mlir/include/mlir/Dialect/StandardOps/Transforms/FuncConversions.h +++ b/mlir/include/mlir/Dialect/StandardOps/Transforms/FuncConversions.h @@ -25,7 +25,6 @@ class Operation; class TypeConverter; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; /// Add a pattern to the given pattern list to convert the operand and result /// types of a CallOp with the given type converter. diff --git a/mlir/include/mlir/Dialect/StandardOps/Transforms/Passes.h b/mlir/include/mlir/Dialect/StandardOps/Transforms/Passes.h --- a/mlir/include/mlir/Dialect/StandardOps/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/StandardOps/Transforms/Passes.h @@ -23,7 +23,6 @@ } // namespace bufferization class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; void populateStdBufferizePatterns( bufferization::BufferizeTypeConverter &typeConverter, diff --git a/mlir/include/mlir/Dialect/Tensor/Transforms/Passes.h b/mlir/include/mlir/Dialect/Tensor/Transforms/Passes.h --- a/mlir/include/mlir/Dialect/Tensor/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/Tensor/Transforms/Passes.h @@ -17,7 +17,6 @@ } // namespace bufferization class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; void populateTensorBufferizePatterns( bufferization::BufferizeTypeConverter &typeConverter, diff --git a/mlir/include/mlir/Dialect/Vector/VectorOps.h b/mlir/include/mlir/Dialect/Vector/VectorOps.h --- a/mlir/include/mlir/Dialect/Vector/VectorOps.h +++ b/mlir/include/mlir/Dialect/Vector/VectorOps.h @@ -32,7 +32,6 @@ namespace mlir { class MLIRContext; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; namespace vector { class VectorDialect; diff --git a/mlir/include/mlir/Dialect/Vector/VectorTransforms.h b/mlir/include/mlir/Dialect/Vector/VectorTransforms.h --- a/mlir/include/mlir/Dialect/Vector/VectorTransforms.h +++ b/mlir/include/mlir/Dialect/Vector/VectorTransforms.h @@ -18,8 +18,6 @@ class RewritePatternSet; class RewriterBase; -using OwningRewritePatternList = RewritePatternSet; - namespace scf { class IfOp; } // namespace scf diff --git a/mlir/include/mlir/Dialect/X86Vector/Transforms.h b/mlir/include/mlir/Dialect/X86Vector/Transforms.h --- a/mlir/include/mlir/Dialect/X86Vector/Transforms.h +++ b/mlir/include/mlir/Dialect/X86Vector/Transforms.h @@ -17,7 +17,6 @@ class LLVMConversionTarget; class LLVMTypeConverter; class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; namespace x86vector { diff --git a/mlir/include/mlir/IR/OperationSupport.h b/mlir/include/mlir/IR/OperationSupport.h --- a/mlir/include/mlir/IR/OperationSupport.h +++ b/mlir/include/mlir/IR/OperationSupport.h @@ -49,15 +49,13 @@ class Region; class ResultRange; class RewritePattern; +class RewritePatternSet; class Type; class Value; class ValueRange; template class ValueTypeRange; -class RewritePatternSet; -using OwningRewritePatternList = RewritePatternSet; - //===----------------------------------------------------------------------===// // OperationName //===----------------------------------------------------------------------===// diff --git a/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp b/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp --- a/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp +++ b/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp @@ -848,7 +848,7 @@ } void mlir::populateGpuToLLVMConversionPatterns( - LLVMTypeConverter &converter, OwningRewritePatternList &patterns, + LLVMTypeConverter &converter, RewritePatternSet &patterns, StringRef gpuBinaryAnnotation) { converter.addConversion( [context = &converter.getContext()](gpu::AsyncTokenType type) -> Type { diff --git a/mlir/lib/Conversion/OpenACCToLLVM/OpenACCToLLVM.cpp b/mlir/lib/Conversion/OpenACCToLLVM/OpenACCToLLVM.cpp --- a/mlir/lib/Conversion/OpenACCToLLVM/OpenACCToLLVM.cpp +++ b/mlir/lib/Conversion/OpenACCToLLVM/OpenACCToLLVM.cpp @@ -138,7 +138,7 @@ } // namespace void mlir::populateOpenACCToLLVMConversionPatterns( - LLVMTypeConverter &converter, OwningRewritePatternList &patterns) { + LLVMTypeConverter &converter, RewritePatternSet &patterns) { patterns.add>(converter); patterns.add>(converter); patterns.add>(converter); diff --git a/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp b/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp --- a/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp +++ b/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp @@ -209,7 +209,7 @@ } void arith::AddIOp::getCanonicalizationPatterns( - OwningRewritePatternList &patterns, MLIRContext *context) { + RewritePatternSet &patterns, MLIRContext *context) { patterns.insert( context); } @@ -231,7 +231,7 @@ } void arith::SubIOp::getCanonicalizationPatterns( - OwningRewritePatternList &patterns, MLIRContext *context) { + RewritePatternSet &patterns, MLIRContext *context) { patterns.insert(context); @@ -567,7 +567,7 @@ } void arith::XOrIOp::getCanonicalizationPatterns( - OwningRewritePatternList &patterns, MLIRContext *context) { + RewritePatternSet &patterns, MLIRContext *context) { patterns.insert(context); } @@ -846,7 +846,7 @@ } void arith::ExtSIOp::getCanonicalizationPatterns( - OwningRewritePatternList &patterns, MLIRContext *context) { + RewritePatternSet &patterns, MLIRContext *context) { patterns.insert(context); } @@ -926,7 +926,7 @@ //===----------------------------------------------------------------------===// void arith::AndIOp::getCanonicalizationPatterns( - OwningRewritePatternList &patterns, MLIRContext *context) { + RewritePatternSet &patterns, MLIRContext *context) { patterns.insert(context); } @@ -935,7 +935,7 @@ //===----------------------------------------------------------------------===// void arith::OrIOp::getCanonicalizationPatterns( - OwningRewritePatternList &patterns, MLIRContext *context) { + RewritePatternSet &patterns, MLIRContext *context) { patterns.insert(context); } @@ -1074,7 +1074,7 @@ } void arith::IndexCastOp::getCanonicalizationPatterns( - OwningRewritePatternList &patterns, MLIRContext *context) { + RewritePatternSet &patterns, MLIRContext *context) { patterns.insert(context); } @@ -1123,7 +1123,7 @@ } void arith::BitcastOp::getCanonicalizationPatterns( - OwningRewritePatternList &patterns, MLIRContext *context) { + RewritePatternSet &patterns, MLIRContext *context) { patterns.insert(context); } diff --git a/mlir/lib/Dialect/ArmSVE/Transforms/LegalizeForLLVMExport.cpp b/mlir/lib/Dialect/ArmSVE/Transforms/LegalizeForLLVMExport.cpp --- a/mlir/lib/Dialect/ArmSVE/Transforms/LegalizeForLLVMExport.cpp +++ b/mlir/lib/Dialect/ArmSVE/Transforms/LegalizeForLLVMExport.cpp @@ -67,7 +67,7 @@ /// Populate the given list with patterns that convert from ArmSVE to LLVM. void mlir::populateArmSVELegalizeForLLVMExportPatterns( - LLVMTypeConverter &converter, OwningRewritePatternList &patterns) { + LLVMTypeConverter &converter, RewritePatternSet &patterns) { // Populate conversion patterns // clang-format off diff --git a/mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp b/mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp --- a/mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp +++ b/mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp @@ -102,7 +102,7 @@ } // namespace -void CloneOp::getCanonicalizationPatterns(OwningRewritePatternList &results, +void CloneOp::getCanonicalizationPatterns(RewritePatternSet &results, MLIRContext *context) { results.insert(context); } diff --git a/mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp b/mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp --- a/mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp +++ b/mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp @@ -205,7 +205,7 @@ LogicalResult bufferization::bufferizeOp(Operation *op, const BufferizationState &state) { // Bufferize the op and its nested ops. - OwningRewritePatternList patterns(op->getContext()); + RewritePatternSet patterns(op->getContext()); patterns.add(op->getContext(), state); if (failed(applyPatternsAndFoldGreedily(op, std::move(patterns)))) return failure(); diff --git a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp --- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp +++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp @@ -1753,7 +1753,7 @@ }; } // namespace -void TiledLoopOp::getCanonicalizationPatterns(OwningRewritePatternList &results, +void TiledLoopOp::getCanonicalizationPatterns(RewritePatternSet &results, MLIRContext *context) { results.insert, diff --git a/mlir/lib/Dialect/MemRef/Transforms/ComposeSubView.cpp b/mlir/lib/Dialect/MemRef/Transforms/ComposeSubView.cpp --- a/mlir/lib/Dialect/MemRef/Transforms/ComposeSubView.cpp +++ b/mlir/lib/Dialect/MemRef/Transforms/ComposeSubView.cpp @@ -128,6 +128,6 @@ } // namespace void mlir::memref::populateComposeSubViewPatterns( - OwningRewritePatternList &patterns, MLIRContext *context) { + RewritePatternSet &patterns, MLIRContext *context) { patterns.insert(context); } diff --git a/mlir/lib/Dialect/SCF/SCF.cpp b/mlir/lib/Dialect/SCF/SCF.cpp --- a/mlir/lib/Dialect/SCF/SCF.cpp +++ b/mlir/lib/Dialect/SCF/SCF.cpp @@ -2537,7 +2537,7 @@ }; } // namespace -void WhileOp::getCanonicalizationPatterns(OwningRewritePatternList &results, +void WhileOp::getCanonicalizationPatterns(RewritePatternSet &results, MLIRContext *context) { results.insert(context); diff --git a/mlir/lib/Dialect/StandardOps/IR/Ops.cpp b/mlir/lib/Dialect/StandardOps/IR/Ops.cpp --- a/mlir/lib/Dialect/StandardOps/IR/Ops.cpp +++ b/mlir/lib/Dialect/StandardOps/IR/Ops.cpp @@ -764,7 +764,7 @@ } }; -void SelectOp::getCanonicalizationPatterns(OwningRewritePatternList &results, +void SelectOp::getCanonicalizationPatterns(RewritePatternSet &results, MLIRContext *context) { results.insert(context); } diff --git a/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp b/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp --- a/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp +++ b/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp @@ -128,7 +128,7 @@ } }; -void ConcatOp::getCanonicalizationPatterns(OwningRewritePatternList &results, +void ConcatOp::getCanonicalizationPatterns(RewritePatternSet &results, MLIRContext *context) { results.insert(context); } @@ -186,7 +186,7 @@ } }; -void ReshapeOp::getCanonicalizationPatterns(OwningRewritePatternList &results, +void ReshapeOp::getCanonicalizationPatterns(RewritePatternSet &results, MLIRContext *context) { results.insert(context); results.insert(context); @@ -283,7 +283,7 @@ } }; -void TransposeOp::getCanonicalizationPatterns(OwningRewritePatternList &results, +void TransposeOp::getCanonicalizationPatterns(RewritePatternSet &results, MLIRContext *context) { results.insert(context); results.insert(context); @@ -321,7 +321,7 @@ } }; -void AddOp::getCanonicalizationPatterns(OwningRewritePatternList &results, +void AddOp::getCanonicalizationPatterns(RewritePatternSet &results, MLIRContext *context) { results.insert(context); } @@ -370,7 +370,7 @@ } }; -void MulOp::getCanonicalizationPatterns(OwningRewritePatternList &results, +void MulOp::getCanonicalizationPatterns(RewritePatternSet &results, MLIRContext *context) { results.insert(context); } @@ -417,7 +417,7 @@ } }; -void PadOp::getCanonicalizationPatterns(OwningRewritePatternList &results, +void PadOp::getCanonicalizationPatterns(RewritePatternSet &results, MLIRContext *context) { results.insert(context); } @@ -452,7 +452,7 @@ } }; -void MaxPool2dOp::getCanonicalizationPatterns(OwningRewritePatternList &results, +void MaxPool2dOp::getCanonicalizationPatterns(RewritePatternSet &results, MLIRContext *context) { results.insert(context); } @@ -555,7 +555,7 @@ } }; -void ClampOp::getCanonicalizationPatterns(OwningRewritePatternList &results, +void ClampOp::getCanonicalizationPatterns(RewritePatternSet &results, MLIRContext *context) { results.insert(context); results.insert(context); diff --git a/mlir/test/lib/Dialect/Linalg/TestLinalgDistribution.cpp b/mlir/test/lib/Dialect/Linalg/TestLinalgDistribution.cpp --- a/mlir/test/lib/Dialect/Linalg/TestLinalgDistribution.cpp +++ b/mlir/test/lib/Dialect/Linalg/TestLinalgDistribution.cpp @@ -53,7 +53,7 @@ void TestLinalgDistribution::runOnOperation() { auto funcOp = getOperation(); - OwningRewritePatternList distributeTiledLoopsPatterns(&getContext()); + RewritePatternSet distributeTiledLoopsPatterns(&getContext()); populateLinalgDistributeTiledLoopPattern( distributeTiledLoopsPatterns, getDistributionOptions(), LinalgTransformationFilter( diff --git a/mlir/test/lib/Dialect/MemRef/TestComposeSubView.cpp b/mlir/test/lib/Dialect/MemRef/TestComposeSubView.cpp --- a/mlir/test/lib/Dialect/MemRef/TestComposeSubView.cpp +++ b/mlir/test/lib/Dialect/MemRef/TestComposeSubView.cpp @@ -34,7 +34,7 @@ } void TestComposeSubViewPass::runOnOperation() { - OwningRewritePatternList patterns(&getContext()); + RewritePatternSet patterns(&getContext()); memref::populateComposeSubViewPatterns(patterns, &getContext()); (void)applyPatternsAndFoldGreedily(getOperation(), std::move(patterns)); }