[llvm] e869549 - [gn] port bddab518db003f (X86AsmParser.cpp uses X86GenInstrMapping.inc)

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 06:04:05 PDT 2024


Author: Nico Weber
Date: 2024-07-16T09:03:58-04:00
New Revision: e869549e01b6e5ad87075e127fb07bf568635b1b

URL: https://github.com/llvm/llvm-project/commit/e869549e01b6e5ad87075e127fb07bf568635b1b
DIFF: https://github.com/llvm/llvm-project/commit/e869549e01b6e5ad87075e127fb07bf568635b1b.diff

LOG: [gn] port bddab518db003f (X86AsmParser.cpp uses X86GenInstrMapping.inc)

Added: 
    

Modified: 
    llvm/utils/gn/secondary/llvm/lib/Target/X86/AsmParser/BUILD.gn
    llvm/utils/gn/secondary/llvm/lib/Target/X86/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/llvm/lib/Target/X86/AsmParser/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Target/X86/AsmParser/BUILD.gn
index 89312a42d8816..12fa720a2efdc 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Target/X86/AsmParser/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Target/X86/AsmParser/BUILD.gn
@@ -10,6 +10,7 @@ static_library("AsmParser") {
   output_name = "LLVMX86AsmParser"
   deps = [
     ":X86GenAsmMatcher",
+    "..:X86GenInstrMapping",
     "//llvm/lib/MC",
     "//llvm/lib/MC/MCParser",
     "//llvm/lib/Support",

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 aae0a2aa00d8d..a9d5328c5d1b3 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Target/X86/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Target/X86/BUILD.gn
@@ -13,7 +13,10 @@ tablegen("X86GenDAGISel") {
 }
 
 tablegen("X86GenInstrMapping") {
-  visibility = [ ":LLVMX86CodeGen" ]
+  visibility = [
+    ":LLVMX86CodeGen",
+    "AsmParser",
+  ]
   args = [ "-gen-x86-instr-mapping" ]
   td_file = "X86.td"
 }


        


More information about the llvm-commits mailing list