diff --git a/mlir/include/mlir/Dialect/Bufferization/Transforms/OneShotModuleBufferize.h b/mlir/include/mlir/Dialect/Bufferization/Transforms/OneShotModuleBufferize.h index 367eddeeb45c..63a1e07d16a2 100644 --- a/mlir/include/mlir/Dialect/Bufferization/Transforms/OneShotModuleBufferize.h +++ b/mlir/include/mlir/Dialect/Bufferization/Transforms/OneShotModuleBufferize.h @@ -32,9 +32,9 @@ LogicalResult bufferizeModuleOp(ModuleOp moduleOp, /// function call analysis to determine which function arguments are /// inplaceable. Then analyzes and bufferizes FuncOps one-by-one with One-Shot /// Bufferize. -LogicalResult -runOneShotModuleBufferize(ModuleOp moduleOp, - bufferization::OneShotBufferizationOptions options); +LogicalResult runOneShotModuleBufferize( + ModuleOp moduleOp, + const bufferization::OneShotBufferizationOptions &options); } // namespace bufferization } // namespace mlir diff --git a/mlir/lib/Dialect/Bufferization/Transforms/OneShotModuleBufferize.cpp b/mlir/lib/Dialect/Bufferization/Transforms/OneShotModuleBufferize.cpp index e35897986840..f00097064cc0 100644 --- a/mlir/lib/Dialect/Bufferization/Transforms/OneShotModuleBufferize.cpp +++ b/mlir/lib/Dialect/Bufferization/Transforms/OneShotModuleBufferize.cpp @@ -486,7 +486,7 @@ LogicalResult mlir::bufferization::bufferizeModuleOp( } LogicalResult mlir::bufferization::runOneShotModuleBufferize( - ModuleOp moduleOp, OneShotBufferizationOptions options) { + ModuleOp moduleOp, const OneShotBufferizationOptions &options) { assert(options.bufferizeFunctionBoundaries && "expected that function boundary bufferization is activated"); OneShotAnalysisState analysisState(moduleOp, options);