Add missing dependencies for EDSC and linalg libraries

This solves the missing "mlir/StandardOps/Ops.h.inc" issue when building
    a fresh checkout on macOS.

--

PiperOrigin-RevId: 243120388
This commit is contained in:
Lei Zhang 2019-04-11 12:34:50 -07:00 committed by Mehdi Amini
parent fe59ba19af
commit 0836f670f1
8 changed files with 63 additions and 50 deletions

View File

@ -19,14 +19,6 @@ target_link_libraries(linalg-example-1
PRIVATE
Linalg1DialectConstruction
Linalg1
MLIRAnalysis
MLIRDialect
MLIREDSC
MLIRIR
MLIRLLVMIR
MLIRParser
MLIRPass
MLIRTransforms
)
whole_archive_link(linalg-example-1
@ -37,14 +29,6 @@ target_link_libraries(linalg-conversion-1
PRIVATE
Linalg1DialectConstruction
Linalg1
MLIRAnalysis
MLIRDialect
MLIREDSC
MLIRIR
MLIRLLVMIR
MLIRParser
MLIRPass
MLIRTransforms
)
whole_archive_link(linalg-conversion-1

View File

@ -23,6 +23,21 @@ add_llvm_library(Linalg1
ViewType.cpp
)
target_link_libraries(Linalg1
PUBLIC
MLIRAnalysis
MLIRDialect
MLIREDSC
MLIRIR
MLIRLLVMIR
MLIRParser
MLIRPass
MLIRTransforms
)
add_llvm_library(Linalg1DialectConstruction
DialectConstruction.cpp
)
target_link_libraries(Linalg1DialectConstruction
PUBLIC Linalg1)

View File

@ -13,14 +13,6 @@ add_llvm_example(linalg-example-2
target_link_libraries(linalg-example-2
PRIVATE
MLIRAnalysis
MLIRDialect
MLIREDSC
MLIRIR
MLIRLLVMIR
MLIRParser
MLIRPass
MLIRTransforms
Linalg1
Linalg2
Linalg2DialectConstruction

View File

@ -9,6 +9,21 @@ add_llvm_library(Linalg2
Transforms.cpp
)
target_link_libraries(Linalg2
PUBLIC
MLIRAnalysis
MLIRDialect
MLIREDSC
MLIRIR
MLIRLLVMIR
MLIRParser
MLIRPass
MLIRTransforms
)
add_llvm_library(Linalg2DialectConstruction
DialectConstruction.cpp
)
target_link_libraries(Linalg2DialectConstruction
PUBLIC Linalg2)

View File

@ -29,14 +29,6 @@ add_llvm_example(linalg-execution-3
target_link_libraries(linalg-example-3
PRIVATE
MLIRAnalysis
MLIRDialect
MLIREDSC
MLIRIR
MLIRLLVMIR
MLIRParser
MLIRPass
MLIRTransforms
Linalg1
Linalg2
Linalg3
@ -49,14 +41,6 @@ whole_archive_link(linalg-example-3
target_link_libraries(linalg-conversion-3
PRIVATE
MLIRAnalysis
MLIRDialect
MLIREDSC
MLIRIR
MLIRLLVMIR
MLIRParser
MLIRPass
MLIRTransforms
Linalg1
Linalg2
Linalg3
@ -69,17 +53,7 @@ whole_archive_link(linalg-conversion-3
target_link_libraries(linalg-execution-3
PRIVATE
MLIRAnalysis
MLIRDialect
MLIREDSC
MLIRExecutionEngine
MLIRIR
MLIRLLVMIR
MLIRParser
MLIRPass
MLIRSupport
MLIRTargetLLVMIR
MLIRTransforms
Linalg1
Linalg2
Linalg3

View File

@ -15,6 +15,21 @@ add_llvm_library(Linalg3
TensorOps.cpp
)
target_link_libraries(Linalg3
PUBLIC
MLIRAnalysis
MLIRDialect
MLIREDSC
MLIRIR
MLIRLLVMIR
MLIRParser
MLIRPass
MLIRTransforms
)
add_llvm_library(Linalg3DialectConstruction
DialectConstruction.cpp
)
target_link_libraries(Linalg3DialectConstruction
PUBLIC Linalg3)

View File

@ -1,3 +1,15 @@
add_llvm_library(Linalg4
Transforms.cpp
)
target_link_libraries(Linalg4
PUBLIC
MLIRAnalysis
MLIRDialect
MLIREDSC
MLIRIR
MLIRLLVMIR
MLIRParser
MLIRPass
MLIRTransforms
)

View File

@ -8,3 +8,9 @@ add_llvm_library(MLIREDSC
${MLIR_MAIN_INCLUDE_DIR}/mlir/EDSC
)
add_dependencies(MLIREDSC MLIRReferenceImplementationTestGen)
target_link_libraries(MLIREDSC
PUBLIC
MLIRAffineOps
MLIRStandardOps
MLIRVectorOps
)