[llvm] 510796d - [gn build] (semi-manually) Port d90443b1d93

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 07:53:34 PDT 2020


Author: Nico Weber
Date: 2020-06-23T10:53:06-04:00
New Revision: 510796d1a7c57376d0344a3ab4081115c8861913

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

LOG: [gn build] (semi-manually) Port d90443b1d93

Added: 
    llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenMP/BUILD.gn

Modified: 
    llvm/utils/gn/secondary/llvm/lib/Frontend/OpenMP/BUILD.gn
    llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenMP/BUILD.gn b/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenMP/BUILD.gn
new file mode 100644
index 000000000000..3747bd2dde16
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenMP/BUILD.gn
@@ -0,0 +1,18 @@
+import("//llvm/utils/TableGen/tablegen.gni")
+
+tablegen("OMP") {
+  visibility = [ ":public_tablegen" ]
+  args = [ "-gen-directive-decls" ]
+  output_name = "OMP.h.inc"
+}
+
+# Groups all tablegen() calls that create .inc files that are included in
+# Frontent/OpenMP's public headers (just one so far).
+# //llvm/lib/Frontend/OpenMP has this as a public_dep, so targets depending on
+# //llvm/lib/Frontend/OpenMP don't need to depend on this.
+group("public_tablegen") {
+  public_deps = [
+    # Frontend/OpenMP's public headers include OMP.h.inc.
+    ":OMP",
+  ]
+}

diff  --git a/llvm/utils/gn/secondary/llvm/lib/Frontend/OpenMP/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Frontend/OpenMP/BUILD.gn
index b852d3b357ad..3bf40626fc80 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Frontend/OpenMP/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Frontend/OpenMP/BUILD.gn
@@ -5,6 +5,7 @@ static_library("OpenMP") {
     "//llvm/lib/Support",
     "//llvm/lib/Transforms/Utils",
   ]
+  public_deps = [ "//llvm/include/llvm/Frontend/OpenMP:public_tablegen" ]
   sources = [
     "OMPConstants.cpp",
     "OMPContext.cpp",

diff  --git a/llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn b/llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn
index b390326d05eb..4559926899c9 100644
--- a/llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn
@@ -28,6 +28,7 @@ executable("llvm-tblgen") {
     "DAGISelMatcherOpt.cpp",
     "DFAEmitter.cpp",
     "DFAPacketizerEmitter.cpp",
+    "DirectiveEmitter.cpp",
     "DisassemblerEmitter.cpp",
     "ExegesisEmitter.cpp",
     "FastISelEmitter.cpp",


        


More information about the llvm-commits mailing list