[llvm] 926fab7 - [gn build] Update build for new OpenMP tablegen logic
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 30 16:02:11 PDT 2020
Author: Reid Kleckner
Date: 2020-06-30T16:02:05-07:00
New Revision: 926fab7c4fcd0a7cf00ca69847fa5ae73dc863ea
URL: https://github.com/llvm/llvm-project/commit/926fab7c4fcd0a7cf00ca69847fa5ae73dc863ea
DIFF: https://github.com/llvm/llvm-project/commit/926fab7c4fcd0a7cf00ca69847fa5ae73dc863ea.diff
LOG: [gn build] Update build for new OpenMP tablegen logic
Ports 1a70077b5a64189d9c04d1a2d7ea6ff0e49744d6 to gn from cmake.
Added:
Modified:
llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenMP/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
index 3747bd2dde16..9942a3647b58 100644
--- a/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenMP/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenMP/BUILD.gn
@@ -2,10 +2,17 @@ import("//llvm/utils/TableGen/tablegen.gni")
tablegen("OMP") {
visibility = [ ":public_tablegen" ]
- args = [ "-gen-directive-decls" ]
+ args = [ "-gen-directive-decl" ]
output_name = "OMP.h.inc"
}
+tablegen("OMPImpl") {
+ visibility = [ ":public_tablegen" ]
+ args = [ "-gen-directive-impl" ]
+ td_file = "OMP.td"
+ output_name = "OMP.cpp.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
@@ -14,5 +21,6 @@ group("public_tablegen") {
public_deps = [
# Frontend/OpenMP's public headers include OMP.h.inc.
":OMP",
+ ":OMPImpl",
]
}
More information about the llvm-commits
mailing list