[OpenMP] Extend CLANG target options with device offloading kind.
Summary: Pass the type of the device offloading when building the tool chain for a particular target architecture. This is required when supporting multiple tool chains that target a single device type. In our particular use case, the OpenMP and CUDA tool chains will use the same ```addClangTargetOptions ``` method. This enables the reuse of common options and ensures control over options only supported by a particular tool chain. Reviewers: arpith-jacob, caomhin, carlo.bertolli, ABataev, jlebar, hfinkel, tstellar, Hahnfeld Reviewed By: hfinkel Subscribers: jgravelle-google, aheejin, rengolin, jfb, dschuff, sbc100, cfe-commits Differential Revision: https://reviews.llvm.org/D29647 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307272 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Driver/ToolChain.h 2 additions, 1 deletioninclude/clang/Driver/ToolChain.h
- lib/Driver/ToolChain.cpp 3 additions, 3 deletionslib/Driver/ToolChain.cpp
- lib/Driver/ToolChains/BareMetal.cpp 2 additions, 1 deletionlib/Driver/ToolChains/BareMetal.cpp
- lib/Driver/ToolChains/BareMetal.h 2 additions, 1 deletionlib/Driver/ToolChains/BareMetal.h
- lib/Driver/ToolChains/Clang.cpp 2 additions, 1 deletionlib/Driver/ToolChains/Clang.cpp
- lib/Driver/ToolChains/Cuda.cpp 38 additions, 13 deletionslib/Driver/ToolChains/Cuda.cpp
- lib/Driver/ToolChains/Cuda.h 2 additions, 1 deletionlib/Driver/ToolChains/Cuda.h
- lib/Driver/ToolChains/Darwin.cpp 2 additions, 1 deletionlib/Driver/ToolChains/Darwin.cpp
- lib/Driver/ToolChains/Darwin.h 2 additions, 1 deletionlib/Driver/ToolChains/Darwin.h
- lib/Driver/ToolChains/Fuchsia.cpp 2 additions, 1 deletionlib/Driver/ToolChains/Fuchsia.cpp
- lib/Driver/ToolChains/Fuchsia.h 2 additions, 1 deletionlib/Driver/ToolChains/Fuchsia.h
- lib/Driver/ToolChains/Gnu.cpp 2 additions, 1 deletionlib/Driver/ToolChains/Gnu.cpp
- lib/Driver/ToolChains/Gnu.h 2 additions, 1 deletionlib/Driver/ToolChains/Gnu.h
- lib/Driver/ToolChains/Hexagon.cpp 2 additions, 1 deletionlib/Driver/ToolChains/Hexagon.cpp
- lib/Driver/ToolChains/Hexagon.h 2 additions, 1 deletionlib/Driver/ToolChains/Hexagon.h
- lib/Driver/ToolChains/WebAssembly.cpp 2 additions, 1 deletionlib/Driver/ToolChains/WebAssembly.cpp
- lib/Driver/ToolChains/WebAssembly.h 2 additions, 1 deletionlib/Driver/ToolChains/WebAssembly.h
- lib/Driver/ToolChains/XCore.cpp 2 additions, 1 deletionlib/Driver/ToolChains/XCore.cpp
- lib/Driver/ToolChains/XCore.h 2 additions, 1 deletionlib/Driver/ToolChains/XCore.h
Loading
Please register or sign in to comment