@@ -1331,22 +1331,22 @@ void SemaARM::handleInterruptAttr(Decl *D, const ParsedAttr &AL) {
13311331// Check if the function definition uses any AArch64 SME features without
13321332// having the '+sme' feature enabled and warn user if sme locally streaming
13331333// function returns or uses arguments with VL-based types.
1334- void SemaARM::CheckSMEFunctionDefAttributes (const FunctionDecl *FD, Sema &S ) {
1334+ void SemaARM::CheckSMEFunctionDefAttributes (const FunctionDecl *FD) {
13351335 const auto *Attr = FD->getAttr <ArmNewAttr>();
13361336 bool UsesSM = FD->hasAttr <ArmLocallyStreamingAttr>();
13371337 bool UsesZA = Attr && Attr->isNewZA ();
13381338 bool UsesZT0 = Attr && Attr->isNewZT0 ();
13391339
13401340 if (FD->hasAttr <ArmLocallyStreamingAttr>()) {
13411341 if (FD->getReturnType ()->isSizelessVectorType ())
1342- S. Diag (FD->getLocation (),
1343- diag::warn_sme_locally_streaming_has_vl_args_returns)
1342+ Diag (FD->getLocation (),
1343+ diag::warn_sme_locally_streaming_has_vl_args_returns)
13441344 << /* IsArg=*/ false ;
13451345 if (llvm::any_of (FD->parameters (), [](ParmVarDecl *P) {
13461346 return P->getOriginalType ()->isSizelessVectorType ();
13471347 }))
1348- S. Diag (FD->getLocation (),
1349- diag::warn_sme_locally_streaming_has_vl_args_returns)
1348+ Diag (FD->getLocation (),
1349+ diag::warn_sme_locally_streaming_has_vl_args_returns)
13501350 << /* IsArg=*/ true ;
13511351 }
13521352 if (const auto *FPT = FD->getType ()->getAs <FunctionProtoType>()) {
@@ -1358,25 +1358,25 @@ void SemaARM::CheckSMEFunctionDefAttributes(const FunctionDecl *FD, Sema &S) {
13581358 FunctionType::ARM_None;
13591359 }
13601360
1361- ASTContext &Context = S. getASTContext ();
1361+ ASTContext &Context = getASTContext ();
13621362 if (UsesSM || UsesZA) {
13631363 llvm::StringMap<bool > FeatureMap;
13641364 Context.getFunctionFeatureMap (FeatureMap, FD);
13651365 if (!FeatureMap.contains (" sme" )) {
13661366 if (UsesSM)
1367- S. Diag (FD->getLocation (),
1368- diag::err_sme_definition_using_sm_in_non_sme_target);
1367+ Diag (FD->getLocation (),
1368+ diag::err_sme_definition_using_sm_in_non_sme_target);
13691369 else
1370- S. Diag (FD->getLocation (),
1371- diag::err_sme_definition_using_za_in_non_sme_target);
1370+ Diag (FD->getLocation (),
1371+ diag::err_sme_definition_using_za_in_non_sme_target);
13721372 }
13731373 }
13741374 if (UsesZT0) {
13751375 llvm::StringMap<bool > FeatureMap;
13761376 Context.getFunctionFeatureMap (FeatureMap, FD);
13771377 if (!FeatureMap.contains (" sme2" )) {
1378- S. Diag (FD->getLocation (),
1379- diag::err_sme_definition_using_zt0_in_non_sme2_target);
1378+ Diag (FD->getLocation (),
1379+ diag::err_sme_definition_using_zt0_in_non_sme2_target);
13801380 }
13811381 }
13821382}
0 commit comments