[OpenMP] Search for static libraries in offload linker tool
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 5 Jan 2022 18:21:03 +0000 (13:21 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 1 Feb 2022 04:11:41 +0000 (23:11 -0500)
commit0e82c7553be95343f1cb62946eb0b84bd26f1563
treee21bc917913c79e32aec0308b00a52db0acbfcac
parentd0744585f9ea842ca97855b2e002fddc893c4a92
[OpenMP] Search for static libraries in offload linker tool

This patch adds support for searching through the linker library paths
to identify static libraries that may contain device code. If device
code is present it will be extracted. This should ideally fully support
static linking with OpenMP offloading.

Depends on D116627

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