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
kernelArgMetadata.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
