[llvm-branch-commits] [llvm] 498693a - [gn build] (manually) port 65049d16100af

Nico Weber via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Dec 3 10:47:34 PST 2020


Author: Nico Weber
Date: 2020-12-03T13:43:19-05:00
New Revision: 498693a7b5de6702e1ee16e451c62e8d4427f152

URL: https://github.com/llvm/llvm-project/commit/498693a7b5de6702e1ee16e451c62e8d4427f152
DIFF: https://github.com/llvm/llvm-project/commit/498693a7b5de6702e1ee16e451c62e8d4427f152.diff

LOG: [gn build] (manually) port 65049d16100af

Added: 
    llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn
    llvm/utils/gn/secondary/llvm/lib/Frontend/OpenACC/BUILD.gn

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn b/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn
new file mode 100644
index 000000000000..91799ecd298f
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn
@@ -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",
+  ]
+}

diff  --git a/llvm/utils/gn/secondary/llvm/lib/Frontend/OpenACC/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Frontend/OpenACC/BUILD.gn
new file mode 100644
index 000000000000..51b8c269c281
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/lib/Frontend/OpenACC/BUILD.gn
@@ -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")
+}


        


More information about the llvm-branch-commits mailing list