[clang] [AArch64] Warn when calling a NEON builtin in a streaming function (PR #73672)

Sam Tebbs via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 30 05:34:32 PST 2023


================
@@ -2993,6 +2993,47 @@ static QualType getNeonEltType(NeonTypeFlags Flags, ASTContext &Context,
   llvm_unreachable("Invalid NeonTypeFlag!");
 }
 
+enum ArmStreamingType {
+  ArmNonStreaming,
+  ArmStreaming,
+  ArmStreamingCompatible,
+  ArmLocallyStreaming
+};
+
+static ArmStreamingType getArmStreamingFnType(const FunctionDecl *FD) {
+  if (FD->hasAttr<ArmLocallyStreamingAttr>())
+    return ArmLocallyStreaming;
----------------
SamTebbs33 wrote:

Thanks Sander, that makes sense to me.

https://github.com/llvm/llvm-project/pull/73672


More information about the cfe-commits mailing list