| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,21 @@ | ||
| add_mlir_conversion_library(MLIRLoopsToGPU | ||
| LoopsToGPU.cpp | ||
| LoopsToGPUPass.cpp | ||
|
|
||
| ADDITIONAL_HEADER_DIRS | ||
| ${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/LoopsToGPU | ||
|
|
||
| LINK_LIBS | ||
| MLIRAffineOps | ||
| MLIRAffineToStandard | ||
| MLIRGPU | ||
| MLIRIR | ||
| MLIRLinalgOps | ||
| MLIRLoopOps | ||
| MLIRPass | ||
| MLIRStandardOps | ||
| MLIRSupport | ||
| MLIRTransforms | ||
| MLIRTransformUtils | ||
| LLVMSupport | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,15 @@ | ||
| add_mlir_dialect_library(MLIRLinalgAnalysis | ||
| DependenceAnalysis.cpp | ||
|
|
||
| ADDITIONAL_HEADER_DIRS | ||
| ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg | ||
|
|
||
| DEPENDS | ||
| intrinsics_gen | ||
|
|
||
| LINK_LIBS | ||
| MLIRIR | ||
| MLIRLinalgOps | ||
| MLIRStandardOps | ||
| LLVMSupport | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,18 @@ | ||
| add_mlir_dialect_library(MLIRLinalgEDSC | ||
| Builders.cpp | ||
|
|
||
| ADDITIONAL_HEADER_DIRS | ||
| ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg | ||
|
|
||
| DEPENDS | ||
| intrinsics_gen | ||
|
|
||
| LINK_LIBS | ||
| MLIREDSC | ||
| MLIRIR | ||
| MLIRAffineOps | ||
| MLIRLinalgOps | ||
| MLIRLoopOps | ||
| MLIRStandardOps | ||
| LLVMSupport | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,21 @@ | ||
| add_mlir_dialect_library(MLIRLinalgOps | ||
| LinalgOps.cpp | ||
| LinalgTypes.cpp | ||
|
|
||
| ADDITIONAL_HEADER_DIRS | ||
| ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg | ||
|
|
||
| DEPENDS | ||
| intrinsics_gen | ||
|
|
||
| LINK_LIBS | ||
| MLIRIR | ||
| MLIRStandardOps | ||
| MLIRSupport | ||
| LLVMSupport | ||
| ) | ||
| add_dependencies(MLIRLinalgOps | ||
| MLIRLinalgOpsIncGen | ||
| MLIRLinalgStructuredOpsIncGen | ||
| MLIRLinalgStructuredOpsInterfaceIncGen | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,20 @@ | ||
| add_mlir_dialect_library(MLIRLinalgUtils | ||
| Utils.cpp | ||
|
|
||
| ADDITIONAL_HEADER_DIRS | ||
| ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg | ||
|
|
||
| DEPENDS | ||
| intrinsics_gen | ||
|
|
||
| LINK_LIBS | ||
| MLIRAffineOps | ||
| MLIREDSC | ||
| MLIRIR | ||
| MLIRLinalgOps | ||
| MLIRLoopOps | ||
| MLIRPass | ||
| MLIRStandardOps | ||
| MLIRTransformUtils | ||
| LLVMSupport | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,16 @@ | ||
| file(GLOB globbed *.c *.cpp) | ||
| add_mlir_library(MLIRIR | ||
| ${globbed} | ||
|
|
||
| ADDITIONAL_HEADER_DIRS | ||
| ${MLIR_MAIN_INCLUDE_DIR}/mlir/IR | ||
|
|
||
| DEPENDS | ||
| MLIRCallOpInterfacesIncGen | ||
| MLIROpAsmInterfacesIncGen | ||
|
|
||
| LINK_LIBS | ||
| MLIRSupport | ||
| LLVMSupport | ||
| ${LLVM_PTHREAD_LIB} | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,13 @@ | ||
| add_mlir_library(MLIRParser | ||
| Lexer.cpp | ||
| Parser.cpp | ||
| Token.cpp | ||
|
|
||
| ADDITIONAL_HEADER_DIRS | ||
| ${MLIR_MAIN_INCLUDE_DIR}/mlir/Parser | ||
|
|
||
| LINK_LIBS | ||
| MLIRIR | ||
| MLIRAnalysis | ||
| LLVMSupport | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,14 @@ | ||
| file(GLOB globbed *.c *.cpp) | ||
| add_mlir_library(MLIRPass | ||
| ${globbed} | ||
|
|
||
| ADDITIONAL_HEADER_DIRS | ||
| ${MLIR_MAIN_INCLUDE_DIR}/mlir/Pass | ||
|
|
||
| LINK_LIBS | ||
| MLIRAnalysis | ||
| MLIRIR | ||
| MLIRSupport | ||
| LLVMIRReader | ||
| LLVMSupport | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,50 +1,78 @@ | ||
| add_mlir_library(MLIRTargetLLVMIRModuleTranslation | ||
| LLVMIR/DebugTranslation.cpp | ||
| LLVMIR/ModuleTranslation.cpp | ||
|
|
||
| ADDITIONAL_HEADER_DIRS | ||
| ${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR | ||
|
|
||
| DEPENDS | ||
| intrinsics_gen | ||
|
|
||
| LINK_LIBS | ||
| MLIRLLVMIR | ||
| LLVMCore | ||
| LLVMIRReader | ||
| LLVMSupport | ||
| LLVMTransformUtils | ||
| MLIRIR | ||
| MLIRSupport | ||
| MLIRTranslation | ||
| ) | ||
|
|
||
| add_mlir_library(MLIRTargetLLVMIR | ||
| LLVMIR/ConvertFromLLVMIR.cpp | ||
| LLVMIR/ConvertToLLVMIR.cpp | ||
|
|
||
| ADDITIONAL_HEADER_DIRS | ||
| ${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR | ||
|
|
||
| LINK_LIBS | ||
| MLIRIR | ||
| MLIRLLVMIR | ||
| MLIRSupport | ||
| MLIRTargetLLVMIRModuleTranslation | ||
| MLIRTranslation | ||
| LLVMCore | ||
| LLVMIRReader | ||
| LLVMSupport | ||
| ) | ||
|
|
||
| add_mlir_library(MLIRTargetNVVMIR | ||
| LLVMIR/ConvertToNVVMIR.cpp | ||
|
|
||
| ADDITIONAL_HEADER_DIRS | ||
| ${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR | ||
|
|
||
| DEPENDS | ||
| intrinsics_gen | ||
|
|
||
| LINK_LIBS | ||
| MLIRGPU | ||
| MLIRIR | ||
| MLIRLLVMIR | ||
| MLIRNVVMIR | ||
| MLIRTargetLLVMIRModuleTranslation | ||
| MLIRTranslation | ||
| LLVMCore | ||
| LLVMSupport | ||
| ) | ||
|
|
||
| add_mlir_library(MLIRTargetROCDLIR | ||
| LLVMIR/ConvertToROCDLIR.cpp | ||
|
|
||
| ADDITIONAL_HEADER_DIRS | ||
| ${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR | ||
|
|
||
| DEPENDS | ||
| intrinsics_gen | ||
|
|
||
| LINK_LIBS | ||
| MLIRGPU | ||
| MLIRIR | ||
| MLIRLLVMIR | ||
| MLIRROCDLIR | ||
| MLIRTargetLLVMIRModuleTranslation | ||
| MLIRTranslation | ||
| LLVMCore | ||
| LLVMSupport | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| add_mlir_library(MLIRTranslation | ||
| Translation.cpp | ||
|
|
||
| ADDITIONAL_HEADER_DIRS | ||
| ${MLIR_MAIN_INCLUDE_DIR}/mlir/Translation | ||
|
|
||
| LINK_LIBS | ||
| LLVMSupport | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ target_link_libraries(mlir-sdbm-api-test | |
| PRIVATE | ||
| MLIRIR | ||
| MLIRSDBM | ||
| MLIRSupport | ||
| LLVMCore | ||
| LLVMSupport | ||
| ) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # Building libmlir-cpp.so fails if LLVM_ENABLE_PIC=Off | ||
| if (NOT LLVM_ENABLE_PIC) | ||
| return() | ||
| endif() | ||
|
|
||
| # Building libmlir-cpp.so may not work on MSVC | ||
| if (MSVC) | ||
| return() | ||
| endif() | ||
|
|
||
| get_property(mlir_libs GLOBAL PROPERTY MLIR_ALL_LIBS) | ||
| list(REMOVE_DUPLICATES mlir_libs) | ||
|
|
||
| foreach (lib ${mlir_libs}) | ||
| if(XCODE) | ||
| # Xcode doesn't support object libraries, so we have to trick it into | ||
| # linking the static libraries instead. | ||
| list(APPEND _DEPS "-force_load" ${lib}) | ||
| else() | ||
| list(APPEND _OBJECTS $<TARGET_OBJECTS:obj.${lib}>) | ||
| endif() | ||
| list(APPEND _DEPS $<TARGET_PROPERTY:${lib},LINK_LIBRARIES>) | ||
| endforeach () | ||
|
|
||
| if(MLIR_LINK_MLIR_DYLIB) | ||
| set(INSTALL_WITH_TOOLCHAIN INSTALL_WITH_TOOLCHAIN) | ||
| endif() | ||
|
|
||
| # libMLIR.so depends on LLVM components. To avoid multiple | ||
| # copies of those LLVM components, libMLIR.so depends on libLLVM.so. | ||
| # This probably won't work if some LLVM components are not included | ||
| # in libLLVM.so. | ||
| if(LLVM_BUILD_LLVM_DYLIB) | ||
| add_llvm_library(MLIR | ||
| SHARED | ||
| ${INSTALL_WITH_TOOLCHAIN} | ||
|
|
||
| mlir-shlib.cpp | ||
| ) | ||
| target_link_libraries(MLIR PRIVATE LLVM ${LLVM_PTHREAD_LIB}) | ||
| whole_archive_link(MLIR ${mlir_libs}) | ||
| endif() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| // Intentionally empty source file to make CMake happy |