[all-commits] [llvm/llvm-project] 87c770: [mlir][bufferization][NFC] Put inplacability confl...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Thu Jun 9 13:10:35 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 87c770bbd04462369950b1e6940e4f9ee4fc6de3
https://github.com/llvm/llvm-project/commit/87c770bbd04462369950b1e6940e4f9ee4fc6de3
Author: Matthias Springer <springerm at google.com>
Date: 2022-06-09 (Thu, 09 Jun 2022)
Changed paths:
M mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.td
M mlir/lib/Dialect/Bufferization/IR/BufferizableOpInterface.cpp
M mlir/lib/Dialect/Bufferization/Transforms/TensorCopyInsertion.cpp
Log Message:
-----------
[mlir][bufferization][NFC] Put inplacability conflict resolution in op interface
The TensorCopyInsertion pass resolves out-of-place bufferization decisions by inserting explicit `bufferization.alloc_tensor` ops. This change moves that functionality into a new BufferizableOpInterface method, so that it can be overridden by op implementations. Some op bufferizations must insert additional `alloc_tensor` ops to make sure that certain aliasing invariants are not violated (e.g., scf::ForOp). This will be addressed in a subsequent change.
Differential Revision: https://reviews.llvm.org/D126817
More information about the All-commits
mailing list