[Driver][OpenMP] Update actions builder to create unbundling action when necessary.
authorSamuel Antao <sfantao@us.ibm.com>
Thu, 27 Oct 2016 18:00:51 +0000 (18:00 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Thu, 27 Oct 2016 18:00:51 +0000 (18:00 +0000)
commitfab4f37ef7e81dfa25070cf6f5488980a0c687bf
treef43cd013e6b346b3fb2ae5f8a88ae7d514922fd8
parent69d6f31f744a8b3dcb1a3fecae41a9d6f667b476
[Driver][OpenMP] Update actions builder to create unbundling action when necessary.

Summary:
Each time that offloading support is requested by the user and the input file is not a source file, an action `OffloadUnbundlingAction` is created to signal that the input file may contain bundles, so that the proper tool is then invoked to attempt to extract the components of the bundle. This patch adds the logic to create that action in offload action builder.

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/D21853

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