[all-commits] [llvm/llvm-project] 8e2b6a: [mlir][linalg][bufferize][NFC] Analyze OpOperands ...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Fri Jan 7 08:03:57 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8e2b6aac32d672e6eec18c65b77e002cd08033b1
https://github.com/llvm/llvm-project/commit/8e2b6aac32d672e6eec18c65b77e002cd08033b1
Author: Matthias Springer <springerm at google.com>
Date: 2022-01-08 (Sat, 08 Jan 2022)
Changed paths:
M mlir/include/mlir/Dialect/Linalg/ComprehensiveBufferize/BufferizableOpInterface.h
M mlir/include/mlir/Dialect/Linalg/ComprehensiveBufferize/BufferizableOpInterface.td
M mlir/lib/Dialect/Linalg/ComprehensiveBufferize/BufferizableOpInterface.cpp
M mlir/lib/Dialect/Linalg/ComprehensiveBufferize/BufferizationInterfaceImpl.cpp
M mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ComprehensiveBufferize.cpp
M mlir/lib/Dialect/Linalg/ComprehensiveBufferize/LinalgInterfaceImpl.cpp
M mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ModuleBufferization.cpp
M mlir/lib/Dialect/Linalg/ComprehensiveBufferize/SCFInterfaceImpl.cpp
M mlir/lib/Dialect/Linalg/ComprehensiveBufferize/TensorInterfaceImpl.cpp
M mlir/test/Dialect/Linalg/comprehensive-bufferize-analysis-2fill-extract-matmul-all-perms.mlir
M mlir/test/Dialect/Linalg/comprehensive-module-bufferize-analysis.mlir
Log Message:
-----------
[mlir][linalg][bufferize][NFC] Analyze OpOperands instead of OpResults
With this change, the analysis takes a look at OpOperands instead of OpResults. OpOperands can bufferize out-of-place (even if they have no aliasing OpResults). The analysis does no longer care about OpResults.
Previously, only OpResults could bufferize out-of-place, so OpOperands that have no aliasing OpResults were never copied by Comprehensive Bufferize. This does not fit wwell with the new CallOp bufferization that is introduced in a subsequent change. In essence, called FuncOps can then be treated as "black boxes" that may read/write to any bbArg, even if they do not return anything.
Differential Revision: https://reviews.llvm.org/D115706
More information about the All-commits
mailing list