arsenm accepted this revision. arsenm added a comment. This revision is now accepted and ready to land. LGTM. The intrinsic should probably have a comment that it is only for when targeting HSA http://reviews.llvm.org/D14898