[Clang] Add offload kind to embedded offload object
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 21 Feb 2022 23:55:51 +0000 (18:55 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 15 Mar 2022 00:08:27 +0000 (20:08 -0400)
commit9f89769cd775ce6dc27cad0fbfdd94bf94bc8f99
tree3e558d394623ca0a9098a85f6d88fa463e09598e
parent06b336c4cd2c91e0dec877cca1303eddaeb4ef79
[Clang] Add offload kind to embedded offload object

This patch adds the offload kind to the embedded section name in
preparation for offloading to different kinda like CUDA or HIP.

Depends on D120288

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D120271
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/openmp-offload-gpu.c
clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp