[OpenMP] Use new offloading binary when embedding offloading images
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 25 Mar 2022 15:03:02 +0000 (11:03 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Sat, 16 Apr 2022 00:35:26 +0000 (20:35 -0400)
commit984a0dc386553f28068716a087d65ccf8a92889b
treecf1860f5750b21a8c032da09644afbcda89ebb70
parentcac81161ed1386b32443e13ab513c6a3d081d6a7
[OpenMP] Use new offloading binary when embedding offloading images

The previous patch introduced the offloading binary format so we can
store some metada along with the binary image. This patch introduces
using this inside the linker wrapper and Clang instead of the previous
method that embedded the metadata in the section name.

Differential Revision: https://reviews.llvm.org/D122683
clang/include/clang/Basic/CodeGenOptions.h
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/openmp-offload-gpu.c
clang/test/Frontend/embed-object.c
clang/test/Frontend/embed-object.ll
clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
llvm/include/llvm/Object/OffloadBinary.h
llvm/include/llvm/Transforms/Utils/ModuleUtils.h
llvm/lib/Transforms/Utils/ModuleUtils.cpp