[gn build] (manually) port 65049d1610

This commit is contained in:
Nico Weber 2020-12-03 13:42:52 -05:00
parent 1410b72be3
commit 498693a7b5
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,21 @@
import("//llvm/utils/TableGen/tablegen.gni")
tablegen("ACC") {
visibility = [ ":acc_gen" ]
args = [ "-gen-directive-decl" ]
output_name = "ACC.h.inc"
}
tablegen("ACC.cpp") {
visibility = [ ":acc_gen" ]
args = [ "-gen-directive-gen" ]
output_name = "ACC.cpp.inc"
td_file = "ACC.td"
}
group("acc_gen") {
deps = [
":ACC",
":ACC.cpp",
]
}

View File

@ -0,0 +1,18 @@
import("//llvm/utils/TableGen/tablegen.gni")
tablegen("ACCImpl") {
visibility = [ ":OpenACC" ]
args = [ "-gen-directive-impl" ]
td_file = "//llvm/include/llvm/Frontend/OpenACC/ACC.td"
output_name = "ACC.cpp"
}
static_library("OpenACC") {
output_name = "LLVMFrontendOpenACC"
deps = [
":ACCImpl",
"//llvm/lib/Support",
]
public_deps = [ "//llvm/include/llvm/Frontend/OpenACC:acc_gen" ]
sources = get_target_outputs(":ACCImpl")
}