Skip to content

Commit 032c832

Browse files
committed
[Clang][AArch64] Remove unnecessary and incorrect attributes from arm_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.
1 parent 076eb4c commit 032c832

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

clang/utils/TableGen/SveEmitter.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,17 +1066,6 @@ void Intrinsic::emitIntrinsic(raw_ostream &OS, SVEEmitter &Emitter,
10661066

10671067
std::string FullName = mangleName(ClassS);
10681068
std::string ProtoName = mangleName(getClassKind());
1069-
std::string SMEAttrs = "";
1070-
1071-
if (Flags & Emitter.getEnumValueForFlag("IsStreaming"))
1072-
SMEAttrs += ", arm_streaming";
1073-
if (Flags & Emitter.getEnumValueForFlag("IsStreamingCompatible"))
1074-
SMEAttrs += ", arm_streaming_compatible";
1075-
if (Flags & Emitter.getEnumValueForFlag("IsSharedZA"))
1076-
SMEAttrs += ", arm_shared_za";
1077-
if (Flags & Emitter.getEnumValueForFlag("IsPreservesZA"))
1078-
SMEAttrs += ", arm_preserves_za";
1079-
10801069
OS << (IsOverloaded ? "__aio " : "__ai ")
10811070
<< "__attribute__((__clang_arm_builtin_alias(";
10821071

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

1092-
if (!SMEAttrs.empty())
1093-
OS << SMEAttrs;
10941081
OS << "))\n";
10951082

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

0 commit comments

Comments
 (0)