[flang-commits] [flang] [flang][mlir] Add flang to mlir lowering for groupprivate (PR #180934)
via flang-commits
flang-commits at lists.llvm.org
Thu Jun 11 07:59:34 PDT 2026
================
@@ -69,14 +69,28 @@ class WithOmpDeclarative {
const OmpClauseSet &ompDeclTarget() const { return ompDeclTarget_; }
void set_ompDeclTarget(OmpClauseSet clauses) { ompDeclTarget_ = clauses; }
- const std::optional<common::OmpDeviceType> &ompDeviceType() const {
- return ompDeviceType_;
+ const std::optional<common::OmpDeviceType> &ompDeclTargetDeviceType() const {
+ return ompDeclTargetDeviceType_;
}
void set_ompDeclTarget(common::OmpDeviceType device) {
- ompDeviceType_ = device;
+ ompDeclTargetDeviceType_ = device;
}
+ const OmpClauseSet &ompGroupprivate() const { return ompGroupprivate_; }
+ void set_ompGroupprivate(OmpClauseSet clauses) { ompGroupprivate_ = clauses; }
+
+ const std::optional<common::OmpDeviceType> &
+ ompGroupprivateDeviceType() const {
+ return ompGroupprivateDeviceType_;
+ }
+ void set_ompGroupprivate(common::OmpDeviceType device) {
+ ompGroupprivateDeviceType_ = device;
+ }
+
+ // \p dir selects which directive's DEVICE_TYPE value to print, since the
+ // clause can be carried by both DECLARE_TARGET and GROUPPRIVATE.
----------------
skc7 wrote:
Updated in latest patch.
https://github.com/llvm/llvm-project/pull/180934
More information about the flang-commits
mailing list