1 function(_add_capi_test_executable name)
2 cmake_parse_arguments(ARG
7 set(LLVM_LINK_COMPONENTS
9 add_llvm_executable(${name}
10 PARTIAL_SOURCES_INTENDED
11 ${ARG_UNPARSED_ARGUMENTS})
12 set_target_properties(${name} PROPERTIES FOLDER "MLIR/Tests")
13 set_target_properties(${name} PROPERTIES EXCLUDE_FROM_ALL ON)
15 llvm_update_compile_flags(${name})
16 if(MLIR_BUILD_MLIR_C_DYLIB)
17 target_link_libraries(${name} PRIVATE
21 target_link_libraries(${name} PRIVATE
24 endfunction(_add_capi_test_executable)
26 if(MLIR_ENABLE_EXECUTION_ENGINE)
27 _add_capi_test_executable(mlir-capi-execution-engine-test
31 MLIRCAPIExecutionEngine
32 MLIRCAPIRegisterEverything
36 _add_capi_test_executable(mlir-capi-ir-test
41 MLIRCAPIRegisterEverything
44 _add_capi_test_executable(mlir-capi-irdl-test
51 _add_capi_test_executable(mlir-capi-llvm-test
56 MLIRCAPIRegisterEverything
59 _add_capi_test_executable(mlir-capi-pass-test
64 MLIRCAPIRegisterEverything
68 _add_capi_test_executable(mlir-capi-pdl-test
72 MLIRCAPIRegisterEverything
76 _add_capi_test_executable(mlir-capi-sparse-tensor-test
80 MLIRCAPIRegisterEverything
84 _add_capi_test_executable(mlir-capi-quant-test
88 MLIRCAPIRegisterEverything
92 _add_capi_test_executable(mlir-capi-rewrite-test
96 MLIRCAPIRegisterEverything
101 _add_capi_test_executable(mlir-capi-transform-test
105 MLIRCAPIRegisterEverything
106 MLIRCAPITransformDialect
109 _add_capi_test_executable(mlir-capi-transform-interpreter-test
110 transform_interpreter.c
113 MLIRCAPIRegisterEverything
114 MLIRCAPITransformDialect
115 MLIRCAPITransformDialectTransforms
118 _add_capi_test_executable(mlir-capi-translation-test
123 MLIRCAPIRegisterEverything