diff --git a/mlir/include/mlir/Dialect/Linalg/Passes.h b/mlir/include/mlir/Dialect/Linalg/Passes.h index 50aec73366a8..620abd96636d 100644 --- a/mlir/include/mlir/Dialect/Linalg/Passes.h +++ b/mlir/include/mlir/Dialect/Linalg/Passes.h @@ -48,7 +48,7 @@ std::unique_ptr> createConvertLinalgToAffineLoopsPass(); /// Create a pass to convert Linalg operations which work on tensors to use /// buffers instead. -std::unique_ptr> createLinalgBufferizePass(); +std::unique_ptr> createLinalgBufferizePass(); /// Populate patterns that convert `ElementwiseMappable` ops to linalg /// parallel loops. diff --git a/mlir/include/mlir/Dialect/Linalg/Passes.td b/mlir/include/mlir/Dialect/Linalg/Passes.td index b9f6c617de50..07bf93a70f5e 100644 --- a/mlir/include/mlir/Dialect/Linalg/Passes.td +++ b/mlir/include/mlir/Dialect/Linalg/Passes.td @@ -61,7 +61,7 @@ def LinalgLowerToLoops : FunctionPass<"convert-linalg-to-loops"> { let dependentDialects = ["linalg::LinalgDialect", "scf::SCFDialect", "AffineDialect"]; } -def LinalgBufferize : Pass<"linalg-bufferize", "ModuleOp"> { +def LinalgBufferize : Pass<"linalg-bufferize", "FuncOp"> { let summary = "Bufferize the linalg dialect"; let constructor = "mlir::createLinalgBufferizePass()"; let dependentDialects = ["linalg::LinalgDialect"]; diff --git a/mlir/lib/Dialect/Linalg/Transforms/Bufferize.cpp b/mlir/lib/Dialect/Linalg/Transforms/Bufferize.cpp index 255a0d4cff90..ec2d1d9de5c8 100644 --- a/mlir/lib/Dialect/Linalg/Transforms/Bufferize.cpp +++ b/mlir/lib/Dialect/Linalg/Transforms/Bufferize.cpp @@ -356,7 +356,7 @@ struct LinalgBufferizePass : public LinalgBufferizeBase { }; } // end anonymous namespace -std::unique_ptr> mlir::createLinalgBufferizePass() { +std::unique_ptr> mlir::createLinalgBufferizePass() { return std::make_unique(); }