[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 15:12:57 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.">;
----------------
JonChesterfield wrote:
> tianshilei1992 wrote:
> > Besides, we might also need to tell users this bitcode library might not work as expected.
> Could you propose preferred wording?
maybe the following one?
```
def warn_drv_omp_offload_target_missingbcruntime : Warning<"No library '%0' found in the default clang lib directory or in LIBRARY_PATH. Fall back to '%1' instead.">;
```


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