Skip to content

Commit

Permalink
[Clang][AArch64] Remove unnecessary and incorrect attributes from arm…
Browse files Browse the repository at this point in the history
…_sme.h.

These attributes were using the GNU attribute syntax, rather than the new
keyword attribute syntax, and they are no longer required as we have code
in SemaChecking to verify whether a builtin is compatible with its caller.
  • Loading branch information
sdesmalen-arm committed Jan 16, 2024
1 parent 076eb4c commit 032c832
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions clang/utils/TableGen/SveEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1066,17 +1066,6 @@ void Intrinsic::emitIntrinsic(raw_ostream &OS, SVEEmitter &Emitter,

std::string FullName = mangleName(ClassS);
std::string ProtoName = mangleName(getClassKind());
std::string SMEAttrs = "";

if (Flags & Emitter.getEnumValueForFlag("IsStreaming"))
SMEAttrs += ", arm_streaming";
if (Flags & Emitter.getEnumValueForFlag("IsStreamingCompatible"))
SMEAttrs += ", arm_streaming_compatible";
if (Flags & Emitter.getEnumValueForFlag("IsSharedZA"))
SMEAttrs += ", arm_shared_za";
if (Flags & Emitter.getEnumValueForFlag("IsPreservesZA"))
SMEAttrs += ", arm_preserves_za";

OS << (IsOverloaded ? "__aio " : "__ai ")
<< "__attribute__((__clang_arm_builtin_alias(";

Expand All @@ -1089,8 +1078,6 @@ void Intrinsic::emitIntrinsic(raw_ostream &OS, SVEEmitter &Emitter,
break;
}

if (!SMEAttrs.empty())
OS << SMEAttrs;
OS << "))\n";

OS << getTypes()[0].str() << " " << ProtoName << "(";
Expand Down

0 comments on commit 032c832

Please sign in to comment.