[OpenMP] Remove call to 'clang-offload-wrapper' binary
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 25 Jan 2022 22:46:01 +0000 (17:46 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 1 Feb 2022 04:11:43 +0000 (23:11 -0500)
commit19fac745e3226fbe9db4d3eab106fdaf19d9019d
treecfe563dac4ae36c6a94cd09a258c226f432c5301
parenteb6ddf288cd0ec58be8ff6c0840c440a5f31dd0b
[OpenMP] Remove call to 'clang-offload-wrapper' binary

Summary:
This patch removes the system call to the `clang-offload-wrapper` tool
by replicating its functionality in a new file. This improves
performance and makes the future wrapping functionality easier to
change.

Differential Revision: https://reviews.llvm.org/D118198
clang/tools/clang-linker-wrapper/CMakeLists.txt
clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
clang/tools/clang-linker-wrapper/OffloadWrapper.cpp [new file with mode: 0644]
clang/tools/clang-linker-wrapper/OffloadWrapper.h [new file with mode: 0644]