[llvm-commits] [PATCH][Target/PTX] Add address_size directive to PTX backend

Justin Holewinski justin.holewinski at gmail.com
Fri Jun 17 04:27:23 PDT 2011


On Jun 17, 2011, at 3:31 AM, 陳韋任 wrote:

> Hi, Justin
> 
>  I add ".address_size" directive support and a test case.
> 
>  Is it O.K. to be committed? Thanks!

Perhaps my understanding of the .address_size directive is incomplete, but as far as I know it is just used as a flag for ptxas to make sure all PTX modules in a program assume the same pointer size.  That said, what is the purpose of allowing LLVM to generate 32-bit PTX code but assume 64-bit addresses, and vice versa?  Why not tie the directive directly to the existing 32/64-bit flag instead of allowing user intervention?

Also, .address_size is only supported on PTX 2.3+.  Please amend the patch to emit this directive only if the target PTX version is >= 2.3.

> 
> Regards,
> chenwj
> 
> -- 
> Wei-Ren Chen (陳韋任)
> Computer Systems Lab, Institute of Information Science,
> Academia Sinica, Taiwan (R.O.C.)
> Tel:886-2-2788-3799 #1667
> <patch-llvm-133249.txt>

Thanks,

Justin Holewinski

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110617/9660ed15/attachment.html>


More information about the llvm-commits mailing list