[LLVMdev] Bitcasts between pointers with different address spaces
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev