[flang-commits] [flang] [flang][cuda] Implicitly load cudadevice module in device/global subprogram (PR #91668)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Thu May 9 15:04:14 PDT 2024


================
@@ -82,6 +82,10 @@ struct DeviceExprChecker
           }
         }
       }
+      if (sym->owner().IsModule() &&
+          DEREF(sym->owner().symbol()).name() == "__cuda_device_builtins") {
----------------
klausler wrote:

Consider adding `sym->owner().parent().IsIntrinsicModules() &&` as a further check that this is really the built-in module.

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


More information about the flang-commits mailing list