Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ struct BufferDeallocationPipelineOptions
/// One-Shot bufferization pass.
void buildBufferDeallocationPipeline(
OpPassManager &pm, const BufferDeallocationPipelineOptions &options);
void buildBufferDeallocationPipeline(OpPassManager &pm);

/// Registers all pipelines for the `bufferization` dialect. Currently,
/// this includes only the "buffer-deallocation-pipeline".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
// Pipeline implementation.
//===----------------------------------------------------------------------===//

void mlir::bufferization::buildBufferDeallocationPipeline(OpPassManager &pm) {
buildBufferDeallocationPipeline(pm, BufferDeallocationPipelineOptions());
}

void mlir::bufferization::buildBufferDeallocationPipeline(
OpPassManager &pm, const BufferDeallocationPipelineOptions &options) {
memref::ExpandReallocPassOptions expandAllocPassOptions{
Expand Down Expand Up @@ -44,5 +48,7 @@ void mlir::bufferization::registerBufferizationPipelines() {
"The default pipeline for automatically inserting deallocation "
"operations after one-shot bufferization. Deallocation operations "
"(except `memref.realloc`) may not be present already.",
buildBufferDeallocationPipeline);
[](OpPassManager &pm, const BufferDeallocationPipelineOptions &options) {
buildBufferDeallocationPipeline(pm, options);
});
}