This new interface allows operations to implement custom handling of ownership values and insertion of dealloc operations which is useful when an op cannot implement the interfaces supported by default by the buffer deallocation pass (e.g., because they are not exactly compatible or because there are some additional semantics to it that would render the default implementations in buffer deallocation invalid, or because no interfaces exist for this kind of behavior and it's not worth introducing one plus a default implementation in buffer deallocation). Additionally, it can also be used to provide more efficient handling for a specific op than the interface based default implementations can.
15 lines
347 B
CMake
15 lines
347 B
CMake
add_mlir_dialect_library(MLIRControlFlowTransforms
|
|
BufferDeallocationOpInterfaceImpl.cpp
|
|
BufferizableOpInterfaceImpl.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
{$MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/ControlFlow/Transforms
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRBufferizationDialect
|
|
MLIRBufferizationTransforms
|
|
MLIRControlFlowDialect
|
|
MLIRMemRefDialect
|
|
MLIRIR
|
|
)
|