[cfe-commits] r157171 - /cfe/trunk/include/clang/Basic/Attr.td

Peter Collingbourne peter at pcc.me.uk
Sun May 20 16:28:32 PDT 2012


Author: pcc
Date: Sun May 20 18:28:32 2012
New Revision: 157171

URL: http://llvm.org/viewvc/llvm-project?rev=157171&view=rev
Log:
CUDA: the device and host attributes must be inheritable, in order
to deal with NVIDIA's headers.  We'll need to think of another way
to handle multiple host/device definitions within the same TU.

Modified:
    cfe/trunk/include/clang/Basic/Attr.td

Modified: cfe/trunk/include/clang/Basic/Attr.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Attr.td?rev=157171&r1=157170&r2=157171&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Attr.td (original)
+++ cfe/trunk/include/clang/Basic/Attr.td Sun May 20 18:28:32 2012
@@ -267,7 +267,7 @@
   let Spellings = ["constant"];
 }
 
-def CUDADevice : Attr {
+def CUDADevice : InheritableAttr {
   let Spellings = ["device"];
 }
 
@@ -275,7 +275,7 @@
   let Spellings = ["global"];
 }
 
-def CUDAHost : Attr {
+def CUDAHost : InheritableAttr {
   let Spellings = ["host"];
 }
 





More information about the cfe-commits mailing list