[cfe-dev] OpenCL and Type Poisoning
rjmccall at apple.com
Wed Jan 26 10:41:42 PST 2011
On Jan 26, 2011, at 12:02 AM, Speziale Ettore wrote:
> I have tried to implement an "openlcl_kernel_poison" pragma, but I've
> seen that the pragma construct is too far from what I want to do. Thus,
> I've tried to implement the same think with an attribute:
> typedef long size_t __attribute__((opencl_kernel_poison));
Having an attribute on typedefs makes sense to me. It does not make
any sense as a type qualifier; among other things, it's a property of types,
not something that makes a different type.
I don't think the OpenCL poisoning semantics are generic enough to be
worth supporting in the standard compiler.
More information about the cfe-dev