pjcoup added a comment. We have a similar patch in our tree. I didn't see an easy way to add support for mangling only the address space instead of the full pointer type, but I'm not a tblgen expert. http://reviews.llvm.org/D17270