[llvm] 6187f27 - [gn] port fa3d789df15b more (tblgen restructure)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 25 10:46:54 PDT 2024
Author: Nico Weber
Date: 2024-03-25T13:46:46-04:00
New Revision: 6187f271d107c11574c8d8db9d64a83095a9072c
URL: https://github.com/llvm/llvm-project/commit/6187f271d107c11574c8d8db9d64a83095a9072c
DIFF: https://github.com/llvm/llvm-project/commit/6187f271d107c11574c8d8db9d64a83095a9072c.diff
LOG: [gn] port fa3d789df15b more (tblgen restructure)
I had missed that both tblgens still both need a bunch of identical
cpp files. Let's just reintroduce the source_set() for them, even
though the CMake build removed the object library for them in favor
of duplicating the file list for some reason.
Added:
Modified:
llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn b/llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn
index 1c91a775e014f4..53a9d8d01519a7 100644
--- a/llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn
@@ -1,4 +1,4 @@
-executable("llvm-min-tblgen") {
+source_set("llvm-min-tblgen-sources") {
sources = [
"Attributes.cpp",
"DirectiveEmitter.cpp",
@@ -10,12 +10,19 @@ executable("llvm-min-tblgen") {
deps = [
"Basic",
"//llvm/lib/Support",
- "//llvm/lib/TableGen",
+ ]
+}
+
+executable("llvm-min-tblgen") {
+ deps = [
+ ":llvm-min-tblgen-sources",
+ "Basic",
]
}
executable("llvm-tblgen") {
deps = [
+ ":llvm-min-tblgen-sources",
"Basic",
"Common",
"//llvm/include/llvm/Config:llvm-config",
@@ -54,7 +61,6 @@ executable("llvm-tblgen") {
"RegisterBankEmitter.cpp",
"RegisterInfoEmitter.cpp",
"SearchableTableEmitter.cpp",
- "TableGen.cpp",
"SubtargetEmitter.cpp",
"WebAssemblyDisassemblerEmitter.cpp",
"X86CompressEVEXTablesEmitter.cpp",
More information about the llvm-commits
mailing list