PATCH: fix clang to emit correct addrspacecast for CUDA

Justin Holewinski jholewinski at
Fri Mar 21 11:25:47 PDT 2014

addrspacecast support in NVPTX is on my todo list.  I'll try to put 
something together in the next few days.

On 3/21/14, 2:20 PM, Jingyue Wu wrote:
> Hi,
> Static local variables in CUDA can be declared with address space 
> qualifiers, such as __shared__. Therefore, the codegen needs to 
> potentially addrspacecast a static local variable to the type expected 
> by its declaration. Peter did something similar for global variables 
> in r157167.
> All clang tests passed.
> Justin: The NVPTX backend support for addrspacecast seems not 
> complete. We can send you follow-up patches once this one gets in.
> Jingyue


Justin Holewinski

This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the cfe-commits mailing list