[PATCH] D31321: [OpenCL] Do not generate "kernel_arg_type_qual" metadata for non-pointer args
Egor Churaev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 29 05:31:57 PDT 2017
echuraev added inline comments.
================
Comment at: test/CodeGenOpenCL/kernel-arg-info.cl:66
// CHECK: ![[MD13]] = !{!"int*", !"int", !"int", !"float*"}
-// CHECK: ![[MD14]] = !{!"restrict", !"const", !"volatile", !"restrict const"}
// ARGINFO: ![[MD15]] = !{!"X", !"Y", !"anotherArg", !"Z"}
----------------
Anastasia wrote:
> Could we modify the test to check that const and volatile are added for the pointers though?
Added test case only for volatile pointer because const is checked in the Z argument of foo function.
https://reviews.llvm.org/D31321
More information about the cfe-commits
mailing list