[clang] [OpenACC] 'reduction' 'one-init' lowering, */&& operators. (PR #156122)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 29 16:43:34 PDT 2025


================
@@ -2589,6 +2589,59 @@ SemaOpenACC::ActOnOpenACCAsteriskSizeExpr(SourceLocation AsteriskLoc) {
   return BuildOpenACCAsteriskSizeExpr(AsteriskLoc);
 }
 
+/// Loops through a type and generates an appropriate InitListExpr to generate
+/// type initialization.
+static Expr *GenerateReductionInitRecipeExpr(ASTContext &Context,
----------------
andykaylor wrote:

Maybe this could have an enum argument indicating the required initializer kind (zero, one, least, largest, all 1's, etc.).

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


More information about the cfe-commits mailing list