75f239e975
Introduce an initial version of C API for MLIR core IR components: Value, Type, Attribute, Operation, Region, Block, Location. These APIs allow for both inspection and creation of the IR in the generic form and intended for wrapping in high-level library- and language-specific constructs. At this point, there is no stability guarantee provided for the API. Reviewed By: stellaraccident, lattner Differential Revision: https://reviews.llvm.org/D83310
17 lines
308 B
CMake
17 lines
308 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Core
|
|
Support
|
|
)
|
|
|
|
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
|
|
MLIRCAPIIR
|
|
MLIRCAPIRegistration
|
|
${dialect_libs})
|