[Driver][OpenMP] Build jobs for OpenMP offloading actions for targets using gcc tool...
authorSamuel Antao <sfantao@us.ibm.com>
Thu, 27 Oct 2016 17:31:22 +0000 (17:31 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Thu, 27 Oct 2016 17:31:22 +0000 (17:31 +0000)
commit59efaede56bebf15853f06faa9a799b6963b43de
treee2a1513c0274213e21a1ea642c30e45ebf8636cc
parent611f9f92fcb1a0bdcfd481dbf7ee67be04dd54e0
[Driver][OpenMP] Build jobs for OpenMP offloading actions for targets using gcc tool chains.

Summary:
This patch adds logic to create jobs for OpenMP offloading actions by:
 - tuning the jobs result information to use the offloading prefix even for (device) linking actions.
 - replacing the device inputs of the host linking jobs by a linker script that embed them in the right sections.

Reviewers: echristo, tra, jlebar, rsmith, ABataev, hfinkel

Subscribers: mkuron, whchung, mehdi_amini, cfe-commits, Hahnfeld, andreybokhanko, arpith-jacob, carlo.bertolli, caomhin

Differential Revision: https://reviews.llvm.org/D21847

llvm-svn: 285319
clang/include/clang/Driver/Options.td
clang/lib/Driver/Driver.cpp
clang/lib/Driver/Tools.cpp
clang/test/Driver/openmp-offload.c