| 1 |
set(LLVM_LINK_COMPONENTS |
| 2 |
TableGen |
| 3 |
Support |
| 4 |
) |
| 5 |
|
| 6 |
set(LLVM_TARGET_DEFINITIONS Automata.td) |
| 7 |
|
| 8 |
tablegen(LLVM AutomataTables.inc -gen-searchable-tables) |
| 9 |
tablegen(LLVM AutomataAutomata.inc -gen-automata) |
| 10 |
add_public_tablegen_target(AutomataTestTableGen) |
| 11 |
|
| 12 |
add_llvm_unittest(TableGenTests DISABLE_LLVM_LINK_LLVM_DYLIB |
| 13 |
AutomataTest.cpp |
| 14 |
CodeExpanderTest.cpp |
| 15 |
ParserEntryPointTest.cpp |
| 16 |
) |
| 17 |
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../utils/TableGen) |
| 18 |
target_link_libraries(TableGenTests PRIVATE LLVMTableGenGlobalISel LLVMTableGen) |