[clang] [AArch64][SME] Add diagnostics to CheckConstexprFunctionDefinition (PR #121777)

Sander de Smalen via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 6 08:15:33 PST 2025


================
@@ -1328,4 +1328,57 @@ void SemaARM::handleInterruptAttr(Decl *D, const ParsedAttr &AL) {
                  ARMInterruptAttr(getASTContext(), AL, Kind));
 }
 
+// Check if the function definition uses any AArch64 SME features without
+// having the '+sme' feature enabled and warn user if sme locally streaming
+// function returns or uses arguments with VL-based types.
+void SemaARM::CheckSMEFunctionDefAttributes(const FunctionDecl *FD) {
----------------
sdesmalen-arm wrote:

Should this be a `static` member function instead? (would have to take the `ASTContext` as parameter)

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


More information about the cfe-commits mailing list