================ @@ -4568,9 +4568,23 @@ buildCapturedStmtCaptureList(Sema &S, CapturedRegionScopeInfo *RSI, return false; } +static bool +isOpenMPCapturedRegionInArmStreamingFunction(Sema const &S, + CapturedRegionKind Kind) { + if (!S.getLangOpts().OpenMP || Kind != CR_OpenMP) + return false; + FunctionDecl *FD = S.getCurFunctionDecl(/*AllowLambda=*/true); + if (!FD) + return false; + return IsArmStreamingFunction(FD, /*IncludeLocallyStreaming=*/true); ---------------- sdesmalen-arm wrote:
Don't we also need a check whether the region uses ZA/ZT0? https://github.com/llvm/llvm-project/pull/124590 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits