[Driver][OpenMP] Create tool chains for OpenMP offloading kind.
Summary: This patch adds new logic to create the necessary tool chains to support offloading for OpenMP. The OpenMP related options are checked and the tool chains created accordingly. Diagnostics are emitted in case the options are illegal or express unknown targets. Reviewers: echristo, tra, jlebar, rsmith, ABataev, hfinkel Subscribers: whchung, mkuron, mehdi_amini, cfe-commits, Hahnfeld, arpith-jacob, carlo.bertolli, caomhin Differential Revision: https://reviews.llvm.org/D21843 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285311 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/DiagnosticDriverKinds.td 5 additions, 0 deletionsinclude/clang/Basic/DiagnosticDriverKinds.td
- include/clang/Driver/Action.h 1 addition, 0 deletionsinclude/clang/Driver/Action.h
- include/clang/Driver/Driver.h 23 additions, 0 deletionsinclude/clang/Driver/Driver.h
- lib/Driver/Action.cpp 4 additions, 0 deletionslib/Driver/Action.cpp
- lib/Driver/Driver.cpp 79 additions, 0 deletionslib/Driver/Driver.cpp
- lib/Driver/Tools.cpp 18 additions, 67 deletionslib/Driver/Tools.cpp
- test/Driver/openmp-offload.c 37 additions, 0 deletionstest/Driver/openmp-offload.c
Loading
Please register or sign in to comment