[flang-commits] [flang] [flang][openmp]Add UserReductionDetails and use in DECLARE REDUCTION (PR #140066)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Wed Jun 4 07:57:42 PDT 2025


================
@@ -290,6 +290,10 @@ class SemanticsContext {
   // Top-level ProgramTrees are owned by the SemanticsContext for persistence.
   ProgramTree &SaveProgramTree(ProgramTree &&);
 
+  // Store (and get a reference to the stored string) for mangled names
+  // used for OpenMP DECLARE REDUCTION.
+  std::string &StoreUserReductionName(const std::string &name);
----------------
tblah wrote:

SaveTempName is used elsewhere for saving mangled names so I'm not adding any new confusion here. There's currently no code removing any strings that are added via that helper so the lifetime should be okay.

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


More information about the flang-commits mailing list