Skip to content

Commit 1ca35fc

Browse files
[mlir][linalg][bufferize] Move BufferizableOpInterface implementations
This commit moves parts of the existing bufferization code into external op interface implementations. Furthermore, Comprehensive Bufferize is adapted to use the new interface. Future commits will decouple the interface and its op implementations from Comprehensive Bufferize and the Linalg dialect, as well as split them into multiple files with their own build targets. This commit leaves the file structure and build rules mostly unchanged. Differential Revision: https://reviews.llvm.org/D112900
1 parent ca791f8 commit 1ca35fc

File tree

2 files changed

+1298
-970
lines changed

2 files changed

+1298
-970
lines changed

mlir/include/mlir/Dialect/Linalg/Transforms/ComprehensiveBufferize.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ bufferizeOp(Operation *op, BlockAndValueMapping &bvm,
193193
AllocationCallbacks allocationFns,
194194
DenseMap<FuncOp, FunctionType> *bufferizedFunctionTypes = nullptr);
195195

196+
/// Register external models implemented for the `BufferizableOpInterface`.
197+
void registerBufferiableOpInterfaceExternalModels(DialectRegistry &registry);
196198
} // namespace linalg
197199
} // namespace mlir
198200

0 commit comments

Comments
 (0)