================
@@ -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);
----------------
MacDue wrote:
Yes :+1: (I had wrongly assumed that using ZA/ZT0 implied the function was
streaming)
https://github.com/llvm/llvm-project/pull/124590
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits