[clang] c294715 - [ARM] Don't use TARGET_HEADER_BUILTIN in arm_mve_builtins.inc or arm_cde_builtins.inc
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 15 09:11:33 PDT 2021
Author: Craig Topper
Date: 2021-10-15T09:11:06-07:00
New Revision: c294715e2e0c90761e69fd3a7db221601289d803
URL: https://github.com/llvm/llvm-project/commit/c294715e2e0c90761e69fd3a7db221601289d803
DIFF: https://github.com/llvm/llvm-project/commit/c294715e2e0c90761e69fd3a7db221601289d803.diff
LOG: [ARM] Don't use TARGET_HEADER_BUILTIN in arm_mve_builtins.inc or arm_cde_builtins.inc
The attributes string doesn't include 'f' or 'h'. I don't think
any code looks at the header name without those.
Reviewed By: simon_tatham
Differential Revision: https://reviews.llvm.org/D111755
Added:
Modified:
clang/utils/TableGen/MveEmitter.cpp
Removed:
################################################################################
diff --git a/clang/utils/TableGen/MveEmitter.cpp b/clang/utils/TableGen/MveEmitter.cpp
index 091af2dc52a1d..f5b6f4f016884 100644
--- a/clang/utils/TableGen/MveEmitter.cpp
+++ b/clang/utils/TableGen/MveEmitter.cpp
@@ -1941,8 +1941,8 @@ void MveEmitter::EmitHeader(raw_ostream &OS) {
void MveEmitter::EmitBuiltinDef(raw_ostream &OS) {
for (const auto &kv : ACLEIntrinsics) {
const ACLEIntrinsic &Int = *kv.second;
- OS << "TARGET_HEADER_BUILTIN(__builtin_arm_mve_" << Int.fullName()
- << ", \"\", \"n\", \"arm_mve.h\", ALL_LANGUAGES, \"\")\n";
+ OS << "BUILTIN(__builtin_arm_mve_" << Int.fullName()
+ << ", \"\", \"n\")\n";
}
std::set<std::string> ShortNamesSeen;
@@ -2151,8 +2151,8 @@ void CdeEmitter::EmitBuiltinDef(raw_ostream &OS) {
if (kv.second->headerOnly())
continue;
const ACLEIntrinsic &Int = *kv.second;
- OS << "TARGET_HEADER_BUILTIN(__builtin_arm_cde_" << Int.fullName()
- << ", \"\", \"ncU\", \"arm_cde.h\", ALL_LANGUAGES, \"\")\n";
+ OS << "BUILTIN(__builtin_arm_cde_" << Int.fullName()
+ << ", \"\", \"ncU\")\n";
}
}
More information about the cfe-commits
mailing list