[cfe-commits] r120545 - in /cfe/trunk: include/clang/Basic/Attr.td include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/AttributeList.h lib/Sema/AttributeList.cpp lib/Sema/SemaDeclAttr.cpp test/CMakeLists.txt test/SemaCUDA/ test/SemaCUDA/cuda.h test/SemaCUDA/qualifiers.cu

Chris Lattner clattner at apple.com
Sun Dec 5 10:04:06 PST 2010


On Nov 30, 2010, at 7:15 PM, Peter Collingbourne wrote:

> Author: pcc
> Date: Tue Nov 30 21:15:31 2010
> New Revision: 120545
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=120545&view=rev
> Log:
> Basic, Sema: add support for CUDA location attributes

Hi Peter,

> +++ cfe/trunk/test/SemaCUDA/cuda.h Tue Nov 30 21:15:31 2010
> @@ -0,0 +1,7 @@
> +/* Minimal declarations for CUDA support.  Testing purposes only. */
> +
> +#define __constant__ __attribute__((constant))
> +#define __device__ __attribute__((device))
> +#define __global__ __attribute__((global))
> +#define __host__ __attribute__((host))
> +#define __shared__ __attribute__((shared))

Should this go in clang/lib/Headers?  When you do a make install, you'd want to install what-this-grows-into, right?

-Chris



More information about the cfe-commits mailing list