llvm-project/clang/lib/Driver/ToolChains
Gheorghe-Teodor Bercea f0f29608d0 [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

llvm-svn: 307272
2017-07-06 16:22:21 +00:00
..
Arch [driver][mips] Use AddTargetFeature to check arguments and add feature flags. NFC 2017-07-05 12:57:37 +00:00
AMDGPU.cpp
AMDGPU.h
AVR.cpp
AVR.h
Ananas.cpp Add support for Ananas platform 2017-06-25 08:29:09 +00:00
Ananas.h Add support for Ananas platform 2017-06-25 08:29:09 +00:00
BareMetal.cpp [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
BareMetal.h [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
Bitrig.cpp
Bitrig.h
Clang.cpp [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
Clang.h
CloudABI.cpp
CloudABI.h
CommonArgs.cpp Enable LLVM asan support for NetBSD/amd64 2017-07-04 19:55:56 +00:00
CommonArgs.h [Driver] Unify linking of OpenMP runtime. NFCI. 2017-04-19 13:55:39 +00:00
Contiki.cpp
Contiki.h
CrossWindows.cpp Driver: honor -nostdinc and -isystem-after on CrossWindows 2017-06-30 15:15:38 +00:00
CrossWindows.h
Cuda.cpp [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
Cuda.h [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
Darwin.cpp [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
Darwin.h [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
DragonFly.cpp
DragonFly.h
FreeBSD.cpp
FreeBSD.h
Fuchsia.cpp [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
Fuchsia.h [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
Gnu.cpp [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
Gnu.h [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
Haiku.cpp Driver/ToolChains: Remove extra semicolons. NFC 2017-03-09 00:14:57 +00:00
Haiku.h
Hexagon.cpp [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
Hexagon.h [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
Lanai.h
Linux.cpp Fixed warning: enum constant in boolean context. 2017-06-03 16:47:06 +00:00
Linux.h
MSVC.cpp [Driver] Don't force .exe suffix for lld 2017-06-06 02:06:28 +00:00
MSVC.h Fix uninitialized value. 2017-03-15 19:54:25 +00:00
MSVCSetupApi.h Update clang-cl driver for MSVC 2017. 2017-03-15 16:07:35 +00:00
MinGW.cpp Driver: Better detection of mingw-gcc 2017-04-18 14:27:36 +00:00
MinGW.h Driver: Better detection of mingw-gcc 2017-04-18 14:27:36 +00:00
Minix.cpp
Minix.h
MipsLinux.cpp fix trivial typos; NFC 2017-07-01 08:46:43 +00:00
MipsLinux.h Driver/ToolChains: Mips -> MipsLinux 2017-03-08 22:36:04 +00:00
Myriad.cpp Added LLVM_FALLTHROUGH to address gcc warning: this statement may fall through. 2017-05-23 05:17:49 +00:00
Myriad.h
NaCl.cpp
NaCl.h
NetBSD.cpp Enable LLVM asan support for NetBSD/amd64 2017-07-04 19:55:56 +00:00
NetBSD.h Enable LLVM asan support for NetBSD/amd64 2017-07-04 19:55:56 +00:00
OpenBSD.cpp
OpenBSD.h
PS4CPU.cpp
PS4CPU.h
Solaris.cpp
Solaris.h
TCE.cpp Driver/ToolChains: Remove extra semicolons. NFC 2017-03-09 00:14:57 +00:00
TCE.h
WebAssembly.cpp [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
WebAssembly.h [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
XCore.cpp [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00
XCore.h [OpenMP] Extend CLANG target options with device offloading kind. 2017-07-06 16:22:21 +00:00