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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits