2019-10-03 21:13:39 +02:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
TableGen
|
|
|
|
Support
|
|
|
|
)
|
|
|
|
|
2019-10-04 11:03:36 +02:00
|
|
|
set(LLVM_TARGET_DEFINITIONS Automata.td)
|
|
|
|
|
|
|
|
tablegen(LLVM AutomataTables.inc -gen-searchable-tables)
|
|
|
|
tablegen(LLVM AutomataAutomata.inc -gen-automata)
|
|
|
|
add_public_tablegen_target(AutomataTestTableGen)
|
|
|
|
|
2021-06-05 15:04:18 +02:00
|
|
|
add_llvm_unittest(TableGenTests DISABLE_LLVM_LINK_LLVM_DYLIB
|
2019-10-03 21:13:39 +02:00
|
|
|
CodeExpanderTest.cpp
|
2019-10-04 11:03:36 +02:00
|
|
|
AutomataTest.cpp
|
2019-10-03 21:13:39 +02:00
|
|
|
)
|
2020-01-24 12:17:08 +01:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../utils/TableGen)
|
2021-03-31 22:26:19 +02:00
|
|
|
target_link_libraries(TableGenTests PRIVATE LLVMTableGenGlobalISel LLVMTableGen)
|