[llvm] b87b6e2 - [gn] port 71c5964f5c0 (-gen-arm-target-def)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 24 06:03:12 PDT 2024
Author: Nico Weber
Date: 2024-04-24T09:03:02-04:00
New Revision: b87b6e2c880de5ecc4c7b3a8b9b2db09e6149851
URL: https://github.com/llvm/llvm-project/commit/b87b6e2c880de5ecc4c7b3a8b9b2db09e6149851
DIFF: https://github.com/llvm/llvm-project/commit/b87b6e2c880de5ecc4c7b3a8b9b2db09e6149851.diff
LOG: [gn] port 71c5964f5c0 (-gen-arm-target-def)
Reverts d3f6c2c5a76e, since ARMTargetDefEmitter.cpp has to be in
llvm-min-tblgen too.
Added:
Modified:
llvm/utils/gn/secondary/llvm/include/llvm/TargetParser/BUILD.gn
llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/llvm/include/llvm/TargetParser/BUILD.gn b/llvm/utils/gn/secondary/llvm/include/llvm/TargetParser/BUILD.gn
index aecb65ab6c728d..a71dfa518b1df3 100644
--- a/llvm/utils/gn/secondary/llvm/include/llvm/TargetParser/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/include/llvm/TargetParser/BUILD.gn
@@ -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" ]
@@ -8,5 +22,9 @@ tablegen("RISCVTargetParserDef") {
}
group("gen") {
- deps = [ ":RISCVTargetParserDef" ]
+ deps = [
+ ":ARMTargetParserDef",
+ ":AArch64TargetParserDef",
+ ":RISCVTargetParserDef",
+ ]
}
diff --git a/llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn b/llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn
index 6a95699a0a814c..f3ae5b5899ac6a 100644
--- a/llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn
@@ -1,5 +1,6 @@
source_set("llvm-min-tblgen-sources") {
sources = [
+ "ARMTargetDefEmitter.cpp",
"Attributes.cpp",
"DirectiveEmitter.cpp",
"IntrinsicEmitter.cpp",
@@ -32,7 +33,6 @@ executable("llvm-tblgen") {
]
include_dirs = [ "." ]
sources = [
- "ARMTargetDefEmitter.cpp",
"AsmMatcherEmitter.cpp",
"AsmWriterEmitter.cpp",
"CTagsEmitter.cpp",
More information about the llvm-commits
mailing list