[mlir][linalg][bufferize] Compose dialect-specific bufferization state
authorMatthias Springer <springerm@google.com>
Fri, 26 Nov 2021 02:35:10 +0000 (11:35 +0900)
committerMatthias Springer <springerm@google.com>
Fri, 26 Nov 2021 02:35:45 +0000 (11:35 +0900)
commitd62b4b08af03a9fc25274ed0e380d9d052fe251b
treef60c660eedd752f2955d8cdfe3a0f811761885e4
parentc94b80b4380ce851b5cf406a961eab472a43b3df
[mlir][linalg][bufferize] Compose dialect-specific bufferization state

Use composition instead of inheritance for storing dialect-specific bufferization state. This is in preparation of adding "tensor dialect"-specific bufferization state.

Differential Revision: https://reviews.llvm.org/D114508
mlir/include/mlir/Dialect/Linalg/ComprehensiveBufferize/BufferizableOpInterface.h
mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ModuleBufferization.cpp