[flang-commits] [flang] [flang][openacc] Allow open acc routines from other modules. (PR #136012)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Tue May 6 09:17:02 PDT 2025


================
@@ -137,22 +140,28 @@ class OpenACCRoutineDeviceTypeInfo {
   void set_isGang(bool value = true) { isGang_ = value; }
   unsigned gangDim() const { return gangDim_; }
   void set_gangDim(unsigned value) { gangDim_ = value; }
-  const std::string *bindName() const {
-    return bindName_ ? &*bindName_ : nullptr;
+  const std::variant<std::string, SymbolRef> *bindName() const {
+    return bindName_.has_value() ? &*bindName_ : nullptr;
   }
-  void set_bindName(std::string &&name) { bindName_ = std::move(name); }
-  void set_dType(Fortran::common::OpenACCDeviceType dType) {
-    deviceType_ = dType;
+  const std::optional<std::variant<std::string, SymbolRef>> &
----------------
klausler wrote:

Same question here as above.

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


More information about the flang-commits mailing list