Files
clang-p2996/mlir/lib/Conversion/SCFToGPU/CMakeLists.txt
Mahesh Ravishankar fc367dfa67 [mlir] Remove Transforms/SideEffectUtils.h and move the methods into Interface/SideEffectInterfaces.h.
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
2022-11-15 20:07:35 +00:00

25 lines
436 B
CMake

add_mlir_conversion_library(MLIRSCFToGPU
SCFToGPU.cpp
SCFToGPUPass.cpp
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/SCFToGPU
DEPENDS
MLIRConversionPassIncGen
LINK_LIBS PUBLIC
MLIRAffineDialect
MLIRAffineToStandard
MLIRArithDialect
MLIRComplexDialect
MLIRGPUTransforms
MLIRIR
MLIRLinalgDialect
MLIRMemRefDialect
MLIRPass
MLIRSupport
MLIRSideEffectInterfaces
MLIRTransforms
)