Add codegen and diagnostics for opencl_unroll_hint attribute as OpenCL v2.0 s6.11.5.
The code is based on Khronos OpenCL compiler (https://github.com/KhronosGroup/SPIR/tree/spirv-1.0).
Differential Revision: http://reviews.llvm.org/D16686
Differential D16686
[OpenCL] Generate metadata for opencl_unroll_hint attribute yaxunl on Jan 28 2016, 9:44 AM. Authored by
Details Add codegen and diagnostics for opencl_unroll_hint attribute as OpenCL v2.0 s6.11.5. The code is based on Khronos OpenCL compiler (https://github.com/KhronosGroup/SPIR/tree/spirv-1.0). Differential Revision: http://reviews.llvm.org/D16686
Diff Detail Event Timeline
Comment Actions Revised as Xiuli suggested. With the change, there will be quotation marks around the attribute name, so other diagnostics are also changed to be consistent.
Comment Actions Revised as Xiuli suggested. Comment Actions Hi Pekka/Anastasia, I find that most of the attribute parses was done in ParseDecl.cpp, should this also be in there? Thanks
Comment Actions Hi richard, What is your opinion about where to put this ParseOpenCLUnrollHintAttribute? Thanks
|
I think undocumented is not allowed any longer.
I suggest you to check OpenCLGenericAddressSpace here and also OpenCLAddressSpaceGenericDocs in AttrDocs.td for an example how it can be done!