[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
Showing
- include/clang/Driver/Action.h 48 additions, 1 deletioninclude/clang/Driver/Action.h
- include/clang/Driver/Types.h 5 additions, 0 deletionsinclude/clang/Driver/Types.h
- lib/Driver/Action.cpp 10 additions, 0 deletionslib/Driver/Action.cpp
- lib/Driver/Driver.cpp 29 additions, 1 deletionlib/Driver/Driver.cpp
- lib/Driver/ToolChain.cpp 1 addition, 0 deletionslib/Driver/ToolChain.cpp
- lib/Driver/Types.cpp 4 additions, 0 deletionslib/Driver/Types.cpp
- test/Driver/openmp-offload.c 53 additions, 0 deletionstest/Driver/openmp-offload.c
Loading
Please register or sign in to comment