[PATCH] D73654: [MLIR] break cyclic dependency between VectorOps and Analysis
Stephen Neuendorffer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 11:40:28 PST 2020
stephenneuendorffer created this revision.
Herald added subscribers: llvm-commits, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini, mgorny.
Herald added a reviewer: nicolasvasilache.
Herald added a reviewer: nicolasvasilache.
Herald added a project: LLVM.
stephenneuendorffer added a child revision: D73655: [MLIR] Break cyclic dependency between MLIRPass and MLIRAnalysis.
Depends on D73653 <https://reviews.llvm.org/D73653>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73654
Files:
mlir/lib/Conversion/VectorToLLVM/CMakeLists.txt
mlir/lib/Dialect/VectorOps/CMakeLists.txt
mlir/test/lib/Transforms/CMakeLists.txt
Index: mlir/test/lib/Transforms/CMakeLists.txt
===================================================================
--- mlir/test/lib/Transforms/CMakeLists.txt
+++ mlir/test/lib/Transforms/CMakeLists.txt
@@ -32,6 +32,7 @@
MLIRTransformUtils
MLIRVectorToLoops
MLIRVectorOps
+ MLIRVectorTransforms
)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../TestDialect)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../TestDialect)
Index: mlir/lib/Dialect/VectorOps/CMakeLists.txt
===================================================================
--- mlir/lib/Dialect/VectorOps/CMakeLists.txt
+++ mlir/lib/Dialect/VectorOps/CMakeLists.txt
@@ -1,13 +1,28 @@
-add_llvm_library(MLIRVectorOps STATIC
+set(LLVM_OPTIONAL_SOURCES
DialectRegistration.cpp
VectorOps.cpp
VectorTransforms.cpp
+ )
+
+add_llvm_library(MLIRVectorOps
+ DialectRegistration.cpp
+ VectorOps.cpp
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/VectorOps
)
add_dependencies(MLIRVectorOps MLIRVectorOpsIncGen)
-add_dependencies(MLIRVectorOps MLIRVectorTransformPatternsIncGen)
-target_link_libraries(MLIRVectorOps MLIRAnalysis MLIRIR MLIRStandardOps)
+target_link_libraries(MLIRVectorOps MLIRIR MLIRStandardOps)
+
+add_llvm_library(MLIRVectorTransforms
+ VectorTransforms.cpp
+
+ ADDITIONAL_HEADER_DIRS
+ ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/VectorOps
+ )
+
+add_dependencies(MLIRVectorTransforms MLIRVectorTransformPatternsIncGen)
+
+target_link_libraries(MLIRVectorTransforms MLIRAnalysis MLIRIR MLIRAffineOps MLIRLoopOps MLIRStandardOps MLIRVectorOps)
Index: mlir/lib/Conversion/VectorToLLVM/CMakeLists.txt
===================================================================
--- mlir/lib/Conversion/VectorToLLVM/CMakeLists.txt
+++ mlir/lib/Conversion/VectorToLLVM/CMakeLists.txt
@@ -7,6 +7,7 @@
set(LIBS
MLIRLLVMIR
MLIRStandardToLLVM
+ MLIRVectorTransforms
MLIRTransforms
LLVMCore
LLVMSupport
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73654.241240.patch
Type: text/x-patch
Size: 1933 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200129/36a2d0e0/attachment.bin>
More information about the llvm-commits
mailing list