add_subdirectory(Analysis)
add_subdirectory(Dialect)
add_subdirectory(EDSC)
+add_subdirectory(Transforms)
--- /dev/null
+set(LLVM_TARGET_DEFINITIONS LoopLikeInterface.td)
+mlir_tablegen(LoopLikeInterface.h.inc -gen-op-interface-decls)
+mlir_tablegen(LoopLikeInterface.cpp.inc -gen-op-interface-defs)
+add_public_tablegen_target(MLIRLoopLikeInterfaceIncGen)
+
+
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/AffineOps
)
-add_dependencies(MLIRAffineOps MLIRAffineOpsIncGen MLIRIR MLIRStandardOps)
+add_dependencies(MLIRAffineOps
+ MLIRAffineOpsIncGen
+ MLIRIR
+ MLIRLoopLikeInterfaceIncGen
+ MLIRStandardOps)
target_link_libraries(MLIRAffineOps MLIRIR MLIRStandardOps)
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/LoopOps
)
-add_dependencies(MLIRLoopOps MLIRLoopOpsIncGen MLIRStandardOps LLVMSupport)
+add_dependencies(MLIRLoopOps MLIRLoopLikeInterfaceIncGen MLIRLoopOpsIncGen MLIRStandardOps LLVMSupport)
target_link_libraries(MLIRLoopOps LLVMSupport)
add_llvm_library(MLIRTransforms
AffineDataCopyGeneration.cpp
+ AffineLoopInvariantCodeMotion.cpp
Canonicalizer.cpp
CSE.cpp
DialectConversion.cpp
${MLIR_MAIN_INCLUDE_DIR}/mlir/Transforms
)
-add_dependencies(MLIRTransforms MLIRStandardOpsIncGen)
+add_dependencies(MLIRTransforms
+ MLIRLoopLikeInterfaceIncGen
+ MLIRStandardOpsIncGen)
target_link_libraries(MLIRTransforms
MLIRAffineOps
MLIRAnalysis