Support non-type template parameters in #pragma loop

Tyler Nowicki tnowicki at apple.com
Fri May 23 14:41:44 PDT 2014


Hi,

As requested here is the patch to support non-type template parameters in #pragma loop. The patch uses LookupName to build a DeclRefExpr to the template parameter and overloads TransformAttr in the template instantiator to transform the value expression and replace the LoopHintAttr. It is built on the PragmaAttr and Pragma Spelling patch listed in the 'Add PragmaAttr and Pragma Spelling to Tablegen’ thread. Since it is a git patch please use ‘patch -p1’ to apply it.

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


Thanks,

Tyler


More information about the cfe-commits mailing list