[PATCH] D96877: [libomptarget] Try a fallback devicertl if the preferred one is missing

Shilei Tian via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 17 10:33:15 PST 2021


tianshilei1992 added inline comments.


================
Comment at: clang/include/clang/Basic/DiagnosticDriverKinds.td:265
   "No library '%0' found in the default clang lib directory or in LIBRARY_PATH. Please use --libomptarget-%1-bc-path to specify %1 bitcode library.">;
+def warn_drv_omp_offload_target_missingbcruntime : Warning<"No library '%0' found in the default clang lib directory or in LIBRARY_PATH, using '%1' instead. Please use --libomptarget-%2-bc-path to specify %2 bitcode library.">;
 def err_drv_omp_offload_target_bcruntime_not_found : Error<"Bitcode library '%0' does not exist.">;
----------------
Besides, we might also need to tell users this bitcode library might not work as expected.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D96877



More information about the cfe-commits mailing list