[Driver][OpenMP] Update actions builder to create bundling action when necessary.
authorSamuel Antao <sfantao@us.ibm.com>
Thu, 27 Oct 2016 17:50:43 +0000 (17:50 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Thu, 27 Oct 2016 17:50:43 +0000 (17:50 +0000)
commit69d6f31f744a8b3dcb1a3fecae41a9d6f667b476
tree5c8e8f72da3b46e46b3989fef3f8380f7a370ea2
parent093abab817e61da02ddc30774b22a16641deac38
[Driver][OpenMP] Update actions builder to create bundling action when necessary.

Summary:
In order to save the user from dealing with multiple output files (for host and device) while using separate compilation, a new action `OffloadBundlingAction` is used when the last phase is not linking. This action will then result in a job that uses the proposed bundling tool to create a single preprocessed/IR/ASM/Object file from multiple ones.

The job creation for the new action will be proposed in a separate patch.

Reviewers: echristo, tra, jlebar, ABataev, hfinkel

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

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

llvm-svn: 285323
clang/include/clang/Driver/Action.h
clang/lib/Driver/Action.cpp
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChain.cpp
clang/test/Driver/openmp-offload.c