[PATCH] D16928: [OpenCL] Apply missing restrictions for Blocks in OpenCL v2.0
Mats Petersson via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 17 11:44:59 PST 2016
MatsPetersson added a comment.
I think adding printf as a builtin function is a good idea.
If not, I feel that the error message should distinguish between (for example):
int printf(global char* fmt, ...);
and
void myfunc(int n, ...);
since the former is "incorrect prototype of printf" and the latter is "not a valid opencl function".
http://reviews.llvm.org/D16928
More information about the cfe-commits
mailing list