[mlir][linalg][bufferize] Add isWritable to op interface
authorMatthias Springer <springerm@google.com>
Fri, 5 Nov 2021 02:29:46 +0000 (11:29 +0900)
committerMatthias Springer <springerm@google.com>
Fri, 5 Nov 2021 02:31:22 +0000 (11:31 +0900)
commitc8f4005b0c6529c69a404b021faa0d962de03223
tree721fa805ff47b308e2d68dfe2d1eeca0b8ffc492
parent1caabbef8e8e73b3dd0cf1f15cf7417d75b7621c
[mlir][linalg][bufferize] Add isWritable to op interface

By default, OpResult buffers are writable. But there are ops (e.g., ConstantOp) for which this is not the case.

The purpose of this commit is to further decouple Comprehensive Bufferize from the Standard dialect.

Differential Revision: https://reviews.llvm.org/D112908
mlir/include/mlir/Dialect/Linalg/Transforms/BufferizableOpInterface.td
mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp