[OpenMP] Add support for linking AMDGPU images
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 13 Jan 2022 17:42:02 +0000 (12:42 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 1 Feb 2022 04:11:42 +0000 (23:11 -0500)
commitce16ca3c7419fc6cec43d0dae5e9f62df05faf6b
treec0d462dabb7825b681da5867df197d7ff5669a8c
parentcb7cfaec71850d0a6bc6e00729f0ef6107c51419
[OpenMP] Add support for linking AMDGPU images

This patch adds support for linking AMDGPU images using the LLD binary.
AMDGPU files are always bitcode images and will always use the LTO
backend. Additionally we now pass the default architecture found with
the `amdgpu-arch` tool to the argument list.

Depends on D117156

Differential Revision: https://reviews.llvm.org/D117246
clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp