Skip to content

Commit b1c195c

Browse files
committed
[gn] port 27f3002 (yet another tblgen reorg)
1 parent cba9c6a commit b1c195c

File tree

3 files changed

+12
-20
lines changed

3 files changed

+12
-20
lines changed

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

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,13 @@
1-
source_set("llvm-min-tblgen-sources") {
2-
sources = [
3-
"ARMTargetDefEmitter.cpp",
4-
"Attributes.cpp",
5-
"DirectiveEmitter.cpp",
6-
"IntrinsicEmitter.cpp",
7-
"RISCVTargetDefEmitter.cpp",
8-
"TableGen.cpp",
9-
"VTEmitter.cpp",
10-
]
11-
deps = [
12-
"Basic",
13-
"//llvm/lib/Support",
14-
]
15-
}
16-
171
executable("llvm-min-tblgen") {
2+
sources = [ "llvm-min-tblgen.cpp" ]
183
deps = [
19-
":llvm-min-tblgen-sources",
204
"Basic",
5+
"//llvm/lib/Support",
216
]
227
}
238

249
executable("llvm-tblgen") {
2510
deps = [
26-
":llvm-min-tblgen-sources",
2711
"Basic",
2812
"Common",
2913
"//llvm/include/llvm/Config:llvm-config",
@@ -55,6 +39,7 @@ executable("llvm-tblgen") {
5539
"GlobalISelEmitter.cpp",
5640
"InstrDocsEmitter.cpp",
5741
"InstrInfoEmitter.cpp",
42+
"llvm-tblgen.cpp",
5843
"MacroFusionPredicatorEmitter.cpp",
5944
"OptionParserEmitter.cpp",
6045
"OptionRSTEmitter.cpp",
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
static_library("Basic") {
1+
source_set("Basic") {
22
deps = [
33
"//llvm/lib/Support",
44
"//llvm/lib/TableGen",
55
]
66
sources = [
7+
"ARMTargetDefEmitter.cpp",
8+
"Attributes.cpp",
79
"CodeGenIntrinsics.cpp",
10+
"DirectiveEmitter.cpp",
11+
"IntrinsicEmitter.cpp",
12+
"RISCVTargetDefEmitter.cpp",
813
"SDNodeProperties.cpp",
14+
"TableGen.cpp",
15+
"VTEmitter.cpp",
916
]
1017
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
static_library("Common") {
1+
source_set("Common") {
22
deps = [
33
"//llvm/include/llvm/CodeGen:GenVT",
44
"//llvm/lib/CodeGenTypes",

0 commit comments

Comments
 (0)