[OpenCL] change default address space of pointers in CL2.0 mode

Anastasia Stulova Anastasia.Stulova at arm.com
Thu Nov 27 06:13:19 PST 2014


Thanks Sameer! I will have a look at it.

Anastasia

-----Original Message-----
From: Sahasrabuddhe, Sameer [mailto:sameer.sahasrabuddhe at amd.com]
Sent: 22 November 2014 10:36
To: Anastasia Stulova; 'Matt Arsenault'; 'Pekka Jääskeläinen'; cfe-commits at cs.uiuc.edu
Subject: Re: [OpenCL] change default address space of pointers in CL2.0 mode


On 11/21/2014 12:14 AM, Anastasia Stulova wrote:
> Ok. If there are multiple use cases for this, perhaps, it's worth
> trying to add 'private' to the list of OpenCL address spaces in Clang.
>
> On 11/17/2014 10:41 AM, Anastasia Stulova wrote:
>> One of the difficulty is that Clang currently treats private address
>> space just the same as if no address space qualifier was specified.
>> That makes it difficult to find a right place to handle the default
>> address space behaviour, because information becomes unavailable early on.

The provisional SPIR 2.0 generator from Khronos seems to handle this already. Would you consider porting that code to trunk? As far as I know, the OpenCL WG would be happy to see this upstreamed.

https://github.com/KhronosGroup/SPIR/tree/spir_20_provisional

Sameer.



-- 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 cfe-commits mailing list