The methods in `SideEffectUtils.h` (and their implementations in `SideEffectUtils.cpp`) seem to have similar intent to methods already existing in `SideEffectInterfaces.h`. Move the decleration (and implementation) from `SideEffectUtils.h` (and `SideEffectUtils.cpp`) into `SideEffectInterfaces.h` (and `SideEffectInterface.cpp`). Also drop the `SideEffectInterface::hasNoEffect` method in favor of `mlir::isMemoryEffectFree` which actually recurses into the operation instead of just relying on the `hasRecursiveMemoryEffectTrait` exclusively. Differential Revision: https://reviews.llvm.org/D137857
37 lines
810 B
CMake
37 lines
810 B
CMake
add_mlir_dialect_library(MLIRBufferizationTransforms
|
|
Bufferize.cpp
|
|
BufferDeallocation.cpp
|
|
BufferOptimizations.cpp
|
|
BufferResultsToOutParams.cpp
|
|
BufferUtils.cpp
|
|
BufferViewFlowAnalysis.cpp
|
|
DropEquivalentBufferResults.cpp
|
|
EmptyTensorElimination.cpp
|
|
EmptyTensorToAllocTensor.cpp
|
|
FuncBufferizableOpInterfaceImpl.cpp
|
|
OneShotAnalysis.cpp
|
|
OneShotModuleBufferize.cpp
|
|
TensorCopyInsertion.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Bufferization
|
|
|
|
DEPENDS
|
|
MLIRBufferizationPassIncGen
|
|
MLIRBufferizationEnumsIncGen
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRBufferizationDialect
|
|
MLIRControlFlowInterfaces
|
|
MLIRFuncDialect
|
|
MLIRInferTypeOpInterface
|
|
MLIRIR
|
|
MLIRMemRefDialect
|
|
MLIRPass
|
|
MLIRTensorDialect
|
|
MLIRSideEffectInterfaces
|
|
MLIRTransforms
|
|
MLIRViewLikeInterface
|
|
)
|
|
|