[LLVMdev] Bitcasts between pointers with different address spaces

Villmow, Micah Micah.Villmow at amd.com
Fri Sep 7 10:47:33 PDT 2012


Should LLVM make bitcasts between pointers with different address spaces illegal?

This will require a small clarification in the documentation and an assertion check added to the verifier, but I think this would be a good approach.

The reason being is that in different address spaces, pointers are not always the same size.

This could be limited to make it legal only if the size of the pointer in source and destination address spaces are equivalent, but that seems like more of a work-around than a proper solution.

Ideas?
Micah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120907/aa47320f/attachment.html>


More information about the llvm-dev mailing list