]> granicus.if.org Git - llvm/commitdiff
gn build: (manually) merge r373718
authorNico Weber <nicolasweber@gmx.de>
Fri, 4 Oct 2019 10:20:47 +0000 (10:20 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 4 Oct 2019 10:20:47 +0000 (10:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373726 91177308-0d34-0410-b5e6-96231b3b80d8

utils/gn/secondary/llvm/unittests/TableGen/BUILD.gn
utils/gn/secondary/llvm/utils/TableGen/BUILD.gn

index 3f128f8ce2aafe425950927b7390a6af093bb852..dbd10e6d0913e7da2f97d0a2ad6b2bcb28076cfd 100644 (file)
@@ -1,13 +1,29 @@
+import("//llvm/utils/TableGen/tablegen.gni")
 import("//llvm/utils/unittest/unittest.gni")
 
+tablegen("AutomataAutomata") {
+  visibility = [ ":TableGenTests" ]
+  args = [ "-gen-automata" ]
+  td_file = "Automata.td"
+}
+
+tablegen("AutomataTables") {
+  visibility = [ ":TableGenTests" ]
+  args = [ "-gen-searchable-tables" ]
+  td_file = "Automata.td"
+}
+
 unittest("TableGenTests") {
   deps = [
+    ":AutomataAutomata",
+    ":AutomataTables",
     "//llvm/lib/Support",
     "//llvm/lib/TableGen",
     "//llvm/utils/TableGen/GlobalISel",
   ]
   include_dirs = [ "//llvm/utils/TableGen" ]
   sources = [
+    "AutomataTest.cpp",
     "CodeExpanderTest.cpp",
   ]
 }
index 952b2f91606274ea808bdeb05b194b761e75a4fd..c50bebe71c0e05d55671379675ae1580a144272f 100644 (file)
@@ -26,6 +26,7 @@ executable("llvm-tblgen") {
     "DAGISelMatcherEmitter.cpp",
     "DAGISelMatcherGen.cpp",
     "DAGISelMatcherOpt.cpp",
+    "DFAEmitter.cpp",
     "DFAPacketizerEmitter.cpp",
     "DisassemblerEmitter.cpp",
     "ExegesisEmitter.cpp",