OpenCL v1.2 s6.8.p2 - Extern can be used for variables declared in functions.
Differential Revision: http://reviews.llvm.org/D16865
Differential D16891
[OpenCL] Allow extern constant-address-space variable in non-kernel function yaxunl on Feb 4 2016, 11:09 AM. Authored by
Details
OpenCL v1.2 s6.8.p2 - Extern can be used for variables declared in functions. Differential Revision: http://reviews.llvm.org/D16865
Diff Detail Event TimelineComment Actions I read about spec and found that in OpenCL1.1 extern was not support. Comment Actions Revised as Xiuli suggested. Diagnostic for extern for OpenCL v1.1 and below already exists, so no change about that.
Comment Actions Revised as Anastasia suggested.
Comment Actions Commented at wrong location. Corrected.
Comment Actions I just have a few small comments, but otherwise LGTM!
Comment Actions Revised as Anastasia suggested. Changed comments. |
Extern -> extern