]> granicus.if.org Git - clang/commit
CUDA: add -fcuda-is-device flag
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 6 Oct 2011 18:29:46 +0000 (18:29 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 6 Oct 2011 18:29:46 +0000 (18:29 +0000)
commitd51e43af0b3a6897b971f316c4de2035ec82d1f2
tree2e2a505064edf95a02eda45e47a11be94903f993
parent6c0aa5ff6e6253db0f993053599e2a52b5b93b2d
CUDA: add -fcuda-is-device flag

This frontend-only flag is used by the IR generator to determine
whether to filter CUDA declarations for the host or for the device.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141301 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CC1Options.td
include/clang/Frontend/CodeGenOptions.h
lib/CodeGen/CodeGenModule.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGenCUDA/filter-decl.cu [new file with mode: 0644]
test/CodeGenCUDA/ptx-kernels.cu