[PATCH] D30669: [NVPTX] Add an "image" attribute and simplify the NVPTX rdoimage, wroimage, and rdrwimage attributes.

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 8 14:31:36 PST 2017


arsenm added a comment.

In https://reviews.llvm.org/D30669#695232, @jlebar wrote:

> In https://reviews.llvm.org/D30669#695229, @arsenm wrote:
>
> > What advantage over reserving an address space for images does this have? Now that we can have non-integral pointer types, why not just designate an address space for read/write images?
>
>
> Hm, I guess that makes a lot of sense... I don't think it's legal to GEP, address space cast, or even do regular loads on these pointers, but whatever?


I think these are allowed, just not ptrtoint


https://reviews.llvm.org/D30669





More information about the llvm-commits mailing list