[OpenMP] Replace sysmtem call to `llc` with target machine
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 25 Jan 2022 19:25:39 +0000 (14:25 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 1 Feb 2022 04:11:42 +0000 (23:11 -0500)
commiteb6ddf288cd0ec58be8ff6c0840c440a5f31dd0b
tree1fe59ba92141ed4f4dbb5cb1c7e4df1ce51bd30a
parent9375f1563e87e115cc8f9d052760d68460889f4e
[OpenMP] Replace sysmtem call to `llc` with target machine

Summary:
This patch replaces the system call to the `llc` binary with a library
call to the target machine interface. This should be faster than
relying on an external system call to compile the final wrapper binary.

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