[clang] [Clang][AArch64] Warn when calling streaming/non-streaming about vect… (PR #79842)
Sander de Smalen via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 14 00:38:36 PST 2024
================
@@ -7513,6 +7516,41 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto,
}
}
+ auto *CallerFD = dyn_cast<FunctionDecl>(CurContext);
+ bool IsCalleeStreaming = ((ExtInfo.AArch64SMEAttributes &
+ FunctionType::SME_PStateSMEnabledMask) ||
+ (ExtInfo.AArch64SMEAttributes &
+ FunctionType::SME_PStateSMCompatibleMask));
----------------
sdesmalen-arm wrote:
Streaming-compatible and streaming are not the same thing. i.e. if the callee is 'streaming-compatible', `IsCalleeStreaming` should be `false`.
https://github.com/llvm/llvm-project/pull/79842
More information about the cfe-commits
mailing list