1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[gn build] Update build for new OpenMP tablegen logic

Ports 1a70077b5a64189d9c04d1a2d7ea6ff0e49744d6 to gn from cmake.
This commit is contained in:
Reid Kleckner 2020-06-30 16:00:04 -07:00
parent 2be3dfa59d
commit 4c5eb8f368

View File

@ -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",
]
}