1set(LLVM_OPTIONAL_SOURCES 2 ir.c 3 pass.c 4) 5 6set(LLVM_LINK_COMPONENTS 7 ) 8 9add_llvm_executable(mlir-capi-ir-test 10 ir.c 11 ) 12llvm_update_compile_flags(mlir-capi-ir-test) 13 14get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS) 15target_link_libraries(mlir-capi-ir-test 16 PRIVATE 17 MLIRPublicAPI 18 ) 19 20 21add_llvm_executable(mlir-capi-pass-test 22 pass.c 23 ) 24llvm_update_compile_flags(mlir-capi-pass-test) 25 26get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS) 27target_link_libraries(mlir-capi-pass-test 28 PRIVATE 29 MLIRPublicAPI 30 ) 31