[RISCV] Fix the code alignment for GroupFloatVectors. NFC
[llvm-project.git] / mlir / test / CAPI / CMakeLists.txt
blob3988643a2217f5dd2cff0ac8ab140465970f9859
1 function(_add_capi_test_executable name)
2   cmake_parse_arguments(ARG
3     ""
4     ""
5     "LINK_LIBS"
6     ${ARGN})
7   set(LLVM_LINK_COMPONENTS
8     )
9   add_llvm_executable(${name}
10     PARTIAL_SOURCES_INTENDED
11     ${ARG_UNPARSED_ARGUMENTS})
12   llvm_update_compile_flags(${name})
13   if(MLIR_BUILD_MLIR_C_DYLIB)
14     target_link_libraries(${name} PRIVATE
15       MLIR-C)
16   else()
17     target_link_libraries(${name} PRIVATE
18       ${ARG_LINK_LIBS})
19   endif()
20 endfunction(_add_capi_test_executable)
22 _add_capi_test_executable(mlir-capi-execution-engine-test
23   execution_engine.c
24 LINK_LIBS PRIVATE
25   MLIRCAPIConversion
26   MLIRCAPIExecutionEngine
27   MLIRCAPIRegistration
30 _add_capi_test_executable(mlir-capi-ir-test
31   ir.c
32   LINK_LIBS PRIVATE
33     MLIRCAPIIR
34     MLIRCAPIStandard
35     MLIRCAPIRegistration
38 _add_capi_test_executable(mlir-capi-llvm-test
39   llvm.c
40   LINK_LIBS PRIVATE
41     MLIRCAPIIR
42     MLIRCAPILLVM
43     MLIRCAPIRegistration
46 _add_capi_test_executable(mlir-capi-pass-test
47   pass.c
48   LINK_LIBS PRIVATE
49     MLIRCAPIIR
50     MLIRCAPIRegistration
51     MLIRCAPITransforms
54 _add_capi_test_executable(mlir-capi-sparse-tensor-test
55   sparse_tensor.c
56   LINK_LIBS PRIVATE
57     MLIRCAPIIR
58     MLIRCAPIRegistration
59     MLIRCAPISparseTensor