[llvm] 70c576b - [gn] port f3d9abf1f87c (use X86GenFoldTables.inc)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 6 09:11:03 PDT 2023
Author: Nico Weber
Date: 2023-04-06T12:10:45-04:00
New Revision: 70c576b52a0169cd2b2c5dec1a93919f6156bcc0
URL: https://github.com/llvm/llvm-project/commit/70c576b52a0169cd2b2c5dec1a93919f6156bcc0
DIFF: https://github.com/llvm/llvm-project/commit/70c576b52a0169cd2b2c5dec1a93919f6156bcc0.diff
LOG: [gn] port f3d9abf1f87c (use X86GenFoldTables.inc)
Added:
Modified:
llvm/utils/gn/secondary/llvm/lib/Target/X86/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/llvm/lib/Target/X86/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Target/X86/BUILD.gn
index 7c27f7ca2158..80e20694fb42 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Target/X86/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Target/X86/BUILD.gn
@@ -1,10 +1,5 @@
import("//llvm/utils/TableGen/tablegen.gni")
-declare_args() {
- # Buggy, only use if you know what you're doing.
- x86_gen_fold_tables = false
-}
-
tablegen("X86GenCallingConv") {
visibility = [ ":LLVMX86CodeGen" ]
args = [ "-gen-callingconv" ]
@@ -29,6 +24,12 @@ tablegen("X86GenFastISel") {
td_file = "X86.td"
}
+tablegen("X86GenFoldTables") {
+ visibility = [ ":LLVMX86CodeGen" ]
+ args = [ "-gen-x86-fold-tables" ]
+ td_file = "X86.td"
+}
+
tablegen("X86GenGlobalISel") {
visibility = [ ":LLVMX86CodeGen" ]
args = [ "-gen-global-isel" ]
@@ -41,20 +42,13 @@ tablegen("X86GenRegisterBank") {
td_file = "X86.td"
}
-if (x86_gen_fold_tables) {
- tablegen("X86GenFoldTables") {
- visibility = [ ":LLVMX86CodeGen" ]
- args = [ "-gen-x86-fold-tables" ]
- td_file = "X86.td"
- }
-}
-
static_library("LLVMX86CodeGen") {
deps = [
":X86GenCallingConv",
":X86GenDAGISel",
":X86GenEVEX2VEXTables",
":X86GenFastISel",
+ ":X86GenFoldTables",
":X86GenGlobalISel",
":X86GenRegisterBank",
"MCTargetDesc",
@@ -73,9 +67,6 @@ static_library("LLVMX86CodeGen") {
"//llvm/lib/Transforms/CFGuard",
"//llvm/lib/Transforms/Instrumentation",
]
- if (x86_gen_fold_tables) {
- deps += [ ":X86GenFoldTables" ]
- }
sources = [
"X86ArgumentStackSlotRebase.cpp",
"X86AsmPrinter.cpp",
More information about the llvm-commits
mailing list