[PATCH] D30669: [NVPTX] Add an "image" attribute and simplify the NVPTX rdoimage, wroimage, and rdrwimage attributes.
Briana Grace via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 8 14:27:53 PST 2017
brianagrace added inline comments.
================
Comment at: test/CodeGen/NVPTX/surf-read.ll:20
!1 = !{void (i64, float*, i32)* @foo, !"kernel", i32 1}
-!2 = !{void (i64, float*, i32)* @foo, !"rdwrimage", i32 0}
----------------
jlebar wrote:
> (Just as an example of how messed up this old metadata format is: Apparently "i32 0" here means that this *is* an image? Like, it looks like it's saying "false"!)
Its the argument number - the 0th arg of the function is an image
https://reviews.llvm.org/D30669
More information about the llvm-commits
mailing list