[PATCH] Change how address spaces are mangled

Tanya Lattner lattner at apple.com
Wed Jan 30 14:41:48 PST 2013


Attached is a patch to change how address spaces are mangled. 

Currently, if you specify local, global, or constant OpenCL address spaces you get some strange numbers printed in the mangled name which correspond to the values in LangAs for opencl_constant, opencl_local, and opencl_global. I believe it makes more sense to mangle based upon the real address space values that are defined by the target. It makes it easier to understand what the address spaces of the arguments to a function really are. I've included a test case for both the OpenCL case and if someone used the attribute in C++ as well.

Please review.

Thanks,
Tanya

-------------- next part --------------
A non-text attachment was scrubbed...
Name: addrSpaceMangle.patch
Type: application/octet-stream
Size: 1327 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130130/b43904d2/attachment.obj>


More information about the cfe-commits mailing list