[Clang][OpenMP][NVPTX] Replace `libomptarget-nvptx-path` with `libomptarget-nvptx...
authorShilei Tian <tianshilei1992@gmail.com>
Sat, 23 Jan 2021 19:42:32 +0000 (14:42 -0500)
committerShilei Tian <tianshilei1992@gmail.com>
Sat, 23 Jan 2021 19:42:38 +0000 (14:42 -0500)
commit5ad038aafa3a07a4491bf12cf6edf2026f3f17d1
tree8959d08f4b812cef809299644f24c9b07983e294
parente4847a7fcf777eedc748d2476323726960ab29b7
[Clang][OpenMP][NVPTX] Replace `libomptarget-nvptx-path` with `libomptarget-nvptx-bc-path`

D94700 removed the static library so we no longer need to pass
`-llibomptarget-nvptx` to `nvlink`. Since the bitcode library is the only device
runtime for now, instead of emitting a warning when it is not found, an error
should be raised. We also set a new option `libomptarget-nvptx-bc-path` to let
user choose which bitcode library is being used.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D95161
clang/docs/ClangCommandLineReference.rst
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Cuda.cpp
clang/test/Driver/Inputs/libomptarget/libomptarget-nvptx-test.bc [new file with mode: 0644]
clang/test/Driver/openmp-offload-gpu.c