From 94ef6147f33dad5a9d23b7d88966d8e130e1be72 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 4 Oct 2019 10:20:47 +0000 Subject: [PATCH] gn build: (manually) merge r373718 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373726 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../secondary/llvm/unittests/TableGen/BUILD.gn | 16 ++++++++++++++++ utils/gn/secondary/llvm/utils/TableGen/BUILD.gn | 1 + 2 files changed, 17 insertions(+) diff --git a/utils/gn/secondary/llvm/unittests/TableGen/BUILD.gn b/utils/gn/secondary/llvm/unittests/TableGen/BUILD.gn index 3f128f8ce2a..dbd10e6d091 100644 --- a/utils/gn/secondary/llvm/unittests/TableGen/BUILD.gn +++ b/utils/gn/secondary/llvm/unittests/TableGen/BUILD.gn @@ -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", ] } diff --git a/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn b/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn index 952b2f91606..c50bebe71c0 100644 --- a/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn +++ b/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn @@ -26,6 +26,7 @@ executable("llvm-tblgen") { "DAGISelMatcherEmitter.cpp", "DAGISelMatcherGen.cpp", "DAGISelMatcherOpt.cpp", + "DFAEmitter.cpp", "DFAPacketizerEmitter.cpp", "DisassemblerEmitter.cpp", "ExegesisEmitter.cpp", -- 2.40.0