Skip to content

Commit

Permalink
[ARM] Don't use TARGET_HEADER_BUILTIN in arm_mve_builtins.inc or arm_…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
topperc committed Oct 15, 2021
1 parent 6080271 commit c294715
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clang/utils/TableGen/MveEmitter.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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";
}
}

Expand Down

0 comments on commit c294715

Please sign in to comment.