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)
|
|
|
|
|
2019-10-03 21:13:39 +02:00
|
|
|
add_llvm_unittest(TableGenTests
|
|
|
|
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)
|
2019-10-03 21:13:39 +02:00
|
|
|
target_link_libraries(TableGenTests PRIVATE LLVMTableGenGlobalISel LLVMTableGen)
|