[flang-commits] [flang] [flang][mlir] Add flang to mlir lowering for groupprivate (PR #180934)

via flang-commits flang-commits at lists.llvm.org
Mon Jun 8 00:43:11 PDT 2026


================
@@ -407,6 +426,8 @@ class SemanticsContext {
   UnorderedSymbolSet isUsed_;
   std::set<const parser::AccObject *> accObjectDuplicates_;
   std::list<ProgramTree> programTrees_;
+  std::map<SymbolRef, OmpGroupprivateDeviceType, SymbolAddressCompare>
+      ompGroupprivateDeviceTypes_;
----------------
skc7 wrote:

Thanks @skatrak for suggestion. I was unaware of these recent changes.
The `device_type` is now stored on the `WithOmpDeclarative` mixin instead of the `SemanticsContext` map.
I used a separate `ompGroupprivateDeviceType_` field rather than reusing `declare_target`'s `ompDeviceType_`, so a symbol that's both keeps the two values independent. 

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


More information about the flang-commits mailing list