[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
This commit is contained in:
Craig Topper 2021-10-15 09:01:02 -07:00
parent 60802715d1
commit c294715e2e

View File

@ -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";
}
}