[PATCH] Support constant expressions, including non-type template parameters, in pragma loop hints
Tyler Nowicki
tnowicki at apple.com
Fri Jun 27 14:11:17 PDT 2014
Hi Hal, Aaron, Richard,
This patch adds support for constant expressions, including non-type template parameters, in pragma loop hints.
Support for constant expressions is done using ParseConstantExpression() in the pragma parser, modifying the LoopHintAttr to hold an Expr, and transforming the LoopHintAttr expression during template instantiation.
Previously it was suggested that I also split the LoopHintAttr into an Attr for enable/disable loop hints and an Attr for loop hints with an expression. I gave it a try but it caused a lot of duplication without much of a reduction in the complexity of loop hint handling. I am willing to give it another look if you think it would be better in the long run.
Tyler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pragma_nontypetemplate-svn.patch
Type: application/octet-stream
Size: 45398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140627/e4970da0/attachment.obj>
More information about the cfe-commits
mailing list