| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,8 +6,7 @@ add_mlir_dialect_library(MLIROpenMP | |
|
|
||
| DEPENDS | ||
| MLIROpenMPOpsIncGen | ||
|
|
||
| LINK_LIBS PUBLIC | ||
| MLIRIR | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,10 +8,8 @@ add_mlir_dialect_library(MLIRSPIRVTransforms | |
|
|
||
| DEPENDS | ||
| MLIRSPIRVPassIncGen | ||
|
|
||
| LINK_LIBS PUBLIC | ||
| MLIRPass | ||
| MLIRSPIRV | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,47 +1,70 @@ | ||
| # Exclude these from libMLIR.so because the JIT infrastructure | ||
| # is a big dependency which most don't need. | ||
|
|
||
| set(LLVM_OPTIONAL_SOURCES | ||
| CRunnerUtils.cpp | ||
| ExecutionEngine.cpp | ||
| RunnerUtils.cpp | ||
| OptUtils.cpp | ||
| ) | ||
|
|
||
| add_mlir_library(MLIRExecutionEngine | ||
| ExecutionEngine.cpp | ||
| OptUtils.cpp | ||
|
|
||
| EXCLUDE_FROM_LIBMLIR | ||
|
|
||
| ADDITIONAL_HEADER_DIRS | ||
| ${MLIR_MAIN_INCLUDE_DIR}/mlir/ExecutionEngine | ||
|
|
||
| DEPENDS | ||
| intrinsics_gen | ||
|
|
||
| LINK_COMPONENTS | ||
| Core | ||
| ExecutionEngine | ||
| Object | ||
| OrcJIT | ||
| JITLink | ||
| Analysis | ||
| AggressiveInstCombine | ||
| InstCombine | ||
| MC | ||
| ScalarOpts | ||
| Target | ||
| Vectorize | ||
| TransformUtils | ||
| nativecodegen | ||
| IPO | ||
|
|
||
| LINK_LIBS PUBLIC | ||
| MLIRLLVMIR | ||
| MLIRTargetLLVMIR | ||
| ) | ||
|
|
||
| add_mlir_library(mlir_c_runner_utils | ||
| SHARED | ||
| CRunnerUtils.cpp | ||
|
|
||
| EXCLUDE_FROM_LIBMLIR | ||
| ) | ||
| set_property(TARGET mlir_c_runner_utils PROPERTY CXX_STANDARD 11) | ||
|
|
||
| add_mlir_library(mlir_c_runner_utils_static | ||
| CRunnerUtils.cpp | ||
|
|
||
| EXCLUDE_FROM_LIBMLIR | ||
| ) | ||
| set_property(TARGET mlir_c_runner_utils_static PROPERTY CXX_STANDARD 11) | ||
| target_compile_definitions(mlir_c_runner_utils PRIVATE mlir_c_runner_utils_EXPORTS) | ||
|
|
||
| add_mlir_library(mlir_runner_utils | ||
| SHARED | ||
| RunnerUtils.cpp | ||
|
|
||
| EXCLUDE_FROM_LIBMLIR | ||
|
|
||
| LINK_LIBS PUBLIC | ||
| mlir_c_runner_utils_static | ||
| ) | ||
| target_compile_definitions(mlir_runner_utils PRIVATE mlir_runner_utils_EXPORTS) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,15 @@ | ||
| # Exclude tests from libMLIR.so | ||
| add_mlir_library(MLIRTestIR | ||
| TestFunc.cpp | ||
| TestMatchers.cpp | ||
| TestSideEffects.cpp | ||
| TestSymbolUses.cpp | ||
|
|
||
| EXCLUDE_FROM_LIBMLIR | ||
|
|
||
| LINK_LIBS PUBLIC | ||
| MLIRPass | ||
| MLIRTestDialect | ||
| ) | ||
| include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../Dialect/Test) | ||
| include_directories(${CMAKE_CURRENT_BINARY_DIR}/../Dialect/Test) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,13 @@ | ||
| # Exclude tests from libMLIR.so | ||
| add_mlir_library(MLIRTestPass | ||
| TestPassManager.cpp | ||
|
|
||
| EXCLUDE_FROM_LIBMLIR | ||
|
|
||
| ADDITIONAL_HEADER_DIRS | ||
| ${MLIR_MAIN_INCLUDE_DIR}/mlir/Pass | ||
|
|
||
| LINK_LIBS PUBLIC | ||
| MLIRIR | ||
| MLIRPass | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,12 @@ | ||
| set(LLVM_LINK_COMPONENTS | ||
| Core | ||
| Support | ||
| ) | ||
| add_llvm_tool(mlir-linalg-ods-gen | ||
| mlir-linalg-ods-gen.cpp | ||
| ) | ||
| llvm_update_compile_flags(mlir-linalg-ods-gen) | ||
| target_link_libraries(mlir-linalg-ods-gen PRIVATE | ||
| MLIRParser | ||
| MLIRSupport | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,24 @@ | ||
| set(LLVM_LINK_COMPONENTS | ||
| Support | ||
| ) | ||
|
|
||
| get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS) | ||
| get_property(translation_libs GLOBAL PROPERTY MLIR_TRANSLATION_LIBS) | ||
|
|
||
| add_llvm_tool(mlir-translate | ||
| mlir-translate.cpp | ||
| ) | ||
| llvm_update_compile_flags(mlir-translate) | ||
| target_link_libraries(mlir-translate | ||
| PRIVATE | ||
| ${dialect_libs} | ||
| ${translation_libs} | ||
| MLIRIR | ||
| MLIRParser | ||
| MLIRPass | ||
| MLIRSPIRV | ||
| MLIRTranslation | ||
| MLIRSupport | ||
| ) | ||
|
|
||
| mlir_check_link_libraries(mlir-translate) |