2020-05-05 03:41:43 +08:00
|
|
|
# Exclude these from libMLIR.so because the JIT infrastructure
|
|
|
|
# is a big dependency which most don't need.
|
|
|
|
|
2020-02-27 22:51:15 +08:00
|
|
|
set(LLVM_OPTIONAL_SOURCES
|
2020-10-23 03:20:42 +08:00
|
|
|
AsyncRuntime.cpp
|
2020-02-28 02:45:43 +08:00
|
|
|
CRunnerUtils.cpp
|
2020-10-07 03:15:36 +08:00
|
|
|
SparseUtils.cpp
|
2020-02-27 22:51:15 +08:00
|
|
|
ExecutionEngine.cpp
|
|
|
|
RunnerUtils.cpp
|
|
|
|
OptUtils.cpp
|
2020-05-14 03:01:40 +08:00
|
|
|
JitRunner.cpp
|
2020-02-27 22:51:15 +08:00
|
|
|
)
|
|
|
|
|
2020-02-09 11:27:54 +08:00
|
|
|
add_mlir_library(MLIRExecutionEngine
|
2019-03-30 13:10:12 +08:00
|
|
|
ExecutionEngine.cpp
|
|
|
|
OptUtils.cpp
|
|
|
|
|
2020-05-05 03:41:43 +08:00
|
|
|
EXCLUDE_FROM_LIBMLIR
|
|
|
|
|
2019-03-30 13:10:12 +08:00
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/ExecutionEngine
|
2020-05-05 08:11:15 +08:00
|
|
|
|
|
|
|
DEPENDS
|
|
|
|
intrinsics_gen
|
2020-05-05 03:41:43 +08:00
|
|
|
|
|
|
|
LINK_COMPONENTS
|
|
|
|
Core
|
2020-10-23 03:20:42 +08:00
|
|
|
Coroutines
|
2020-05-05 03:41:43 +08:00
|
|
|
ExecutionEngine
|
|
|
|
Object
|
|
|
|
OrcJIT
|
|
|
|
JITLink
|
|
|
|
Analysis
|
|
|
|
AggressiveInstCombine
|
|
|
|
InstCombine
|
|
|
|
MC
|
|
|
|
ScalarOpts
|
|
|
|
Target
|
|
|
|
Vectorize
|
|
|
|
TransformUtils
|
|
|
|
nativecodegen
|
|
|
|
IPO
|
|
|
|
|
|
|
|
LINK_LIBS PUBLIC
|
2019-08-22 09:15:39 +08:00
|
|
|
MLIRLLVMIR
|
|
|
|
MLIRTargetLLVMIR
|
2020-05-05 03:41:43 +08:00
|
|
|
)
|
|
|
|
|
2020-10-24 09:22:38 +08:00
|
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
2020-05-14 03:01:40 +08:00
|
|
|
add_mlir_library(MLIRJitRunner
|
|
|
|
JitRunner.cpp
|
|
|
|
|
|
|
|
EXCLUDE_FROM_LIBMLIR
|
|
|
|
|
|
|
|
DEPENDS
|
|
|
|
intrinsics_gen
|
|
|
|
|
|
|
|
LINK_COMPONENTS
|
|
|
|
Core
|
|
|
|
OrcJIT
|
|
|
|
JITLink
|
|
|
|
|
|
|
|
LINK_LIBS PUBLIC
|
2020-10-24 09:22:38 +08:00
|
|
|
${dialect_libs}
|
2020-05-14 03:01:40 +08:00
|
|
|
MLIRExecutionEngine
|
|
|
|
MLIRIR
|
|
|
|
MLIRParser
|
2020-10-01 08:47:25 +08:00
|
|
|
MLIRStandard
|
2020-05-14 03:01:40 +08:00
|
|
|
MLIRTargetLLVMIR
|
|
|
|
MLIRTransforms
|
|
|
|
MLIRStandardToLLVM
|
|
|
|
MLIRSupport
|
|
|
|
)
|
|
|
|
|
2020-05-05 03:41:43 +08:00
|
|
|
add_mlir_library(mlir_c_runner_utils
|
|
|
|
SHARED
|
|
|
|
CRunnerUtils.cpp
|
2020-10-07 03:15:36 +08:00
|
|
|
SparseUtils.cpp
|
2020-05-05 03:41:43 +08:00
|
|
|
|
|
|
|
EXCLUDE_FROM_LIBMLIR
|
|
|
|
)
|
2020-03-12 22:07:16 +08:00
|
|
|
set_property(TARGET mlir_c_runner_utils PROPERTY CXX_STANDARD 11)
|
2021-01-11 20:04:09 +08:00
|
|
|
target_compile_definitions(mlir_c_runner_utils PRIVATE mlir_c_runner_utils_EXPORTS)
|
2020-05-05 03:41:43 +08:00
|
|
|
|
|
|
|
add_mlir_library(mlir_c_runner_utils_static
|
|
|
|
CRunnerUtils.cpp
|
2020-10-07 03:15:36 +08:00
|
|
|
SparseUtils.cpp
|
2020-05-05 03:41:43 +08:00
|
|
|
|
|
|
|
EXCLUDE_FROM_LIBMLIR
|
|
|
|
)
|
2020-03-12 22:07:16 +08:00
|
|
|
set_property(TARGET mlir_c_runner_utils_static PROPERTY CXX_STANDARD 11)
|
2020-02-28 02:45:43 +08:00
|
|
|
|
2020-05-05 03:41:43 +08:00
|
|
|
add_mlir_library(mlir_runner_utils
|
|
|
|
SHARED
|
|
|
|
RunnerUtils.cpp
|
|
|
|
|
|
|
|
EXCLUDE_FROM_LIBMLIR
|
|
|
|
|
|
|
|
LINK_LIBS PUBLIC
|
2020-03-03 11:47:16 +08:00
|
|
|
mlir_c_runner_utils_static
|
2020-02-28 02:45:43 +08:00
|
|
|
)
|
2020-02-28 01:58:41 +08:00
|
|
|
target_compile_definitions(mlir_runner_utils PRIVATE mlir_runner_utils_EXPORTS)
|
2020-10-23 03:20:42 +08:00
|
|
|
|
2021-01-11 20:04:09 +08:00
|
|
|
add_mlir_library(mlir_runner_utils_static
|
|
|
|
RunnerUtils.cpp
|
|
|
|
|
|
|
|
EXCLUDE_FROM_LIBMLIR
|
|
|
|
|
|
|
|
LINK_LIBS PUBLIC
|
|
|
|
mlir_c_runner_utils_static
|
|
|
|
)
|
|
|
|
|
2020-10-23 03:20:42 +08:00
|
|
|
add_mlir_library(mlir_async_runtime
|
|
|
|
SHARED
|
|
|
|
AsyncRuntime.cpp
|
|
|
|
|
|
|
|
EXCLUDE_FROM_LIBMLIR
|
|
|
|
|
|
|
|
LINK_LIBS PUBLIC
|
|
|
|
mlir_c_runner_utils_static
|
2020-10-23 04:35:49 +08:00
|
|
|
${LLVM_PTHREAD_LIB}
|
2020-10-23 03:20:42 +08:00
|
|
|
)
|
2021-01-09 00:18:39 +08:00
|
|
|
set_property(TARGET mlir_async_runtime PROPERTY CXX_VISIBILITY_PRESET hidden)
|
2020-10-23 03:20:42 +08:00
|
|
|
target_compile_definitions(mlir_async_runtime PRIVATE mlir_async_runtime_EXPORTS)
|
2021-01-11 20:04:09 +08:00
|
|
|
|
|
|
|
add_mlir_library(mlir_async_runtime_static
|
|
|
|
AsyncRuntime.cpp
|
|
|
|
|
|
|
|
EXCLUDE_FROM_LIBMLIR
|
|
|
|
|
|
|
|
LINK_LIBS PUBLIC
|
|
|
|
mlir_c_runner_utils_static
|
|
|
|
${LLVM_PTHREAD_LIB}
|
|
|
|
)
|