]> granicus.if.org Git - clang/commit
[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)
commitf03a8c88a8a1228be877f524af78433f23bd408b
treedb4522572467e209ce3481562b6d10243bbff53d
parentde524d8e3d494214c3db591ce52f1d80910b8b06
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285324 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Action.h
include/clang/Driver/Types.h
lib/Driver/Action.cpp
lib/Driver/Driver.cpp
lib/Driver/ToolChain.cpp
lib/Driver/Types.cpp
test/Driver/openmp-offload.c