forked from OSchip/llvm-project
[gn build] (manually) port 65049d1610
This commit is contained in:
parent
1410b72be3
commit
498693a7b5
|
@ -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",
|
||||
]
|
||||
}
|
|
@ -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")
|
||||
}
|
Loading…
Reference in New Issue