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

Dan Bailey drbdneg at gmail.com
Sat Jun 18 10:05:20 PDT 2011



On 18 Jun 2011, at 07:56, 陳韋任 <chenwj at iis.sinica.edu.tw> wrote:

>> 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?
> 
>  I'll wait for Che-Liang and Dan's comment.
Yep, Justin's right, it makes more sense to use the 64bit flag to indicate the address size. 

Dan

>> 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.
> 
>  Fixed.
> 
> 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-133338>




More information about the llvm-commits mailing list