yaxunl added a comment. The enum for address space is not necessarily bound to SPIR as long as the runtime knows it.
Since most OpenCL runtime already uses that definition (if they use clang as compiler), I don't see a reason to change that. I doubt this metadata can be used for anything else other than clGetKernelArgInfo, therefore other languages most likely do not need it. Repository: rL LLVM https://reviews.llvm.org/D26157 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits