[llvm] 13d8d19 - gn build: (manually) merge 08074cc9
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 24 23:36:24 PDT 2019
Author: Nico Weber
Date: 2019-10-25T02:35:14-04:00
New Revision: 13d8d19d5187923db16b603530cac0b04c7b9a54
URL: https://github.com/llvm/llvm-project/commit/13d8d19d5187923db16b603530cac0b04c7b9a54
DIFF: https://github.com/llvm/llvm-project/commit/13d8d19d5187923db16b603530cac0b04c7b9a54.diff
LOG: gn build: (manually) merge 08074cc9
Added:
Modified:
llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
llvm/utils/gn/secondary/clang/lib/CodeGen/BUILD.gn
llvm/utils/gn/secondary/clang/lib/Headers/BUILD.gn
llvm/utils/gn/secondary/clang/lib/Sema/BUILD.gn
llvm/utils/gn/secondary/clang/utils/TableGen/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn b/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
index 7d67a2f96ce8..7f566246ea1c 100644
--- a/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
@@ -89,7 +89,7 @@ clang_tablegen("AttrHasAttributeImpl") {
td_file = "Attr.td"
}
-# Misc
+# ARM NEON and MVE
clang_tablegen("arm_neon") {
args = [ "-gen-arm-neon-sema" ]
@@ -98,3 +98,23 @@ clang_tablegen("arm_neon") {
clang_tablegen("arm_fp16") {
args = [ "-gen-arm-neon-sema" ]
}
+
+clang_tablegen("arm_mve_builtins") {
+ args = [ "-gen-arm-mve-builtin-def" ]
+ td_file = "arm_mve.td"
+}
+
+clang_tablegen("arm_mve_builtin_cg") {
+ args = [ "-gen-arm-mve-builtin-codegen" ]
+ td_file = "arm_mve.td"
+}
+
+clang_tablegen("arm_mve_builtin_sema") {
+ args = [ "-gen-arm-mve-builtin-sema" ]
+ td_file = "arm_mve.td"
+}
+
+clang_tablegen("arm_mve_builtin_aliases") {
+ args = [ "-gen-arm-mve-builtin-aliases" ]
+ td_file = "arm_mve.td"
+}
diff --git a/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
index fccfe852f671..5245320d6cb4 100644
--- a/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
@@ -6,6 +6,7 @@ static_library("Basic") {
"//clang/include/clang/Basic:AttrList",
"//clang/include/clang/Basic:AttrSubMatchRulesList",
"//clang/include/clang/Basic:DiagnosticGroups",
+ "//clang/include/clang/Basic:arm_mve_builtins",
"//clang/include/clang/Basic:diags_tablegen",
"//clang/include/clang/Basic:version",
]
diff --git a/llvm/utils/gn/secondary/clang/lib/CodeGen/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/CodeGen/BUILD.gn
index 0d63baffd1d0..3832313c4c59 100644
--- a/llvm/utils/gn/secondary/clang/lib/CodeGen/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/lib/CodeGen/BUILD.gn
@@ -2,6 +2,7 @@ static_library("CodeGen") {
output_name = "clangCodeGen"
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
+ "//clang/include/clang/Basic:arm_mve_builtin_cg",
"//clang/lib/AST",
"//clang/lib/Analysis",
"//clang/lib/Basic",
diff --git a/llvm/utils/gn/secondary/clang/lib/Headers/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Headers/BUILD.gn
index e7a7df6fd95e..2d303ec7c1e3 100644
--- a/llvm/utils/gn/secondary/clang/lib/Headers/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/lib/Headers/BUILD.gn
@@ -15,13 +15,22 @@ clang_tablegen("arm_fp16") {
output_name = "arm_fp16.h"
}
+# Generate arm_mve.h
+clang_tablegen("arm_mve") {
+ args = [ "-gen-arm-mve-header" ]
+ td_file = "//clang/include/clang/Basic/arm_mve.td"
+ output_name = "arm_mve.h"
+}
+
copy("arm_headers") {
visibility = [ ":Headers" ]
deps = [
":arm_fp16",
+ ":arm_mve",
":arm_neon",
]
- sources = get_target_outputs(":arm_neon") + get_target_outputs(":arm_fp16")
+ sources = get_target_outputs(":arm_neon") + get_target_outputs(":arm_fp16") +
+ get_target_outputs(":arm_mve")
outputs = [
"$clang_resource_dir/include/{{source_file_part}}",
]
diff --git a/llvm/utils/gn/secondary/clang/lib/Sema/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Sema/BUILD.gn
index 1cb84fe07dca..c94c8d992edb 100644
--- a/llvm/utils/gn/secondary/clang/lib/Sema/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/lib/Sema/BUILD.gn
@@ -9,6 +9,8 @@ static_library("Sema") {
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
":OpenCLBuiltins",
+ "//clang/include/clang/Basic:arm_mve_builtin_aliases",
+ "//clang/include/clang/Basic:arm_mve_builtin_sema",
"//clang/include/clang/Sema:AttrParsedAttrImpl",
"//clang/include/clang/Sema:AttrParsedAttrKinds",
"//clang/include/clang/Sema:AttrParsedAttrList",
diff --git a/llvm/utils/gn/secondary/clang/utils/TableGen/BUILD.gn b/llvm/utils/gn/secondary/clang/utils/TableGen/BUILD.gn
index 1bb9a2ec7d4b..75e724a37084 100644
--- a/llvm/utils/gn/secondary/clang/utils/TableGen/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/utils/TableGen/BUILD.gn
@@ -16,6 +16,7 @@ executable("clang-tblgen") {
"ClangOptionDocEmitter.cpp",
"ClangSACheckersEmitter.cpp",
"ClangTypeNodesEmitter.cpp",
+ "MveEmitter.cpp",
"NeonEmitter.cpp",
"TableGen.cpp",
]
More information about the llvm-commits
mailing list