File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
include/mlir/Dialect/Bufferization/Pipelines
lib/Dialect/Bufferization/Pipelines Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ struct BufferDeallocationPipelineOptions
4747// / One-Shot bufferization pass.
4848void buildBufferDeallocationPipeline (
4949 OpPassManager &pm, const BufferDeallocationPipelineOptions &options);
50+ void buildBufferDeallocationPipeline (OpPassManager &pm);
5051
5152// / Registers all pipelines for the `bufferization` dialect. Currently,
5253// / this includes only the "buffer-deallocation-pipeline".
Original file line number Diff line number Diff line change 1717// Pipeline implementation.
1818// ===----------------------------------------------------------------------===//
1919
20+ void mlir::bufferization::buildBufferDeallocationPipeline (OpPassManager &pm) {
21+ buildBufferDeallocationPipeline (pm, BufferDeallocationPipelineOptions ());
22+ }
23+
2024void mlir::bufferization::buildBufferDeallocationPipeline (
2125 OpPassManager &pm, const BufferDeallocationPipelineOptions &options) {
2226 memref::ExpandReallocPassOptions expandAllocPassOptions{
@@ -44,5 +48,7 @@ void mlir::bufferization::registerBufferizationPipelines() {
4448 " The default pipeline for automatically inserting deallocation "
4549 " operations after one-shot bufferization. Deallocation operations "
4650 " (except `memref.realloc`) may not be present already." ,
47- buildBufferDeallocationPipeline);
51+ [](OpPassManager &pm, const BufferDeallocationPipelineOptions &options) {
52+ buildBufferDeallocationPipeline (pm, options);
53+ });
4854}
You can’t perform that action at this time.
0 commit comments