1import("//llvm/utils/TableGen/tablegen.gni") 2import("//third-party/unittest/unittest.gni") 3 4tablegen("AutomataAutomata") { 5 visibility = [ ":TableGenTests" ] 6 args = [ "-gen-automata" ] 7 td_file = "Automata.td" 8} 9 10tablegen("AutomataTables") { 11 visibility = [ ":TableGenTests" ] 12 args = [ "-gen-searchable-tables" ] 13 td_file = "Automata.td" 14} 15 16unittest("TableGenTests") { 17 deps = [ 18 ":AutomataAutomata", 19 ":AutomataTables", 20 "//llvm/lib/Support", 21 "//llvm/lib/TableGen", 22 "//llvm/utils/TableGen/GlobalISel", 23 ] 24 include_dirs = [ "//llvm/utils/TableGen" ] 25 sources = [ 26 "AutomataTest.cpp", 27 "CodeExpanderTest.cpp", 28 "ParserEntryPointTest.cpp", 29 ] 30} 31