aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. Attribute side of things LGTM, but I don't have the expertise to comment on the OpenCL functionality itself. http://reviews.llvm.org/D17764