[PATCH] D17343: [OpenCL] Diagnose program scope pointers

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 17 12:24:31 PST 2016


yaxunl added a comment.

I am not sure about the restriction that program scope pointer must point to global or constant addr space. Can you provide reference to the OpenCL 2.0 spec?

https://www.khronos.org/registry/cl/specs/opencl-2.0-openclc.pdf

On page 36 there are examples for program-scope pointers:

int *foo; // OK. foo is allocated in global address space.

  // pointer to foo in generic address space

int * global ptr; // OK.

It seems at least program-scope pointers pointing to generic addr space is also allowed.


http://reviews.llvm.org/D17343





More information about the cfe-commits mailing list