forked from OSchip/llvm-project
45 lines
876 B
CMake
45 lines
876 B
CMake
set(LLVM_OPTIONAL_SOURCES
|
|
execution_engine.c
|
|
ir.c
|
|
pass.c
|
|
)
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
)
|
|
|
|
add_llvm_executable(mlir-capi-ir-test
|
|
ir.c
|
|
)
|
|
llvm_update_compile_flags(mlir-capi-ir-test)
|
|
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
target_link_libraries(mlir-capi-ir-test
|
|
PRIVATE
|
|
MLIRPublicAPI
|
|
)
|
|
|
|
|
|
add_llvm_executable(mlir-capi-pass-test
|
|
pass.c
|
|
)
|
|
llvm_update_compile_flags(mlir-capi-pass-test)
|
|
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
target_link_libraries(mlir-capi-pass-test
|
|
PRIVATE
|
|
MLIRPublicAPI
|
|
)
|
|
|
|
add_llvm_executable(mlir-capi-execution-engine-test
|
|
execution_engine.c
|
|
DEPENDS
|
|
MLIRConversionPassIncGen
|
|
)
|
|
llvm_update_compile_flags(mlir-capi-execution-engine-test)
|
|
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
target_link_libraries(mlir-capi-execution-engine-test
|
|
PRIVATE
|
|
MLIRPublicAPI
|
|
)
|