diff options
author | Gheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com> | 2017-07-06 16:22:21 +0000 |
---|---|---|
committer | Gheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com> | 2017-07-06 16:22:21 +0000 |
commit | f0f29608d052810f0a2bbcee558f8d61a6973554 (patch) | |
tree | 54cc59b5f88f458d88663edff4fe08978d55e8fe /clang/lib/Driver/ToolChains/Cuda.h | |
parent | 6a5df72a82880edb6615677d431df20f0c3f95e3 (diff) | |
download | bcm5719-llvm-f0f29608d052810f0a2bbcee558f8d61a6973554.tar.gz bcm5719-llvm-f0f29608d052810f0a2bbcee558f8d61a6973554.zip |
[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
Diffstat (limited to 'clang/lib/Driver/ToolChains/Cuda.h')
-rw-r--r-- | clang/lib/Driver/ToolChains/Cuda.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains/Cuda.h b/clang/lib/Driver/ToolChains/Cuda.h index acdb4c4efd6..e66fc23d82f 100644 --- a/clang/lib/Driver/ToolChains/Cuda.h +++ b/clang/lib/Driver/ToolChains/Cuda.h @@ -130,7 +130,8 @@ public: TranslateArgs(const llvm::opt::DerivedArgList &Args, StringRef BoundArch, Action::OffloadKind DeviceOffloadKind) const override; void addClangTargetOptions(const llvm::opt::ArgList &DriverArgs, - llvm::opt::ArgStringList &CC1Args) const override; + llvm::opt::ArgStringList &CC1Args, + Action::OffloadKind DeviceOffloadKind) const override; // Never try to use the integrated assembler with CUDA; always fork out to // ptxas. |