Skip to content

Commit

Permalink
[gn] port 71c5964 (-gen-arm-target-def)
Browse files Browse the repository at this point in the history
Reverts d3f6c2c, since ARMTargetDefEmitter.cpp has to be in
llvm-min-tblgen too.
  • Loading branch information
nico committed Apr 24, 2024
1 parent 93eeca3 commit b87b6e2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 19 additions & 1 deletion llvm/utils/gn/secondary/llvm/include/llvm/TargetParser/BUILD.gn
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
import("//llvm/utils/TableGen/tablegen.gni")

tablegen("ARMTargetParserDef") {
visibility = [ ":gen" ]
args = [ "-gen-arm-target-def" ]
td_file = "//llvm/lib/Target/ARM/ARM.td"
tblgen_target = "//llvm/utils/TableGen:llvm-min-tblgen"
}

tablegen("AArch64TargetParserDef") {
visibility = [ ":gen" ]
args = [ "-gen-arm-target-def" ]
td_file = "//llvm/lib/Target/AArch64/AArch64.td"
tblgen_target = "//llvm/utils/TableGen:llvm-min-tblgen"
}

tablegen("RISCVTargetParserDef") {
visibility = [ ":gen" ]
args = [ "-gen-riscv-target-def" ]
Expand All @@ -8,5 +22,9 @@ tablegen("RISCVTargetParserDef") {
}

group("gen") {
deps = [ ":RISCVTargetParserDef" ]
deps = [
":ARMTargetParserDef",
":AArch64TargetParserDef",
":RISCVTargetParserDef",
]
}
2 changes: 1 addition & 1 deletion llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source_set("llvm-min-tblgen-sources") {
sources = [
"ARMTargetDefEmitter.cpp",
"Attributes.cpp",
"DirectiveEmitter.cpp",
"IntrinsicEmitter.cpp",
Expand Down Expand Up @@ -32,7 +33,6 @@ executable("llvm-tblgen") {
]
include_dirs = [ "." ]
sources = [
"ARMTargetDefEmitter.cpp",
"AsmMatcherEmitter.cpp",
"AsmWriterEmitter.cpp",
"CTagsEmitter.cpp",
Expand Down

0 comments on commit b87b6e2

Please sign in to comment.