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


Attachment: pragma_nontypetemplate-svn.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to