Skip to content

Commit 47a5771

Browse files
author
Menooker
authored
Remove use of legacy bufferization passes (#118)
1 parent 17d7e48 commit 47a5771

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/gc/Transforms/Pipeline.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,11 @@ void populateVectorPasses(mlir::PassManager &pm) {
5858
// scf + arith + math + vector + memref + linalg.brgemm
5959
void populateBufferizationPasses(mlir::PassManager &pm) {
6060
bufferization::OneShotBufferizationOptions options;
61+
options.bufferizeFunctionBoundaries = true;
62+
options.setFunctionBoundaryTypeConversion(
63+
bufferization::LayoutMapOption::IdentityLayoutMap);
6164
pm.addPass(bufferization::createOneShotBufferizePass(options));
6265
pm.addPass(createCSEPass());
63-
pm.addPass(mlir::func::createFuncBufferizePass());
64-
pm.addNestedPass<func::FuncOp>(
65-
bufferization::createBufferizationBufferizePass());
66-
pm.addNestedPass<func::FuncOp>(
67-
bufferization::createFinalizingBufferizePass());
6866
bufferization::BufferResultsToOutParamsOpts opt{};
6967
opt.hoistStaticAllocs = true;
7068
pm.addPass(bufferization::createBufferResultsToOutParamsPass(opt));

0 commit comments

Comments
 (0)