@@ -579,7 +579,6 @@ The code, slightly simplified and annotated, is reproduced here:
579579 // Partial bufferization passes.
580580 pm.addPass(createTensorConstantBufferizePass());
581581 pm.addNestedPass<func::FuncOp>(createTCPBufferizePass()); // Bufferizes the downstream `tcp` dialect.
582- pm.addNestedPass<func::FuncOp>(createSCFBufferizePass());
583582 pm.addNestedPass<func::FuncOp>(createLinalgBufferizePass());
584583 pm.addNestedPass<func::FuncOp>(createTensorBufferizePass());
585584 pm.addPass(createFuncBufferizePass());
@@ -596,7 +595,7 @@ must be module passes because they make changes to the top-level module.
596595
597596The bulk of the bufferization work is done by the function passes. Most of these
598597passes are provided as part of the upstream MLIR distribution and bufferize
599- their respective dialects (e.g. ` scf -bufferize` bufferizes the ` scf ` dialect).
598+ their respective dialects (e.g. ` abc -bufferize` bufferizes the ` abc ` dialect).
600599The ` tcp-bufferize ` pass is an exception -- it is a partial bufferization pass
601600used to bufferize the downstream ` tcp ` dialect, and fits in perfectly with all
602601the other passes provided upstream.
@@ -694,20 +693,6 @@ which helps with this in general.
694693
695694### Other partial bufferization examples
696695
697- - ` scf-bufferize `
698- ([ code] ( https://github.com/llvm/llvm-project/blob/bc8acf2ce8ad6e8c9b1d97b2e02d3f4ad26e1d9d/mlir/lib/Dialect/SCF/Transforms/Bufferize.cpp#L1 ) ,
699- [ test] ( https://github.com/llvm/llvm-project/blob/bc8acf2ce8ad6e8c9b1d97b2e02d3f4ad26e1d9d/mlir/test/Dialect/SCF/bufferize.mlir#L1 ) )
700-
701- - Bufferizes ops from the ` scf ` dialect.
702- - This is an example of how to bufferize ops that implement
703- ` RegionBranchOpInterface ` (that is, they use regions to represent
704- control flow).
705- - The bulk of the work is done by
706- ` lib/Dialect/SCF/Transforms/StructuralTypeConversions.cpp `
707- ([ code] ( https://github.com/llvm/llvm-project/blob/daaaed6bb89044ac58a23f1bb1ccdd12342a5a58/mlir/lib/Dialect/SCF/Transforms/StructuralTypeConversions.cpp#L1 ) ),
708- which is well-commented and covers how to correctly convert ops that
709- contain regions.
710-
711696- ` func-bufferize `
712697 ([ code] ( https://github.com/llvm/llvm-project/blob/2f5715dc78328215d51d5664c72c632a6dac1046/mlir/lib/Dialect/Func/Transforms/FuncBufferize.cpp#L1 ) ,
713698 [ test] ( https://github.com/llvm/llvm-project/blob/2f5715dc78328215d51d5664c72c632a6dac1046/mlir/test/Dialect/Func/func-bufferize.mlir#L1 ) )
0 commit comments