[PATCH] Support constant expressions, including non-type template parameters, in pragma loop hints
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 45398 bytes
Desc: not available
More information about the cfe-commits