[PATCH] D20979: [OpenCL] Use function attribute/metadata to represent kernel attributes
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 3 11:47:49 PDT 2016
yaxunl created this revision.
yaxunl added reviewers: Anastasia, bader, pxli168.
yaxunl added subscribers: cfe-commits, tstellarAMD.
This patch attempts to use target-dependent function attribute to represent reqd_work_group_size, work_group_size_hint and vector_type_hint kernel attributes and use function metadata to represent kernel argument info.
This is to elicit further discussion about a better way to represent kernel attributes.
The cfe-dev discussion is at http://lists.llvm.org/pipermail/cfe-dev/2016-June/049223.html
http://reviews.llvm.org/D20979
Files:
lib/CodeGen/CodeGenFunction.cpp
test/CodeGenOpenCL/kernel-arg-info.cl
test/CodeGenOpenCL/kernel-attributes.cl
test/CodeGenOpenCL/kernel-metadata.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20979.59589.patch
Type: text/x-patch
Size: 15115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160603/46b6614e/attachment-0001.bin>
More information about the cfe-commits
mailing list