[Openmp-commits] [PATCH] D146552: [Clang][OpenMP] Enable device-mapped constexpr class members to not be optimized out

Johannes Doerfert via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Mar 21 16:23:33 PDT 2023


jdoerfert added inline comments.


================
Comment at: clang/lib/CodeGen/CGOpenMPRuntime.cpp:10384
       // Do not create a "ref-variable" if the original is not also available
       // on the host.
       if (!OffloadEntriesInfoManager.hasDeviceGlobalVarEntryInfo(VarName))
----------------
I really think we need a different solution to this than the "ref" variables... alas, not with this patch


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146552/new/

https://reviews.llvm.org/D146552



More information about the Openmp-commits mailing list