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

via flang-commits flang-commits at lists.llvm.org
Tue Jun 9 00:14:51 PDT 2026


================
@@ -99,6 +107,9 @@ class WithOmpDeclarative {
   // The argument to DEVICE_TYPE clause. Only needed when the clause is
   // present in the ompDeclTarget_ set.
   std::optional<common::OmpDeviceType> ompDeviceType_;
+  // The argument to a DEVICE_TYPE clause on a GROUPPRIVATE directive declaring
+  // this symbol. Absent means the spec default (any).
+  std::optional<common::OmpDeviceType> ompGroupprivateDeviceType_;
----------------
skc7 wrote:

Added `ompGroupprivate_` (getter/setter), set during resolution like `declare_target`.

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


More information about the flang-commits mailing list