[OpenMP] Add a driver flag to enable the new device runtime library
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 26 Jul 2021 14:25:40 +0000 (10:25 -0400)
committerHuber, Joseph <huberjn@ornl.gov>
Mon, 26 Jul 2021 20:35:56 +0000 (16:35 -0400)
commitd2972116923a124de71cea006eca3068bdc381ea
tree006e58311f62c38fc68e40770e1890bf257a1516
parentcbad57613e769d0653e13cf877d80eae421b2314
[OpenMP] Add a driver flag to enable the new device runtime library

This patch adds a driver flag `-fopenmp-target-new-runtime` to optionally enable the new device runtime
bitcode library. This allows users to enable the new experimental runtime
before it becomes the default in the future.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D106793
clang/include/clang/Basic/LangOptions.def
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp
clang/lib/Driver/ToolChains/Cuda.cpp
clang/test/Driver/Inputs/libomptarget/libomptarget-new-nvptx-sm_35.bc [new file with mode: 0644]
clang/test/Driver/openmp-offload-gpu.c