[LLVMdev] Address Space Casting

Michele Scandale michele.scandale at gmail.com
Tue Sep 10 06:48:28 PDT 2013


On 09/10/2013 03:35 PM, David Tweed wrote:
> Hi,
> 
> | This patch introduces a new IR instruction named 'addrspacecast' that will be
> | used to represent the casting operation between pointers of different address
> | spaces. This instruction will represent whatever kind of conversion (potentially
> | both value and size of the pointer) and the semantic of the conversion between a
> | pair of address spaces is target specific.
> 
> Assuming I understand the changes, it's probably with being explicit in this note
> that "instruction will represent" means "will be the only reliable means of
> representing".

Yes, this new instruction will replace bitcast (it will be illegal to convert
pointers between different address spaces) and possibly also ptrtoint+inttoptr
that are now used for *some* address space casting.

-Michele

> Cheers,
> Dave
> 
> -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.
> 
> ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No:  2557590
> ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No:  2548782
> 




More information about the llvm-dev mailing list