diff options
author | Artem Belevich <tra@google.com> | 2018-05-09 23:10:09 +0000 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2018-05-09 23:10:09 +0000 |
commit | 4f482660272cb79d5bec53291b043b0b9b19c29e (patch) | |
tree | 14441d0c8711a68322567668e8eede6b2033d0b3 /lib/Frontend/CompilerInvocation.cpp | |
parent | e5a13a5389926ed4981c01686794e07738b997e0 (diff) | |
download | clang-4f482660272cb79d5bec53291b043b0b9b19c29e.tar.gz |
[CUDA] Added -f[no-]cuda-short-ptr option
The option enables use of 32-bit pointers for accessing
const/local/shared memory. The feature is disabled by default.
Differential Revision: https://reviews.llvm.org/D46148
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331938 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 71c946442d..05e5196e32 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -2922,6 +2922,8 @@ static void ParseTargetArgs(TargetOptions &Opts, ArgList &Args, Opts.Triple = llvm::sys::getDefaultTargetTriple(); Opts.OpenCLExtensionsAsWritten = Args.getAllArgValues(OPT_cl_ext_EQ); Opts.ForceEnableInt128 = Args.hasArg(OPT_fforce_enable_int128); + Opts.NVPTXUseShortPointers = Args.hasFlag( + options::OPT_fcuda_short_ptr, options::OPT_fno_cuda_short_ptr, false); } bool CompilerInvocation::CreateFromArgs(CompilerInvocation &Res, |