[flang-commits] [flang] [flang][mlir] Add flang to mlir lowering for groupprivate (PR #180934)
Sergio Afonso via flang-commits
flang-commits at lists.llvm.org
Mon Jun 8 08:25:28 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_;
----------------
skatrak wrote:
Just to follow the existing pattern, I think it might be a good idea to add an `OmpClauseSet ompGroupprivate_` field (and getter/setter) as well. Only if there is a `groupprivate` directive, then the `device_type` clause would be set and its value would be stored in the `std::optional` below (by default `any`).
https://github.com/llvm/llvm-project/pull/180934
More information about the flang-commits
mailing list