[cfe-commits] [PATCH] OpenCL Kernel arg info metadata

Tanya Lattner lattner at apple.com
Mon Jun 25 16:00:08 PDT 2012


Attached is a patch that implements the OpenCL kernel arg info option (cl-kernel-arg-info) and during code generation it outputs metadata for kernel arguments. In order to have incremental changes, this only adds the kernel arg names to the metadata. The format of the metadata matches the criteria that was discussed early on the mailing list in the form of lists where the first is the  "name"  of the type of metadata and N number of Values. This allows for easy extension in the future and other OpenCL implementations to do their own thing. More info in the comments.

I've included a test case.

Please review.

-Tanya

-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernelArgMetadata.patch
Type: application/octet-stream
Size: 7384 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120625/d5528f73/attachment.obj>


More information about the cfe-commits mailing list